PDA

View Full Version : [HDI] Change currently active users...


Distance
12-20-2006, 11:03 PM
Hello on the currently active user list it shows a + next to all your buddies, how do i remove this?

Also on /online.php it does the same but i removed this block of coding


// get buddylist
$buddy = array();
if (trim($vbulletin->userinfo['buddylist']))
{
$buddylist = preg_split('/( )+/', trim($vbulletin->userinfo['buddylist']), -1, PREG_SPLIT_NO_EMPTY);
foreach ($buddylist AS $buddyuserid)
{
$buddy["$buddyuserid"] = 1;
}
}


Am i right with this.. but how do i do it on the forumhome and 'users currently viewing this thread

Thanks

Distance

peterska2
12-21-2006, 01:21 AM
Right, well thats the hard way.

Lets do things the easy way (makes upgrades a lot better)

1. Open template whosonlinebit

FIND

<if condition="$show['buddy']">+</if>

DELETE IT

Save the template.

2. Open template forumhome_loggedinuser

FIND

$loggedin[buddymark]

DELETE IT

Save the template

3. Open template forumdisplay_loggedinuser

FIND

$loggedin[buddymark]

DELETE IT

Save the template

That should do the trick. If you find anywhere else just say, but I can't think of any other places off the top of my head.

Distance
12-21-2006, 02:10 PM
Yeah thanks all i could think of was forumhome and then online.php.. but then i noticed i had + next to all the people viewing the threads

Thanks alot

:)

peterska2
12-21-2006, 02:23 PM
not a problem :)

It's always best to avoid file modifications as much as possible otherwise you are guarenteed to forget something when you upgrade.

BOLT
12-21-2006, 03:49 PM
Hold on, Peter. If I follow the instructions you just listed, the 'currently active users' thing will go away?

If so, thanks! I've been trying to figure that out forever!

Distance
01-20-2007, 07:36 AM
No it just removes the + it shows when buddies are online