Milky Way Red Parse Error Code T_ELSE


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: [Download] [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: [Download] [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: [Download] [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

Last edited by Corman on Mon 01 Jun, 2009 15:49; edited 1 time in total
Profile PM  
Subject: Re: Milky Way Red Parse Error Code T_ELSE
Code: [Download] [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 ?

Profile PM  
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 ?
:mrviolet:

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

but as Informpro sayed we cant know without whole code

Subject: Re: Milky Way Red Parse Error Code T_ELSE
[EDIT]Look at last post.

Last edited by Corman on Mon 01 Jun, 2009 19:41; edited 1 time in total
Profile PM  
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

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

Profile PM  
Subject: Re: Milky Way Red Parse Error Code T_ELSE
Hi,
I have an similar error
I installed Topic Text in Mouse Over h**p://***.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: [Download] [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: [Download] [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 :?

Subject: Re: Milky Way Red Parse Error Code T_ELSE
... code in cache folder ? (.php) (compilator move line ..)

Profile PM  

Page 1 of 1


  
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events

   

This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.

Powered by Icy Phoenix based on phpBB
Generation Time: 0.1257s (PHP: 16% SQL: 84%)
SQL queries: 16 - Debug Off - GZIP Enabled