vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   Move user referal number (https://vborg.vbsupport.ru/showthread.php?t=34521)

danrak 01-27-2002 12:44 AM

Ok, I'm sure this is a easy fix, but I seem to be screwing it up. But anyhow what I want to do is put the users referal number under their information on the user control panel. This way when they go under their control panel they can easly find their number there. Something like sitepointforums.com have where it says:
Your referal code is: http://www.techsupportforums.com?referal=1

Thanks in advance.
Jason Connors

Admin 01-27-2002 11:08 AM

Use this code in any of your templates:
Code:

Your referal code is: http://www.techsupportforums.com?referal=$bbuserinfo[userid]

dymo 01-27-2002 12:28 PM

how hard would it be to change the referal to accept the username instead of the userid?

dymo

Admin 01-27-2002 12:43 PM

I don't recommend doing that since some users with have problems with their usernames inside URL's (i.e names with spaces, *'s, and other weird characters).

dymo 01-27-2002 01:03 PM

good point

just a small question still as I am new to Vb just covnerted over my forums from phpBB last nite and all went well 8400 users and 20k worth of messages perfectly migrated :)

this whole referal thing, do they have to sign up to be a referer or just put there userid in there

ie

http://forums.d2network.com?referal=47

47 being the userID?

I am sure once i get more familiar with the Vb code layouts i will be able to start writing hacks for this, as I used to write hacks for phpBB

thanks

dymo

danrak 01-27-2002 03:06 PM

Quote:

Originally posted by FireFly
Use this code in any of your templates:
Code:

Your referal code is: http://www.techsupportforums.com?referal=$bbuserinfo[userid]

Cool, thank you.

Floris 02-08-2002 08:10 AM

Love that ! :)
fnx


All times are GMT. The time now is 04:25 PM.

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.04244 seconds
  • Memory Usage 1,719KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete