vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   [HowTo] Categorize Who's Online on Forumhome (https://vborg.vbsupport.ru/showthread.php?t=47527)

Floris 02-16-2003 09:17 PM

Yeah, vB archive.

Conundrum9 03-02-2003 09:38 PM

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?

impakt 03-05-2003 06:56 AM

I got this to work on 2.3.0

Great hack, and good job. :)

WEForums 04-23-2003 02:06 AM

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')."\";");
Did that.

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", "");

Anyone who knows where the closing tag is could you please point it out? Thanks.

KuraFire 04-23-2003 08:33 AM

WEforums:

in vB 2.3.0, around line 196 (unhacked index.php), you will find this bit of code:

PHP Code:

    }
  }
  
$DB_site->free_result($loggedins); 

The first } that you see there, is the closing tag that I'm talking about in the Hack instructions. So, your code should look like this:



PHP Code:

    }
  
$staffusers implode(", "$su_r);
  
$normalusers implode(", "$nu_r);
  
$activeusers iif($staffusers!="""Staff: $staffusers <br />""") . iif($normalusers!="""Members: $normalusers""");
  }
  
$DB_site->free_result($loggedins); 

Lemme know if you got it, now :)

WEForums 04-23-2003 08:43 PM

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);
Of course this is probably an easy problem to fix for you 'veterans' but I am new to hacking up forums. I tried removing the ','s and of course that failed, lol.

Anyway, if you have an idea of what can be causing this I'd be thankful.

Also, thanks for the reply. :)

KuraFire 04-23-2003 10:59 PM

<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..

WEForums 04-23-2003 11:36 PM

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. :(

WEForums 04-24-2003 12:28 AM

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=='')


KuraFire 04-24-2003 08:15 AM

I

Hate

vBulletin.org!




Quote:

Line 336 is:

list($key1,$val1)=each($iforumcache["$forumid"]) ) {
Make that:


while(list($key1,$val1)=each($iforumcache["$forumid"]) ) {


All times are GMT. The time now is 08:51 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01158 seconds
  • Memory Usage 1,749KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete