Member
Member
trojkolka   2006-09-03, 13:16
#1
In some of the themes there is a weird kind of scripting that is not well supported by all server. In some themes designers use <?= instead of <?php echo when i select in the admin a theme the theme always gives errors and isn't styled at all. I run a PHP5 server on Apache and everytime i need to edit the theme files to make it work. Does anyone else has this problem too? and can't it be so that there is some kind of standard for scripting that you make rules when you open PHP tags with <?php instead of just <? and <? echo instead of <?=. Because i think it's a bit annoying to edit the theme files all the time. But maybe it is just a server setting. Please tell me so i can fix it to get rid of this edit 'problem'.
Member
Member
Chilifrei64   2006-09-03, 15:24
#2
All the way up until I want to say version 1.0 of zenphoto, that was how the default themes, and zenphoto were coded. People were having problems with it not working under certian configurations and this then changed.. Some remnants still linger behind... Zenphoto itself should not have this problem anymore. It should only be themes,

A simple find and replace should take care of the problem...
Member
Member
trojkolka   2006-09-03, 17:27
#3
it aren't old skins even the zenphoto development test theme and Thinkdreams have this problem. Of course it's just simply to edit by using replace function of any editor program but it's just a little frustrating that it doesnt work on the fly Wink
Developer
Developer
trisweb   2006-09-04, 00:54
#4
It's the php_short_tags directive -- we did indeed stop using it as of 1.0.2, and fixed all the old code as of 1.0.3, but we can't control third-party theme releases unfortunately. I will definitely make sure all released ZP code doesn't have short tags, and I'll put a notice in the theme documentation for other developers. Sorry for the inconvenience...
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.