View Full Version : Referrer URL - Asking your opinion
James Birkett
10-18-2009, 08:06 PM
Hey guys,
If you have put your users' referrer URLs anywhere in their User CP/Profile - where have you put them? I'm in a bit of a dilemma as to where the most suitable place would be.
If you haven't placed them anywhere, where would you put them if you was going to?
Also, is there a variable to display the referrer URL or do I have to hardcode it manually, such as:
$referrer = "http://domain.com/forum/register.php?referrerid=" . $prepared['userid'];
James Birkett
10-20-2009, 01:28 PM
Bump. Still need an opinion guys!
DeanLag
10-20-2009, 01:36 PM
If I had to put it anywhere on my site, I would put it in the User CP main page, below Latest Reputation Received; with a description of it and what it does (for newbies) =p
Thats just me though =x
Princeton
10-20-2009, 01:51 PM
the best place would be the USERCP page - right at the top, where it will always be seen
to do this modify the USERCP template
use index.php?referrerid=$bbuserinfo[userid]
James Birkett
10-20-2009, 02:04 PM
the best place would be the USERCP page - right at the top, where it will always be seen
to do this modify the USERCP template
use index.php?referrerid=$bbuserinfo[userid]
Wouldn't you use register.php rather than index.php? Or doesn't it matter?
Lovinmysailor
10-20-2009, 02:06 PM
the best place would be the USERCP page - right at the top, where it will always be seen
to do this modify the USERCP template
use index.php?referrerid=$bbuserinfo[userid]
I agree that is where I would put it.
DeanLag
10-20-2009, 02:31 PM
Register.php is only for unregistered users, registered users won't access it, unless you put the register.php link for registered users, but whats the point?. Thats just me though.
James Birkett
10-20-2009, 03:22 PM
I am putting the user's referrer URL in their profile so they can refer other users using that link. This means they actually get their name under Referrer which increases their "Referred users" and allows them to contribute to the competition I have set up ;)
So if you use the "register.php?referrerid=2" will automatically fill in the referrer profile for userid 2. I'm also going to create a plugin that makes the referrer box read-only if they visit via this method.
@Princeton,
what do you mean by "right at the top". Above "New Subscribed Threads"?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.