News:

Wondering if this will always be free?  See why free is better.

Main Menu

Referral System

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

Previous topic - Next topic

vbgamer45

The file would be in the themes/default/ folder
Community Suite for SMF - Grow your forum with 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

N i g h t m a r e

okay i have that file opened now with  Notepad++ i just need to know what to look for and what to change...

vbgamer45

Community Suite for SMF - Grow your forum with 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

N i g h t m a r e

i found this while searching for "Referrals"

// Start Refferals System

echo '
<dt>', $txt['ref_refferals'] , '</dt>
<dd>', $context['member']['referrals_no'], '</dd>
';
// Refferals Link
if ($modSettings['ref_showreflink'])
if ($context['user']['is_admin'] || $context['user']['is_owner'])
echo '

<dt>', $txt['ref_refferal_link'], '</dt>
<dd><input type="text" size="50" value="', $scripturl, '?action=refferals;refferedby=', $context['member']['id'], '" /></dd>
';



// End Refferals System



What exactly do i change?

vbgamer45

Not sure looks like using a custom theme but you would need to move that code to a different spot if it is too big for the area that you have now.
Community Suite for SMF - Grow your forum with 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

N i g h t m a r e


Tikkuy

For some reason, my referral points are going to the referred member, instead of the referee so to speak. Does anyone have any idea why?

Bob Perry of Web Presence Consulting

Quote from: Tikkuy on February 08, 2013, 07:51:59 AM
For some reason, my referral points are going to the referred member, instead of the referee so to speak. Does anyone have any idea why?

Yes, it's a bug that I have attempted to get the author to address permanently and am going to fix in my version soon as my free programming time permits, but let me explain what I'm pretty sure you are experiencing by first asking a question. Do 'any' of your members have more than one referral? Take a peek at the statistics page on my site and you'll see only my profile listed in that section of the stats, but what is in reality a hack so that only members with 2 or more referrals listed in the top ten list on both sides of the page. This is because I'm pretty certain that what is happening behind the "no error log entry producing" scene is that the system is allowing the newly registering member to use the same username as the one he/she/it has chosen for himself as a username and the system is not validating the existing member database to throw up a fatal error msg & prevent the user to do that, thus a point is falsely awarded... you'll find that the social site scammer/spammer wannabe's are the main violators.
Best Regards,
Bob Perry



"The world is moving so fast these days that the man who says it can't be done is generally interrupted by someone doing it." Elbert Hubbard

vbgamer45

Quote from: Tikkuy on February 08, 2013, 07:51:59 AM
For some reason, my referral points are going to the referred member, instead of the referee so to speak. Does anyone have any idea why?
Spent a half hour this morning looking at the code.. I do not see how that can be possible.
Community Suite for SMF - Grow your forum with 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

Bob Perry of Web Presence Consulting

Quote from: vbgamer45 on February 19, 2013, 10:18:17 AM
Quote from: Tikkuy on February 08, 2013, 07:51:59 AM
For some reason, my referral points are going to the referred member, instead of the referee so to speak. Does anyone have any idea why?
Spent a half hour this morning looking at the code.. I do not see how that can be possible.

Gonna go test my theory in a minute, but vbgamer if you'll read my previous post, the scenario I present has been an issue with this mod since the beginning.
Best Regards,
Bob Perry



"The world is moving so fast these days that the man who says it can't be done is generally interrupted by someone doing it." Elbert Hubbard

MoreBloodWine

Does this have any code that can be called to show say the top 5 referrers ?
Want a sig like mine for your BTCGuild stats ? Then check this out: Spend-ur-Bits


vbgamer45

Community Suite for SMF - Grow your forum with 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

Bob Perry of Web Presence Consulting

Quote from: MoreBloodWine on March 19, 2013, 02:34:05 PM
Does this have any code that can be called to show say the top 5 referrers ?

If you will visit my site and have a peek at the statistics page, I can fix you up with the same customization I have done to this mod for a nominal price...
Best Regards,
Bob Perry



"The world is moving so fast these days that the man who says it can't be done is generally interrupted by someone doing it." Elbert Hubbard

oOo--STAR--oOo

Meh have you seen this guy try and clone my website lol funny.

Anyhow, is there anyway to track who has referred who, other than just numbers?
You can't fool a sufficiently talented fool.

http://www.uniquez-home.com
In Design Phase!

Mods I am designing,  No refresh Collapse Categories , Poll Redesign , Pure CSS Breadcrumb , Profile Statuses, Profile Views.

Bob Perry of Web Presence Consulting

Quote from: aljo1985 on March 28, 2013, 01:05:34 PM
Meh have you seen this guy try and clone my website lol funny.

Anyhow, is there anyway to track who has referred who, other than just numbers?

This is entirely do-able, been meaning to customize that very thing for quite some time, just haven't had the incentive to put it high on the priority list...
Best Regards,
Bob Perry



"The world is moving so fast these days that the man who says it can't be done is generally interrupted by someone doing it." Elbert Hubbard

oOo--STAR--oOo

Quote from: bperry921 on March 28, 2013, 07:33:05 PM
Quote from: aljo1985 on March 28, 2013, 01:05:34 PM
Meh have you seen this guy try and clone my website lol funny.

Anyhow, is there anyway to track who has referred who, other than just numbers?

This is entirely do-able, been meaning to customize that very thing for quite some time, just haven't had the incentive to put it high on the priority list...

So with the current system is does track more than just numbers at the moment? And records who has referred who in the database.
I could write something myself depending on what's stored in the database.
You can't fool a sufficiently talented fool.

http://www.uniquez-home.com
In Design Phase!

Mods I am designing,  No refresh Collapse Categories , Poll Redesign , Pure CSS Breadcrumb , Profile Statuses, Profile Views.

Bob Perry of Web Presence Consulting

Quote from: aljo1985 on March 29, 2013, 09:37:20 AM
Quote from: bperry921 on March 28, 2013, 07:33:05 PM
Quote from: aljo1985 on March 28, 2013, 01:05:34 PM
Meh have you seen this guy try and clone my website lol funny.

Anyhow, is there anyway to track who has referred who, other than just numbers?

This is entirely do-able, been meaning to customize that very thing for quite some time, just haven't had the incentive to put it high on the priority list...

So with the current system is does track more than just numbers at the moment? And records who has referred who in the database.
I could write something myself depending on what's stored in the database.

Almost correct, it records who's who, but they are numbers as well, but its an easy task to convert the numbers into names, just don't get confused on which is which, referrer or referee...
Best Regards,
Bob Perry



"The world is moving so fast these days that the man who says it can't be done is generally interrupted by someone doing it." Elbert Hubbard

oOo--STAR--oOo

#1137
I suppose that would be easy todo.. Could do a select query where member name = context member profile viewing.
Select member_name where referred by = context member

Just would need somewhere to show who referred who.. Thanks, the system is nice.. I gonna use this and edit it a little.
Its complete.. Gonna find a nice place to show who referred who...


Edit:I think a little popup would be about right, where they would click on the number of referrals and it would produce a little popup showing the members names who they referred.

example
echo '<a href="javascript:window.open(\''.$boardurl.'/Sources/referrals.php?action=referredby\',\'Referrals\',\'width=600,height=294,resizable=1\');void(0);" title="View Referrals">REFERRALS NUMBER HERE FROM TEMPLATE</a>';

Then have the if isset there to do the query in SQL.. I'll knock it up sometime this week or next.
You can't fool a sufficiently talented fool.

http://www.uniquez-home.com
In Design Phase!

Mods I am designing,  No refresh Collapse Categories , Poll Redesign , Pure CSS Breadcrumb , Profile Statuses, Profile Views.

SMFHacks.com Team

Minor update!
3.1
+Added easy copyright removal ordering system
Disclaimer: SMFHacks.com Team is not affiliated with the SMF Team or the SimpleMachines NPO.
SMFHacks.com -  Paid Modifications for SMF
Latest Mods:
Community Suite
Newsletter Pro SMF Gallery Pro SMF Classifieds SMF Store

phpshiva

hi


aljo1985 i would love to have that link if you got it compleet

Thanks

Advertisement: