Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
User CP Referral ID and Referrer in Profile for vB3.7 Details »»
User CP Referral ID and Referrer in Profile for vB3.7
Version: 1.0.3, by Boofo Boofo is offline
Developer Last Online: Jun 2012 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 3.7.x Rating:
Released: 03-13-2008 Last Update: 04-13-2008 Installs: 104
Uses Plugins Auto-Templates
 
No support by the author.

User CP Referral ID and Referrer in Profile for vB3.7
Version 1.0.3
(By Boofo)

What does this product do?
This product will add a content box in the User CP displaying a customizable referral "Message" and the member's "Referral Link" along with their referral count. It will also show the referrer in the profile.

Version Information:
Version 1.0.1 --Initial release for vB3.7
Version 1.0.2 --Using template hook instead of str_replace. Added profile referrals location to phrase. Cleaned up code.
Version 1.0.3 --Added Referrer name to member's profile (in General Information under the Statistics tab).

Installation overview:
Products to install: (1)
Templates to edit: (1)
Additional CSS to install: (1) - Optional

Installation Instructions:
1. In the memberinfo_block_statistics template

Find:
---------------------------

<if condition="$vboptions['usereferrer']"><li><span class="shade">$vbphrase[referrals]:</span> $prepared[referrals]</li></if>

---------------------------
BELOW it add:
---------------------------

<if condition="$show['referrer']"><li><span class="shade">$vbphrase[referrer]: </span><a href="member.php?u=$prepared[referralsuserid]">$prepared[referralsname]</a></li></if>

---------------------------
2. Go to the Style Manager and click on "All Style Options."
Scroll down to the "Additional CSS Definitions" box at the bottom of the page.
Add the following CSS code to the box:

a.bob:link {
color:#0000FF;
text-decoration: none;
}

a.bob:visited {
color:#0000FF;
text-decoration: none;
}

a.bob:hover {
font-weight:bold;
text-transform: uppercase;
}

3. Go to your Admin CP
Scroll down to 'Plugin System'
Click 'Manage Products'
Click 'Add/Import Product'
Click the 'Browse' button, and locate the product-usercp_referral_id.xml file on your computer

Done!
Enjoy!

NOTE: If you do not click install, you do not need support.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 03-24-2008, 11:50 PM
gwerzal's Avatar
gwerzal gwerzal is offline
 
Join Date: Oct 2007
Posts: 317
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just installed this and it all looks good.

Lets see how many people start refering now its so easy for them to do.

Thank you
Reply With Quote
  #23  
Old 03-28-2008, 08:00 AM
Pamela Pamela is offline
 
Join Date: Apr 2004
Posts: 221
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is great! *clicks install*

Thanks!!!
Reply With Quote
  #24  
Old 03-28-2008, 09:37 AM
RvG2 RvG2 is offline
 
Join Date: Jan 2007
Posts: 457
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks so much... one of my member is so eagerly wants to have this.
Reply With Quote
  #25  
Old 03-28-2008, 10:00 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by RvG2 View Post
thanks so much... one of my member is so eagerly wants to have this.
It would be a better thanks to click the install button.
Reply With Quote
  #26  
Old 03-28-2008, 12:44 PM
GrendelKhan{TSU's Avatar
GrendelKhan{TSU GrendelKhan{TSU is offline
 
Join Date: Jun 2005
Location: Boston | Seoul, S. Korea
Posts: 1,311
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by NeuroLancer View Post
this is very nice thanks so much

Side note: thats the second add on from you where ive had to go into the xml before install and remove <a class="bob"> Not that I dont like the class, but I have a dark style and the dark blue text makes it hard to see.
Quote:
Originally Posted by Boofo View Post
Small price to pay, don't you think?
it ain't if one has no idea how to edit the xml !!!
<<< n00000000bafic. :erm:
Reply With Quote
  #27  
Old 03-28-2008, 01:54 PM
popowich popowich is offline
 
Join Date: Jun 2004
Posts: 388
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Where does the referrals.gif go?

I don't see any error logs to clue me into the expected path.

-Raymond
Reply With Quote
  #28  
Old 03-28-2008, 01:57 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That is just an image of how the hack looks in action. It doesn't go anywhere.
Reply With Quote
  #29  
Old 03-28-2008, 02:00 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by GrendelKhan{TSU View Post
it ain't if one has no idea how to edit the xml !!!
<<< n00000000bafic. :erm:
Use a text editor and search for the class="bob" and remove it. Then save the file.
Or actually you can edit the template in the admin cp and remove it that way.
Reply With Quote
  #30  
Old 03-28-2008, 02:02 PM
popowich popowich is offline
 
Join Date: Jun 2004
Posts: 388
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Stupid me, I should have opened it up and looked. Figured it was an icon or something. :erm:

-Raymond
Reply With Quote
  #31  
Old 03-28-2008, 02:04 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you are uploading icons of that size, you are in trouble,
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:20 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07640 seconds
  • Memory Usage 2,311KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete