The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
[HowTo] Categorize Who's Online on Forumhome Details »» | |||||||||||||||||||||||||||
[HowTo] Categorize Who's Online on Forumhome
Developer Last Online: Nov 2023
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! Show Your Support
|
Comments |
#32
|
|||
|
|||
Yeah, vB archive.
|
#33
|
|||
|
|||
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? |
#34
|
|||
|
|||
I got this to work on 2.3.0
Great hack, and good job. |
#35
|
|||
|
|||
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); $normalusers = implode(", ", $nu_r); $activeusers = iif($staffusers!="", "Staff: $staffusers <br />", "") . iif($normalusers!="", "Members: $normalusers", ""); |
#36
|
||||
|
||||
WEforums:
in vB 2.3.0, around line 196 (unhacked index.php), you will find this bit of code: PHP Code:
PHP Code:
|
#37
|
|||
|
|||
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. |
#38
|
||||
|
||||
<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.. |
#39
|
|||
|
|||
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. |
#40
|
|||
|
|||
Just to give a bit more code... Lines 330 - 342:
Code:
if ($depth<$forumhomedepth) { $forumbits.=makeforumbit($forum['forumid'],$depth+1,$forumperms); } } // END if can view } // END while ( list($key2,$forum)=each($val1) ) { } // END while ) list($key1,$val1)=each($iforumcache["$forumid"]) ) { unset($iforumcache["$forumid"]); return $forumbits; } if (!isset($forumid) or $forumid==0 or $forumid=='') |
#41
|
||||
|
||||
I
Hate vBulletin.org! Quote:
while(list($key1,$val1)=each($iforumcache["$forumid"]) ) { |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|