Milky Way Red Parse Error Code T_ELSE »  Show posts from    to     

Icy Phoenix


phpBB 3 MODS And Styles (Not Compatible With phpBB 3.1) - Milky Way Red Parse Error Code T_ELSE



Corman [ Mon 01 Jun, 2009 06:32 ]
Post subject: Milky Way Red Parse Error Code T_ELSE
Thanks for Viewing.

Okay, i do believe it's the milky way red style seeing as subsilver still works.
When you click on a topic this appears:


Code: [Hide] [Select]
Parse error: syntax error, unexpected T_ELSE in /home/*******/public_html/forum/includes/template.php(187) : eval()'d code on line 74




Then if you refresh you get this:

Code: [Hide] [Select]
Parse error: syntax error, unexpected T_ELSE in /home/********/public_html/forum/cache/tpl_milky-way-red_viewtopic_body.html.php on line 74


Also this is lines 70-78 in the cache in relation to the error aboce:
Code: [Hide] [Select]
71 <td>
72<?php if ($this->_rootref['S_IS_MULTI_CHOICE']) { if ($_poll_option_val['POLL_OPTION_VOTED']) { ?> checked="checked"<?php } ?> />
73<?php } else { ?>
<input type="checkbox" class="radio" name="vote_id[]" value="<?php echo $_poll_option_val['POLL_OPTION_ID']; ?>"<?php if ($_poll_option_val['POLL_OPTION_VOTED']) { ?> checked="checked"<?php } ?> />
74<?php } else { if ($_poll_option_val['POLL_OPTION_VOTED']) { ?> checked="checked"<?php } ?> />
75<?php } ?>
76<input type="radio" class="radio" name="vote_id[]" value="<?php echo $_poll_option_val['POLL_OPTION_ID']; ?>"<?php if ($_poll_option_val['POLL_OPTION_VOTED']) { ?> checked="checked"<?php } ?> />
77<?php } ?>
78</td>


I did do some research and came across this error dealing with some "<!-- Begin -->" tags, though in template.php i can't find any begin tags.

Any help would be appreciated.

[EDIT]: I forgot to mention i have installed the Advanced Point System Mod "Points_0.9.1"

Thanks
-Corman


Informpro [ Mon 01 Jun, 2009 08:21 ]
Post subject: Re: Milky Way Red Parse Error Code T_ELSE
Code: [Hide]
  1. <?php if ($this->_rootref['S_IS_MULTI_CHOICE'])  
  2. {  
  3. if ($_poll_option_val['POLL_OPTION_VOTED'])  
  4. {  
  5. echo 'checked="checked"';  
  6. } echo ' />';  
  7. }  
  8. else  
  9. {  
  10. echo '<input type="checkbox" class="radio" name="vote_id[]" value="'.$_poll_option_val['POLL_OPTION_ID'].'"';  
  11. if ($_poll_option_val['POLL_OPTION_VOTED'])  
  12. {  
  13. echo 'checked="checked"';  
  14. } echo '/>';  
  15. }  
  16. else  
  17. {  
  18. if ($_poll_option_val['POLL_OPTION_VOTED'])  
  19. {  
  20. echo 'checked="checked"';  
  21. } echo ' />';  
  22. }  
  23. echo '<input type="radio" class="radio" name="vote_id[]" value="'.$_poll_option_val['POLL_OPTION_ID'].'"';  
  24. if ($_poll_option_val['POLL_OPTION_VOTED'])  
  25. {  
  26. echo ' checked="checked"';  
  27. }  
  28. echo ' />';  
  29. } // I think it's from some other block, but ... 


As u can see, the problem is become there is two "} else {". Could we have the .tpl file, line 70-80 ?


Limun [ Mon 01 Jun, 2009 10:18 ]
Post subject: Re: Milky Way Red Parse Error Code T_ELSE
did you maybe forghet to tell as that this problem is since you instaled Points_0.9.1 ?


in my opinion you miss some <!-- ENDIF --> in viewtopic.html

but as Informpro sayed we cant know without whole code


Corman [ Mon 01 Jun, 2009 15:47 ]
Post subject: Re: Milky Way Red Parse Error Code T_ELSE
[EDIT]Look at last post.


Limun [ Mon 01 Jun, 2009 18:42 ]
Post subject: Re: Milky Way Red Parse Error Code T_ELSE
no man not this from cache
post your styles\milky_way_red\template\viewtopic_body.html

or try simple test
upload original viewtopic_body.html of milky_way_red

beckup this your before


Corman [ Mon 01 Jun, 2009 19:44 ]
Post subject: Re: Milky Way Red Parse Error Code T_ELSE
Limun wrote: [View Post]
no man not this from cache
post your styles\milky_way_red\template\viewtopic_body.html

or try simple test
upload original viewtopic_body.html of milky_way_red

beckup this your before


I did replace with original which worked.
Then i took that original added the points line and that works too.
So everything is up and running perfect now. (*even though i compared the files and didn't see a difference*)

Thank you Limun for all your help in this and the other topic i had.

Thanks again
-Corman


TheCrewStyle [ Tue 16 Jun, 2009 18:44 ]
Post subject: Re: Milky Way Red Parse Error Code T_ELSE
Hi,
I have an similar error
I installed Topic Text in Mouse Over http://www.phpbb.com/community/viewtopic.php?f=69&t=1257235
And when i try to enter in a forum ( viewforum) i am getting an error
Code: [Hide] [Select]
Parse error: syntax error, unexpected T_ELSE in /hsphere/local/home/cstrike/whatsfunny.ro/forum/cache/tpl_subsilverPlus_viewforum_body.html.php on line 60


I use subsilverPlus style.
The code from the 60 line is this
Code: [Hide] [Select]
55 <td class="row2" width="130" align="center"><p class="topicauthor">{topicrow.TOPIC_AUTHOR_FULL}</p></td>
56 <td class="row1" width="50" align="center"><p class="topicdetails">{topicrow.REPLIES}</p></td>
57 <td class="row2" width="50" align="center"><p class="topicdetails">{topicrow.VIEWS}</p></td>
58 <td class="row1" width="140" align="center">
59 <p class="topicdetails" style="white-space: nowrap;">{topicrow.LAST_POST_TIME}</p>
60 <p class="topicdetails">{topicrow.LAST_POST_AUTHOR_FULL}
61 <!-- IF not S_IS_BOT --><a href="{topicrow.U_LAST_POST}" <!-- IF topicrow.LAST_TEXT_HOVER -->title="{topicrow.LAST_TEXT_HOVER}"<!-- ENDIF -->><!-- IF topicrow.LAST_TEXT_HOVER -->{topicrow.LAST_POST_IMG}<!-- ELSE -->{LAST_POST_IMG}<!-- ENDIF --></a><!-- ENDIF -->
62 </p>
63 </td>
64 </tr>

Could someone help me?

Sorry for my bad english.. I am trying to learn it


Informpro [ Thu 18 Jun, 2009 13:53 ]
Post subject: Re: Milky Way Red Parse Error Code T_ELSE
... code in cache folder ? (.php) (compilator move line ..)




Powered by Icy Phoenix