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

Arantor


Spoogs

#681
Thanks for the update JB, been waiting for it :)

Alignment issue

Edit: also clicking select doesn't seem to select anything.

smp420

Also when I try registering I am getting a parse error.
"Things turn out best for those who make the best of the way things turn out." -Jack Buck

Arantor

Quote from: smp420 on December 20, 2009, 05:00:40 PM
Also when I try registering I am getting a parse error.

What error, exactly, do you get?

ŦώεαЖзяŁ

I also get an error when trying to go to register:

QuoteTemplate Parse Error!
It seems something has gone sour on the forum with the template system. This problem should only be temporary, so please come back later and try again. If you continue to see this message, please contact the administrator.

You can also try refreshing this page.

I have many mods installed and a custom theme... but if you could point me to the places where the problem is most likely to be i would be happy to try to fix it, since I would really like to use this mod.

Link Sharing Community - Share links and earn cash in the process!
APPS | GAMES | MUSIC | MOVIES | TV SHOWS | E-BOOKS

ŦώεαЖзяŁ

#685
I found a way to solve the problem, at least in my case. go to register.template.php in themes\default\ and find the section that has the referral information... all the way at the end, delete the

]]>

Porblem should be fixed.

Link Sharing Community - Share links and earn cash in the process!
APPS | GAMES | MUSIC | MOVIES | TV SHOWS | E-BOOKS

JBlaze

OK, new version patched.

If you have an error on uninstall on the Register.template.php file, you may have to FTP in and remove this.
// Our referrals place
echo '
<dl class="register_form" id="referrals">
<dt>
<strong>', $txt['referrals_who'], '</strong>
<span class="smalltext">', $txt['referrals_who_description'], '</span>
</dt>
<dd>
<input name="referredby" id="to_control" type="text" size="30" value="', (!empty($user_info['was_referred']['referred_by_name']) ? $user_info['was_referred']['referred_by_name'] : '') ,'" />
<div id="to_item_list_container"></div>
<em id="referredon" class="smalltext">', (!empty($user_info['was_referred']['referred_date']) ? $txt['referrals_on'] . ' ' . $user_info['was_referred']['referred_date'] : '' ) ,'</em>
</dd>
</dl>';

echo '
<script type="text/javascript" src="', $settings['default_theme_url'], '/scripts/referrals.js?rc2"></script>
<script type="text/javascript" src="', $settings['default_theme_url'], '/scripts/suggest.js?rc2"></script>
<script language="JavaScript" type="text/javascript"><!-- // -->
var oReferralSend = new smf_ReferralSend({
sSelf: \'oReferralSend\',
sSessionId: \'', $context['session_id'], '\',
sSessionVar: \'', $context['session_var'], '\',
sTextDeleteItem: \'', $txt['autosuggest_delete_item'], '\',
sToControlId: \'to_control\',
aToRecipients: [
]
});

function saveEntities()
{
var textFields = ["subject", "message"];
for (i in textFields)
if (document.forms.postmodify.elements[textFields[i]])
document.forms.postmodify[textFields[i]].value = document.forms.postmodify[textFields[i]].value.replace(/&#/g, "&#");
}
// </script>';


The reason is that there was a problem with the installation and a conflict with CDATA. Simply uninstall the old version and reinstall the new one.
Jason Clemons
Former Team Member 2009 - 2012

ŦώεαЖзяŁ

One problem in the registration form, i don't see the find referrer button.

Link Sharing Community - Share links and earn cash in the process!
APPS | GAMES | MUSIC | MOVIES | TV SHOWS | E-BOOKS

JBlaze

Quote from: TweakerL on December 20, 2009, 07:39:58 PM
One problem in the registration form, i don't see the find referrer button.
It has been replaced by SMF's Auto-Suggest. Just start typing a name into the referrers box on registration and a dropdown will display showing possible matches.
Jason Clemons
Former Team Member 2009 - 2012

Spoogs

Getting this error when trying to register 2.2.7 (also happened on fresh install)

QuoteTemplate Parse Error!

It seems something has gone sour on the forum with the template system. This problem should only be temporary, so please come back later and try again. If you continue to see this message, please contact the administrator.

You can also try refreshing this page.

Tried 2.2.7.1 and got this fail during install (only tried on fresh install)

JBlaze

Quote from: Spoogs on December 20, 2009, 09:50:32 PM
Getting this error when trying to register 2.2.7 (also happened on fresh install)

QuoteTemplate Parse Error!

It seems something has gone sour on the forum with the template system. This problem should only be temporary, so please come back later and try again. If you continue to see this message, please contact the administrator.

You can also try refreshing this page.

Tried 2.2.7.1 and got this fail during install (only tried on fresh install)

The template parse error was fixed in 2.2.7.1. However, download the new package to fix the install error. There was an extra space input in the package that would make it fail on Profile.template.php
Jason Clemons
Former Team Member 2009 - 2012

Spoogs


JBlaze

Maybe I should stop drinking when I'm modding...

Re-uploaded.
Jason Clemons
Former Team Member 2009 - 2012

Spoogs

That did it the trick... have another drink on me ;)

JBlaze

Jason Clemons
Former Team Member 2009 - 2012

smp420

Quote from: The Grinch on December 20, 2009, 05:01:20 PM
Quote from: smp420 on December 20, 2009, 05:00:40 PM
Also when I try registering I am getting a parse error.

What error, exactly, do you get?

I was getting the same error as TweakerL sorry I had to go and didn't have time to explain. Now with the update everything seems to work fine except the select button.
"Things turn out best for those who make the best of the way things turn out." -Jack Buck

Amendoim

Versão 2.0 RC2 Portuguese_Pt

Simple Portal 2.3 Portuguese_Pt

Em crescimento na programação :)

http://www.gamextuga.com

JBlaze

Jason Clemons
Former Team Member 2009 - 2012

Eclipse16V

I worked with:
SMF 2 in German

Shop:
SID Giessen

Amendoim

I am having a problem, so that someone tries to enter the link with that of another person, did not appear anything simply installed fine, latest version and still is not working .. Attached is a picture that proves it!
The Brand "selection" to select the link is also not running, select the contents of the link below, and not the own = /
Versão 2.0 RC2 Portuguese_Pt

Simple Portal 2.3 Portuguese_Pt

Em crescimento na programação :)

http://www.gamextuga.com

Advertisement: