vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=155)
-   -   Moderators shown under Forum Description (https://vborg.vbsupport.ru/showthread.php?t=95313)

Snort_2005 08-29-2005 10:00 PM

Moderators shown under Forum Description
 
Hmm.. don't know if this is a forum home template mod as it also edits a forumdisplay template as well.

Ever wanted the forum moderators to show up underneath the forum description on your forum skin? Well, It is possible with template edits.

Installation:


</p>
  1. Login to your Admin Control panel and open the style manager.
  2. Edit the templates of the style you wish to apply this to.
  3. Double-click Forum Home Templates to expand it.
  4. Double-click the template: FORUMHOME
  5. Find and delete:
    Code:

              <if condition=&quot;$vboptions['showmoderatorcolumn']&quot;>
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
              <td class=&quot;thead&quot;>$vbphrase[moderator]</td>
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
              </if>

  6. Find: (3x)
    Code:

    <if condition=&quot;$vboptions['showmoderatorcolumn']&quot;>6<else />5</if>
  7. Change to:
    Code:

    5
  8. Save the template bit.
  9. Double-click the template: forumhome_forumbit_level1_nopost
  10. Find:
    Code:

    <if condition=&quot;$vboptions[showmoderatorcolumn]&quot;>6<else />5</if>
  11. Change to:
    Code:

    5
  12. Save the template bit.
  13. Double-click the template: forumhome_forumbit_level1_post
  14. Find:
    Code:

                    <if condition=&quot;$show['subforums']&quot;><div class=&quot;smallfont&quot; style=&quot;margin-top:$stylevar[cellpadding]px&quot;><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
  15. Add Below:
    Code:

                    <if condition=&quot;$forum[moderators]&quot;><br /><div class=&quot;smallfont&quot;><b>$vbphrase[moderator]s:</b> $forum[moderators]</div></if>
  16. Find and delete:
    Code:

                    <if condition=&quot;$vboptions['showmoderatorcolumn']&quot;>
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
                    <td class=&quot;alt1&quot;><div class=&quot;smallfont&quot;>$forum[moderators]&nbsp;</div></td>
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
                    </if>

  17. Save the template bit.
  18. Double-click the template: forumhome_forumbit_level2_nopost
  19. Find:
    Code:

    <if condition=&quot;$vboptions['showmoderatorcolumn']&quot;>5<else />4</if>
  20. Change to:
    Code:

    5
  21. Save the template bit.
  22. Double-click the template: forumhome_forumbit_level2_post
  23. Find:
    Code:

                    <if condition=&quot;$show['subforums']&quot;><div class=&quot;smallfont&quot; style=&quot;margin-top:$stylevar[cellpadding]px&quot;><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
  24. Add Below:
    Code:

                    <if condition=&quot;$forum[moderators]&quot;><br /><div class=&quot;smallfont&quot;><b>$vbphrase[moderator]s:</b> $forum[moderators]</div></if>
  25. Find and delete:
    Code:

            <if condition=&quot;$vboptions['showmoderatorcolumn']&quot;>
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
            <td class=&quot;alt1&quot;><div class=&quot;smallfont&quot;>$forum[moderators]&nbsp;</div></td>
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
            </if>

  26. Double-click Forum Display Templates to expand it.
  27. Double-click the template bit: FORUMDISPLY
  28. Find and delete:
    Code:

              <if condition=&quot;$vboptions[showmoderatorcolumn]&quot;>
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
              <td class=&quot;thead&quot;>$vbphrase[moderator]</td>
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
              </if>

  29. Save that template bit.
  30. Double-click User Control Panel Templates to expand it.
  31. Double-click the template bit: USERCP
  32. Find:
    Code:

    <if condition=&quot;$vboptions['showmoderatorcolumn']&quot;>6<else />5</if>
  33. Change to:
    Code:

    5
  34. Save that template bit.
  35. Repeat for additional styles. :)
Enjoy!


Live Demo: http://www.zcworld.net


Update: Fixed the table inside the UserCP If user has subscribed forums.


NOTE: My forum is using a template alteration where you can collapse the forum descriptions and the thread/reply count away and not be bothered by them so I really need an actual LIVE DEMO. Thank you.

KuRi 08-30-2005 02:05 AM

damn you beat me to it..... oh well... good work

Snort_2005 08-30-2005 02:09 AM

Quote:

Originally Posted by KuRi
damn you beat me to it..... oh well... good work

lol You was going to release something like this? @_@ Nice. :p

KuRi 08-30-2005 03:38 AM

yea i have done this for all versions of vbulletin since 2.1.something i think but i was thinking of releasing it for 350... but its ok yours is probably better

jugo 08-30-2005 01:40 PM

What I am thinking is that this should be an option in the vBOptions from the get go.

I think showing the moderatrors under the description makes more sense.

Also...on a side note, would it make sense (for template edits) to create a script which will pull the whole template into a variable then to an ereg_replace() on that variable for the parts that need to be replaced....HMMMM...

I think I'm gonna try something like this.

Snort_2005 08-30-2005 04:05 PM

Quote:

Originally Posted by jugo
What I am thinking is that this should be an option in the vBOptions from the get go.

Agreed. :)

Quote:

Originally Posted by jugo
I think showing the moderatrors under the description makes more sense.

That was how I had it when I was on IPB. :p

Quote:

Originally Posted by jugo
Also...on a side note, would it make sense (for template edits) to create a script which will pull the whole template into a variable then to an ereg_replace() on that variable for the parts that need to be replaced....HMMMM...

I think I'm gonna try something like this.

I'm not that good with PHP. :( That is why I just wrote the instructions like I did. :)

jugo 08-30-2005 06:16 PM

Quote:

Originally Posted by Snort_2005
I'm not that good with PHP. That is why I just wrote the instructions like I did.


I think everyone writes them out. I'm sure there's a reason it hasn't been done yet, i think that template edits should be a manual thing though, even if it's just for the educational factor.

Snort_2005 08-30-2005 10:14 PM

Quote:

Originally Posted by jugo
I think everyone writes them out. I'm sure there's a reason it hasn't been done yet, i think that template edits should be a manual thing though, even if it's just for the educational factor.

True.. Sometimes someone has heavily edited templates which may or may not even work with a php preg_replace function. I however, do prefer template edits to be a manual thing as if there is an error, I can fix it right away. :)

Snort_2005 09-15-2005 06:10 PM

UPDATE: I have noticed a small template error within the user control panel if the user had a subscribed forum. I have fixed that error. Just redownload the txt file and do steps 30+ if you have already installed this. :) Thanks

geoff4787 09-19-2005 12:00 AM

Worked great, thanks!


All times are GMT. The time now is 05:57 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.01254 seconds
  • Memory Usage 1,757KB
  • 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
  • (16)bbcode_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (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