![]() |
I need some help finishing the Sponsor in Category Hack. I keep getting a parse error and fear I will only make it worse if I keep messing with it myself. Could someone please help me out?
Thanks |
It would help if you post the code. ;)
|
When I replace the line:
eval("\$forumbits .= \"".gettemplate("forumhome_forumbit_level$depth$te mpext")."\";"); with: if?($forum['sponsorimg']?&&?$forum['cancontainthreads']==0?&&?$depth==1)?{ ??????????eval("\$forumbits .= \"".gettemplate("forumhome_forumbit_level1_nopost_ sponsor")."\";"); ????????}?else?{ ??????????eval("\$forumbits .= \"".gettemplate("forumhome_forumbit_level$depth$te mpext")."\";"); ????????} I receive a parse error when index.php gets to this line: if?($forum['sponsorimg']?&&?$forum['cancontainthreads']==0?&&?$depth==1)?{ |
Probably a line before that line, maybe you forgot a ; there?
|
Here is the first 6 lines above the code I am to replace and the 3 lines below:
if ($forum['cancontainthreads']==1) { $tempext = '_post'; } else { $tempext = '_nopost'; } eval("\$forumbits .= \"".gettemplate("forumhome_forumbit_level$depth$te mpext")."\";"); if ($depth<$forumhomedepth) { $forumbits.=makeforumbit($forum['forumid'],$depth+1,$forumperms); } This is without the hack...I don't see a ; anywhere that I may have accidently replaced. |
Make sure you don't have { instead of { in the scripts...
|
I couldn't see any difference with { and {...
I keep trying to totally mimic the code posted on your thread in replacing that one line...I swear...its weird. The only other hack involved with my index.php is the little bit to make the PM message bar blink. That wouldn't effect it would it? |
[QUOTE]Originally posted by FireFly
Make sure you don't have { instead of { in the scripts... |
I wnet back and checked for that too...after someone else told me that might happen. No 123 was in it the third time I tried. I'm still stuck. :(
|
Here it is in place with a parse error again...I copied a bunch of lines before and after
$tempext = '_nopost'; } if ($forum['sponsorimg'] && $forum['cancontainthreads']==0 && $depth==1) { eval("\$forumbits .= \"".gettemplate("forumhome_forumbit_level1_nopost_ sponsor")."\";"); } else { eval("\$forumbits .= \"".gettemplate("forumhome_forumbit_level$depth$te mpext")."\";"); } if ($depth<$forumhomedepth) { $forumbits.=makeforumbit($forum['forumid'],$depth+1,$forumperms); } } // END if can view } // END while ( list($key2,$for |
I got the same problem with the code ...
nothing wrong ... just when you add the lines it make that parse error unexpected T_STRING in Line 311 PHP Code:
Its right the same probl. littlebit got ... So perhaps it is a bug ? Something with the vbb 2.2.6 ? With php ? Greetz rob |
For some reason you have _ where spaces should be...
PHP Code:
|
thanks for help ....
my texteditor .. dont show that underlines ____ dont know why :( Thanks and greetz TraumTeam |
All times are GMT. The time now is 06:25 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|