![]() |
Thx for this nice hack.
I have a question wich is not directly regarding your hack but maybe someone can help me anyway. I have a hack wich shows "unknown location" in user online and I tried to edit functions_online.php The second option is clear but how is the the first "case" determant? case 'LinkMe': (the LinkMe) It cant be define('THIS_SCRIPT','....'); cause you have "chat" entered in the LinkMe.php (should be fixed ;)) I realy can?t figure that out. Can anyone help? StarBuG |
Quote:
you talk about this section in the php file: PHP Code:
PHP Code:
|
Quote:
But ok. With the next update i will change the header in the PHP file from: PHP Code:
PHP Code:
It is very easy to define unknown locations. You have to create 2 entries. One entry like this: PHP Code:
PHP Code:
Cheers, |
Quote:
I know where I should place this but I need to know where: case 'LinkMe': the 'LinkMe' is taken from. Hope you know what I mean Ah and one more thing to fixe: In LinkMe.php find: PHP Code:
PHP Code:
StarBuG |
Quote:
Hi, the location is the key. In this line you define what should happen: PHP Code:
And thanks for the hint ( it is not a fix ) but it works as it is. Or it doesn't ? Cheers, |
I have tried that
the file is called: vb_jukebox.php i have in functions_online.php case 'Jukebox': $userinfo['action'] = 'vB Jukebox'; $userinfo['where'] = "<a href=\"vb_jukebox.php\">$vboptions[bbtitle] vB Jukebox</a>"; break; case 'vb_jukebox.php': $userinfo['activity'] = 'vB Jukebox'; break; But it still shows unknown location (I added it below your LinkMe code) Any idea? And without my "fix" you don?t have a location in the navbar ;) Greetings StarBuG |
Quote:
And thanks for the navbar hint. I will build this into the next version. Cheers, |
Quote:
here: case 'LinkMe': $userinfo['action'] = 'LinkMe'; $userinfo['where'] = "<a href=\"LinkMe.php\">$vboptions[bbtitle] LinkMe</a>"; break; case 'Jukebox': $userinfo['action'] = 'vB Jukebox'; $userinfo['where'] = "<a href=\"vb_jukebox.php\">$vboptions[bbtitle] vB Jukebox</a>"; break; default: if ($permissions['wolpermissions'] & CANWHOSONLINEBAD) AND: case 'LinkMe.php': $userinfo['activity'] = 'LinkMe'; break; case 'vb_jukebox.php': $userinfo['activity'] = 'vB Jukebox'; break; default: $userinfo['activity'] = 'unknown'; } Can it be that there is something that needs to be in the file vb_jukebox.php too to work? Star |
Quote:
So it is either the globaltemplate or the include of the global.php. I did nothing else. Cheers, |
YES
I solved it!!! hehe The second entry $userinfo['activity'] = 'Jukebox'; determens the location- The first entry handles the display in the useronline view where case 'Jukebox': is definded by "activity" ;) Just in case anyone wants to know Thx for the quick help and for this nice hack If you want to have some suggestions to improve your hack: It would be good to be able to define folders outside of the forum cause I store my banners outside the forum and like it is now I have to update both folders when I add banners Greetings StarBuG |
All times are GMT. The time now is 07: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:
|