Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
  #1  
Old 11-13-2004, 10:09 PM
we_are_borg we_are_borg is offline
 
Join Date: Jul 2004
Posts: 108
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Category, subforum category

I have setup a forum but i have one thing i would like to see changed.

I make a category in that category comes a forum, this is all normal. But now i do a extra step namly in de forum i create sub-forums. This works great but the forum i created there you can post, now i tell the system no posting allowed that works great to but what i would like to see is that there is nothing there.

Don't know what i mean take a look here http://www.breedbandforum.com/forum/
Access the forum "Glasvezel Providers"

Now you see the sub-forums;
Concepts ICT Fiber & Wireless BV
Ons Net Nuenen

but beneth that there is
Threads in Forum: Glasvezel Providers
I wish to tell the system that on one forum it's not nesseccery and on the other it's needed.

Is there so sort of hack, if not can some one make it.
Reply With Quote
  #2  
Old 11-13-2004, 10:46 PM
Ianomed's Avatar
Ianomed Ianomed is offline
 
Join Date: Oct 2004
Location: The Netherlands
Posts: 112
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Am I to understand that for forums that you set to 'Forum is Open' = No, you don't want the thread list appearing? Or would this be only in this specific instance, where 'Forum is Open' = No on other forums would behave as they do now.

If I'm correct in the former, then this is what you want:
Edit the template called 'FORUMDISPLAY', find:
PHP Code:
<if condition="$show['threadslist']">
<!-- 
threads list  -->

<!-- 
controls above thread list -->
<
table cellpadding="0" cellspacing="0" border="0" width="100%" 
above add:
PHP Code:
<if condition="$show['newthreadlink']"
find, near the bottom:
PHP Code:
<!-- forum rules forum jump -->
<
table cellpadding="0" cellspacing="0" border="0" width="100%" align="center"
and above add:
PHP Code:
</if> 
save template. From then on forums that are closed don't show the thread list.
Reply With Quote
  #3  
Old 11-13-2004, 11:10 PM
Ianomed's Avatar
Ianomed Ianomed is offline
 
Join Date: Oct 2004
Location: The Netherlands
Posts: 112
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Attached: Screenshot of the before and after applying this hack
Attached Images
File Type: png closed_forum.png (34.0 KB, 0 views)
Reply With Quote
  #4  
Old 11-14-2004, 11:26 AM
we_are_borg we_are_borg is offline
 
Join Date: Jul 2004
Posts: 108
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Ianomed
Attached: Screenshot of the before and after applying this hack
It works great, this is eactly what i meant.

thanks for the hack Ianomed.

btw. The StarTrek forum looks great.
Reply With Quote
  #5  
Old 11-14-2004, 11:32 AM
Ianomed's Avatar
Ianomed Ianomed is offline
 
Join Date: Oct 2004
Location: The Netherlands
Posts: 112
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the compliment, and my pleasure.

n.b. Je breedband forum is best interessant, kan nog wat worden
Reply With Quote
  #6  
Old 11-14-2004, 11:54 AM
Ianomed's Avatar
Ianomed Ianomed is offline
 
Join Date: Oct 2004
Location: The Netherlands
Posts: 112
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In case you were wondering, you can use that conditional (<if condition="$show['newthreadlink']">) to make the posting rules disappear, yet keep the jump box.

What you'd do is move the closing </if> a bit lower, until both rules and jumpbox are removed. Then below add the negative of this conditional (<if condition="!$show['newthreadlink']">), jumpbox markup, and close </if>

If that doesn't make sense let me know and I'll post the revised code
Reply With Quote
Reply

Thread Tools
Display Modes

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 02:16 AM.


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.06730 seconds
  • Memory Usage 2,234KB
  • Queries Executed 14 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (4)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (1)postbit_attachment
  • (6)postbit_onlinestatus
  • (6)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_postinfo_query
  • fetch_postinfo
  • 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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_attachment
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete