Site in read-only mode
This site is now read-only following the release of MyBB 1.8 and the new mods site.
If you are looking for MyBB 1.8 mods please click here to visit the new mods site.
You can continue to download submissions for MyBB 1.6 and earlier here, however new submissions will only be accepted via the new mods site.
Usercp Referral Link
Simply ads your referral link into your usercp home page.
Most people don\'t know about the referral link for MyBB. I found it out
while on IRC, from Chris Boulton, and made it a modification.
What it does:
The referral link placed in the usercp will be your specific referral link
that you give out to a friend. When he clicks on the register link, and
goes to fill out his information, your username will be in the referral
field.
How to make this work:
You have one of two options, and it solely depends upon if you have
template customizations to your usercp. If you do, choose option two. If
you don\'t, follow this instructions.
Option 1.)
Go to Your Forum > Admin Control Panel > Templates (Modify / Delete)
> (Click expand on whatever template set you are using) > (Scroll
down to the bottom and click on) User Control Panel Templates > (this
will expand the template set, then click on) usercp
Replace the entire template with this code:
<html>
<head>
<title>{$lang->user_cp}</title>
{$headerinclude}
</head>
<body>
{$header}
<table width=\"100%\" border=\"0\"
align=\"center\">
<tr>
{$usercpnav}
<td valign=\"top\">
<table border=\"0\"
cellspacing=\"{$theme[\'borderwidth\']}\"
cellpadding=\"{$theme[\'tablespace\']}\"
class=\"tborder\">
<tr>
<td class=\"thead\"
colspan=\"{$colspan}\"><strong>{$lang->brief_summary}</strong></td>
</tr>
<tr>
{$avatar}
<td class=\"trow1\"
width=\"50%\"><strong>{$lang->username}</strong></td>
<td class=\"trow1\"
width=\"50%\">{$username}</td>
</tr>
<tr>
<td class=\"trow2\"
width=\"50%\"><strong>{$lang->primary_usergroup}</strong></td>
<td class=\"trow2\"
width=\"50%\">{$usergroup}</td>
</tr>
<tr>
<td class=\"trow1\"
width=\"50%\"><strong>{$lang->registration_date}</strong></td>
<td class=\"trow1\"
width=\"50%\">{$regdate}</td>
</tr>
<tr>
<td class=\"trow2\"
width=\"50%\"><strong>{$lang->postnum}</strong></td>
<td class=\"trow2\" width=\"50%\"><a
href=\"search.php?action=finduser&uid={$mybb->user[\'uid\']}\">{$mybb->user[\'postnum\']}</a>
{$lang->posts_day}</td>
</tr>
<tr>
<td class=\"trow1\"
width=\"50%\"><strong>{$lang->email}</strong></td>
<td class=\"trow1\"
width=\"50%\">{$mybb->user[\'email\']}</td>
</tr>
<tr>
<td class=\"trow2\"
width=\"50%\"><b><acronym title=\"Give this URL to
a friend, and when he registers, you\'ll be his
referrer.\">Referral URL</acronym>:</b></td>
<td class=\"trow2\" width=\"50%\"><a
href=\"{$mybb->settings[\'bburl\']}/index.php?referrer={$mybb->user[\'uid\']}\">{$mybb->settings[\'bburl\']}/index.php?referrer={$mybb->user[\'uid\']}</td>
</tr>
{$reputation}
</table>
</td>
</tr>
</table>
{$footer}
</body>
</html>
Click \"Update Template\" and you are done.
Option 2.)
If you have template modifications in your usercp, please use this option,
which doesn\'t replace the entire template.
To begin, go to:
Your Forum > Admin Control Panel > Templates (Modify / Delete) >
(Click expand on whatever template set you are using) > (Scroll down to
the bottom and click on) User Control Panel Templates > (this will
expand the template set, then click on) usercp
Find:
<td
class=\"trow1\"
width=\"50%\"><strong>{$lang->email}</strong></td>
<td class=\"trow1\"
width=\"50%\">{$mybb->user[\'email\']}</td>
</tr>
Below it, add:
<tr>
<td class=\"trow2\"
width=\"50%\"><b><acronym title=\"Give this URL to
a friend, and when he registers, you\'ll be his
referrer.\">Referral URL</acronym>:</b></td>
<td class=\"trow2\" width=\"50%\"><a
href=\"{$mybb->settings[\'bburl\']}/index.php?referrer={$mybb->user[\'uid\']}\">{$mybb->settings[\'bburl\']}/index.php?referrer={$mybb->user[\'uid\']}</td>
</tr>
Click Update Template, and you are done!
Go to your User Cp, and make sure the change has taken effect.
Released under the GNU / GPL Copyright, by Dr Small