vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   ExpandContract Hack Help (https://vborg.vbsupport.ru/showthread.php?t=44266)

Littlebit 10-03-2002 11:39 PM

ExpandContract Hack Help
 
I messed something up and am getting a parse error after installing the expand contract forums hack. I've looked everywhere for an accidental extra space or something and can't seem to find where I screwed up. Will someone who's familiar with this hack please take a look at my index.php for me? :paranoid:

Littlebit 10-03-2002 11:41 PM

Oops...it's officially called this hack:
Collapsable forums on forum home

Link14716 10-04-2002 12:10 AM

You're not going to get much help. To be helped, you need to include the error message and 5 lines before and 5 lines after the line that the error was on.

Littlebit 10-04-2002 12:32 AM

Sorry about that...here is the error:

Parse error: parse error, unexpected '{' in /home/differen/public_html/board/index.php on line 340

here is the code above and below that line on index.php:

if ($forum['cancontainthreads']==1) {
$tempext = '_post';
} else {
$tempext = '_nopost';
}

// 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

Littlebit 10-04-2002 12:34 AM

for reference this is line 340 on my index.php:

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

Littlebit 10-04-2002 12:45 AM

I'm scared to remove the { on line 340...thinking I'll just make the real problem worse. Any help would be great. My index is is inexcessible until I find my ++++ up.

Littlebit 10-04-2002 12:46 AM

:speechless: ...I cussed.

That was too many posts at once...sorry about that.

I tried adding what you said and am still getting the same error for the same line 340.
:(

g-force2k2 10-04-2002 12:57 AM

Littlebit: find this code:

PHP Code:

// expand collapse hack
if ($BrowserDOM==True) {
if ((!isset(
$z)) or ($depth==1)) {
$z=0;
} else {
$z++;


under it add:

}

see if that fixes the problem ;)

and please try not to multiple post so much... when im online i will help as many as i can... thanks in advance...

g-force2k2

Littlebit 10-04-2002 01:41 AM

no luck...any thing else you think I should try before I un-install? Shoot this is what I get for trying to go fast. :/
Thank you for being such a quick support team...really. :)

g-force2k2 10-04-2002 02:03 AM

litlebit pm me the file... and i'll do a comparison and report any ideas for you regards...

g-force2k2


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