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

Anyoldname 01-11-2012 08:22 PM

This is my setup, 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 08: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

Uploaded with ImageShack.us


http://img20.imageshack.us/img20/7672/awawawaw.png

Uploaded with ImageShack.us

Anyoldname 01-11-2012 08: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 08:41 PM

Yeah, not displaying due to it being a 'category'.
Doubt this mod would be of any help
https://vborg.vbsupport.ru/showthrea...ight=last+post

--------------- Added [DATE]1326321927[/DATE] at [TIME]1326321927[/TIME] ---------------

What if you got rid of the 'Working Groups Forum' (ID 5) Category and just made the 'Working Groups' (ID 18) the category?

--------------- Added [DATE]1326321958[/DATE] at [TIME]1326321958[/TIME] ---------------

It kinda looks like a category inside of a category.

betts02 01-11-2012 08: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 08: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 [DATE]1326322355[/DATE] at [TIME]1326322355[/TIME] ---------------

Quote:

Originally Posted by betts02 (Post 2286731)
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 09: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 09: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 08:48 AM

Hmm, betts2 seems to be able to go from

CAT
--Sub Forum

How is that done?

betts02 01-12-2012 05:13 PM

Try it like i posted mate

Anyoldname 01-12-2012 06:49 PM

Set up exactly as you suggested, but still no last post shows..

betts02 01-12-2012 07: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 08:14 PM

Thank you thank you thank you!!
It was step 2, I had that set as a category..

:D

betts02 01-12-2012 08:31 PM

Glad to help mate


All times are GMT. The time now is 09:38 AM.

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.02003 seconds
  • Memory Usage 1,758KB
  • 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)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (24)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete