Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Referral ID in User CP Details »
Referral ID in User CP
Mod Version: 1.2, by ResaleBroker (Member) ResaleBroker is offline
Developer Last Online: Feb 2014 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.0.7 Rating: (7 votes - 4.71 average) Installs: 173
Released: 23 Jun 2005 Last Update: 02 May 2006 Downloads: 638
Not Supported Template Edits Code Changes  

This simple modification will add a content box in the User CP displaying the user's "Referral Count", "Referral Link" and a "Referral Message" that can can be customized in the Phrase Manager.

For 3.5.x or higher simply install the product.


For 3.0.x follow the instructions below:

1) Modify USERCP template
Admin CP >> Style Manager >> Edit Templates >> User control Panel Templates >> USERCP

Find:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Above that add:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


2) Add the Required Phrase
Admin CP >> Language & Phrases >> Phrase Manager >> Add New Phrase

Phrase Type:
Global
Varname:
refid_usercp
Text:
<p>Please help us spread the word about "{1}." When referring others to the community you can use the link below which includes your unique referral ID.</p>
<p>Each time someone follows this link to {1} and registers as a new member, your referral count will be incremented by one.</p>
<p>Please be courteous when promoting {1} by not spamming other web sites with your referral link just to gain referrals.</p>
<fieldset id="referrallink"><legend>Referral Link for {4}&nbsp;</legend><a href="{5}">{5}</a></fieldset>

3) Modify usercp.php file [VB versions 3.0.x]

Open usercp.php and Find:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Above that add:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


4) That's it! You're Done!




*A special thanks to Noppid for helping out and getting the referral counts to appear in the UserCP for 3.0.x and 3.5.x versions.

*A special thanks to Boofo for packaging this product for 3.5.x

Download Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	refid_usercp_v1.2.jpg
Views:	1392
Size:	40.4 KB
ID:	39066  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Miscellaneous Hacks User CP Referral ID and Referrer in Profile for vB3.7 Boofo Modification Graveyard 77 02 Jul 2008 00:57

  #61  
Old 07 Dec 2005, 21:09
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Real name: Rob
Originally Posted by noppid
I have this packaged and ready to release as a vB 3.5 product when RB is ready.

I have modified the phrase and USERCP Template add in code a bit as well. The box is still collaspable, but when collapsed, it still shows the referrer link for the member.

I also made the link just text. When the link was live, it was too easy to click and activate it while trying to copy and paste it.
Could you please pm it to me, sir?
Reply With Quote
  #62  
Old 07 Dec 2005, 23:44
ResaleBroker's Avatar
ResaleBroker ResaleBroker is offline
 
Join Date: Aug 2004
Real name: Jeff Blackwell
Ok, I've updated the instructions to include both the 3.0.x and 3.5.x versions.

I'll work on getting this packaged for release as a vB 3.5 product.
__________________
Jeff Blackwell

Last edited by ResaleBroker; 08 Dec 2005 at 12:42.
Reply With Quote
  #63  
Old 08 Dec 2005, 14:10
JeffreySmith JeffreySmith is offline
 
Join Date: Nov 2005
Help I messed up up Big Time!!

HI,

I messed up big time. I wasnt paying to close attention and I modified the usercp.php even though I have 3.5.x, and published the changes, then I got an error message:

Parse error: parse error, unexpected '[' in /home/jeffsmit/public_html/forum/usercp.php(467) : eval()'d code on line 3

at the top of my usercp page on the forum.

I went back and looked over the directions and noticed I was only supposed to modify if I was using 3.0.x. So I erased the:

// REFERRALS
$refcount = $DB_site->query_first("SELECT COUNT(*) AS count FROM " . TABLE_PREFIX . "user WHERE referrerid = '".$bbuserinfo['userid']."'");
$referrals = vb_number_format($refcount['count']); [/CODE]

That I had previoulsy inserted. Then I republished, now I get the same error message at the top of my user cp.


This is lines: 461-474 as of right now:

// draw cp nav bar
construct_usercp_nav('usercp');

$frmjmpsel['usercp'] = 'class="fjsel" selected="selected"';
construct_forum_jump();

($hook = vBulletinHook::fetch_hook('usercp_complete')) ? eval($hook) : false;

eval('$HTML = "' . fetch_template('USERCP') . '";');

// build navbar
$navbits = construct_navbits(array('' => $vbphrase['user_control_panel']));
eval('$navbar = "' . fetch_template('navbar') . '";');
eval('print_output("' . fetch_template('USERCP_SHELL') . '");');



Does anyone know what I can do to fix this, I dont really even know what I am doing but I am trying to learn as I go. I goofed this time... HELP!

Thank You,

Jeff Smith
Reply With Quote
  #64  
Old 08 Dec 2005, 14:21
ResaleBroker's Avatar
ResaleBroker ResaleBroker is offline
 
Join Date: Aug 2004
Real name: Jeff Blackwell
Remove this line of code from the code you provided:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

__________________
Jeff Blackwell
Reply With Quote
  #65  
Old 08 Dec 2005, 14:29
JeffreySmith JeffreySmith is offline
 
Join Date: Nov 2005
Originally Posted by ResaleBroker
Remove this line of code from the code you provided:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.
I owe you my first born son. It worked!
Reply With Quote
  #66  
Old 08 Dec 2005, 14:31
ResaleBroker's Avatar
ResaleBroker ResaleBroker is offline
 
Join Date: Aug 2004
Real name: Jeff Blackwell
Originally Posted by JeffreySmith
I owe you my first born son. It worked!
I'm happy to hear your back up and running.
__________________
Jeff Blackwell
Reply With Quote
  #67  
Old 08 Dec 2005, 17:34
lazyseller lazyseller is offline
 
Join Date: Oct 2003
Thanks alot Resale... waiting for the release

i wish i found your forum before i quit working =) in the sales market..

I got a recommendation though

members from around the world.

maybe a enter forums link... right under that text on your index page...

I recommend some sorta forum link like enter forums or forums somewhere on your page i was a bit lost when i first entered the page because i didnt want to click one of the latest post and that didnt give me any other option other than adsense.
Reply With Quote
  #68  
Old 08 Dec 2005, 18:29
Snake's Avatar
Snake Snake is offline
 
Join Date: Mar 2005
Location: Cleveland, OH
Real name: Josh
Whoa thanks for the update.
Reply With Quote
  #69  
Old 08 Dec 2005, 21:20
ResaleBroker's Avatar
ResaleBroker ResaleBroker is offline
 
Join Date: Aug 2004
Real name: Jeff Blackwell
Originally Posted by lazyseller
Thanks alot Resale... waiting for the release

i wish i found your forum before i quit working =) in the sales market..

I got a recommendation though

members from around the world.

maybe a enter forums link... right under that text on your index page...

I recommend some sorta forum link like enter forums or forums somewhere on your page i was a bit lost when i first entered the page because i didnt want to click one of the latest post and that didnt give me any other option other than adsense.
Thanks! I promised myself that if anyone brought that up I'd add a link to the forums so... link has been added. Thanks Again!
__________________
Jeff Blackwell
Reply With Quote
  #70  
Old 09 Dec 2005, 16:09
RaceJunkie RaceJunkie is offline
 
Join Date: Jun 2005
Clicks Install

Thank You very much for your time
Reply With Quote
  #71  
Old 25 Dec 2005, 05:01
Jorrit787 Jorrit787 is offline
 
Join Date: Nov 2005
Location: The Netherlands
Works great, except that there seems to be an extra line break at the top of the box (see attached screenshot) - How do I get rid of it?

EDIT: Apparently it only shows the extra linebreak for admins...
Attached Images
File Type: jpg vb_refer.jpg (10.9 KB, 35 views)

Last edited by Jorrit787; 25 Dec 2005 at 05:36.
Reply With Quote
  #72  
Old 02 Apr 2006, 14:41
RetroDreams RetroDreams is offline
 
Join Date: Nov 2002
Someone needs to finally change this to a plug/product.
Reply With Quote
  #73  
Old 02 Apr 2006, 16:51
ResaleBroker's Avatar
ResaleBroker ResaleBroker is offline
 
Join Date: Aug 2004
Real name: Jeff Blackwell
Originally Posted by RetroDreams
Someone needs to finally change this to a plug/product.
Sorry, I forgot all about this. I think Noppid said he had this packaged. I'll send him a PM.
__________________
Jeff Blackwell
Reply With Quote
  #74  
Old 04 Apr 2006, 22:32
noppid noppid is offline
 
Join Date: Mar 2003
Originally Posted by ResaleBroker
Sorry, I forgot all about this. I think Noppid said he had this packaged. I'll send him a PM.
I forgot all about this being as it was your idea and original post. I read a post that said I did it, so I'll go look.
__________________
Add a photo gallery garage to your auto forum and get noticed by your members. Find out how at the vBulletin Computer Help Forum.
An informed rider makes their first destination the motorcycle forum at rider info.
Reply With Quote
  #75  
Old 25 Apr 2006, 19:48
lemonpiesaregoo lemonpiesaregoo is offline
 
Join Date: Nov 2005
Hello,

I just installed this on http://www.make-money-online.tv/forum. And now that anytime anyone goes to the User CP this message shows up at the top of the window:

"Parse error: parse error, unexpected '[' in /home/makemo3/public_html/forum/usercp.php(471) : eval()'d code on line 3"

any ideas on how I can fix this?

Thanks
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

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


New To Site? Need Help?

All times are GMT. The time now is 14:09.

Layout Options | Width: Wide Color: