![]() |
seems u cant do phrasing in...
$userinfo['where'] = '<a href="YOUR_ADDIN_FILE.php?'.$vbulletin->session->vars[sessionurl].'">'.$vbulletin->options[bbtitle].PHRASE</a>'; unless someone wants to explain to me how you can use them under viewing blah(the description) though ps. can someone delete all the redirects in here? |
uhhhhhh how do I add hooks? or do this???? ???
|
How would I go about adding a custom WOL line for a URL like somepage.php?foo=bar
$filename only contains somepage.php so is there another variable that contains the querystring? Thanks, Ben |
Quote:
|
Quote:
There are three hook locations we need to add plugins to:
Add the online_location_preprocess hook plugin... Hook Location: online_location_preprocess Name: WOL Online Location PreProcess Active: YES Code: PHP Code:
Add the online_location_process hook plugin... Hook Location: online_location_process Name: WOL Online Location Process Active: YES Code: PHP Code:
Add the online_location_unknown hook plugin... Hook Location: online_location_unknown Name: WOL Online Location Unknown Active: YES Code: PHP Code:
|
Hi,
This is brill but i have a question if i may. How do i go about giving seperate locations if 2 files share the same name. i have a gallery with an index.php and the whos online gives the location as the home page because thats index as well. I tried this. Code:
if ($loc == '/folder/index.php') |
One thing I notice about this is it only seems to work when the user is logged in, otherwise if it's a guest viewing a custom page, it just says "Viewing Index". Is there any way to get it to show custom locations for guests as well?
|
Thank you for the tutorial.
|
I coded this to show my index.php properly, so I don't have to edit vb's code.. may have to customize it for your own needs ;) it's working for me... so I can show my pages from index.php and use hooks to properly name/show them. Hope it helps.
PHP Code:
|
Thanks Ruinerix, i think that will help, going to try it out this weekend.
|
All times are GMT. The time now is 06:51 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:
|