News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Referral System

Started by SMFHacks.com Team, March 03, 2008, 01:02:01 PM

Previous topic - Next topic

Jirsh

I have edited display.template.php as instructed but the referrals dont show on the posts? Help please

// Show how many posts they have made.
// echo '
// ', $txt[26], ': ', $message['member']['posts'], '<br />', $txt['referrals_referrals'].' '.$message['member']['referrals_no'].'<br />
// <br />';

ne.miguelito

Please help me, I have instaled  this mod and if I register a user and delete the acount, the number of referals on my acount doesn´t decrease...

Thanks for the mod.

Regards.

Fustrate

I'm torn on whether or not to add that into the code... even if a user decides not to continue on the forum and cancels their account, I still think that the referrer should get credit for having referred a member.

If you really want this, I guess I can code it for you this weekend... I have absolutely no spare time right now :(
Steven Hoffman
Former Team Member, 2009-2012

ne.miguelito

Yes I prefer that when an acount are deleted, the number of referals on my acount should decrease.

Ok, i´m wating for your modification, thanks for everything.

Regards

ne.miguelito

Somebody knows a script to allow to do the reset to all referals, it can be in sql...

malcomxar

Thanks, great mod works perfectly :)

Fustrate

thanks, malcomxar :)

ne.miguelito - here's some quick SQL for it...
UPDATE `smf_members` SET `referrals_no` = 0, `referrals_hits` = 0, `referred_by` = 0, `referred_on` = 0 WHERE `id_member` > 0
change smf_ to your database prefix.
Steven Hoffman
Former Team Member, 2009-2012

ne.miguelito

Thank you, its a great mod... don't forget the another question...


Regards

starz

is there anywhere in the admin panel to view referral stats?
Love music?  So do we.
http://mftmforum.com

Fustrate

no, just the statistics page that general members see.
Steven Hoffman
Former Team Member, 2009-2012

starz

#70
where's the statistics page?  i cant find it. :(

nvm, i found it.  yay!
Love music?  So do we.
http://mftmforum.com

forummaker

#71
I'm not sure which mod that I installed that created this error after a new member registers. It should tell the new registered member that an email has been sent to them, instead they get this message;

Database Error
Please try again. If you come back to this error screen, report the error to an administrator.

I've tried to uninstall the referral mod to see if it was creating the error, but when I try and uninstall the mod I get this error:

1.     Execute Modification     ./index.php     Test failed
2.    Execute Modification    ./Sources/Load.php    Test successful
3.    Execute Modification    ./Sources/Register.php    Test successful
4.    Execute Modification    ./Sources/Stats.php    Test successful
5.    Execute Modification    ./Sources/Profile.php    Test successful
6. so, on and so on........7. 8. 9. .....
It's just the index.php test failed thats an issue for the uninstall.
Thanks for any help on this.

Modified:
I'm not sure whats going on now. Everything seems to be working now.....hmmm.

forummaker

Now a different issue. Everything was working fine, but now when a new member registers, the popup window doesn't popup, it loads in the same window. This causes a problem because after selecting the member that referred you, there's no place for it to go. There use to be a popup window that would show up, and when you click on the person that referred you it would fill that in on the registration page. I wonder if somehow something changed in the referrals.php? Love this mod. Any suggestions on a fix? Thanks.

Fustrate

Are you using the latest version of the mod? If I recall, we fixed that issue a while ago. Anyways, can I get the url to your forum? I'll go see what exactly it's doing so that I can find a fix for you.
Steven Hoffman
Former Team Member, 2009-2012

markvon

i have tried installing this great mod, but i get the following error:

7.     Execute Modification     ./Themes/default/Display.template.php     Test failed

What can i do?

Fustrate

You'll need to do that part of the modification by editing the Display.template.php file yourself. Use the dropdown list on the mod download page to select your SMF version, and it'll show you exactly what to edit in every page (but you'll just need to do Display.template.php)
Steven Hoffman
Former Team Member, 2009-2012

markvon

thanks yoda. I have followed your instructions, but now i get a bigger problem.

In the forum, at my profile, i have two instances of posts. For instance, taking this forum as an example:

YodaofDarkness
Charter Member
Full Member
Offline
Gender:
Posts: 414
Referrals: 0

Posts: 414

Why is it repeated?

Fustrate

look for a repeated variable in Display.template.php... two lines that look the same.
Steven Hoffman
Former Team Member, 2009-2012

ekfaysal

any chance for update to smf 2 beta 3

Filipina

I love this MOD concept :)

I installed it yesterday.  I had a sign up which indicated a referral from another member.  I checked and the member that got credited with the referral has not been on the site since February.  So I am confused how that happened?  I see that each member has a link code they can use to refer people to the site.  Since that link is not clickable, it blew my theory that maybe the new registration clicked off her profile.  Any ideas, just curious :)

Advertisement: