The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Move Sub-forums listing below threads... (vB4) Details »» | ||||||||||||||||||||||||||
Move Sub-forums listing below threads... (vB4)
Developer Last Online: Aug 2023
This is the vB4 version of my vB3 mod here:https://vborg.vbsupport.ru/showthread.php?t=249626
Demo: http://www.qapla.com/mods/forumdispl...ions?styleid=5 This is a simple template edit to move sub-forums display below the threads in a forum rather than on top like they are now. There are various reasons for this, all come down to personal preference. Personally if I have a lot of sub-forums I want users to be able to see the threads without needing to scroll down. NOTE - For VB 4.2.1 and any version where the code does not match below, see Post # 28 for alternate instructions. In your FORUMDISPLAY template find 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="forumlastpost">{vb:rawphrase last_post}</span> </h2> </div> <ol> {vb:raw forumbits} </ol> {vb:raw forumhome_markread_script} </div> </vb:if> Now find: Code:
<div class="threadpagenav"> {vb:raw pagenav} {vb:raw forumjump} </div> </div> And that's it, now your sub-forums will show under your threads. See the screen shot. Download the .txt file as a backup. Please Mark as Installed if you use this. Download Now
Screenshots
Show Your Support
|
Благодарность от: | ||
spencerp |
Comments |
#22
|
|||
|
|||
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.
|
Благодарность от: | ||
BirdOPrey5 |
#23
|
|||
|
|||
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:
Amogh |
#24
|
||||
|
||||
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> Code:
<vb:if condition="code..."> code </vb:if> |
#25
|
|||
|
|||
Quote:
http://www.vbulletin.com/forum/forum...then-subforum? |
#26
|
|||
|
|||
not working need to change according to 4.2.0
|
#27
|
||||
|
||||
Seems to be working fine on 4.2pl3
|
Благодарность от: | ||
BirdOPrey5 |
#28
|
|||
|
|||
Our template looks different.
I don't see this, for example, in the code you say to find: Code:
{vb:raw forumhome_markread_script} |
#29
|
||||
|
||||
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} </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> 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> 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 |
#30
|
|||
|
|||
Quote:
Now how can I get it so the Post New Thread and Moderation Tools buttons and pagination are below it? |
#31
|
||||
|
||||
works great on 4.2.6 php 7.2 and birds edit !
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|