News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Referral System

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

Previous topic - Next topic

IDunc

How do I get this mod working with Ultimate Profile on SMF RC3?


IDunc

Can anyone help? How do I get this working with Ultimate Profile on SMF 2.0 RC3?


smp420

"Things turn out best for those who make the best of the way things turn out." -Jack Buck

IDunc

Can you point me to where the solution is? I can't find it.


RaXavier69

Character is what you are in the dark

IDunc



Tearstar

Quote from: RaXavier69 on June 17, 2010, 05:27:00 PM
any chance of referral adds +rep?

I like this idea, would promote getting the referrals.



smp420

Quote from: RaXavier69 on June 17, 2010, 05:27:00 PM
any chance of referral adds +rep?
http://www.simplemachines.org/community/index.php?topic=226191.msg2501650#msg2501650 That is for 2.0 RC2 should work with RC3 though

Quote from: IDunc on June 16, 2010, 10:31:48 PM
How do I get this mod working with Ultimate Profile on SMF RC3?
You posted 4 times within 2 days and sent me a pm about this it would of taken you alot less time to find it yourself all I know is it is somewhere in this topic.
"Things turn out best for those who make the best of the way things turn out." -Jack Buck

IDunc

I can not find a solution that actually works. Can someone please just help me?


Vincent Volmer

Quote from: IDunc on June 18, 2010, 02:36:51 PM
I can not find a solution that actually works. Can someone please just help me?

On the top right of the website you find the search button. Search in "this topic" and you will find a lot of messages  ;) or follow this link:
http://www.simplemachines.org/community/index.php?action=search2;search=Ultimate+Profile;topic=226191

But this mod isn't supported anymore until someone buys it:
http://www.simplemachines.org/community/index.php?topic=226191.msg2619225#msg2619225

Vy73!
Vincent

smp420

"Things turn out best for those who make the best of the way things turn out." -Jack Buck

IDunc

Okay thanks guys. I got it. But now I have a new problem.

The same problem as this post:
http://www.simplemachines.org/community/index.php?topic=226191.msg2561965;topicseen#msg2561965

Except when I modify the php file as it says to do, nothing changes in the link. It is still just ?action=register;referredby=1 instead of http://opticsglobal.co.cc/index.php?action=register;referredby=1.

This is what my code is:

function up_block_user_info() {
    global $settings, $txt, $context, $modsettings, $scripturl;


The difference is that his code didn't have $modsettings in it, but mine does.

Any help would be greatly appreciated.


smp420

You already have $scripturl globaled so it should work attach that file.
"Things turn out best for those who make the best of the way things turn out." -Jack Buck

Tearstar

Here is what I did

In Theme folder you are using, open UltimateProfile.Template.php

thenFind:
if (!empty($context['member']['referred_by'])){

echo'

<dt>', $txt['referrals_referred_by'], '</dt>

<dd>', $context['member']['referred_by_link'], ' ', $txt['referrals_on'], ' ', timeformat($context['member']['referred_on']), '</dd>';

}



// Remove the # on the next line to make the link appear for the profile's owner ONLY!

if ($context['user']['id'] == $context['member']['id'])

echo '

<dt>', $txt['referrals_link'], '</dt>

<dd>



the
replace the next line, which sould be something like

<input type="text" onselect="this.select()" id="referral_link" value="[url/to/forum/index]', $scripturl, '?action=register;referredby=', $context['member']['id'], '" readonly="true" style="width:150px;" />


[url/to/forum/index] of courese should be changed to point to your url, that should put it in the text

smp420

Well then you would get alot of errors because $scripturl is undefined
"Things turn out best for those who make the best of the way things turn out." -Jack Buck

IDunc



Tearstar

I don't, you still keep scripturl, this is just to display the text in the text area so it can all be copied

Tearstar

Try this, but go into the file and change

http://your.site.com/forumsfolder/index.php  to go to your forums main url page

smp420

Quote from: Tearstar on June 18, 2010, 05:17:09 PM
I don't, you still keep scripturl, this is just to display the text in the text area so it can all be copied
It's still there but not defined is the problem.

Quote from: IDunc on June 18, 2010, 05:16:53 PM
There is the file.
Try this
"Things turn out best for those who make the best of the way things turn out." -Jack Buck

IDunc

Thanks a lot smp, it worked.

And thanks to you to TearStar.


Advertisement: