vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Controlling the "Posting Rules" box (https://vborg.vbsupport.ru/showthread.php?t=89081)

mOdEtWo 05-04-2004 12:57 PM

Controlling the "Posting Rules" box
 
I'm minimizing my template to get rid of a lot of "stuff" and open space that really isn't needed. I want to display threads and posts (and some stats), and that's about it.

Now, the "Posting Rules" box is pretty high, and it's taking up the whole row by itself. I was thinking I could only remove it (do anyone really read it anyway?), but figured it could be better to leave it minimized as default.

So, instead of having to click on the "arrow" to minimize it, I want it to be like that as default - and instead I have to click on it to maximize it. I've been messing around in the forumrules template, but have yet to find a working solution.

Could someone kick me in the right direction, please?

Brad 05-04-2004 01:12 PM

Try changing:

HTML Code:

<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumrules')">
to

HTML Code:

<a style="float:$stylevar[right]" href="#top" onclick="return toggle_expand('forumrules')">

mOdEtWo 05-04-2004 04:21 PM

That didn't do anything else than destroying the possibility to minimize the box.

;)

Natch 05-04-2004 06:21 PM

You would need to do something in php_include I believe ...

Add:
PHP Code:

$vbcollapse[collapseimg_forumrules] = "collapsed";
$vbcollapse[collapseobj_forumrules] = "display:none;"

And you can do the same for any more you wanna be collapsed by default ... you could extrapolate it into walking over an array even aka

PHP Code:

$collapsed_objects_i_want = array("forumrules","other","object");
foreach(
$collapsed_objects_i_want as $objects_collapse){
$vbcollapse[collapseimg_$objects_collapse] = "collapsed";
$vbcollapse[collapseobj_$objects_collapse] = "display:none;";


or words to that effect ...


All times are GMT. The time now is 07:50 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.01029 seconds
  • Memory Usage 1,721KB
  • 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_html_printable
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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