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 |
#12
|
||||
|
||||
Have you tried VSa Subforum Manager - https://vborg.vbsupport.ru/showthread.php?t=236960 ?
|
#13
|
|||
|
|||
Quote:
|
#14
|
|||
|
|||
Thank you for this article, I've been looking for this!! 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...
Code:
<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> 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... |
#15
|
||||
|
||||
Quote:
|
#16
|
|||
|
|||
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...
|
#17
|
||||
|
||||
No I won't move your post. I also suggest an attitude change.
|
#18
|
|||
|
|||
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.
|
#19
|
||||
|
||||
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. |
#20
|
|||
|
|||
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} </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> 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? |
#21
|
||||
|
||||
I don't know how your custom style should work so unfortunately I don't have any suggestions.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|