Announcement

Collapse
No announcement yet.

[RELEASE vb2.0] Show admin groups

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Kier
    replied
    I just fixed it...

    I can't believe how stupid the problem was... the reason I couldn't reproduce the error on my board was because I was using a completely different version of the code.

    Somehow I managed to zip up an old version of the code for the attachment.

    I'm just adding the requested avatar functionality, and I'll upload the new version.

    ::hides face in shame::

    Leave a comment:


  • gjgjgj
    replied
    KIER ROCKS

    Hey kier that was an excellent hack...

    YOU simply ROCK

    Leave a comment:


  • pipi
    replied
    Originally posted by Kier
    How did you get hold of that version? The version downloadable above does not use the foreach() function at all.
    my version is vb2 b2 upgraded from vb114, is htat possible to solve it? thanks you offer a nice hack

    Leave a comment:


  • Kier
    replied
    Originally posted by jojo85
    nice

    what is the adress of your forums kier???
    My forums are not currently open to the public. I'll post an announcement when the site opens.

    Leave a comment:


  • jojo85
    replied
    nice

    what is the adress of your forums kier???

    Leave a comment:


  • upgrader
    replied
    Well sisco's code change actually cured my problem

    Leave a comment:


  • The_Sisko
    replied
    Didn't know that the: The vB PHP parsing funktion
    has an error...sorry for that!

    Leave a comment:


  • Kier
    replied
    DO NOT 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
    Last edited by Kier; Thu 15 Mar '01, 1:10pm.

    Leave a comment:


  • Freddie Bingham
    replied
    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

    Leave a comment:


  • The_Sisko
    replied
    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")."\";");
    		}
    Last edited by The_Sisko; Thu 15 Mar '01, 9:47am.

    Leave a comment:


  • upgrader
    replied
    I'm getting this error

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

    any ideas?

    Leave a comment:


  • snyx
    replied
    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)

    Leave a comment:


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

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

    Leave a comment:


  • Kier
    replied
    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.

    Leave a comment:


  • John Harrison
    replied
    cool

    Leave a comment:

widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Working...
X