News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

referral system mod [done]

Started by Mr. Tiger, February 12, 2007, 02:34:04 PM

Previous topic - Next topic

Mr. Tiger

I am not good in php.
when i edit in SMF, really it was very hard to make this simple thing.

thanks for Unknown Breakets [nofollow]

Quote
Make change in referral id


Referral System Mod
for creating follow this instruction:
Sources/board.index.php
Search :
function BoardIndex()
{
global $txt, $scripturl, $db_prefix, $ID_MEMBER, $user_info, $sourcedir;
global $modSettings, $context, $settings;

Add :
   
   
if($_GET['ref']){
setcookie(referral, $_GET['ref'], 2592000 + time());
}



profile.template.php
search for:
<td><a href="', $context['member']['website']['url'], '" target="_blank">', $context['member']['website']['title'], '</a></td>
then add here
</tr><tr>
<td><b>Referred By: </b></td>
<td>', @$context['member']['options']['referral_name'], '</td>

</tr><tr>
<td><b>Referral ID: </b></td>
<td><a href="' . $scripturl . '?ref=', $context['member']['name'], '">Your Referral Link</a></td>


and edit register.template.php

Search for:
<td>
<input type="password" name="passwrd2" size="30" tabindex="', $context['tabindex']++, '" />
</td>
</tr><tr>

and then add here:
</tr><tr>
<td width="40%">
<b>Referral Name:</b>
</td>
<td>
<input type="text" name="default_options[referral_name]" value="'.$_COOKIE["referral"].'" size="30" tabindex="', $context['tabindex']++, '" />
</td>


refer id will be: ?ref=moinuddin102

Picture in Registration
[nofollow]

Picture  in profile:
[nofollow]



KGIII

Any way to keep track of them in the administration center? (Totals, who referred whom, etc?)


My PC Support Forum
Please ask in-thread before PMing
                   SMF Help
                   Visit My Blog

How can we improve the support process?:
http://www.simplemachines.org/community/index.php?topic=163533.0

SMF vs. Godzilla? Who do you think will win?

samo8076

that works great, thanks. does it hold the members referred by info in the database?

also what KGIII said would be a great addition.

Harro

Sounds great!
But statistics would be nice :)

vbgamer45

Expand the mod and improve and submit it to the mod site xD.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Tanks

Stats/info would make me use this mod.. some way to show the users some info about the top 5 referrals or something like that  :)

great work  :)

Gobo

wow great job
this has been probably one of the most awaited mods on SMF :D
weve been waiting since 1723

Mr. Tiger

thats great response.
wait, i will work more for this mods.
i search it many time in mod section, but cannot make this mode.
then what i can do, i just sit down to make this mods.

SleePy

Did this a lot easier than what I planned. I planned a mod to use its own row in the members table not a value in the themes table. But it works one way or another. ;D Another mod I never finished then :P
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

Mr. Tiger

just change in referral id.
add cookie in referral system.
referral link is now:
http://www.yourdomain.com/?ref=yourname [nofollow]

wonderPT

great!

Working perfectly in 1.1.2

That stats think would be even better!

nitins60

Great work! If possible, keep the record of users, and thier refer

Lamarck

Very nice,thanks...It would be even greater with statistics and stuff like that.Anyway,I will install It.

wendylady

hi I add this to my site and  The referral field is not filing in any ides for helping me? Well thanks for making this.

alo

does this work on custom theme?

||||||

any way to track how many members a user referred?

||||||

would appreciate it if someone finish this one up...

||||||

can someone help with this? how to make this mod shows how many member a user referred?

||||||


Mr. Tiger

yes, i am coming again for making this mod with full features.
now i am sponsored from http://dollardeluge.com [nofollow]
with statistics, top ten referrels user & what you want.
please say, what you want more for this?

Advertisement: