Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Move Sub-forums listing below threads... (vB4) Details »»
Move Sub-forums listing below threads... (vB4)
Version: 1.00, by BirdOPrey5 (Senior Member) BirdOPrey5 is offline
Developer Last Online: Aug 2023 Show Printable Version Email this Page

Category: Forum Display Enhancements - Version: 4.0.x Rating:
Released: 09-24-2010 Last Update: Never Installs: 34
Supported Template Edits
Re-useable Code Translations  

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>
And "CUT" it to your clipboard... (Copy it and delete it but save a copy)

Now find:

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

Download Now

File Type: txt subforum_display_below_threadsv4.txt (1.2 KB, 71 views)

Screenshots

File Type: jpg ss_subforums_below_v4.jpg (105.4 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
spencerp

Comments
  #12  
Old 07-24-2011, 12:39 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Have you tried VSa Subforum Manager - https://vborg.vbsupport.ru/showthread.php?t=236960 ?
Reply With Quote
  #13  
Old 07-24-2011, 11:32 PM
Randomm Randomm is offline
 
Join Date: Jul 2010
Posts: 125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BirdOPrey5 View Post
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.
Reply With Quote
  #14  
Old 09-22-2011, 10:08 PM
spencerp spencerp is offline
 
Join Date: Dec 2009
Posts: 52
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>
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...
Reply With Quote
  #15  
Old 09-23-2011, 11:08 AM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by spencerp View Post
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...
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.
Reply With Quote
  #16  
Old 09-23-2011, 11:22 AM
spencerp spencerp is offline
 
Join Date: Dec 2009
Posts: 52
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BirdOPrey5 View Post
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...
Reply With Quote
  #17  
Old 09-23-2011, 11:34 AM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No I won't move your post. I also suggest an attitude change.
Reply With Quote
  #18  
Old 09-23-2011, 11:36 AM
spencerp spencerp is offline
 
Join Date: Dec 2009
Posts: 52
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #19  
Old 09-23-2011, 11:40 AM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #20  
Old 11-29-2011, 05:12 PM
SpikedRocker SpikedRocker is offline
 
Join Date: Jul 2009
Posts: 95
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #21  
Old 11-30-2011, 06:14 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't know how your custom style should work so unfortunately I don't have any suggestions.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:30 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07157 seconds
  • Memory Usage 2,349KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (1)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (2)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete