News:

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

Main Menu

Referral System

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

Previous topic - Next topic

Fustrate

I'm hoping to finish upgrading this by next weekend... When I'll pretty much be done with high school.

@ Filipina: ya, they probably just copied and pasted out of that profile OR they entered the person's name when they registered.
Steven Hoffman
Former Team Member, 2009-2012

Sabre™

Request.

Could you add a code here to make it only viewable to THAT user??
I know i know...  There's no point  yadda yadda yadda...
Im finding that its those that dont know how to get your member id, that abuse the feature. In "fun"   ::)
Those that know how, are mature enough not to participate in such actions.
It is a security comfort for newbie users ;)

The option wouldnt hurt no?
Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)


Fustrate

Fine, fine, I give in. I'll look at the code and post a little modification for you to do. Gimme a little while though, I'm home sick but conveniently finishing a project due tomorrow...
Steven Hoffman
Former Team Member, 2009-2012

Sabre™

Quote from: YodaOfDarkness on May 22, 2008, 11:54:17 AM
Fine, fine, I give in.
Wooohooo!!
One for the annoying people!! lol  ;)
Cheers Yoda. Your efforts are always appreciated buddy :)

Quote from: YodaOfDarkness on May 22, 2008, 11:54:17 AM
Gimme a little while though, I'm home sick but conveniently finishing a project due tomorrow...
But of course mate.
There is no rush, and your health and studies always come first!!
I'll be back in an hour.
lol  :P
Im just glad youre doing it. Be it a week or 2 weeks, knowing that it'll be ready when you are, is good enough.
Get better soon, and good luck with your exams!!
Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)


TJTELLEZ9

How can I reset the mod stats?  I have tried removal of the mod etc, but it still doesnt work..

Fustrate

When you remove the mod, also go into the database and remove the following columns from smf_members:

  • referrals_hits
  • referrals_no
  • referred_by
  • referred_on
Steven Hoffman
Former Team Member, 2009-2012

Pranav

Can this be integrated with Shop Mod and make the system automatically give points to the person who referred(at a certain amount of posts)?
And only enable referring for members who have posts above, say, 20 or so? :)



Eliana Tamerin

It is already, check the Register.template.php file with the shop mod installed. ;)
Do NOT PM me for support.

SimplePortal 2.3.6 is OUT!
SimplePortal Project Manager
Download | Docs
SimplePortal: Power of Simplicity!

Fustrate

You mean Sources/Register.php ;)
search for the word "shop"
Steven Hoffman
Former Team Member, 2009-2012

Eliana Tamerin

Oops, Yoda has the right one.

I knew it was there somewhere, just forgot exactly where. Thanks.
Do NOT PM me for support.

SimplePortal 2.3.6 is OUT!
SimplePortal Project Manager
Download | Docs
SimplePortal: Power of Simplicity!

Pranav

Quote from: Eliana Tamerin on May 25, 2008, 09:48:22 AM
It is already, check the Register.template.php file with the shop mod installed. ;)

Great! :D I removed "//" from this line
Quote// updateMemberData($referrer, array('money' => 'money + 100'));

and changed it to

QuoteupdateMemberData($referrer, array('money' => 'money + 20'));
Is this 'money + 100' to give money to the user for referring, where 100 is the amount of credits? :)

BTW, can we also limit a user from referring until they have 20 posts or so? :) Also, is it possible to only give money to the referrer, if the referred user has reached a certain amount of posts?
And once the referred user has reached a certain amount of posts, don't give money to the referrer yet and make it undergo the administrator to prevent fraud? :)

Thanks! :)

Bust_Ed

Are there any stats, showing monthly top referrer?

LiamTheDuck

Any chance of 2.0 beta 3.1 update? because my Forum needs this as it is great! :P
I am back, its been like a year... so yeah.... how has it been? :D

Eliana Tamerin

I'm guessing an update for 2.0 probably won't come until at 2.0 is at least in RC versions.
Do NOT PM me for support.

SimplePortal 2.3.6 is OUT!
SimplePortal Project Manager
Download | Docs
SimplePortal: Power of Simplicity!

Harvester

Help PPlease

I went to install this mod and I recieved the error "Error in Package Installation"

this is the list of actions that followed:

QuoteInstalling this package will perform the following actions:  Type Action Description
1. Execute Modification ./index.php Test successful
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. Execute Modification ./Themes/default/Register.template.php Test successful
7. Execute Modification ./Themes/default/Display.template.php Test failed
8. Execute Modification ./Themes/default/Xml.template.php Test successful
9. Execute Modification ./Themes/default/Stats.template.php Test successful
10. Execute Modification ./Themes/default/Stats.template.php Test successful
11. Execute Modification ./Themes/default/Profile.template.php Test successful
12. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
13. Execute Modification ./Themes/default/languages/Modifications.english-utf8.php Skipping file
14. Execute Modification ./Themes/default/languages/Modifications.english_british.php Skipping file
15. Execute Modification ./Themes/default/languages/Modifications.english_british-utf8.php Skipping file
16. Extract File ./Sources/Referrals.php 
17. Extract File ./referrals_copytoclipboard.swf 
18. Execute Code install.php

Please help as Id really like to get this mod on my site.

Thank you, Jared

Fustrate

Install it through the Package Manager, and then go edit Display.template.php with the following:

Code (FIND) Select
// Show how many posts they have made.
echo '
', $txt[26], ': ', $message['member']['posts'], '<br />

Code (ADD AFTER) Select

', $txt['referrals_referrals'].' '.$message['member']['referrals_no'].'<br />
Steven Hoffman
Former Team Member, 2009-2012

Harvester

Why is it doing that? Because of the other mods I have installed which have changed Display.template from default?

thats the only edit in Display.template?

Thank you Yoda :D

Fustrate

#97
Yes, it's most likely due to other mods, and that is the only change this mod does to Display.template.php :)

I've done a straight 'translation' of the code for SMF 2.0, but haven't had any time to test it yet. Once SMF Beta 4 is released, the version for 2.0 will be released within a day or two.

EDIT: Finally got to test it, and I only made one error when translating it for 2.0 (without even looking at the 2.0 files, because I haven't migrated everything over to my mac yet :D) Expect it the day after Beta 4 so I can make any theme changes needed.
Steven Hoffman
Former Team Member, 2009-2012

GawdSpeed

I installed this mod and everything is good, except the [Copy] button doesn't work on my profile. It doesn't copy anything at all.

Fustrate

What browser are you using?
Steven Hoffman
Former Team Member, 2009-2012

Advertisement: