News:

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

Main Menu

Referrals Mod

Started by karlbenson, July 23, 2007, 07:04:38 PM

Previous topic - Next topic

karlbenson

What your asking here is not too difficult for someone with basic php/smf knowledge to do.
Its just the amount of time it will take.

Usually I recommend Dragoon for custom work, but there are plenty of other people who may be willing to help out with custom work.

For custom work like the above you would hopefully get someone to do with within a couple of days.
For custom mods however that usually isnt as straight forward and the one you requested with the licence etc, there are very few mod creators who may have the skills to create what you describe.

mcliff1971

Got error when trying to install -

Installing this package will perform the following actions:  Type Action Description
1. Execute Modification ./Sources/Load.php Test successful
2. Execute Modification ./Sources/Register.php Test successful
3. Execute Modification ./Sources/Stats.php Test successful
4. Execute Modification ./Sources/Profile.php Test successful
5. Execute Modification ./Themes/default/Register.template.php Test successful
6. Execute Modification ./Themes/default/Display.template.php Test failed
7. Execute Modification ./Themes/default/Xml.template.php Test successful
8. Execute Modification ./Themes/default/Stats.template.php Test successful
9. Execute Modification ./Themes/default/Stats.template.php Test successful
10. Execute Modification ./Themes/default/Profile.template.php Test successful
11. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
12. Execute Modification ./Themes/default/languages/Modifications.english-utf8.php Test successful
13. Execute Code install.php 

Other mods installed include AdMod, SMFArcade, SimpleAwards.

Any suggestions?

mcliff1971

Quote from: mcliff1971 on October 28, 2007, 09:46:23 AM
Got error when trying to install -

Installing this package will perform the following actions:  Type Action Description
1. Execute Modification ./Sources/Load.php Test successful
2. Execute Modification ./Sources/Register.php Test successful
3. Execute Modification ./Sources/Stats.php Test successful
4. Execute Modification ./Sources/Profile.php Test successful
5. Execute Modification ./Themes/default/Register.template.php Test successful
6. Execute Modification ./Themes/default/Display.template.php Test failed
7. Execute Modification ./Themes/default/Xml.template.php Test successful
8. Execute Modification ./Themes/default/Stats.template.php Test successful
9. Execute Modification ./Themes/default/Stats.template.php Test successful
10. Execute Modification ./Themes/default/Profile.template.php Test successful
11. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
12. Execute Modification ./Themes/default/languages/Modifications.english-utf8.php Test successful
13. Execute Code install.php 

Other mods installed include AdMod, SMFArcade, SimpleAwards.

Any suggestions?

Little more info - The conflict seems to be because I am using SMFShop as well.  If I uninstall that MOD, then install Referrals MOD, it works fine.  If I try and install SMFShop after, same error.  Anyone else run into this?  Any suggestions?

Neorics

you can easily fix that by manually editing the display.template.php

use this to see what edits you need to do for the display template
http://modparser.dev.dansoftaustralia.net/
[For Hire] I can help you with anything regarding Simple Machines Forum  ~ My Portfolio

liammc07

I have installed this and no problems during the install!

Everything that is supposed to be there is there.
The only problem is that when a member trys to use the referal link it just takes them to the index of the forum  :(

Any fixes/ideas?

karlbenson

The referral link takes them to the index page. (and its sets a cookie)

When and if the user then registers the person whos referral link was used, will be credited with the referral.

RustyBarnacle

Its supposed to be like that.  They are being referred to the site.  They can take a peak, see if they like it and then go register.

That and the fact that as said in this thread many times, going straight to the registration page doesnt give it a chance to make the cookie before the code tries to reference it.

Fine, beat me to the punch, see if I care.  :)

Chriss Cohn

A Outstanding Mod!!! Great Work!
Somehow, all - and i am honest- of your mods i tried so far are just great!

Regards, Christian

karlbenson


Chriss Cohn

Quote from: karlbenson on October 29, 2007, 07:36:59 PM
Many Thanks G-c
Your welcome  ;D
A sugestion for any further version...
Tableless code. Ive looked into the source-code of this mod and it uses everywhere these odd tables... Maybe you could consider of usings divs and <ul>, etc...

Regards, Christian

karlbenson

The only table in this mod adds more rows to an existing smf table.
So there isnt anything I can do about that.  You can't mix and match ;)

Lately though, I have generally been trying to only use tables for tabular data, like they were meant to be used.

dxyy

Just curious if there is a way to increase the stats from the top 5 to top 10?

Also, if it is possible, how easy is it to achieve this?

Haha, sorry to cause more problems. :P

karlbenson

You would need to alter the db query and change LIMIT 5 to LIMIT 10.

Stats.php

FIND x2
      LIMIT 5", __FILE__, __LINE__);


dxyy

Quote from: karlbenson on October 31, 2007, 02:27:57 PM
You would need to alter the db query and change LIMIT 5 to LIMIT 10.

Stats.php

FIND x2
      LIMIT 5", __FILE__, __LINE__);


Thank you! :)

Dumpling

Hey karlbenson,

:) It's me, again. Just want to let you know something. :P

I was playing around with my profile and noticed this:
.
You see how the different messenger icons are right next to "Referrals: 0"? I didn't think it was supposed to be that way, so I (kind of) skimmed through the different modified files since I didn't know where to look specifically. There were lots of scripts/codes and I was lazy so I turned to skimming through this topic and noticed someone else (who was using 1.2 or 1.3) had the same problem. Then, I found out I was supposed to look in the Display.template.php file. Sorry for the super duber long and kind of irrelevant explanation. :P

I used the SMF Package Parser and found this:
In file $themedir/Display.template.php
Find:

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



Replace with:

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

// show how many referrals they have made
echo $txt['referrals_referrals'].' '.$message['member']['referralsno'].'</br></br>';


I changed the </br></br> to <br /><br /> and that fixed the problem :)

I don't know much/anything about coding, so I'm not sure if </br> is valid. Just want to let you know... O:)

karlbenson

Indeed </br></br> isnt valid.

Will look at it aspa. thanks

Afterglow86

I'm not sure if this has been asked before since it's quite a long thread, but I was wondering if it would be relatively easy for me to change it so instead of using a referral link as they are often frowned upon that instead, when a member registers they just type in the member who linked them to the site in a field.

dxyy

I want to have a referrals contest on my forum, but I'm not sure exactly how to know who has the most referrals in a particular period of time.

Does anyone know how I can figure out who had the most referrals in a given week. Also, I would like to know if there is a way for me to know all the members who made more than a certain amount of referrals in a given time period - week/month etc.

Any help or guidance on this issue would be greatly appreciated. ;)

Thank you! :)

Neorics

there is a mod that sets a range of dates to show the stats, search in teh mod section, i forgot the name...
[For Hire] I can help you with anything regarding Simple Machines Forum  ~ My Portfolio

Dumpling

#279
Hello!

I'm guessing that someone has probably already asked about this and I'm sorry for being lazy and not going through all 14 pages of response to this topic. :P

I am wondering if it is possible to view the referral stats during a certain period, like have it display the top XX referrers between (date) and (date) or in the month of (month).

I looked at some stats mods in the mod site, but none says they are compatible with 1.1.4. :(


Edit:
I see hugodiaz was wondering about the same thing. :P

Quote from: Neorics on November 03, 2007, 11:35:02 PM
there is a mod that sets a range of dates to show the stats, search in teh mod section, i forgot the name...
I already checked for stats mod on the mod site, but none says they are compatible with SMF 1.1.4 :(

Advertisement: