vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   How do I.. (https://vborg.vbsupport.ru/showthread.php?t=33617)

Boofo 06-01-2002 01:21 PM

Here's the code I found in forumdisplay.php. I chnaged the one in index.php to match it. Is it supposed to be the same in both:

Code:

if ( !isset($forum['moderators']) ) {
              eval("\$forum['moderators'] = \"".gettemplate('forumhome_moderator')."\";");
            } else {
              eval("\$forum['moderators'] .= \", ".gettemplate('forumhome_moderator')."\";");
            }
          }
        }

        if ( !isset($forum['moderators']) ) {
          $forum['moderators'] = ' ';
        }


Sparkz 06-01-2002 01:36 PM

Code:

if ( !isset($forum['moderators']) ) {
          eval("\$forum['moderators'] = \"".gettemplate('forumhome_nomoderator')."\";");
        }

I don't even have that template in my 2.2.6, so it must be from some other hack.

To put [] around it, just put that in your template :)

Boofo 06-01-2002 01:49 PM

I think that code was added by someone who left me hanging with it. Anyway, I changed it to match in both files and all is well. The only problem is I can't use the brackets. If I do it in the moderator template it puts a bracket after each moderator name. If I do in the the forumhome_forumbit_level2_post, it puts the brackets there even when there are no mods. Any ideas how I can get it in there if there are mods and not if there aren't?

Sparkz 06-01-2002 02:05 PM

put it in the php code then.
something like
PHP Code:

$forum['moderators'] = '[<b>Moderated by:</b> ' $forum['moderators'] . ']'


Boofo 06-01-2002 02:11 PM

That did it. Works like a charm. That you very much. :)

Sparkz 06-01-2002 02:17 PM

Glad I could help :)

Boofo 06-01-2002 02:22 PM

Thanks again! :)

I do have one question though...I don't know how hard this would be to do, but is there a way to have the colors of the moderators match the other colors I have for the Admin, Supermods and mods in my site? I mean if I have an Admin listed as a mod, the color of the name would be in red, super mod in brown and mod in green. Can it be done? :) :)

Chris M 06-01-2002 02:59 PM

Looks like you got it working on your site...

Satan

Boofo 06-01-2002 03:01 PM

Thanks to Sparkz! :)


All times are GMT. The time now is 01:22 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.01725 seconds
  • Memory Usage 1,726KB
  • 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_code_printable
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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