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

Fustrate

actually, that looks like it should work just fine. You can edit that in Profile.php or Profile.template.php, just seach for "referredby" and change the link format there.
Steven Hoffman
Former Team Member, 2009-2012

Filipina

Unfotunately I tried it that way in FF and it doesn't fill in the name on registration... then i did it the regular way as the mod is designed and the referral name filled in  :(

Sudhakar Arjunan

After installing on my smf 2.0

I got this error throughout my local fourm

Fatal error: Cannot redeclare loadreferral() (previously declared in C:\wamp\www\smf\Sources\Subs.php:3968) in C:\wamp\www\smf\Sources\Load.php on line 2682
Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

Fustrate

Did you uninstall the old version first? Remove the function from Subs.php if you didn't.
Steven Hoffman
Former Team Member, 2009-2012

Sudhakar Arjunan

I am not sure . Hope i have already installed the old version.

And had overwritten the new version. Led me to this issue.

Went in to subs.php page and removed this line

      'referrals_no', 'referrals_hits', 'referrals_no',

Still the forum was not loading.
Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

Fustrate

That wasn't what you were supposed to remove. It's a whole loadReferrals function at the end of the file.
Steven Hoffman
Former Team Member, 2009-2012

Sudhakar Arjunan

Quote from: Fustrate on April 26, 2009, 04:04:13 PM
That wasn't what you were supposed to remove. It's a whole loadReferrals function at the end of the file.

Oops !!!

will try out today and update you.
Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

MIAUS

Great Mod! Works like a charm! Thanks a lot :)

Here are the German translations:

$txt['referrals_findreferrer'] = 'Mitglied suchen';
$txt['referrals_who'] = 'Empfehlungen:';
$txt['referrals_who_description'] = 'Hat dir jemand diese Seite empfohlen?';
$txt['referrals_on'] = 'An';
$txt['referrals_referrer_not_found'] = 'Mitgliedsname existiert nicht. Bitte nochmal den Mitgliedsnamen überprüfen oder das Feld leer lassen.';
$txt['referrals_youwerereferred_by'] = 'von';
$txt['referrals_referrals'] = 'Empfehlungen:';
$txt['referrals_referrals_hits'] = 'Anzahl Klicks auf Empfehlungslink:';
$txt['referrals_noneyet'] = 'Noch keine!';
$txt['referrals_top5referrers'] = 'Top 5 Werber (Nach Empfehlungen)';
$txt['referrals_top5referrersbyposts'] = 'Top 5 Werber (Nach Posts der geworbenen Mitglieder)';
$txt['referrals_referralsstats'] = 'Empfehlungen';
$txt['referrals_referred_by'] = 'Geworben von:';
$txt['referrals_link'] = 'Empfehlungs Link:';
$txt['referrals_membersreferred'] = 'Geworbene Mitglieder';

Sudhakar Arjunan

Quote from: Fustrate on April 26, 2009, 04:04:13 PM
That wasn't what you were supposed to remove. It's a whole loadReferrals function at the end of the file.

That worked good. I got my test forum back.

After removing the load code, what process will not work on my referral mod.
Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

Fustrate

Err, it should work fine now. The code that you removed from Load.php is now in Subs.php, where it should be.
Steven Hoffman
Former Team Member, 2009-2012

Sudhakar Arjunan

Quote from: Fustrate on April 26, 2009, 02:25:54 PM
Did you uninstall the old version first? Remove the function from Subs.php if you didn't.

I have removed it only on subs.php as you said and i have not touched it on load.php.

Oh... Now what to do.
Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

Fustrate

Can you explain exactly what the problem is? I'm getting a little confused here...
Steven Hoffman
Former Team Member, 2009-2012

Sudhakar Arjunan

Quote from: Fustrate on May 02, 2009, 03:37:19 PM
Can you explain exactly what the problem is? I'm getting a little confused here...

Earlier you said to remove the load code which is there at bottom of the page subs.php.

I did .

Now i had a doubt, why we have to remove it and what functionally will be missed when we remove the code.

you said, both the codes at subs.php and load.php were same. And said the code is working on subs.php.

but i have removed only the code which is there on subs.php and not on load.php
Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

Fustrate

It's fine. The current version uses the one in Load.php, but the previous version had it in Subs.php. I moved it there because it is a function that loads something, hence it should be in Load.php. That's all.
Steven Hoffman
Former Team Member, 2009-2012

Goodman854

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

Fustrate

You need to do that edit by hand. On the mod download page, select your SMF version on the upper right and click "Parse". Find the edit that failed, and then do that edit to /Themes/default/Display.template.php.

If you're using a custom theme, you'll also need to do all applicable theme edits from that parse page to your theme's files, too.
Steven Hoffman
Former Team Member, 2009-2012

KIMBAL

Hi Brilliant Mod e1 loves it on my forum.

I have 1 member whos refferal link wont work any ideas why

Thanks in advance

Fustrate

It will only work once per person referred... so they won't keep getting additional "Referral Hits" for the same person. Is that what you mean?
Steven Hoffman
Former Team Member, 2009-2012

KIMBAL

No i mean it was working as it should and all of a sudden for this one member the link stopped working and they had to give the referree just a normal forum link and not a refer system link

Goodman854

Quote from: Fustrate on May 02, 2009, 09:08:37 PM
You need to do that edit by hand. On the mod download page, select your SMF version on the upper right and click "Parse". Find the edit that failed, and then do that edit to /Themes/default/Display.template.php.

If you're using a custom theme, you'll also need to do all applicable theme edits from that parse page to your theme's files, too.
Tried that didn't work

Advertisement: