vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Hide post new thread button if forum is a category? (https://vborg.vbsupport.ru/showthread.php?t=276812)

Anyoldname 01-11-2012 06:25 PM

Hide post new thread button if forum is a category?
 
I just set up a new category, under which there is a forum (which has been set as a category) that has sub-forums. The post new thred button still appears in the forum which has been set to be a category.

Is there any way to hide the post new thread button when a forum has been set to category for the forum in red?

CATEGORY >> FORUM >> SUB-FORUMS

LifesGreatestGift 01-11-2012 06:58 PM

Go into FORUMDISPLAY and wrap the 'post new thread' button in a != conditional with the category id(s)

list of conditionals can be found in the vB4 articles.

Anyoldname 01-11-2012 07:21 PM

Ok thank you, perhaps a good idea for a plugin? :)

betts02 01-11-2012 07:25 PM

There is an option when creating each forum :

Forum is Open
(Set this to 'No' to prevent any new posts being made in this forum) Yes/No

Anyoldname 01-11-2012 07:30 PM

Ah ok, I though that would have prevented posts being made in any child forums.. Thanks :)

betts02 01-11-2012 07:45 PM

No that just stops posts being made in THAT forum

LifesGreatestGift 01-11-2012 08:06 PM

pretty sure that even setting it from posts to be made, the button is still visible. (unless they changed that recently).

I know in the past (sometime around 4.0.x) I had to wrap the button around a conditional for aesthetic purposes due to this reason.

betts02 01-11-2012 08:10 PM

I have it set this way on my forums and it works fine mate

Anyoldname 01-11-2012 08:10 PM

I just changed "Forum is open" to no. The post new thread button doesn't appear now and people can still post in the child forums.
However, the downside is that the last post link disappears..

LifesGreatestGift 01-11-2012 08:17 PM

Never had the setup to notice the change I guess :) good to know. :)


All times are GMT. The time now is 04:06 PM.

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.02490 seconds
  • Memory Usage 1,724KB
  • 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
  • (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