![]() |
see referal url in whos online
Hi, i was wondering if it's possible to see the referal url (if any) in the whos online box??? that would be sweet wouldn't it?
|
Do you mean the referer? The Site which the guest is coming from?
This would be absolut great! |
Yes that's what i mean.... sounds totally cool huh?? really a great idea i got there..
hope someone can make this |
the only negative point i can imagine is that it will be very perfomanceintensive.
|
noo.. not at all....
it doesn't require performance to aquire the referal url.... im gonna look into this myself, im so hooked on the idea to do this :) |
bump
|
This could be done by printing out $_SERVER['HTTP_REFERER'], however:
Quote:
Gr3?Tz... |
Quote:
I save the url in a variable in global_start hook but that variable is not available in the whosonlinebit... :( if just i knew how to save the url in a $vbuser or whatever that var is called |
Do a global of that var.
|
Quote:
The problem is that i want to see all the refferer urls for all users. So i need to save them in the user var. *sigh*.... im giving up |
PHP Code:
|
Quote:
When a user enteres my page, the global_start hook is run. I save the referrer url in a global variable for each user. The variable is named the same though, but should contain different values for each user. When I click on whosonline, the whosonlinebit template is run. Here i want to print out the referal url for each user. That is not possible because the whosonlinebit template doesn't print out my global variable. Plus how does it know which global variable belongs to which user? I also posted this at vb.com http://www.vbulletin.com/forum/showthread.php?t=163168 |
Sorry to say, but the way you are trying it will never work. You will at least have to store the information for each user in a table.
I suggest you ask someone else if they can make something for you. |
I can do it, if someone will just tell me how.
I tried this instead. I modified the userinfo class to contain one more string called ref. and i fill it in index.php but it wont print it in the whosonlinebit...?? |
The session table sounds more suitable for this to me.
|
All times are GMT. The time now is 12:59 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|