![]() |
/forums/affiliates.php Unknown Location /forums/affiliates.php
Is it possible to edit the who's online bit to make it say something more along the lines of:
"Viewing Affiliates" instead of showing something like this? Unknown Location /forums/affiliates.php Thanks! :D |
make a plugin on the hook: online_location_unknown with the following php code:
PHP Code:
|
Still says unknown location..... Hmm....
|
try without the forums/... just:
Code:
if (strpos($userinfo['location'], 'affiliates.php') === true) |
Nope, still nothing :-\
|
weird, thats working for me on a custom page...
but anyway here is an article that explains another way of doing it: https://vborg.vbsupport.ru/showthread.php?t=121776 |
Thanks but that STILL didn't fix it.....what the hell? :-\
|
Quote:
|
Any ideas what would work then, kh99?
|
I guess you could try changing "=== true" to "!== false".
|
That did it :D How could I make it a link to the page though? :D
|
kh99 to the rescue again... Yeah mine did say !== false but I forgot why it said that and not === true, which I figured was logically equivalent. :o
To add a link add an extra line to the plugin right above $handled = true;: Code:
$userinfo['where'] = "<a href=\"affiliates.php?{$vbulletin->session->vars['sessionurl_q']}\">Affiliates</a>"; |
Thanks. That did it :)
|
All times are GMT. The time now is 09:37 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|