Version: 1.2, by ResaleBroker
Developer Last Online: Feb 2014
Version: 3.0.7
Rating:
Released: 06-22-2005
Last Update: 05-01-2006
Installs: 173
Template Edits
Code Changes
No support by the author.
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
2) Add the Required Phrase
Admin CP >> Language & Phrases >> Phrase Manager >> Add New Phrase
Phrase Type:
Quote:
Global
Varname:
Quote:
refid_usercp
Text:
Quote:
<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} </legend><a href="{5}">{5}</a></fieldset>
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.
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');
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.
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!