![]() |
How do I put the "Moderated by" in the Forum desrciption like on the vb.org forums.
|
it is actually very simple, not actually a hack, but a template modification...
1. Login to Admin Panel 2. Select "Modify" in the Template Section 3. Expand List 4. Expand "Forum Home Page Templates" 5. Edit/Change Original (depending on previous edit or not) template "forumhome_moderator" 6. Change "forumhome_moderator" (from the default) to Code:
Moderated By: <a href="member.php?s=$session[sessionhash]&action=getinfo&userid=$moderator[userid]">$moderator[username]</a> 7. Repeat step 5 on "forumhome_forumbit_level2_post" 8. In "forumhome_forumbit_level2_post" find "$forum[description]" after that add Code:
<br><b>$forum[moderators]</b> James P.S. looks a bit different from vb.org's layout, to remove the bold print take out the bold tags in the second code segment, and to change the layout of the list (such as to add the [] for example) edit the "forumhome_moderator" template as you wish. |
I did it like that but if you have more then one moderator for a forum, the Moderated By part shows up twice. How can I get it to show up once but with all of the moderator names for that forum?
|
I get the same problem...
Plus - How do you make it display a newthread link? Satan |
@Boofo :
I figured out how to change it... Keep the "forumhome_moderators" as the default, and edit the "forumhome_forumbit_level2_post" Do as he says, and find "$forum[description]" after that add : Code:
<br><b>Moderated by:</b> [$forum[moderators]] Now...How do you do the new thread? Satan |
Quote:
Won't work like that. Then it will show Moderated By: even when there are no mods for that forum. :) Nick had it fixed once, but I took the code out when he left me with it and started over again. Guess I should have left it in, huh? :) The new thread thing I haven't played with yet. I will see what I can come up with but it should work just like the hack for the forum titles in the last post column, only in a different place. |
Can anyone please help us here with the Moderated By on forum home? I want to have it only show up when there are moderators for the particular forum and list ALL of the moderators instead of doing a Moderated By for each moderator.
|
Quick and dirty:
in index.php find PHP Code:
PHP Code:
|
You'll probably want to repeat the file edit in forumdisplay.php
|
This is what I have in my root/index.php:
Code:
if ( !isset($forum['moderators']) ) { [Moderated By: whomever, noone] |
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']) ) { |
Code:
if ( !isset($forum['moderators']) ) { To put [] around it, just put that in your template :) |
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?
|
put it in the php code then.
something like PHP Code:
|
That did it. Works like a charm. That you very much. :)
|
Glad I could help :)
|
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? :) :) |
Looks like you got it working on your site...
Satan |
Thanks to Sparkz! :)
|
All times are GMT. The time now is 03: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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|