Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
ExpandContract Hack Help Details »»
ExpandContract Hack Help
Version: , by Littlebit Littlebit is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 10-03-2002 Last Update: Never Installs: 0
 
No support by the author.

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? aranoid:

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 10-03-2002, 11:41 PM
Littlebit's Avatar
Littlebit Littlebit is offline
 
Join Date: Nov 2001
Posts: 313
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oops...it's officially called this hack:
Collapsable forums on forum home
Reply With Quote
  #3  
Old 10-04-2002, 12:10 AM
Link14716's Avatar
Link14716 Link14716 is offline
 
Join Date: Jun 2002
Location: Georgia, USA
Posts: 2,519
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #4  
Old 10-04-2002, 12:32 AM
Littlebit's Avatar
Littlebit Littlebit is offline
 
Join Date: Nov 2001
Posts: 313
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #5  
Old 10-04-2002, 12:34 AM
Littlebit's Avatar
Littlebit Littlebit is offline
 
Join Date: Nov 2001
Posts: 313
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

if ((!isset($z)) or ($depth==1)) {
Reply With Quote
  #6  
Old 10-04-2002, 12:45 AM
Littlebit's Avatar
Littlebit Littlebit is offline
 
Join Date: Nov 2001
Posts: 313
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #7  
Old 10-04-2002, 12:46 AM
Littlebit's Avatar
Littlebit Littlebit is offline
 
Join Date: Nov 2001
Posts: 313
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

: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.
Reply With Quote
  #8  
Old 10-04-2002, 12:57 AM
g-force2k2 g-force2k2 is offline
 
Join Date: Mar 2002
Location: Everywhere you wanna be..
Posts: 1,608
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #9  
Old 10-04-2002, 01:41 AM
Littlebit's Avatar
Littlebit Littlebit is offline
 
Join Date: Nov 2001
Posts: 313
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #10  
Old 10-04-2002, 02:03 AM
g-force2k2 g-force2k2 is offline
 
Join Date: Mar 2002
Location: Everywhere you wanna be..
Posts: 1,608
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

g-force2k2
Reply With Quote
Reply


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 10:44 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.05364 seconds
  • Memory Usage 2,288KB
  • Queries Executed 23 (?)
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)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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_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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete