View Full Version : Hide post new thread button if forum is a category?
Anyoldname
01-11-2012, 07:25 PM
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, 07: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, 08:21 PM
Ok thank you, perhaps a good idea for a plugin? :)
betts02
01-11-2012, 08: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, 08:30 PM
Ah ok, I though that would have prevented posts being made in any child forums.. Thanks :)
betts02
01-11-2012, 08:45 PM
No that just stops posts being made in THAT forum
LifesGreatestGift
01-11-2012, 09: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, 09:10 PM
I have it set this way on my forums and it works fine mate
Anyoldname
01-11-2012, 09: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, 09:17 PM
Never had the setup to notice the change I guess :) good to know. :)
Anyoldname
01-11-2012, 09:22 PM
This is my setup (http://www.occupyforum.org.uk/forum.php), see the working groups forum.
It would be nice if this could be changed at some point so that forums as categories can still display last post links. :)
betts02
01-11-2012, 09:27 PM
Cant see why they are not showing as they do on mine
Wonder if you have the Sub-Forums set up correct ?
http://img560.imageshack.us/img560/8397/awaw.png (http://imageshack.us/photo/my-images/560/awaw.png/)
Uploaded with ImageShack.us (http://imageshack.us)
http://img20.imageshack.us/img20/7672/awawawaw.png (http://imageshack.us/photo/my-images/20/awawawaw.png/)
Uploaded with ImageShack.us (http://imageshack.us)
Anyoldname
01-11-2012, 09:39 PM
Yes, mine is set up just like that. If I click onto the parent forum/category, it lists the child forums & last post links display. However, when set to forum is open - Yes, the last post from any of the child forums also shows up on index..
http://img62.imageshack.us/img62/7751/forumcategory.gif
LifesGreatestGift
01-11-2012, 09:41 PM
Yeah, not displaying due to it being a 'category'.
Doubt this mod would be of any help
https://vborg.vbsupport.ru/showthread.php?t=239944&highlight=last+post
--------------- Added 1326321927 at 1326321927 ---------------
What if you got rid of the 'Working Groups Forum' (ID 5) Category and just made the 'Working Groups' (ID 18) the category?
--------------- Added 1326321958 at 1326321958 ---------------
It kinda looks like a category inside of a category.
betts02
01-11-2012, 09:46 PM
My first image is my forumhome - http://www.nextgenerationgamers.co.uk/forums/forum.php
As you can see it works fine thats why i asked if you had set the forums - subforums up correctly
Anyoldname
01-11-2012, 09:47 PM
No lol, but I'm gonna install that mod anyway cos it's cool!
Maybe I'll ask there if the author can add this functionality since it seems more appropriate to that mod.
Thanks :)
--------------- Added 1326322355 at 1326322355 ---------------
My first image is my forumhome - http://www.nextgenerationgamers.co.uk/forums/forum.php
As you can see it works fine thats why i asked if you had set the forums - subforums up correctly
Ah I see, looks like I got my sub-forums set up wrong then, thanks.
The design of your site is fantastic btw!
betts02
01-11-2012, 10:00 PM
WORKING GROUP FORUMS
Act as Forum
(Will act as category if no) - NO
Forum is Active
(Will not appear if set to no, but remains accessible if the forum's URL is known) - YES
Forum is Open
(Set this to 'No' to prevent any new posts being made in this forum) - NO
EACH SUB-FORUM
Act as Forum
(Will act as category if no) - YES
Forum is Active
(Will not appear if set to no, but remains accessible if the forum's URL is known) - YES
Forum is Open
(Set this to 'No' to prevent any new posts being made in this forum) - YES
Try the above mate and see if that works
LifesGreatestGift
01-11-2012, 10:04 PM
yeah but the current stucture is
Working Group Forums - CAT
--Working Groups - CAT
----SUB
----SUB
----SUB
I think that there being 2 categories is the issue.
Anyoldname
01-12-2012, 09:48 AM
Hmm, betts2 seems to be able to go from
CAT
--Sub Forum
How is that done?
betts02
01-12-2012, 06:13 PM
Try it like i posted mate
Anyoldname
01-12-2012, 07:49 PM
Set up exactly as you suggested, but still no last post shows..
betts02
01-12-2012, 08:22 PM
STEP/1
WORKING GROUP FORUMS
Parent Forum - No One
Act as Forum
(Will act as category if no) - NO
Forum is Active
(Will not appear if set to no, but remains accessible if the forum's URL is known) - YES
Forum is Open
(Set this to 'No' to prevent any new posts being made in this forum) - NO
STEP/2
WORKING GROUPS
Parent Forum - WORKING GROUP FORUMS
Act as Forum
(Will act as category if no) - YES
Forum is Active
(Will not appear if set to no, but remains accessible if the forum's URL is known) - YES
Forum is Open
(Set this to 'No' to prevent any new posts being made in this forum) - NO
STEP/3
GENERAL WORKING GROUPS DISCUSSION
Parent Forum - WORKING GROUPS
Act as Forum
(Will act as category if no) - YES
Forum is Active
(Will not appear if set to no, but remains accessible if the forum's URL is known)
Forum is Open
(Set this to 'No' to prevent any new posts being made in this forum)
If that works then repeat step 3 for each sub-forum and let me know mate
Anyoldname
01-12-2012, 09:14 PM
Thank you thank you thank you!!
It was step 2, I had that set as a category..
:D
betts02
01-12-2012, 09:31 PM
Glad to help mate
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.