Quote from: misus on December 01, 2014, 06:26:19 AMYes it would be. You would need to add the code to the ulimate profile template too.
I installed the Mod, but we don't get a referral Url in our profiles.
Could Ultimate Profile be the problem?
Quote from: Sabrewulv on April 14, 2012, 03:40:21 PM
I installed this mod on an smf site. It says in settings show referral link in profile but there's no link there. On the registration page it says if referred by a member put in their name. i registered a dummy account and used my name for the refferal yet it didn't credit it to me.
Any ideas?
Referrals: 0
Referral Link Hits: 0
Referred By: 01 January, 1970, 12:00:00 AM
if (!empty($context['member']['referred_by'])){
echo'
<dt><strong>', $txt['referrals_referred_by'], ': </strong></dt>
<dd>', $context['member']['referred_by_link'], ' ', $txt['referrals_on'], ' ', timeformat($context['member']['referred_on']), '</dd>';
}
Quote from: Sci-Fi_Fan on August 26, 2011, 05:29:55 PM
Has anyone been successful in getting this mod to work with the Ultimate Profile mod? I'd really like to use both, but the referrals doesn't show up in UP.
echo '
<dt><strong>', $txt['date_registered'], ': </strong></dt>
<dd>', $context['member']['registered'], '</dd>
<dt><strong>', $txt['lastLoggedIn'], ': </strong></dt>
<dd>', $context['member']['last_login'], '</dd>
</dl>';
// Add the referral/referred user information to the profile summary
echo '
<dt>', $txt['referrals_referrals'], '</dt>
<dd>
', $context['member']['referrals_no'], ' ';
// Show in dropdown username of those referred
if (!empty($context['member']['referred_members'])){
echo '
<select onchange="location=options[selectedIndex].value;">
<option>', $txt['referrals_membersreferred'], '</option>';
foreach($context['member']['referred_members'] as $referred)
echo '
', $referred;
echo '
</select>';
}
echo '
</dd>
<dt>', $txt['referrals_referrals_hits'], '</dd>
<dd>', $context['member']['referrals_hits'], '</dd>';
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>
<input type="text" onselect="this.select()" id="referral_link" value="', $scripturl, '?action=register;referredby=', $context['member']['id'], '" readonly="true" style="width:250px;" />
</dd>';
if (isset($context['member']['action']) && allowedTo('who_view')) {
echo '<dt><b>', $txt['current_activity'], ': </b></dt>
<dd>', $context['member']['action'], '</dd>';
Quote from: John1 on July 05, 2010, 05:25:33 PM
I want to add the referral link to the ultimate profile.
The ultimate profile mode over wrote the default profile view and the referral link disappeard.
How do i add it back ?
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?
Quote from: RaXavier69 on June 17, 2010, 05:27:00 PMhttp://www.simplemachines.org/community/index.php?topic=226191.msg2501650#msg2501650 That is for 2.0 RC2 should work with RC3 though
any chance of referral adds +rep?
Quote from: IDunc on June 16, 2010, 10:31:48 PMYou 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.
How do I get this mod working with Ultimate Profile on SMF RC3?
Quote from: JBlaze on March 20, 2010, 05:41:54 AMQuote from: mrtrc266 on March 09, 2010, 10:39:42 PM$scripturl isn't being globaled.
Any ideas on this?
Using RC3 it works fine on the default profile template. I see the whole referral link
After install the Ultimate Profile Mod and doing the edit to the UltimateProfile.template.php file
I only see this "?action=register;referredby=1" instead of this "http://localhost/smf/index.php?action=register;referredby=1"
function up_block_user_info() {
global $settings, $txt, $context;
function up_block_user_info() {
global $settings, $txt, $context, $scripturl;