PDA


View Full Version : Who's online for Links, Vbadvanced etc...


Lionel
03-10-2007, 06:26 AM
You need to create 3 plugins per location

I've successfully tested this on the vbadvanced pages like index.php?page=xx but it should be fine for links too. Just use the preprocess plugin to set in the correct filename location.

In my attached example I use the soccer page. For links the preprocess would be

/forums/links/index.php
/forums/links/browselinks.php

etc... then you name the file whatever you want. I named mine in the plugin (don't go and change your filename on server) as linksmain.php

You need to repeat all 3 steps for each location you want to add.

EDIT: I just added for the main links page and it works just fine. This method will work for all who's online problematic unknown locations

Here are my plugins for the main vba_links index so you get the idea. Obviously this is an example as your paths will differ for sure.

Preprocess:

if ($loc == '/forums/haitisearch/index.php' OR $loc == '/forums/haitisearch/' )
{
$filename = 'linksmain.php';
}

Process:
if ($filename == 'linksmain.php')
{
$userinfo['activity'] = 'linksmain';
}

Unknown:if ($userinfo['activity'] == 'linksmain')
{
$userinfo['where'] = '<a href="/forums/haitisearch/index.php?">Haiti Search Main Page</a>';
$userinfo['action'] = "Viewing Haiti Search";
$handled = true;
}

rknight111
06-03-2007, 12:18 AM
I just tried this and something isn't working. Did you do this in the vBulletin plugin manager or did you go to the vbadvanced modules?

Also, did you add that code in the admin cp or in a file? Can you please be more specific... thanks!

Lionel
06-03-2007, 12:52 AM
you need to create the vbulletin plugins. Please refer to vbulletin's documentation for how to's

rknight111
06-03-2007, 10:46 AM
Could you give me an example of the plugin you created for the preprocess? In other words, Do you make the product 'vBulletin' or the links program? Also, what template should I set it up? I do not see vba_links anywhere.

I assume the preprocess is order 1, and the others are 2 and 3 respectively?

Thanks!

Lionel
06-03-2007, 01:23 PM
There is an attached text file. Instructions can't be clearer than that