vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Question about moderator PHP code... (https://vborg.vbsupport.ru/showthread.php?t=44584)

FleaBag 10-13-2002 05:38 PM

Question about moderator PHP code...
 
Hey, hope someone can help me here - I'd be very appreciative.

Currently, moderators are displayed in the moderator column as in the example that follows...

Quote:

Moderator1, Moderator2, Moderator3... e.t.c...
How would I make them display as follows...?

Quote:

Moderator1,
Moderator2,
Moderator3
Thanks for any help in advance. :)

Logician 10-13-2002 09:02 PM

edit forumhome/forumhome_moderator template and add a <br> at the end..

FleaBag 10-14-2002 12:30 PM

It doesn't work like that, because it just puts the break at the end of the whole list of moderators - I want the break between each moderator.

Dean C 10-14-2002 03:34 PM

i think it might require code hacking... im sure its a very simple change that someone will know how to do :D

- miSt

Graphics 10-14-2002 03:40 PM

Yeah this looks pretty simple. Don't know myself, but I'm sure some php Guru like Lesane (;)) or someone will be able to do it.

Xenon 10-14-2002 03:44 PM

open index.php
find
PHP Code:

          while ( list($mkey2,$moderator)=each($imodcache["$mval1"]) ) {
            if ( !isset(
$forum['moderators']) ) {
              eval(
"\$forum['moderators'] = \"".gettemplate('forumhome_moderator')."\";");
            } else {
              eval(
"\$forum['moderators'] .= \", ".gettemplate('forumhome_moderator')."\";");
            }
          } 

chage it to:
PHP Code:

          while ( list($mkey2,$moderator)=each($imodcache["$mval1"]) ) {
            if ( !isset(
$forum['moderators']) ) {
              eval(
"\$forum['moderators'] = \"".gettemplate('forumhome_moderator')."\";");
            } else {
              eval(
"\$forum['moderators'] .= \",<br>".gettemplate('forumhome_moderator')."\";");
            }
          } 


FleaBag 10-14-2002 04:55 PM

Cheers boss; case closed. ;)


All times are GMT. The time now is 07:02 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
  • Page Generation 0.00964 seconds
  • Memory Usage 1,729KB
  • 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
  • (2)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete