vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Forum Display Enhancements - Move Sub-forums listing below threads... (vB4) (https://vborg.vbsupport.ru/showthread.php?t=251127)

EconomicVoice 01-25-2012 09:38 PM

This is a nice simple Mod which I have been looking for for some time now (I had considered just 'going for it' myself but lacked the courage/knowledge). Thanks.

amogh 02-20-2013 10:40 AM

This is what I was looking for BUT can I do the following?

- I want to use this mod only for few forums and not all the forums. Can this be done in VB4?

I know it can done in your VB3 hack.

Quote:

The Second Method:

If you want sub-forums to stay on top in some forums but below threads in others than do the following:
Thanks,

Amogh

BirdOPrey5 03-03-2013 11:34 AM

Basically like with VB3 you can use template conditionals instead.

Rather than delete the code from the top just copy it to the bottom location.

Now you need to surround both in template conditionals, just like VB 3.x

However a VB 3 conditional looks like:

Code:

<if condition="code...">
code
</if>

VB4 conditionals just have vb: added before the if:


Code:

<vb:if condition="code...">
code
</vb:if>

That's the only change you make.

flash84 03-05-2013 12:50 PM

Quote:

Originally Posted by SpikedRocker (Post 2273090)
Question:

In my template it looks like this:
Code:

<vb:if condition="$forumbits">
{vb:raw template_hook.forumdisplay_above_subforums}
<div id="forumbits" class="forumbits">
        <div class="forumhead">
                <h2>
                        <span class="forumtitle">{vb:rawphrase subforums}</span>
                        <span class="forumthreadpost">{vb:rawphrase threads_posts}&nbsp;</span>
                        <span class="forumlastpost">{vb:rawphrase last_post}</span>
                </h2>
        </div>
        <ol>
                {vb:raw forumbits}
        </ol>
</div>
{vb:raw template_hook.forumdisplay_below_subforums}
</vb:if>

This is a customized forum style, but it appears they've linked the display for above and below subforum in the same $forumbits condition?

When I made the changes listed here, all it did for me was move the forum title to where the thread is, and did not move the threads at all.

I am assuming the way this style is coded I cannot do this because I am moving both parts instead of the sub-forums?

My code looks the same as yours. I am running vbulletin 4.2. Here are the steps I found to move the subforums below the threads in vb4.2:

http://www.vbulletin.com/forum/forum...then-subforum?

vimarc 03-08-2013 04:12 PM

not working need to change according to 4.2.0

Toorak Times 03-12-2013 01:34 PM

Seems to be working fine on 4.2pl3

Amaury 06-16-2013 12:49 AM

Our template looks different.

I don't see this, for example, in the code you say to find:

Code:

{vb:raw forumhome_markread_script}

BirdOPrey5 06-16-2013 12:47 PM

The code seems to have changed in the template at some point.

In 4.2.1 look for the code:

Code:

<vb:if condition="$forumbits">
{vb:raw template_hook.forumdisplay_above_subforums}
<div id="forumbits" class="forumbits">
        <div class="forumhead">
                <h2>
                        <span class="forumtitle">{vb:rawphrase subforums}</span>
                        <span class="forumthreadpost">{vb:rawphrase threads_posts}&nbsp;</span>
                        <span class="forumlastpost">{vb:rawphrase last_post}</span>
                </h2>
        </div>
        <ol>
                {vb:raw forumbits}
        </ol>
</div>
{vb:raw template_hook.forumdisplay_below_subforums}
</vb:if>

CUT the code above (copy to clipboard then delete from the template)

The FIND this code:

Code:

        <div class="threadpagenav<vb:if condition="!$pagenav AND !$forumjump"> nopagenav</vb:if>">
                {vb:raw pagenav}
                {vb:raw forumjump}
        </div>
</div>

and PASTE the code below that.

That should so the same thing in 4.2.1.

If any problems simple undo or "REVERT" the template to get back the VB default template.

Amaury 06-17-2013 03:03 AM

Quote:

Originally Posted by BirdOPrey5 (Post 2428475)
The code seems to have changed in the template at some point.

Thank you.

Now how can I get it so the Post New Thread and Moderation Tools buttons and pagination are below it?

oldfan 04-16-2023 02:43 AM

works great on 4.2.6 php 7.2 and birds edit !


All times are GMT. The time now is 07: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.01090 seconds
  • Memory Usage 1,744KB
  • 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
  • (6)bbcode_code_printable
  • (3)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