The Arcive of vBulletin Modifications Site. |
|
ExpandContract Hack Help Details »»
|
|||||||||||||||||||||||||
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
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
Oops...it's officially called this hack:
Collapsable forums on forum home |
|
#3
|
||||
|
||||
|
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.
|
|
#4
|
||||
|
||||
|
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 |
|
#5
|
||||
|
||||
|
for reference this is line 340 on my index.php:
if ((!isset($z)) or ($depth==1)) { |
|
#6
|
||||
|
||||
|
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.
|
|
#7
|
||||
|
||||
|
: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.
|
|
#8
|
|||
|
|||
|
Littlebit: find this code:
PHP Code:
} 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 |
|
#9
|
||||
|
||||
|
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.
|
|
#10
|
|||
|
|||
|
litlebit pm me the file... and i'll do a comparison and report any ideas for you regards...
g-force2k2 |
![]() |
|
|