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)
-   -   Show admin groups (https://vborg.vbsupport.ru/showthread.php?t=11425)

03-15-2001 11:27 AM

wow! another brilliant hack!

03-15-2001 12:01 PM

Quote:

Originally posted by Ryan Little
Forums that have administrative moderators are shown more than once under the moderators table. This could become very annoying if an administrator moderated more than one forum.

Is there any way to prevent this from happening? See attachment.

Got the same Problem

03-15-2001 01:35 PM

cool :D

03-15-2001 02:05 PM

Quote:

Originally posted by pipi
i got problem is as below.
Fatal error: Call to unsupported or undefined function foreach() in /web1/users/909090/docs/forums/showmods.php on line 78

How did you get hold of that version? The version downloadable above does not use the foreach() function at all.

03-15-2001 03:33 PM

Got same prob with admin = mod and listing all forums x times.....

and would also like the avatar thing and the title + posts :D

03-15-2001 03:46 PM

Just incase anyone wants it, I took 2 mins and make a View List link next to my Moderator column. It underlines on mouseover like the categories.

Open FORUMHOME Template. Find:
PHP Code:

<td valign=bottom><smallfont COLOR="#afa3c5"><B>Moderator</B></smallfont

Under it add:
PHP Code:

<!--- Veiw Mod List --->
|&
nbsp;<b><a href="showmods.php?s=$session[sessionhash]target="_blank"><smallfont COLOR="#FFFFFF">View List</a></smallfont>
<!--- /
Veiw Mod List ---> 

snyx
(i just wanna help)

03-15-2001 03:50 PM

I'm getting this error

Parse error: parse error in /home/sites/home/web/forum/showmods.php on line 72

any ideas?

03-15-2001 03:56 PM

Quote:

Originally posted by upgrader
I'm getting this error

Parse error: parse error in /home/sites/home/web/forum/showmods.php on line 72

any ideas?

find:
Code:

        if ($modforums[$user[userid]] == "")
                eval("\$modforums[".$user[userid]."] .= \"".gettemplate("showmods_forumbit")."\";");
        else {
                eval("\$modforums[".$user[userid]."] .= \"".gettemplate("showmods_forumsplit")."\";");
                eval("\$modforums[".$user[userid]."] .= \"".gettemplate("showmods_forumbit")."\";");
                }

try change it to:
Code:

        if ($modforums[$user[userid]] == "") {
                eval("\$modforums[".$user[userid]."] .= \"".gettemplate("showmods_forumbit")."\";");
        } else {
                eval("\$modforums[".$user[userid]."] .= \"".gettemplate("showmods_forumsplit")."\";");
                eval("\$modforums[".$user[userid]."] .= \"".gettemplate("showmods_forumbit")."\";");
                }


03-15-2001 04:24 PM

Not putting the brackets around a one line if/else is valid. I would guess (without looking at the code) that your problem is that you need to change eval("$modforums to eval("\$modforums

03-15-2001 04:38 PM

<font color="red">DO NOT</font> copy the code in The Sisko's post above.

The vB PHP parsing feature has a problem with some escaped characters, so if you put \$ into a [ PHP ] block, it will be printed out as $.

The code in showmods.php already has those $ symbols escaped.

[edit] - now that The Sisko has changed hos post to use [ code ] tags instead of [ php ] tags, go ahead and try the modification if you like... although I can't see that it would make a difference, as leaving out the braces for a single statement in a loop is perfectly legal syntax in PHP


All times are GMT. The time now is 06:16 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.01824 seconds
  • Memory Usage 1,742KB
  • 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
  • (2)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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