![]() |
|
Mod Options |
![]() |
|||||||||||||||||||||||||
This modification is in the archives.
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:
Above that add:
2) Add the Required Phrase Admin CP >> Language & Phrases >> Phrase Manager >> Add New Phrase Phrase Type:
3) Modify usercp.php file [VB versions 3.0.x] Open usercp.php and Find:
Above that add:
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 Show Your Support
No members have liked this post.
|
![]() |
||||
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
|
||||
|
||||
Originally Posted by noppid
Could you please pm it to me, sir?
![]() No members have liked this post.
|
#62
|
||||
|
||||
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 No members have liked this post.
Last edited by ResaleBroker; 08 Dec 2005 at 12:42. |
#63
|
|||
|
|||
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 No members have liked this post.
|
#64
|
||||
|
||||
Remove this line of code from the code you provided:
__________________
Jeff Blackwell No members have liked this post.
|
#65
|
||||
|
||||
Originally Posted by ResaleBroker
I owe you my first born son. It worked!
No members have liked this post.
|
#66
|
||||
|
||||
Originally Posted by JeffreySmith
I'm happy to hear your back up and running.
![]()
__________________
Jeff Blackwell No members have liked this post.
|
#67
|
|||
|
|||
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. No members have liked this post.
|
#68
|
||||
|
||||
Whoa thanks for the update.
No members have liked this post.
|
#69
|
||||
|
||||
Originally Posted by lazyseller
Thanks!
![]()
__________________
Jeff Blackwell No members have liked this post.
|
#70
|
|||
|
|||
Clicks Install
Thank You very much for your time No members have liked this post.
|
#71
|
|||
|
|||
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... No members have liked this post.
Last edited by Jorrit787; 25 Dec 2005 at 05:36. |
#72
|
|||
|
|||
Someone needs to finally change this to a plug/product.
No members have liked this post.
|
#73
|
||||
|
||||
Originally Posted by RetroDreams
Sorry, I forgot all about this. I think Noppid said he had this packaged. I'll send him a PM.
__________________
Jeff Blackwell No members have liked this post.
|
#74
|
|||
|
|||
Originally Posted by ResaleBroker
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. No members have liked this post.
|
#75
|
|||
|
|||
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 No members have liked this post.
|
![]() |
«
Previous Mod
|
Next Mod
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Mod Options | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 14:09.