vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Miscellaneous Hacks - User CP Referral ID and Referrer/Referrals in Profile for vB 4 (https://vborg.vbsupport.ru/showthread.php?t=243455)

Boofo 12-18-2010 07:53 PM

Click on the Settings link in the top right of the navbar.

Kingdombuilder 02-18-2011 01:31 AM

does anyone know what file to edit to change the address for referral?


it says this:
http://www.yoursitecom/forum/forum.php?referrerid=1

i want it to say this:
http://www.yoursite.com/forum/register.php?referrerid=1


i'm running vb 4.1.1 and when i direct people to the address provided it does not put the referral name in the referral field when register is clicked.

Boofo 02-18-2011 04:58 AM

This link:

http://www.yoursite.com/forum/forum.php?referrerid=1

Code:

<a href="{vb:raw vboptions.bburl}/{vb:raw vboptions.forumhome}.php?referrerid={vb:var bbuserinfo.userid}">{vb:raw vboptions.bburl}/{vb:raw vboptions.forumhome}.php?referrerid={vb:var bbuserinfo.userid}</a>

is the proper link as it picks up the setting name of the file you are using for your home page. I just tested it again on my site and the name shows up properly. To test it again yourself, make sure you clear all your cookies and cache, and try it without logging in (as a guest would see) and it will show up like it is supposed to. You can not do multiple testings of it as it reads the cookie on your machine, even if you aren't logged in.

Kingdombuilder 02-18-2011 05:47 AM

You are right thank you for the explanation. It works great as you have said. I do however have one problem. the referral count does not show up in post bits. Any ideas what I'm not doing?

Boofo 02-18-2011 06:02 AM

It is not supposed to show up in the postbit. That would add an extra query to every post on the page. It shows up in the About me tab in the profile instead.

Alecsmith 02-19-2011 02:34 AM

Working perfectly Thanks :)
Installed on VB 4.1.2

Boofo 02-19-2011 02:58 AM

You might want to click the install button to be informed of any updates in the future.

Alecsmith 02-19-2011 03:20 AM

Quote:

Originally Posted by Boofo (Post 2164158)
You might want to click the install button to be informed of any updates in the future.

huh thanks some problem with my browser javascript :D

clicked on Install and tagged Mod :)

necie_r 03-03-2011 02:54 PM

Thanks for this mod! Testing testing... :)

Alan_SP 03-13-2011 12:50 PM

Excellent addition, but can you make it collapsible? For members who don't want to see it all the time...


All times are GMT. The time now is 02:56 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.01318 seconds
  • Memory Usage 1,742KB
  • 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
  • (1)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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