PDA

View Full Version : Forum Display Enhancements - Move Sub-forums listing below threads... (vB4)


BirdOPrey5
09-24-2010, 10:00 PM
This is the vB4 version of my vB3 mod here:https://vborg.vbsupport.ru/showthread.php?t=249626

Demo: http://www.qapla.com/mods/forumdisplay.php/17-Premium-vBulletin-Modifications?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 (https://vborg.vbsupport.ru/showthread.php?p=2428475#post2428475) for alternate instructions.

In your FORUMDISPLAY template find the 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>


And "CUT" it to your clipboard... (Copy it and delete it but save a copy)

Now find:

<div class="threadpagenav">
{vb:raw pagenav}
{vb:raw forumjump}
</div>
</div>

And below that PASTE the code you cut above...

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. :)

Goonie
09-25-2010, 05:35 PM
Nice one.

Tony_FPM
09-26-2010, 08:33 AM
Installed!

But my post a new thread button is standing in the sub-forum (title) text.
How can i change this ?

BirdOPrey5
09-26-2010, 11:04 AM
Installed!

But my post a new thread button is standing in the sub-forum (title) text.
How can i change this ?

Did you fix this because when I go to your site it looks fine to me? Screen shot attached...

If not please give me a link to where the problem is happening.

VonDoom
09-26-2010, 11:52 AM
Installed!

But my post a new thread button is standing in the sub-forum (title) text.
How can i change this ?

That is a free bug courtesy of vBulletin.. Ive seen it on many vB4 forums none are using this hack..

AttalaEA
07-21-2011, 11:22 AM
Hello,

Please I have a question is this MOD works for vBulletin 4.1.4

Thanks

BirdOPrey5
07-21-2011, 11:37 AM
It should.

If the code in the directions can be found, it will work.

Randomm
07-22-2011, 07:34 PM
This was much needed. Thanks!
Installed, rated, and nominated

Question
When in the forumbit as shown in your screenshot, the sub-forums are arranged vertically in one column
Is there a way to arrange sub-forums (5+ subforums) horizontally and be able to decide how many column you want?
Is there a mod for this? I have 10, 15, 20+ subforums under one category and it's hard for me and my members to keep scrolling just to find a specific sub-forum...

BirdOPrey5
07-22-2011, 09:38 PM
Thanks.

I don't know the answer to your question, I know it's not possible without a mod. I know there were mods to do it on VB 3.x, but I don't know if anyone ever made one for VB 4. Have you tried the search?

Randomm
07-23-2011, 03:47 AM
Thanks.

I don't know the answer to your question, I know it's not possible without a mod. I know there were mods to do it on VB 3.x, but I don't know if anyone ever made one for VB 4. Have you tried the search?

yeah many times. I do for the most part search first before I ask
so nothing yet huh? ohh well I'll just wait

BirdOPrey5
07-24-2011, 12:39 PM
Have you tried VSa Subforum Manager - https://vborg.vbsupport.ru/showthread.php?t=236960 ?

Randomm
07-24-2011, 11:32 PM
Have you tried VSa Subforum Manager - https://vborg.vbsupport.ru/showthread.php?t=236960 ?

I have and I believe I either have that installed or something similar. But that only arranges the subforums in forumhome.

spencerp
09-22-2011, 10:08 PM
Thank you for this article, I've been looking for this!! :) :D Question though, is there away to prevent certain usergroups from posting new threads in certain main forum areas, whilst still allowing only staff usergroups to post? So those forum areas don't have to be turned off, via admincp? I was thinking of something like...

<vb:if condition="$show['guest']">
Show this to only guest.

<vb:elseif condition="is_member_of($bbuserinfo, 5,6)" />
Show this to user group 5 and 6 which is mods and admins

<vb:else />
Show this to all registered users

</vb:if>

But have it like: IF staff usergroup(5,6,7) allow posting in forums(15,16,7) deny any regular usergroups (1,2,3,4) posting in (15,16,17). Then all other forums will be allowed as normal for all usergroups... Really, it's just mainly the main forums containing sub forums. And to only allow the staff to be able to post new "rules/stickies" in those forums at the top. Without having to shut off those main forum areas from regular users posting new threads... I rather not have to turn off those areas and then turn them back on again later, if a staff needs to post new rules there or whatever... Is this possible? Thanks

Edit: I guess I could just change the forum permissions on each usergroup, denying them the ability to post in those forums lmfao... *slaps forehead* LOL! I guess I just wanted to play with code hahaha... :P Nah, I just wanted to not have to change so many permissions, although it's probably the easiest route...

BirdOPrey5
09-23-2011, 11:08 AM
Thank you for this article, I've been looking for this!! :) :D Question though, is there away to prevent certain usergroups from posting new threads in certain main forum areas, whilst still allowing only staff usergroups to post? So those forum areas don't have to be turned off, via admincp? I was thinking of something like...


Your question has nothing to do with moving sub-forums below thread listings. Please make your own thread in an appropriate section, perhaps VB4 General Discussion.

spencerp
09-23-2011, 11:22 AM
Your question has nothing to do with moving sub-forums below thread listings. Please make your own thread in an appropriate section, perhaps VB4 General Discussion.

my bad, since you're mod can you just break my post from your precious thread into general discussion? geesh... someone woke up on wrong side of bed today, that or didnt get nookie yet... LOL!! not sure what some peoples issues are, they so damn cocky and pissy with people.. its bs...

BirdOPrey5
09-23-2011, 11:34 AM
No I won't move your post. I also suggest an attitude change.

spencerp
09-23-2011, 11:36 AM
i wasn't having an attitude tho! i was being nice in the thread... you're the one that gave the attitude... LOL! ya get what ya give...i was merely asking for that coding help, because it was pertaining to your modification... but later realized, I could probably just do it with forum permissions anyway based on usergroups... i didn't have an attitude originally... its just lately, everyone just seems to be cocky. and it's frustrating.

BirdOPrey5
09-23-2011, 11:40 AM
You posted a question that has absolutely nothing to do with my mod. Nothing at all- Not even a little bit. I simply asked you post your question in an appropriate location- I didn't give any attitude.

Please just stop posting in my thread unless it has to do with this mod, thanks.

SpikedRocker
11-29-2011, 05:12 PM
Question:

In my template it looks like this:
<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?

BirdOPrey5
11-30-2011, 06:14 PM
I don't know how your custom style should work so unfortunately I don't have any suggestions.

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.

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:


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


VB4 conditionals just have vb: added before the if:



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


That's the only change you make.

flash84
03-05-2013, 12:50 PM
Question:

In my template it looks like this:
<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/vbulletin-4/vbulletin-4-questions-problems-and-troubleshooting/407231-reordering-a-forum-with-threads-first-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:

{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:


<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:


<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
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 !