vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Collapsable forums on forum home (https://vborg.vbsupport.ru/showthread.php?t=33961)

Zero Complex 02-10-2003 04:16 AM

would be nice if it memorized what forums you had minimized and all. So if you never really read those forums on a certain site, it'd just automatically minizmize them each visit or somethin =\

Erwin 02-10-2003 05:37 AM

Quote:

Originally posted by Zero Complex
would be nice if it memorized what forums you had minimized and all. So if you never really read those forums on a certain site, it'd just automatically minizmize them each visit or somethin =\
Uh - it does memorize which forums you have minimized and which one you have maximized. You just have to be a registered member of the site. The settings for each member is saved in the database. Guests do not have this capacity because of this.

Zero Complex 02-12-2003 10:14 PM

i haven't installed it, just didnt read that in the features

dabean 02-13-2003 02:24 AM

Quote:

Originally posted by Zero Complex
i haven't installed it, just didnt read that in the features
Quoting the first post on the thread and the hack database entry...
Quote:

Each users preference is saved to the database

Serge 02-16-2003 04:55 PM

Ok I tried to install this hack and I got this error

Quote:

Parse error: parse error in /home/surrix/public_html/forums/index.php on line 383
Could someone please help me out as to where I messed it up?

Serge 02-16-2003 06:41 PM

After further invistation my index.php is not corrupted and it seems to be having problems with this block of code.

PHP Code:

// expand collapse hack
if ($BrowserDOM==True) {
__if ((!isset($z)) or ($depth==1)) {
____$z=0;
__} else {
____$z++;
__}
__// get state of collapse
__if ($forum[parentid]==-1) {
___$collapsedstate=$forum['collapsed'];
__}
__// auto collapse forums based on forum setting
__if ($collapsedstate==1) {
___$fhomeexpandstyle="style=\"visibility:hidden; display:none;\"";
__} else {
___$fhomeexpandstyle="";
__}
__// auto collapse forums for user
__if (getViewSetting($forum['parentid'])==1) {
___$fhomeexpandstyle="style=\"visibility:hidden; display:none;\"";
__} elseif (getViewSetting($forum['parentid'])==2) {
___$fhomeexpandstyle="";
__}
__// display correct item (this can not be simplified into the block above
__// due to CSS2 defining special display values for tables, eg display:table-row;)
if ($collapsedstate==1) {
___$divexpand "display: inline;visibility: visible;";
___$divcollapse "display: none;visibility: hidden;";
} else {
___$divexpand "display: none;visibility: hidden;";
___$divcollapse "display: inline;visibility: visible;";
}
if (
getViewSetting($forum['forumid'])==1) {
___$divexpand "display: inline;visibility: visible;";
___$divcollapse "display: none;visibility: hidden;";
__} elseif (getViewSetting($forum['forumid'])==2) {
___$divexpand "display: none;visibility: hidden;";
___$divcollapse "display: inline;visibility: visible;";
__}
__eval("\$expandcontract = \"".gettemplate("forumhome_expandcontract")."\";");
}
// end expand collapse hack 

The line it says it has a problem with is
PHP Code:

if ((!isset($z)) or ($depth==1)) { 

I just recentally upgraded to version 2.3.0 of vbulletin but with what they said they changed this shouldn't be the problem.

Sliderx 03-09-2003 04:28 AM

hello a have instal that hack but i haven't all the line what i want to be collapse
you can see my test board here

and if in the anwser of dabean i join in a txt a copy of my templates :

forumhome_forumbit_level1_nopost
forumhome_forumbit_level1_post
forumhome_forumbit_level2_nopost
forumhome_forumbit_level2_post


thx for the futur answer of my problem

Baptizer 03-15-2003 05:09 PM

How do I uninstall this? For example, I have backups of the two php files and I can remove the addded templates(and remove the edits to the other templatews), however, because I ran the cx_install.php file to add to my database, do i need to run a command to remove the stuff that was added?

Edit: Also, does this add any queries? Does it have the potential to slow down the loading times at all? just curious.

ArN 04-26-2003 08:11 PM

great hack...works perfectly!

XP Kid 86 04-28-2003 11:37 PM

ok well first off .. the hack works ....

but

Problem 1 .. (view image) .. the whole bar is clickable .. i want just the text to be can i fix that?

Problem 2 .. (view image) you can't see the thigny cuz its well black and so is the background .. is that fixable ...

I think thtas alll the problems


All times are GMT. The time now is 07:40 PM.

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.01577 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
  • (2)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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