phpfreak Posted July 15, 2005 Share Posted July 15, 2005 I have fixed the PHP tags issues with exclamation points. If anyone has other characters that are goofed up, please post an example here in this thread using the syntax highlighter. One problem though, the PHP tags are parsed before they go into the database. therefore, if there's any existing posts that use that tag, it will not be fixed until the person edits, corrects and saves the post. I'm working on a fix for this as we speak, so be patient. [!--PHP-Head--][div class=\'phptop\']PHP[/div][div class=\'phpmain\'][!--PHP-EHead--][span style=\"color:#0000BB\"]<?php [/span][span style=\"color:#007700\"]if(![/span][span style=\"color:#0000BB\"]$foo[/span][span style=\"color:#007700\"]); { echo [/span][span style=\"color:#DD0000\"]\'Bar\'[/span][span style=\"color:#007700\"]; } [/span][span style=\"color:#0000BB\"]?>[/span] [/span][!--PHP-Foot--][/div][!--PHP-EFoot--] Link to comment https://forums.phpfreaks.com/topic/2400-php-tags-fixed/ Share on other sites More sharing options...
czambran Posted July 15, 2005 Share Posted July 15, 2005 THANK U!!!. Link to comment https://forums.phpfreaks.com/topic/2400-php-tags-fixed/#findComment-7895 Share on other sites More sharing options...
obsidian Posted July 15, 2005 Share Posted July 15, 2005 wonderful work! Link to comment https://forums.phpfreaks.com/topic/2400-php-tags-fixed/#findComment-7896 Share on other sites More sharing options...
czambran Posted July 15, 2005 Share Posted July 15, 2005 Here is another problem with the php tag [!--PHP-Head--][div class=\'phptop\']PHP[/div][div class=\'phpmain\'][!--PHP-EHead--] [span style=\"color:#0000BB\"]<?php [/span][span style=\"color:#007700\"]if(!empty([/span][span style=\"color:#0000BB\"]$_POST[/span][span style=\"color:#007700\"])) { echo [/span][span style=\"color:#DD0000\"]\'BLAH\'[/span][span style=\"color:#007700\"]; } if([/span][span style=\"color:#0000BB\"]$bye [/span][span style=\"color:#007700\"]!= [/span][span style=\"color:#0000BB\"]$hello [/span][span style=\"color:#007700\"]&& [/span][span style=\"color:#0000BB\"]$hello [/span][span style=\"color:#007700\"]!= [/span][span style=\"color:#0000BB\"]$bye[/span][span style=\"color:#007700\"]) { echo [/span][span style=\"color:#DD0000\"]\"\\"[/span][span style=\"color:#0000BB\"]Hello World [/span][span style=\"color:#007700\"]&[/span][span style=\"color:#FF8000\"]#092;\"\"; [/span][span style=\"color:#007700\"]} [/span][span style=\"color:#0000BB\"]?>[/span] [/span][!--PHP-Foot--][/div][!--PHP-EFoot--] <?php if(!empty($_POST)) { echo 'BLAH'; } if($bye != $hello && $hello != $bye) { echo "\"Hello World \""; } ?> Link to comment https://forums.phpfreaks.com/topic/2400-php-tags-fixed/#findComment-7897 Share on other sites More sharing options...
obsidian Posted July 15, 2005 Share Posted July 15, 2005 one other problem is that when you have multiple php blocks, if you edit your post, the content from the first block with be in all of them: [!--PHP-Head--][div class=\'phptop\']PHP[/div][div class=\'phpmain\'][!--PHP-EHead--] [span style=\"color:#0000BB\"]<?php [/span][span style=\"color:#FF8000\"]// block one [/span][span style=\"color:#0000BB\"]$whatever [/span][span style=\"color:#007700\"]= [/span][span style=\"color:#DD0000\"]\'yadda yadda\'[/span][span style=\"color:#007700\"]; [/span][span style=\"color:#0000BB\"]?> [/span] [/span][!--PHP-Foot--][/div][!--PHP-EFoot--] [!--PHP-Head--][div class=\'phptop\']PHP[/div][div class=\'phpmain\'][!--PHP-EHead--] [span style=\"color:#0000BB\"]<?php [/span][span style=\"color:#FF8000\"]// block two [/span][span style=\"color:#0000BB\"]$foo [/span][span style=\"color:#007700\"]= [/span][span style=\"color:#DD0000\"]\'bar\'[/span][span style=\"color:#007700\"]; [/span][span style=\"color:#0000BB\"]?> [/span] [/span][!--PHP-Foot--][/div][!--PHP-EFoot--] Link to comment https://forums.phpfreaks.com/topic/2400-php-tags-fixed/#findComment-7898 Share on other sites More sharing options...
zq29 Posted July 15, 2005 Share Posted July 15, 2005 Excellent! Link to comment https://forums.phpfreaks.com/topic/2400-php-tags-fixed/#findComment-7899 Share on other sites More sharing options...
Arenium Posted July 15, 2005 Share Posted July 15, 2005 Good stuff phpfreak. Keep it up (Oh yeah, what happened to the smilies?) Link to comment https://forums.phpfreaks.com/topic/2400-php-tags-fixed/#findComment-7902 Share on other sites More sharing options...
toplay Posted July 27, 2005 Share Posted July 27, 2005 As we all know, the PHP tags are still not fixed. I'm not sure which version we're using, but there's v1.1 of the mod out: http://mods.invisionize.com/db/index.php/f/4155 Link to comment https://forums.phpfreaks.com/topic/2400-php-tags-fixed/#findComment-8022 Share on other sites More sharing options...
kenrbnsn Posted September 13, 2005 Share Posted September 13, 2005 I just joined a few days ago and have noticed that when PHP blocks are quoted the backslashes keep on propogating. It's as though there is a stripslashes() function call omitted somewhere. Ken Link to comment https://forums.phpfreaks.com/topic/2400-php-tags-fixed/#findComment-8292 Share on other sites More sharing options...
micah1701 Posted November 3, 2005 Share Posted November 3, 2005 had some serious issues again to day with PHP tags. first, i re-encountered the problem where editing a post with 2 PHP boxes changes the second box to the same value as the first box. then, it kept f*ing with my code. changing font elements to style tags. since when does the forum correct bad coding practices? I was trying to make a point with a bgcolor element and it kept changing it to bgstyle="color:..." what is up w/ that? Link to comment https://forums.phpfreaks.com/topic/2400-php-tags-fixed/#findComment-9339 Share on other sites More sharing options...
SharkBait Posted May 29, 2006 Share Posted May 29, 2006 Was it an update to the forums that broke the php code tags? I miss them But I am sure someone is/has been looking into it. Link to comment https://forums.phpfreaks.com/topic/2400-php-tags-fixed/#findComment-40091 Share on other sites More sharing options...
moberemk Posted May 29, 2006 Share Posted May 29, 2006 Yes. The mods are, by now, probably sick of answering this question. This topic has been up since 05! That should tell you something. Link to comment https://forums.phpfreaks.com/topic/2400-php-tags-fixed/#findComment-40121 Share on other sites More sharing options...
wildteen88 Posted May 30, 2006 Share Posted May 30, 2006 Yes the PHP Tags and the SOLVED features had been removed when the forum was upgraded. This thread has been locked and unpinned. Link to comment https://forums.phpfreaks.com/topic/2400-php-tags-fixed/#findComment-40208 Share on other sites More sharing options...
Recommended Posts