vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Miscellaneous Hacks - UserCP Referral ID and Count (https://vborg.vbsupport.ru/showthread.php?t=202533)

Nadeemjp 02-02-2009 11:34 PM

very nice hack. a very constructive one.
installed and clicked installed:)

TheInsaneManiac 02-03-2009 01:58 AM

1 Attachment(s)
Those of you who have high server loads I've modified the product so that the template edits were manual:
Find:
Code:

$template_hook[usercp_main_pos2]
Add below:
Code:

<!--  REFERRALS IN USER CP  -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
<tr>
<td class="tcat">
<a style="float:$stylevar[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="$vbcollapse[collapseobj_referral]">
<tr>
<td class="alt1" title="$bbuserinfo[username]'s $vbphrase[referrals]" width="100%" align="left">
<phrase 1="$vboptions[bbtitle]" 2="$vbphrase[referrals]" 3="member.php?$session[sessionurl]u=$bbuserinfo[userid]" 4="$vbphrase[profile]" 5="$bbuserinfo[username]" 6="$vboptions[bburl]/index.php?referrerid=$bbuserinfo[userid]" >$vbphrase[refid_usercp]</phrase>
</td>
</tr>
</tbody>
</table>
<br />
<!--  END REFERRALS IN USER CP -->


Phaedrus 02-03-2009 02:11 AM

Cool.

Saviour 02-08-2009 02:02 PM

This mod conflicts with the following mod: Icons for UserCP Navbar

The screenshot you supplied shows a link to Your Referral Link in the Your Profile section of the UserCP menu.

I have installed this mod and it does not show this link...otherwise, it works fine.

You may want to take this into consideration and modify your code to allow for this.

Phaedrus 02-08-2009 10:21 PM

Quote:

Originally Posted by Saviour (Post 1737762)
This mod conflicts with the following mod: Icons for UserCP Navbar

The screenshot you supplied shows a link to Your Referral Link in the Your Profile section of the UserCP menu.

I have installed this mod and it does not show this link...otherwise, it works fine.

You may want to take this into consideration and modify your code to allow for this.

Actually that's from a different mod. This mod doesn't add that link. That was my mini-mod in the Template Mods area.

Can you link me to the mod it conflicts with? I need to find out what they are hooking on and choose something different so they won't conflict.

Saviour 02-08-2009 10:54 PM

Quote:

Originally Posted by Phaedrus (Post 1738106)
Actually that's from a different mod. This mod doesn't add that link. That was my mini-mod in the Template Mods area.

Can you link me to the mod it conflicts with? I need to find out what they are hooking on and choose something different so they won't conflict.

That being the case...then I'd replace the screenshot with one that's actually for this particular mod.

Other than that...like I said...the mod works fine.

ndut 02-25-2009 09:18 PM

already installed. thanks
but when i click : your refferal for xxx (userid member)
the link, direct me to forum home..

is it true or still have errors?
thank you

Phaedrus 02-26-2009 01:58 AM

Quote:

Originally Posted by ndut (Post 1754662)
already installed. thanks
but when i click : your refferal for xxx (userid member)
the link, direct me to forum home..

is it true or still have errors?
thank you

You don't want to click the link, you want to use that link at other places to direct them to your site. The link carries your user ID, those people that follow it then register at your site will automatically be credited as referred by you.

fattony69 02-26-2009 05:54 PM

Will this work for vbseo where it wont modify the url?

Phaedrus 03-01-2009 01:09 PM

Quote:

Originally Posted by fattony69 (Post 1755415)
Will this work for vbseo where it wont modify the url?

I don't believe that this would have any problem with vbseo which would translate the url into "vbseo-style" as the user entered, if it was one that would be changed to begin with.


All times are GMT. The time now is 09:47 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.01213 seconds
  • Memory Usage 1,744KB
  • 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
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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