PDA

View Full Version : Authorities Online


tubedogg
05-14-2002, 10:00 PM
Requested by Austin Dea (https://vborg.vbsupport.ru/showthread.php?s=&threadid=38511).

Just download the attached file and look at it. It contains complete instructions. This one is a no-brainer and should work for any 2.2.x version of vBulletin.

If you can't handle installing this hack, I'm not sure you're ready for hacks as it is extremely simple.

As usual no PMs, no ICQ, no AIM, no emails about this hack. They will go ignored.

:bunny: :bunny:

(I am including that bunny cause I really like it :D)

Edit: I realized I should probably explain what this does. It adds a seperate box below the Who's Online on forumhome that lists the admins/mods who are online.

JulianD
05-15-2002, 08:50 AM
Very nice! thanks tubedogg!

afterlab
05-15-2002, 09:44 AM
Whoa! The t-dawg returns.. I thought you were dead or something. Well, it's nice to seeya back @ making hacks. I'll install this when I get home after school today. Nice hack! :D

Floris
05-15-2002, 10:15 AM
Very cool, I tried to merge this with the Coloured Online Users hack, and that was a success, but I also have some other stuff installed that screwed the design up a little bit, so I uninstalled it. Too big a headache atm to realize this flawless. But, works great on 225 here.

jly2klee
05-15-2002, 11:16 AM
When i get home ill install this straight away!

Brad
05-15-2002, 11:30 AM
killed that error, got a new one, the list is showing above all the other tables (even tho its set to the bottom) and that table is black with black text, any ideas?

squawell
05-15-2002, 11:42 AM
* squawell like this hack.....thankz tubedoqq.....:D:D:D

Brad
05-15-2002, 11:44 AM
http://www.kousetsu.net/forums


got it half way working :eek:, really all i wanted it to do :D, thanks man, awsome hack

David Bott
05-15-2002, 12:31 PM
Dang...I get the same issue as above...It shows up above all my forums and not where I told it to in the "forumhome" template.

Even tried adding it into the "forumhome_loginusers" after $birthdays still get it at the top of the forum list...even without words...just the mods names all lumped together.

So much for a no brainer...It seems to have a slight formatting issue somewhere that I (we) must be missing.

Brad
05-15-2002, 02:37 PM
Originally posted by David Bott
Dang...I get the same issue as above...It shows up above all my forums and not where I told it to in the "forumhome" template.

Even tried adding it into the "forumhome_loginusers" after $birthdays still get it at the top of the forum list...even without words...just the mods names all lumped together.

So much for a no brainer...It seems to have a slight formatting issue somewhere that I (we) must be missing.
same, even when i half had it working it clumped the mods/admins toghter, im uninstalling it till someone provides and answer :ermm:

DemiNeo0101
05-15-2002, 06:10 PM
whoa..... This is really hard..... hehe J/k.. Good job Tube.

David Bott
05-15-2002, 06:16 PM
Well I am sorry to say that their is a issue somewhere...It could be that other hacks are installed. But it is not cut and dry. I have installed several, several hacks without issue and this one...why it seems simple...just does not what to go into the right place.

No matter where I put the $leaders, it always shows up above all the forums with the admins and mods run together with out any of the other text.

I have gone over this now 5 times...Same result.

tubedogg
05-15-2002, 07:45 PM
Anyone have it on their forums right now that I can take a look?

scsa20
05-16-2002, 06:06 AM
hmm...I think I did something wrong, anyone care to help me out, my site is http://forums.simon-soft.com ... thanks for any help

tubedogg
05-16-2002, 07:00 AM
I don't see it on your board. Did you edit the forumhome template like you were supposed to?

scsa20
05-16-2002, 07:31 AM
yes, it should be on the bottem, here, I'll go onto my board, you'll just see a black strict (or white or gray or some other color, depending on the style your seeing it in) without that Authorities Online saying thing :(

tubedogg
05-16-2002, 07:36 AM
OK, should be fixed, I left off one find&replace for the index.php part. It's the third one, for those who've already partially installed it, download the file again, just do the third one and it should work.

scsa20
05-16-2002, 07:40 AM
sweet, it works now :D ... nice hack ;)

scsa20
05-17-2002, 05:01 AM
ok, I don't know if this is a template error or a php error but take a look at the screen shot and can anyone tell me how to fix it??

tubedogg
05-17-2002, 05:20 AM
OK yeah another error.

In index.php find eval ("\$leaders .= \"".gettemplate('forumhome_loggedinuser_leader')."\";");and replace it with eval ("\$leaders = \"".gettemplate('forumhome_loggedinuser_leader')."\";");
Then find eval ("\$leaders .= \"".gettemplate('forumhome_loggedinuser_leader')."\";"); and replace it with eval ("\$leaders .= \", ".gettemplate('forumhome_loggedinuser_leader')."\";");

scsa20
05-17-2002, 05:37 AM
thanks, but I won't know if it worked yet or not untell another admin/mod comes on, oh well...I can wait :) thanks, and nice hack ;)

Bald Bouncer
05-17-2002, 10:15 AM
not that extremly simple mate :D

heres how it looks when installed .. I know I can add a space to the template to break up the names but its the counter thats wrong :(

Bald Bouncer
05-17-2002, 12:24 PM
ok I got it working ... instructions below if anyone wants to test it

MrBojangle1
05-17-2002, 10:19 PM
Thanks for the fix it wasnt workin for me before

Austin Dea
05-19-2002, 04:38 AM
Tube's wasn't working but Bouncer's does. Great job ;).

tubedogg
05-19-2002, 09:06 AM
The only thing that is different from my original instructions is the counter which I forgot to remove from the template. Other than that it works perfectly as is.

Bald Bouncer
05-19-2002, 10:52 AM
correct I take no credit all Tubes work... ;)

Austin Dea
05-20-2002, 01:44 AM
Actually, I have th problem with the formatting to...even with BB's....

Edit: Well dang, I forgot the comma at the end >=B. But it still puts a comma after the last name...

Austin Dea
05-23-2002, 10:52 PM
Ok, I fixed it.

Instead of (in the second step)
eval ("\$leaders .= \"".gettemplate('forumhome_loggedinuser_leader')."\";");
It should be
eval ("\$leaders .= \", ".gettemplate('forumhome_loggedinuser_leader')."\";");

>=B




Edit: Which is exactly what Tubedogg said -_-...BB's didn't have thqat, that's why mine was jacked =P. Oh well, Tube's is right, w00ty.

lifesourcerec
05-31-2002, 02:33 AM
How do you add other groups to that? I have a second level (moderator) which gives them access to other forums. Does it have anything to do with the $leader = 0; in the index.php file?

dreamhost
07-04-2002, 07:12 AM
great hack, is it possible to have it say admins, super moderators, moderators etc, with listing after each?

Heineken77
07-17-2002, 12:52 AM
http://nba2k3.net/forum/index.php?s=

For some reason the Authorities is showing the correct users that it's supposed to, but next to "Authorities:" even when there are more than 1 mod/admin online it always says 0 :(

What am I doing wrong :( Would really appreciate some advice.

Heineken77
07-18-2002, 02:07 AM
Anyone have any guesses as to why my Authorities field reads 0 when there are infact Authorities online? :(

lifesourcerec
07-20-2002, 09:07 PM
I want to be able to add more groups. It just adds admin and not moderators.

lifesourcerec
07-24-2002, 03:52 PM
This is somewhat odd. I couldn't find the lines, but manually searching, this looks different.

Here is what the hack has listed:


$leader = 0;
if ($loggedin['usergroupid'] == 6 and $highlightadmin) {
$username = "<b><i>$loggedin[username]</i></b>";
$leader++; $lead = 1;
} else if (($mod["$userid"] or $loggedin['usergroupid'] == 5) and $highlightadmin) {
$username = "<b>$loggedin[username]</b>";
$leader++; $lead = 1;
} else {
$username = $loggedin['username'];
$lead = 0;
}
eval("\$activeusers .= \", ".gettemplate('forumhome_loggedinuser')."\";");
if ($lead == 1) {
eval ("\$leaders .= \", ".gettemplate('forumhome_loggedinuser_leader')."\";");
}


But here is what's in my file:


$leader = 0;
if ($loggedin['usergroupid'] == 6) {
$username = "$loggedin[username]";
$leaders2++;
$lead = 1;
} else if ($loggedin['usergroupid'] == 7 or $loggedin['usergroupid'] == 5) {
$username = "$loggedin[username]";
$leaders2++;
$lead = 1;
} else {
$username = $loggedin['username'];
$lead = 0;
}
eval("\$activeusers = \", ".gettemplate('forumhome_loggedinuser')."\";");
if ($lead == 1) {
eval ("\$leaders .= \"".gettemplate('forumhome_loggedinuser_leader')."\";");
}


Both are different. Should I replace the current to what's in the hack?

lifesourcerec
07-24-2002, 05:56 PM
Never mind. I just basically combined the 2 and it works great :)

StevenTN
08-09-2002, 08:27 PM
you don't need to do the leader2 variable... in fact the $leader = 0 is totally unneeded. I got mine to display the correct # of staff by getting rid of it.

LOD-squa
08-17-2002, 05:23 PM
I'm getting this error:
Parse error: parse error, unexpected $ in /home/lod-squa/public_html/forum/index.php on line 454

can anyone help me?

StevenTN
08-30-2002, 12:03 PM
Question... what do I do about the leading comma for the first mod or admin in leaders online... it'll show

", Steven, ..."

However, if the admin or mod is the first member listed in members online, that comma doesn't show. Can anyone help to solve it?

The boards are at http://www.thrillnetwork.com/boards/ if you wish to see what I'm talking about.

dimava
10-06-2002, 04:14 AM
Originally posted by StevenTN
Question... what do I do about the leading comma for the first mod or admin in leaders online... it'll show

", Steven, ..."

However, if the admin or mod is the first member listed in members online, that comma doesn't show. Can anyone help to solve it?

The boards are at http://www.thrillnetwork.com/boards/ if you wish to see what I'm talking about.

same problem here


thanks,


Dimava

Liz
12-01-2002, 07:47 PM
Uuughhh...which index.php are we supposed to be editing? I tried three different ones and I can't find the coding that I'm supposed to.

Help?

SemperFidelis
01-08-2003, 04:56 AM
Any chance someone can re-write this 'simple hack' so its compatible with vb 2.2.9 ?

Thanks in advance.

Choclo
09-28-2003, 09:40 PM
I've installed it, but it shows zero (0) auths online, and I've 5 online though!

TCHQ-0wn4g3
01-31-2006, 07:58 PM
I would like a hack like this that shows something along the lines of what this forum has http://forums.site5.com but for vb 3.5