Referral System

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

Previous topic - Next topic

Fustrate

It's a long shot, but try this:

In Subs.php, find
'notify_announcements', 'notify_send_body', 'notify_regularity', 'notify_types',
and replace with
'notify_announcements', 'notify_send_body', 'notify_regularity', 'notify_types', 'referrals_no',

Steven Hoffman
Former Team Member, 2009-2012

glennk


Sudhakar Arjunan

Quote from: YodaOfSpookness on October 19, 2008, 03:26:01 PM
It's a long shot, but try this:

In Subs.php, find
'notify_announcements', 'notify_send_body', 'notify_regularity', 'notify_types',
and replace with
'notify_announcements', 'notify_send_body', 'notify_regularity', 'notify_types', 'referrals_no',



Hi am not sure whether you have updates this edit for me.

I have checked inside my subs.php file and found the edit already made.

I have posted register.php - do help me as soon.
Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

Sudhakar Arjunan

Hi YodaOfSpookness,

I have attached my register file as you have requested.

Kindly help me i have got loads of errors by using it.

http://www.simplemachines.org/community/index.php?topic=226191.msg1757890#msg1757890
Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

Fustrate

#284
Time to check your database. There's no error in that Register.php file, I checked all of the pertinent code.

Can you go into your members table (usually smf_members) and tell me if there's a column named referrals_no? Is it an int (TINYINT, MEDIUMINT, INT, BIGINT, etc.)?
Steven Hoffman
Former Team Member, 2009-2012

Sudhakar Arjunan

Quote from: YodaOfSpookness on October 21, 2008, 02:49:42 AM
Time to check your database. There's no error in that Register.php file, I checked all of the pertinent code.

Can you go into your members table (usually smf_members) and tell me if there's a column named referrals_no? Is it an int (TINYINT, MEDIUMINT, INT, BIGINT, etc.)?

Thanks for taking your time to help me .

Oldiesmann helped to transfer from smf 1.1.6 to smf 2.0.4.

So i have two tables named smf203_members and smf_members.

But i understand is all the value in register and retrival is done only on smf_members.

So here is the fields under smf_members field.

referrals_no     mediumint(8)              No     0           Browse distinct values        Change        Drop        Primary        Unique        Index       Fulltext
referrals_hits    mediumint(10)          No    0       Browse distinct values    Change    Drop    Primary    Unique    Index    Fulltext
referred_by    mediumint(8)          No    0       Browse distinct values    Change    Drop    Primary    Unique    Index    Fulltext
referred_on    int(10)          No    0
Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

Sudhakar Arjunan

I have to mention this error also at stats page, One time stats visits generated - 26 errors like num post, link and referrals etc.

http://discuss.itacumens.com/index.php?action=stats
Apply Filter: Only show the errors with the same message
8: Undefined index: referrals
Apply Filter: Only show the errors from this file
File: /home/itacumen/public_html/discuss/Themes/default/Stats.template.php (main sub template - eval?)
Line: 291
Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

djrem

Quote from: YodaOfSpookness on October 12, 2008, 12:49:13 PM
CCCC: Not that I am aware of, that would have to be a change in the way SMF itself works.

djrem: is there an UltimateProfile.php file in /Sources/ ? Sorry for the late response on this...

there is no ultimate profile file in sources.

my site is here:
http://www.voguefm.co.uk/forum/profile/MrRem

as you can see, other mods are working fine :S

Sudhakar Arjunan

HI YodaOfSpookness,

Here goes the information you have requested. I find on my smf members table.

referrals_no     mediumint(              No     0           Browse distinct values        Change        Drop        Primary        Unique        Index       Fulltext
referrals_hits    mediumint(10)          No    0       Browse distinct values    Change    Drop    Primary    Unique    Index    Fulltext
referred_by    mediumint(          No    0       Browse distinct values    Change    Drop    Primary    Unique    Index    Fulltext
referred_on    int(10)          No    0
Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

Senkusha

Hi, I attempted to install the 2.1.1 version but I don't see the  "Apply Mod" link for SMF 2.0 b4?

Any ideas?

Thanks!
--Senkusha
The Anime Brigade
Anime-style Role Playing Games and Discussion.
(SMF v. 2.1.4, PHP v. 8.0)

Sudhakar Arjunan

In addition to the above stated problem.

Whenever i visit my stats page,

8: Undefined index: referrals
Apply Filter: Only show the errors from this file
File: /home/itacumen/public_html/discuss/Themes/default/Stats.template.php (main sub template - eval?)
Line: 291

Kinldy help me to figure it out.
Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

Fustrate

#291
Did the changes get made to /Sources/Stats.php? Open the file and search for 'referrals'.

Senkusha: This mod hasn't been fully upgraded for SMF 2.0 Beta 4 yet. I'll have time to do some actual work on this next weekend, after I finish two essays and a term paper this week.
Steven Hoffman
Former Team Member, 2009-2012

Sudhakar Arjunan

Quote from: YodaOfSpookness on October 25, 2008, 02:53:27 PM
Did the changes get made to /Sources/Stats.php? Open the file and search for 'referrals'.

Hi YodaOfSpookness,

Am not sure , whether you have asked me to check some thing inside the stats.php.

But i have compared with the parser and found that all the codes were perfectly matched inside the stats.php file. No errors in the modification applied.

Hope the error will be there only in database, because i have copied all the tables from old smf 1.1.6 to new smf 2.0.4 with the help of Oldiesmann.
Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

psynx

i need help here pls. i got an error after installing it in my smf 1.1.6

is it fine to continue installing this even though i got test failed on ./Themes/default/Display.template.php?


Fustrate

Yes it is, you'll just need to make that edit by hand.

Open Display.template.php, find:
// Show how many posts they have made.
echo '
', $txt[26], ': ', $message['member']['posts'], '<br />

or something that resembles that (search for $message['member']['posts'] in particular) and add this AFTER it:

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

Sudhakar Arjunan

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

psynx

Quote from: YodaOfSpookness on October 27, 2008, 01:55:28 AM
Yes it is, you'll just need to make that edit by hand.

Open Display.template.php, find:
// Show how many posts they have made.
echo '
', $txt[26], ': ', $message['member']['posts'], '<br />

or something that resembles that (search for $message['member']['posts'] in particular) and add this AFTER it:

', $txt['referrals_referrals'].' '.$message['member']['referrals_no'].'<br />


Oops! im using Dilber MC theme and it doesn't have a display.template.ph file.

how do i fix this now?

Fustrate

You just don't need to do that edit then... but you'll need to make sure it's done in /Themes/default/Display.template.php, which was where it was giving you the error.

asudhakar: I can't find a simple solution right now, you're going to have to wait for the Beta 4-compatible version, which should come some time next week.
Steven Hoffman
Former Team Member, 2009-2012

Sabre™

#298
Hi Yoda,
could you look at the code entered into my Ultimateprofile.template when you have time please mate?

I keep getting this error
8: Undefined index: referrals_no
File: /Themes/default/languages/Who.english.php (summary2 sub template - eval?)
Line: 252


After running a query, I found the correct line at 252 within my ultimate profile template.
8: Undefined index: referrals_no
File: /Themes/default/UltimateProfile.template.php (summary2 sub template - eval?)
Line: 252


Ive tried and cannot work it out.
Thank you for any assistance mate :)

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


psynx

Quote from: YodaOfSpookness on October 27, 2008, 03:15:06 PM
You just don't need to do that edit then... but you'll need to make sure it's done in /Themes/default/Display.template.php, which was where it was giving you the error.

i see. thanks.

Advertisement: