News:

Want to get involved in developing SMF? Why not lend a hand on our GitHub!

Main Menu

Referrals Mod

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

Previous topic - Next topic

karlbenson

what is you forums link?
are there any errors in your error log?

Noddegamra

Got my first referral yesterday. Everything seems to work perfectly. thanks for an awesome mod!!! :)

rider

Quote from: karlbenson on August 15, 2007, 05:14:30 PM
what is you forums link?
are there any errors in your error log?
Sorry for the late reply.Had togo to work.I did see some errors pretaining to the profile.php but was able to fix them.Still can't figure out the admin and the register page.Here's a link to my forum. www.ridersplace.net .Thanks for replying.

karlbenson

rider
Its working perfectly for me on your site.

The referral link is showing in your profile area.
I used the referral link to register
> it showed you as referring me on the registration page
> it credited you with my referral both on your profile and mine

dxyy

I got an error with:

Themes/default/Display.template.php --> Test Failed.

From reading through this thread, I guess that means that I have to manually install it, is that right? How hard is this for someone with ZERO coding experience to do?

Also, any idea how long it should approximately take?

Thanks. :)

ohvertigo

#65
^ Same here.

EDIT: It's a realy small edit, it took less than a minute.
Thanks for this awesome mod! I'm going to try and give members points on a referral now.

rider

Quote from: karlbenson on August 16, 2007, 10:24:34 AM
rider
Its working perfectly for me on your site.

The referral link is showing in your profile area.
I used the referral link to register
> it showed you as referring me on the registration page
> it credited you with my referral both on your profile and mine
Thats great It threw me off by not seeing it anywhere but in the profile.One ? when I log out and click the register tab I don't see it.Is that cause I'm already registered?Thanks for the assist and the mod.

rider

Quote from: hugodiaz on August 16, 2007, 11:08:42 AM
I got an error with:

Themes/default/Display.template.php --> Test Failed.

From reading through this thread, I guess that means that I have to manually install it, is that right? How hard is this for someone with ZERO coding experience to do?

Also, any idea how long it should approximately take?

Thanks. :)
Use this link and upload the mod to it.It will show you all the edits that need to be made.It shouldn't take more than a few minutes to do.http://www.smfhacks.com/smf-package-parser.html

karlbenson

rider, nothing is shown on the register tab UNLESS you have used a referral link already.

You need to use one of these links
http://www.ridersplace.net/home/index.php?referredby=1
before it will shown who referred you on register tab and after registration.

rider

If I got this right what you're saying is you must register 1st then fill in the info on who referred you.Is that right?

RustyBarnacle

no, someone refers you and when you click their link you go to the main site and when you click register it should show up as who referred you.

rider

Quote from: RustyBarnacle on August 16, 2007, 04:01:05 PM
no, someone refers you and when you click their link you go to the main site and when you click register it should show up as who referred you.
i think I got it.lol I did see what you were saying when I logged out and clicked the register button.

karlbenson

There isnt a box to for you to enter who referred you.

rider

Quote from: karlbenson on August 16, 2007, 04:22:09 PM
There isnt a box to for you to enter who referred you.
That clears things up for me.Now I know what to expect when I help others install it.thanks for taking the time to help me.

dxyy

Ok, I had to edit the Themes/default/Display.template.php file manually.
I also edited Sources/Register.php, because I want referrals to give members money for the shop mod.

The problem now is that there seems to be something off with the display.

It shows the number of posts, the number of referrals, but then it shows the number of posts again!

Here is a screenshot for your convenience.


Does anyone have some ideas of what could be the problem and how to fix this? Any help would be greatly appreciated. :)

karlbenson

When you edited the Display.template.php
you were meant to REPLACE
rather than adding the code AFTER.

Simply editing the display.template again to remove the top posts

It should look something like this
echo '
', $txt[26], ': ', $message['member']['posts'], '<br />

~Unkn0wn~

What about that when you are watching refferals of others in his profiles when you select one goes to his profile? If it's already in, well doesnt work for me

karlbenson

I don't understand what you mean?

~Unkn0wn~

Quote from: karlbenson on August 16, 2007, 07:40:36 PM
I don't understand what you mean?

Also, how do i put more referals to admin, please step by step, ANY WAY....

Also, when i go someone profile, i will see how much referrals and the names at the right a thing that you click and a appears down, drop down menu, with the names that he reffered, well when you click in somebody nothing happens, good suggestion is that when you click on somebody it redirects to his profile..

Also, how do i put more referals to admin, please step by step, ANY WAY....

karlbenson

You are correct, currently only a dropdown box is produced just to show which users this user referred.
In a future version I'll make each one redirect to the persons profile.

If you want to increase/credit the no of referrals the admin has made, the ONLY way to do it at the moment is via PHPMyAdmin.

In the smf_members table
Change the value in the column 'referralsno' where the ID_MEMBER = the admins id.

Usually it will be the first one in the table.

Advertisement: