PDA

View Full Version : Move user referal number


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:
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
Originally posted by FireFly
Use this code in any of your templates:
Your referal code is: http://www.techsupportforums.com?referal=$bbuserinfo[userid]

Cool, thank you.

Floris
02-08-2002, 08:10 AM
Love that ! :)
fnx