vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Forum collasped on default? (https://vborg.vbsupport.ru/showthread.php?t=96520)

Boofo 09-18-2005 08:56 PM

Forum collasped on default?
 
Is there a way to have a forum be collasped as default instead of not collasped?

Marco van Herwaarden 09-19-2005 03:56 AM

Better not. Users who don't have JavaScript enabled, would not be able to open the forums.

Boofo 09-19-2005 04:58 AM

I don't want to use it on any forums. I have a hack I am making I was to use it on for me. I just want it to work like the forums do. ;)

Marco van Herwaarden 09-19-2005 09:13 AM

Then just edit the template to make it collapsed by deafult.

Boofo 09-19-2005 04:42 PM

If I knew how to do that I would have already done it by now and not needed this thread. LOL

Marco van Herwaarden 09-19-2005 06:17 PM

In hook: forumbit_display
Put the following code, and play a bit with togling the collapse values.

PHP Code:

 global $depth$tempext$collapseobj_forumid $collapseimg_forumid$show;
            if (
$depth == AND $tempext == '_nopost')
            {
                global 
$vbcollapse;
                
$collapseobj_forumid =& $vbcollapse["collapseobj_forumbit_$forumid"];
                
$collapseimg_forumid =& $vbcollapse["collapseimg_forumbit_$forumid"];
                
$show['collapsebutton'] = true;
            } 


Boofo 09-19-2005 06:31 PM

That won't do me any good, but thank you, anyway. ;)

I'm trying to make a box collaspe that is not on the forums lsiting. That's why I was hoping to be able to do it in the template, but I tried for hours to get the collaspe code in the template to work right for it and had no luck. ;)

Marco van Herwaarden 09-19-2005 06:34 PM

It is very easy, but you must use the correct prefixes for the collapsable ID and image.

Marco van Herwaarden 09-19-2005 06:34 PM

PS You asked how to make a forum collapsed by default.

Boofo 09-19-2005 09:15 PM

Quote:

Originally Posted by MarcoH64
PS You asked how to make a forum collapsed by default.

Yes and in my second post I explained what I was asking for. I figured I could follow whatever way they did it for forums and use it elsewhere. ;)


All times are GMT. The time now is 09:17 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.00993 seconds
  • Memory Usage 1,731KB
  • 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_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete