vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Need a little assistance (https://vborg.vbsupport.ru/showthread.php?t=96778)

bhxtyrant 09-23-2005 02:44 PM

Need a little assistance
 
Hey guys,

I am having a bit of a problem which i hope someone can help me with.I created a main catagory with multiple sub catagories.Now everything works fine but i want the "newpost/no newpost" icon to show up beside it like it would on any other forum without sub catagories.See the below screenshot.

http://img347.imageshack.us/img347/4...blem6qc.th.jpg

Now the only way i have managed to solve this is by using the "Act as Forum" option but this is not acceptable because it allows members to post in the parent catagory instead of limiting them to the sub catagories inside it.

I am pretty sure solving this will require modifying vB's code so if someone could tell me how to do this i'd appreciate it :)

Andreas 09-23-2005 02:46 PM

Act as Forum = Yes
Open for new Posts = No
?

bhxtyrant 09-23-2005 03:09 PM

Quote:

Originally Posted by KirbyDE
Act as Forum = Yes
Open for new Posts = No
?

When you do it this way in your parent forum you see this

http://img329.imageshack.us/img329/4...lem23ke.th.jpg

which is rather annoying and looks un professional.So modding the code is our best option and should be rather simple most likely.Thanks for your reply.

Andreas 09-23-2005 03:12 PM

Actually it's not that simple.

Edit: Hmm ... maybe it is.
*checking*

Andreas 09-23-2005 03:25 PM

Is that how you want it?

http://kirbydemos.ath.cx/forum/index.php
http://kirbydemos.ath.cx/forum/forumdisplay.php?f=3

bhxtyrant 09-23-2005 03:28 PM

Quote:

Originally Posted by KirbyDE

Yep thats exactly right :D

Andreas 09-23-2005 03:34 PM

1 Attachment(s)
Use the attached Plugin.

bhxtyrant 09-23-2005 03:36 PM

Is this for 3.5.0 only?or 3.0.7?I use 3.0.7 at the moment so just want to be sure.And thanks for the help :)

Andreas 09-23-2005 03:47 PM

3.5, as you posted in the 3.5 Forums :)

For 3.0 you can apply the following file edit:

In index.php

FIND
PHP Code:

// #######################################################################
// ######################## START MAIN SCRIPT ############################
// ####################################################################### 

BELOW that ADD
PHP Code:

$templatecache['forumhome_forumbit_level2_nopost'] =& $templatecache['forumhome_forumbit_level2_post']; 


bhxtyrant 09-23-2005 03:48 PM

omg lol i'm sorry i thought i had clicked 3.0 i didn't even notice :S but i will save that plugin as i plan to upgrade to 3.5.0 as soon as it reaches final.Thanks again


All times are GMT. The time now is 08:46 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.01118 seconds
  • Memory Usage 1,737KB
  • 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
  • (2)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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