Dragosvr92 Posted July 4, 2010 Share Posted July 4, 2010 Hi ive noticed that there is some bug into the PHP BBCode.... if you use the bbcode on a php script without any php tags (<?php...?>) around it it will display the script as it should with the colors on ... it displays it well with the <?php tags too but if you use the short php tabs <?...?> it will see the script as normal text without any colors on the script it would be cool if it will be fixed Quote Link to comment https://forums.phpfreaks.com/topic/206671-php-bbcode-isnt-working-right/ Share on other sites More sharing options...
trq Posted July 4, 2010 Share Posted July 4, 2010 it would be cool if it will be fixed Firstly, we don't maintain these features. Its an issue for the SMF developers. Secondly, anyone using the short tags deserves there code to look like crap Thirdly, we have tags for php code. Quote Link to comment https://forums.phpfreaks.com/topic/206671-php-bbcode-isnt-working-right/#findComment-1080924 Share on other sites More sharing options...
Dragosvr92 Posted July 4, 2010 Author Share Posted July 4, 2010 1. yes but you the staff do have the knowledge to modify it to make it work 2. why? 3. i was saying that the short php tags used in [php.][/code] tags show as text ... Heres is a example so u may get what i meant: $Test = ($TestMe == "01")? 'Tested' : 'Untested' ; <?php $Test = ($TestMe == "01")? 'Tested' : 'Untested' ; <? $Test = ($TestMe == "01")? 'Tested' : 'Untested' ; Quote Link to comment https://forums.phpfreaks.com/topic/206671-php-bbcode-isnt-working-right/#findComment-1080958 Share on other sites More sharing options...
Mchl Posted July 4, 2010 Share Posted July 4, 2010 2&3. Because <? is a starting sequence for XML files. That's why using it in PHP code is discouraged. Quote Link to comment https://forums.phpfreaks.com/topic/206671-php-bbcode-isnt-working-right/#findComment-1080961 Share on other sites More sharing options...
Daniel0 Posted July 4, 2010 Share Posted July 4, 2010 2&3. Because <? is a starting sequence for XML files. That's why using it in PHP code is discouraged. Only when you're in XML files. Most of the times you aren't. Quote Link to comment https://forums.phpfreaks.com/topic/206671-php-bbcode-isnt-working-right/#findComment-1080990 Share on other sites More sharing options...
Dragosvr92 Posted July 5, 2010 Author Share Posted July 5, 2010 so can anyone try to fix it ? i see that This isnt working [url.]LINK]NAME[/url] it will be nice if you could name the links so you wont see a damn long link Quote Link to comment https://forums.phpfreaks.com/topic/206671-php-bbcode-isnt-working-right/#findComment-1081329 Share on other sites More sharing options...
salathe Posted July 5, 2010 Share Posted July 5, 2010 TheKiller... some text Quote Link to comment https://forums.phpfreaks.com/topic/206671-php-bbcode-isnt-working-right/#findComment-1081332 Share on other sites More sharing options...
Dragosvr92 Posted July 5, 2010 Author Share Posted July 5, 2010 TheKiller... some text damn im so fucking retarded ! i forgot what exactly was it as i havent used it for a while lol....................im a bit ashamed as i have a forum myself and used that damn bbcode so much >,,< Quote Link to comment https://forums.phpfreaks.com/topic/206671-php-bbcode-isnt-working-right/#findComment-1081337 Share on other sites More sharing options...
zq29 Posted July 5, 2010 Share Posted July 5, 2010 1. yes but you the staff do have the knowledge to modify it to make it work Quite likely, but we don't want to keep patching it every time the forum is upgraded. File a bug report with SMF. Quote Link to comment https://forums.phpfreaks.com/topic/206671-php-bbcode-isnt-working-right/#findComment-1081353 Share on other sites More sharing options...
salathe Posted July 5, 2010 Share Posted July 5, 2010 damn im so fucking retarded ! For what it's worth, the bbcodes available here are listed in the help section (there's a link at the top of every page). Here's a direct link http://www.phpfreaks.com/forums/index.php?action=help;area=bbcode Quote Link to comment https://forums.phpfreaks.com/topic/206671-php-bbcode-isnt-working-right/#findComment-1081365 Share on other sites More sharing options...
Daniel0 Posted July 5, 2010 Share Posted July 5, 2010 That page is static though. Note that some of those bbcodes have been turned off. Quote Link to comment https://forums.phpfreaks.com/topic/206671-php-bbcode-isnt-working-right/#findComment-1081366 Share on other sites More sharing options...
Dragosvr92 Posted July 5, 2010 Author Share Posted July 5, 2010 1. yes but you the staff do have the knowledge to modify it to make it work Quite likely, but we don't want to keep patching it every time the forum is upgraded. File a bug report with SMF. i dont think the fix will stand into too much script or in more than one file so it wont be so hard to patch it i havent even heared of SMF Until i came here why dont you do it between i like your avatar lol edit @salathe i know most of the bbcodes but i ve forgotten that one .. lol whatever:-@ Quote Link to comment https://forums.phpfreaks.com/topic/206671-php-bbcode-isnt-working-right/#findComment-1081447 Share on other sites More sharing options...
Daniel0 Posted July 5, 2010 Share Posted July 5, 2010 why dont you do it I suppose for the same reason you haven't submitted a patch yet Quote Link to comment https://forums.phpfreaks.com/topic/206671-php-bbcode-isnt-working-right/#findComment-1081466 Share on other sites More sharing options...
Dragosvr92 Posted July 5, 2010 Author Share Posted July 5, 2010 why dont you do it I suppose for the same reason you haven't submitted a patch yet i just told you about the bug ... its not on my interest to fix it as its not my board lol you should be wanting to fix it Quote Link to comment https://forums.phpfreaks.com/topic/206671-php-bbcode-isnt-working-right/#findComment-1081470 Share on other sites More sharing options...
cags Posted July 5, 2010 Share Posted July 5, 2010 Why is it any more in our interest to fix it than it is yours? It's as much your board as it is anyone else who's a member (with the exception of PHPFreak). Quote Link to comment https://forums.phpfreaks.com/topic/206671-php-bbcode-isnt-working-right/#findComment-1081515 Share on other sites More sharing options...
Dragosvr92 Posted July 5, 2010 Author Share Posted July 5, 2010 Why is it any more in our interest to fix it than it is yours? It's as much your board as it is anyone else who's a member (with the exception of PHPFreak). its more in the webmaster s interest than the members Quote Link to comment https://forums.phpfreaks.com/topic/206671-php-bbcode-isnt-working-right/#findComment-1081524 Share on other sites More sharing options...
cags Posted July 5, 2010 Share Posted July 5, 2010 The webmaster being the aforementioned PHPFreak. You said the statement to Daniel0, who is a member, just like you and me, albeit with more access rights. Quote Link to comment https://forums.phpfreaks.com/topic/206671-php-bbcode-isnt-working-right/#findComment-1081532 Share on other sites More sharing options...
Dragosvr92 Posted July 5, 2010 Author Share Posted July 5, 2010 yea ... well they can get in touch with the webmaster and make it possible Quote Link to comment https://forums.phpfreaks.com/topic/206671-php-bbcode-isnt-working-right/#findComment-1081548 Share on other sites More sharing options...
cags Posted July 5, 2010 Share Posted July 5, 2010 LOL - that's a good one. Quote Link to comment https://forums.phpfreaks.com/topic/206671-php-bbcode-isnt-working-right/#findComment-1081550 Share on other sites More sharing options...
Dragosvr92 Posted July 5, 2010 Author Share Posted July 5, 2010 LOL - that's a good one. i guess ......... and Daniel seems to have access to the server as he seem to upgrade the forums software when theres a newer version Quote Link to comment https://forums.phpfreaks.com/topic/206671-php-bbcode-isnt-working-right/#findComment-1081554 Share on other sites More sharing options...
Daniel0 Posted July 5, 2010 Share Posted July 5, 2010 Sure, I've got access to everything, but the source code of SMF is freely available to anyone, so anyone can make the changes just as well as I can. I'm not familiar with SMF's code, so I have no advantage over anyone else either. Quote Link to comment https://forums.phpfreaks.com/topic/206671-php-bbcode-isnt-working-right/#findComment-1081579 Share on other sites More sharing options...
.josh Posted July 5, 2010 Share Posted July 5, 2010 1. yes but you the staff do have the knowledge to modify it to make it work Quite likely, but we don't want to keep patching it every time the forum is upgraded. File a bug report with SMF. This. Quote Link to comment https://forums.phpfreaks.com/topic/206671-php-bbcode-isnt-working-right/#findComment-1081583 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.