![]() |
[HowTo] Categorize Who's Online on Forumhome
HACK: [HowTo] Categorize Who's Online on Forumhome
BY: KuraFire [www.kurafire.com] REQUESTED BY: Xiphoid [www.creations.nl] DESCRIPTION: Divide the active users bit on Forumhome into a Staff: section and Members: section DIFFICULTY: Easy INSTALL-TIME: 5 minutes Xiphoid asked for a categorization on forumhome (Staff / Members) for vB 3, but since it's such an easy thing I decided not to wait for vB 3 but just make the hack myself :) Kudos to xiphoid for a good idea :) EXAMPLE HERE: click here for an example of this hack Warning / note: The || and && operators in original vB code I put in the instructions here that you need to search on MIGHT BE "or" and "and" in your version. Keep that in mind if you can't find the code! Note: I wrote this on my own board which is currently still version 2.2.5, it might well work on any version above that but that is not yet tested or confirmed! (nor for versions below) INSTRUCTIONS ARE IN THE ATTACHMENT :) If something did not work right, you did not follow the instructions properly :) Enjoy! :) |
Damn Cool!! Thanks KuraFire!!
Install this right now!! :) |
looks nice :)
also can you please delete the instructions from your post and just put it in the textfile, so unlicenced users can't get it? |
hmkay...
|
Is it possible to adapt this for the WOL page proper?
|
Excellent hack. Thanks! :)
My second instance that you said to comment out of this code has a comma in it. Do we need to put a comma back in the line above it or anything? Code:
eval("\$activeusers .= \", ".gettemplate('forumhome_loggedinuser')."\";"); |
Quote:
The comma's between usernames are added with the implode() function that I call at the end of the hack part. You should not have any comma's (string-comma's, not code-related ones) in your code anymore.... Quote:
Quote:
That's possible but that can't be done with this hack, I'd have to write a whole different kind of hack for that. The WOL page works quite a bit differently, more complex and all..... |
Thanks for the quick response. :) It's hard to tell if the Staff shows up since I will see it as the Admin even for invisible staff. I'll check with someone on line at the time and see if they can see it. I'll let you know what I find out. :)
Thanks again for a very useful hack. :) |
I could check it out for you right now if you've installed the hack on your live board already... :)
|
Ok, great. I'm there now. Do you need the URL? It is in my profile unless you want it here. :)
|
I'm looking at the forumhome on your site but I'm not seeing any members logged in, be they staff or normal.
Only 1 member and 1 guest, me being the guest, I'm assuming you're the member, thus the invisible admin, and I can't see you, nor do I see "Staff:" anywhere :) So I take it that all works then, eh? :) |
Yes, that was i hiding. :) Great! Thanks for checking it out. Now If I can figure out a way to not have it show up for the amount of users online if I am an invisible Admin, then there would be no way to tell at all when I was on there. :)
Again, thanks for checking it out and releasing another great hack. The quotes hack and search by ID hack are up and running well along with this one now. "If you release it, I will install it." :) |
See your PM's boofo :):up:
|
Right back at ya. ;)
|
Nice hack kurafire - good to see you around the place again :p
|
Nice Kura:)
Satan |
Quote:
I've been quite busy with hacking vB and adding features and all, but they're all so integrated with one another on my site that a) I can't possibly release one of them unless I release every change and every hack all together; b) I don't want to release several of these hacks, so that kind of makes it impossible for me to release any of them. That's why I haven't been around much. Today, xiph pointed me to that Staff/Member thingy and I figured, hey, that's a nice idea for a hack, and also one for vb.org :) So I did ^_^ |
Worked like a charm on vb 2.2.0!
Thanks!! |
anyone got this working on vB 2.2.9 yet?
|
That's the version I am running and it works good for me. :)
|
okay, great :)
|
First of all, thank you Kura. Glad you liked my idea and that we could realize it with a little hack.
It works perfectly on my 2.2.9 board at http://creations.nl/ :banana: I added a little code to it, so the staff links to the forum leaders page and the members link to the memberlist page. Link 'Staff' to 'Forum Leaders' Page - addon: and Link 'Members' to 'Memberlist' Page - addon: Find: Code:
$activeusers = iif($staffusers!="", "Staff: $staffusers <br />", "") . iif($normalusers!="", "Members: $normalusers", ""); Code:
$activeusers = iif($staffusers!="", "<a href=\"$bburl/showgroups.php?s=\">Staff</a>: $staffusers <br />", "") . iif($normalusers!="", "<a href=\"$bburl/memberlist.php?s=\">Members</a>: $normalusers", ""); Staff: <staff members on their own line> Members: <members on their own line> Then just add a <br /> behind the Staff: part |
i tried it on 2.2.9 and i couldn't find the code for step 2....
|
|
anyone have a screehshot of this in action?
|
Quote:
|
Quote:
Quote:
i would like to see it on a site were there are admins mods and so forth to see the full bang of it it looks good from what i can see. |
one admin
one mod one member :) happy now? :) |
There is also a big EXAMPLE link in the first post which you could check, my board nearly always has a staffmember and 3-5 normal members _at least_ online at any time. Average is about 12 ppl in total of which 2-3 staff.. :)
|
Will be installing this later but I have a small question, at this site
http://creations.nl/ I see it has a listing for robots, is that a seperate hack? I have searched here for that and cant seem to find reference to it. Thanks |
Yeah, vB archive.
|
Which staff are listed? Obviously admins, but are both supermods and forum mods listed in the staff section or just supermods?
If it's both is there an easy way of changing it so that only supermods are listed with the staff, while forum mods stay listed with members? |
I got this to work on 2.3.0
Great hack, and good job. :) |
I am using 2.3.0, and I can't seem to find the 'closing' tag.
If you followed the instructions properly, the last thing you did now was to delete (or comment out) the SECOND occurance of this line: Code:
eval("\$activeusers .= \"".gettemplate('forumhome_loggedinuser')."\";"); Below that is a closing tag ( } ), and below that closing tag, paste this bit of code: Code:
$staffusers = implode(", ", $su_r); |
WEforums:
in vB 2.3.0, around line 196 (unhacked index.php), you will find this bit of code: PHP Code:
PHP Code:
|
I was thinking great, it'll be simple now. That proves incorrect though. I did what you said, and I get this error:
Parse error: parse error, unexpected ',' in /home2/wef/public_html/forums/index.php on line 210 Line 210 is the following: Code:
$staffusers = ", ", $su_r); Anyway, if you have an idea of what can be causing this I'd be thankful. Also, thanks for the reply. :) |
<font size="7">I
Hate vBulletin.org!</font> *sighs* stupid PoS system removes php functions from blocks of [php-] code! *mutters furiously* change: $staffusers = ", ", $su_r); $normalusers = ", ", $nu_r); into: $staffusers = implode(", ", $su_r); $normalusers = implode(", ", $nu_r); Then it should work.. |
I hate feeling like a "newbie." :(
Truth is, I don't have any clue how to fix parse errors. Your instructions worked to fix that parse error, but a separate part of the code (one in which is identical to an 'unhacked' vB index.php) seems to be causing a parse error. (It must be to do with this code or I completely screwed up. heh) Anyway, the current error is: Parse error: parse error, unexpected ')' in /home2/wef/public_html/forums/index.php on line 336 Line 336 is: list($key1,$val1)=each($iforumcache["$forumid"]) ) { GRRR! I am sure I am annoying, lol. Can't wait to get enough time to study PHP. If you need any other info (or if you're willing to help) just let me know what to do. Sorry to burden you. :( |
Just to give a bit more code... Lines 330 - 342:
Code:
if ($depth<$forumhomedepth) { |
I
Hate vBulletin.org! Quote:
while(list($key1,$val1)=each($iforumcache["$forumid"]) ) { |
All times are GMT. The time now is 04:46 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:
|