The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
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!
|
|
#2
|
||||
|
||||
|
make a plugin on the hook: online_location_unknown with the following php code:
PHP Code:
|
|
#3
|
|||
|
|||
|
Still says unknown location..... Hmm....
|
|
#4
|
||||
|
||||
|
try without the forums/... just:
Code:
if (strpos($userinfo['location'], 'affiliates.php') === true)
{
$userinfo['action'] = 'Viewing Affiliates';
$handled = true;
}
|
|
#5
|
|||
|
|||
|
Nope, still nothing :-\
|
|
#6
|
||||
|
||||
|
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 |
|
#7
|
|||
|
|||
|
Thanks but that STILL didn't fix it.....what the hell? :-\
|
|
#8
|
|||
|
|||
|
Does "=== true" work for you? It seems like since strpos() returns an int or else false, it would never be true.
|
|
#9
|
|||
|
|||
|
Any ideas what would work then, kh99?
|
|
#10
|
|||
|
|||
|
I guess you could try changing "=== true" to "!== false".
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|