vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=134)
-   -   Referral ID in User CP (https://vborg.vbsupport.ru/showthread.php?t=90849)

rezapci 09-18-2006 12:12 AM

Now VB Version is 3.6.1, Is there any update for this plugin?

gamesmastervide 10-12-2006 08:52 PM

it dont work on 3.6 using the product file..

whitetigergrowl 10-15-2006 11:37 PM

DO NOT do any template edits or php file edits. Install ONLY the xml file. I am using 3.6.2 and by using only the product xml file it works like a charm.

ResaleBroker 10-16-2006 12:58 AM

Quote:

Originally Posted by whitetigergrowl
DO NOT do any template edits or php file edits. Install ONLY the xml file.

Yes. The template/php file edits are for older versions (3.0.x).

big dan 10-22-2006 04:20 PM

Smooth install on a heavily modded 3.6.2 board! Thanks.

navjotjsingh 11-30-2006 02:39 AM

Worked fine on 3.6.4 also!

tobybird 12-21-2006 12:16 PM

Much better than my template edit! Very nice and yes the only thing needed for 3.6.4 is the xml file. Thanks!! - Installed :)

Mupetz 01-07-2007 03:16 PM

Yes, working on 3.6.4
Added the USERCP template & Pharse text, no php modification.
Tested & working

^SuiCyde^ 01-12-2007 07:24 AM

very nice with the 3.6.4.....only using the xml no other modifications needed......

working excellently....

carsten65 01-12-2007 11:48 AM

Great hack, thanks!

Is there a way that users who referred a certain amount of new users get automatically transferred in another user group? I would like to reward user who refer many new user with a bigger PM post box for example.

Is there already a hack out there? I couldn't find anything.

Carsten

hbixler03 01-16-2007 02:25 AM

Wow what a great mod and very easy to install! Thanks!

God Bless,
Heather :)

o0Hubba0o 01-19-2007 10:33 PM

Using 3.6.4 and the link it gives to use is: http://www.graphicsanonymous.net/forums/~Hubba~

~Hubba~ being my username of course, but that's not a referral link, how would I fix this?

mrkhm 01-26-2007 05:59 AM

absolutely magnificently beautfiully worksin 3.6.4 at the click of 3 buttons. many thanks * installed

Rickeo 02-10-2007 06:27 PM

Am having a problem I installed the pharse wrong how do I delete the phrase now :S

Oh dear

~Rick~

Rickeo 02-10-2007 07:23 PM

Oh I fixed it now however I have one fianl problem on my table it has this at the bottom:

[ARG:6 UNDEFINED]

Under the referal link how do I get rid of this

Would be great for some support here.

Thanks

~Rick~

DinarMet 02-11-2007 08:03 PM

Great mod. Worked perfectly fine on 3.6.4.

Thanks to all you lifesavers out there.

volarium 02-26-2007 08:12 PM

Quote:

Originally Posted by captainron19 (Post 993896)
OK I manually installed this on my V 3.5.4 and actually changed the phrase so the link for the referral would not be a link any more but instead just text making it easier to copy and paste.

My question is.... I saw int he screen shot something that was a link to automatically email to a friend but it is not showing up in my User CP.

Quote:

Originally Posted by ResaleBroker (Post 995348)
That is not part of the mod. That was added separate.

Quote:

Originally Posted by Boofo (Post 995354)
Do you want me to add this to the XML, sir. ;)


Can someone provide instructions on how the "automatic email" feature was added separately, and what it does? Is it a separate modification that needs to be installed?

Here's what I did, maybe it's the same as what others have done. Obviously, it will only work if the user has their email client setup correctly. I made my $vbphrase[refid_usercp]:

Code:

<p>Please help us spread the word about "{1}." When referring others to the community you can use the link below which includes your own unique referral ID.
</p>
<p>Each time someone follows this link to {1} and registers as a new member, your referral count will be incremented by one. The total number of referrals you currently have can always be viewed at the top of this box (next to {1} {2}) as well as in your <a href="{3}">{4}</a>.
</p>
<p>Please be courteous when promoting {1} by not spamming other web sites and/or email addresses with your referral link just to gain referrals.
</p>
<fieldset id="referrallink"><legend>Referral Link for {5}&nbsp;</legend><a href="mailto:?subject=Join us on VFRworld!&body=I would like to invite you to join us on VFRworld, the premier website for everything about the Honda VF/VFR Interceptor!%0d%0a%0d%0a{6}"{6}>{6}</a></fieldset>


Thanks.

ResaleBroker 02-26-2007 11:02 PM

Hello Volarium,
The "Email to Friend" link is not part of this mod. That is an additional mod that was installed on that forum at the time of the screenshot.

If the "Email to Friend" mod is available for the version of vBulletin that you're running you could add the link information to your UserCP template by either hand coding or building a plug-in.

daddygrim 03-02-2007 01:35 PM

Fatal error: Call to a member function on a non-object in /****/local/home/*****/******/forum/usercp.php on line 613

ummmm?

daddygrim 03-02-2007 01:44 PM

$refcount = $db->query_first("SELECT COUNT(*) AS count FROM " . TABLE_PREFIX . "user WHERE referrerid = '".$vbulletin->userinfo['userid']."'"); this the line from what i see.

this is my code remember i'm now using 3.6.5

// REFERRALS
$refcount = $DB_site->query_first("SELECT COUNT(*) AS count FROM " . TABLE_PREFIX . "user WHERE referrerid = '".$bbuserinfo['userid']."'");
$referrals = vb_number_format($refcount['count']);

eval('$HTML = "' . fetch_template('USERCP') . '";');

daddygrim 03-02-2007 02:21 PM

ok fixed..lol i just read through the thread..and just imported the plug in.

Rickeo 03-07-2007 08:31 PM

Any hep on my question page 9 last post??

Please

Thanks

~Rick~

vAsia 03-10-2007 10:41 PM

Is there a way for it to use username instead of id #?

ResaleBroker 03-13-2007 01:35 AM

Quote:

Originally Posted by Rickeo (Post 1179348)
Oh I fixed it now however I have one fianl problem on my table it has this at the bottom:

[ARG:6 UNDEFINED]

Under the referal link how do I get rid of this

Would be great for some support here.

Thanks

~Rick~

Have you uninstalled the product and then reinstalled?

Rickeo 03-13-2007 03:57 PM

Nope I shall try that thank you :)

~Rick~

DieselMinded 03-16-2007 09:06 PM

I have Vb 3.6.5

Its my first forum I have edited sometemplates and some other things But never Installed something Buy Installed do you guys Mean Uploading it to the server ? Like on the root or something esle Please help

DM

DieselMinded 03-16-2007 09:30 PM

I got it Have to go to the Products in Admin and upload from server Hey this worked pretty sweet now to figure out how to add a poage that lists how many refearls each member has I know I can see in the Conrtol pannel but I want a public Page? Any ideas?

DM

theorigin 03-19-2007 10:11 PM

I'm running 3.6.2 right now and I uploaded the product, but absolutely nothing happened. I uninstalled it and re-installed it, but still nothing. Anyone know what I'm missing?

Mrdby 04-19-2007 01:46 PM

Is it possible I have the site directed to my PORTAL page instead of the forum?

3Dx 04-20-2007 10:33 AM

Quote:

Originally Posted by DinarMet (Post 1180142)
Great mod. Worked perfectly fine on 3.6.4.

Thanks to all you lifesavers out there.

sweet as a nut m8 nice work

Mrdby 04-20-2007 11:00 AM

Quote:

Originally Posted by Mrdby (Post 1231250)
Is it possible I have the site directed to my PORTAL page instead of the forum?

anybody?????

Muellmann 04-21-2007 09:46 PM

Great addon :D Works fine! Thanks!

csavern 05-21-2007 02:19 AM

Worked Great on 3.6.7 with no problems
thanks for the mod
will come in very handy

Brandon Sheley 05-21-2007 02:39 AM

Quote:

Originally Posted by Mrdby (Post 1231886)
anybody?????

it should be directed to your registration page ;)

Mrdby 05-21-2007 01:15 PM

How can i have this directed to the portal page instead of the forums?

Chadi 05-22-2007 04:59 AM

I hope someone can help me. After upgrading to 3.6.7 and upgrading this hack to a new style, its showing up twice in user control panel area, oddly one a different background color w/ errors, a 2nd below it normal w/o errors. I double checked usercp and the coding is right

usercp

Code:

$template_hook[usercp_main_pos1]

<if condition="$show['privatemessages']">
<!-- ############## PRIVATE MESSAGES ##############  -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
    <tr>
        <td class="tcat" colspan="2">
            <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('usercp_pms')"><img id="collapseimg_usercp_pms" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_usercp_pms].gif" alt="" border="0" /></a>
            <a href="private.php$session[sessionurl_q]">$vbphrase[new_private_messages]</a><span class="normal">: ($numpms)</span>
        </td>
    </tr>
</thead>
<tbody id="collapseobj_usercp_pms" style="$vbcollapse[collapseobj_usercp_pms]">
    $messagelistbits
</tbody>
</table>
<br />
<!-- ############## END PRIVATE MESSAGES ##############  -->
</if>

$template_hook[usercp_main_pos2]

<!-- ############### REFERRALS ############### -->
<table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%" align="center"
style="background-color:white">
<thead>
<tr>
<td class="tcat">
<a style="float:right" href="#top" onclick="return toggle_collapse('referral')"><img id="collapseimg_referral" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_my_table].gif" alt="" border="0" /></a>
$vboptions[bbtitle] $vbphrase[referrals]: <span class="normal">($referrals)</span>
</td>
</tr>
</thead>
<tbody id="collapseobj_referral" style="">
<tr>
<td class="page" align="left" width="100%">
<phrase 1="$vboptions[bbtitle]" 2="member.php?$session[sessionurl]do=getinfo&amp;userid=$bbuserinfo[userid]" 3="$vbphrase[profile]" 4="$bbuserinfo[username]" 5="$vboptions[bburl]/index.php?referrerid=$bbuserinfo[userid]" >$vbphrase[refid_usercp]</phrase>
</td>
</tr>
</tbody>
</table>
<br />
<!-- ############# END REFERRALS ############# -->

<!-- ############## SUBSCRIBED THREADS ##############  -->

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
    <tr>
        <td class="tcat" colspan="7">
            <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('usercp_subthreads')"><img id="collapseimg_usercp_subthreads" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_usercp_subthreads].gif" alt="" border="0" /></a>
            <a href="subscription.php?$session[sessionurl]do=viewsubscription">$vbphrase[new_subscribed_threads]</a><span class="normal">: ($numthreads)</span>
        </td>
    </tr>
</thead>
<tbody id="collapseobj_usercp_subthreads" style="$vbcollapse[collapseobj_usercp_subthreads]">
    <if condition="$show['threads']">
        <tr class="thead">
       
            <if condition="$show['threadicons']">
                <td class="thead" colspan="2">&nbsp;</td>
            <else />
                <td class="thead">&nbsp;</td>
            </if>
           
            <td class="thead" width="100%">$vbphrase[thread] / $vbphrase[thread_starter]</td>
            <td class="thead" width="150" align="center" nowrap="nowrap">$vbphrase[last_post]</td>
            <td class="thead" align="center">$vbphrase[replies]</td>
            <td class="thead" align="center">$vbphrase[views]</td>
        </tr>
        $threadbits
    <else />
        <tr>
            <td class="alt1" align="center" colspan="7"><strong>$vbphrase[no_subscribed_threads_to_display]</strong></td>
        </tr>
    </if>
    <tr>
        <td align="$stylevar[right]" colspan="7" class="tfoot">
        <span class="smallfont"><a href="subscription.php?$session[sessionurl]do=viewsubscription&amp;folderid=all">$vbphrase[view_all_subscribed_threads]</a></span>
        </td>
    </tr>
</tbody>
</table>
<br />
<!-- ############## END SUBSCRIBED THREADS ##############  -->

$template_hook[usercp_main_pos3]

<if condition="$show['forums']">
<!-- ############## SUBSCRIBED FORUMS ##############  -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
    <tr>
        <td class="tcat" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>">
            <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('usercp_forums')"><img id="collapseimg_usercp_forums" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_usercp_forums].gif" alt="" border="0" /></a>
            $vbphrase[subscribed_forums]
        </td>
    </tr>
</thead>
<tbody id="collapseobj_usercp_forums" style="$vbcollapse[collapseobj_usercp_forums]">
    <tr align="center" valign="bottom">
        <td class="thead" width="2%">&nbsp;</td>
        <td class="thead" align="$stylevar[left]" width="80%">$vbphrase[forum]</td>
        <td class="thead">$vbphrase[last_post]</td>
        <td class="thead">$vbphrase[threads]</td>
        <td class="thead">$vbphrase[posts]</td>
        <if condition="$vboptions['showmoderatorcolumn']">
        <td class="thead" width="20%">$vbphrase[moderator]</td>
        </if>
    </tr>
    $forumbits
</tbody>
</table>
<br />
<!-- ############## END SUBSCRIBED FORUMS ##############  -->
</if>

$template_hook[usercp_main_pos4]

<if condition="$show['infractions']">
<!-- ############## NEW INFRACTIONS ##############  -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
    <tr>
        <td class="tcat" colspan="7">
            <span class="smallfont" style="float:$stylevar[right]">
                <phrase 1="$bbuserinfo[ipoints]">$vbphrase[x_points_total]</phrase>
                &nbsp; &nbsp;
                <a href="#top" onclick="return toggle_collapse('usercp_infraction')"><img id="collapseimg_usercp_infraction" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_usercp_infraction].gif" alt="" border="0" /></a>
            </span>
            $vbphrase[latest_infractions_received]
        </td>
    </tr>
</thead>
<tbody id="collapseobj_usercp_infraction" style="$vbcollapse[collapseobj_usercp_infraction]">
    <tr>
        <td class="thead">&nbsp;</td>
        <td class="thead">$vbphrase[post]</td>
        <td class="thead">$vbphrase[date]</td>
        <td class="thead">$vbphrase[expires]</td>
        <td class="thead" nowrap="nowrap">$vbphrase[points]</td>
        <td class="thead">$vbphrase[reason]</td>
        <td class="thead" nowrap="nowrap">$vbphrase[posted_by]</td>
    </tr>
    $infractionbits
</tbody>
</table>
<br />
<!-- ############## END NEW INFRACTIONS ##############  -->
</if>

$template_hook[usercp_main_pos5]

<if condition="$show['reputation']">
<!-- ############## NEW REPUTATION ##############  -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
    <tr>
        <td class="tcat" colspan="$reputationcolspan">
            <span class="smallfont" style="float:$stylevar[right]">
                <phrase 1="$bbuserinfo[reputation]">$vbphrase[x_points_total]</phrase>
                &nbsp; &nbsp;
                <a href="#top" onclick="return toggle_collapse('usercp_reputation')"><img id="collapseimg_usercp_reputation" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_usercp_reputation].gif" alt="" border="0" /></a>
            </span>
            $vbphrase[latest_reputation_received]
        </td>
    </tr>
</thead>
<tbody id="collapseobj_usercp_reputation" style="$vbcollapse[collapseobj_usercp_reputation]">
    <tr>
        <td class="thead">&nbsp;</td>
        <td class="thead">$vbphrase[thread]</td>
        <td class="thead">$vbphrase[date]</td>
        <if condition="$vboptions['showuserraters']">
        <td class="thead" nowrap="nowrap">$vbphrase[posted_by]</td>
        </if>
        <td class="thead">$vbphrase[comment]</td>
    </tr>
    $reputationcommentbits
</tbody>
</table>
<br />
<!-- ############## END NEW REPUTATION ##############  -->
</if>

<form name="personalnotepad" method="post" action="usercp.php$session[sessionurl_q]">
<table class="tborder" width="100%" cellspacing="$stylevar[cellspacing]" cellpadding="$stylevar[cellpadding]" align="center">
<tr>
<td class="tcat" align="center">$vbphrase[personal_notepad]</td>
</tr>
<tr>
<td class="alt1" align="center">
<textarea name="notepad" rows="7" cols="45">{$vbulletin->userinfo['notepad']}</textarea>
<input type="hidden" name="do" value="savenotepad" /></td>
</tr>
<tr>
<td class="alt2" align="center"><input type="submit" value="$vbphrase[save_notepad]" /></td>
</tr>
</table>
</form>

$template_hook[usercp_main_pos6]

<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
    <td width="100%">&nbsp;</td>
    <td align="$stylevar[right]">$forumjump</td>
</tr>
</table>


newforum 05-24-2007 12:07 PM

Great hack, installed on 3.6.7 working fine without any problems.

Mrdby 06-05-2007 05:04 PM

How can i edit this to direct to the CMPS instead of forum?

Kevlar 06-06-2007 07:31 PM

Anyway to make this persistent so if they minimize it, it stays minimized until they maximize it? (for 3.6.7)?

jahshaka 06-11-2007 10:11 PM

hey i installed and dont get the 'email a friend' option - any ideas?


All times are GMT. The time now is 11:22 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01571 seconds
  • Memory Usage 1,869KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete