jlhaslip Posted September 28, 2008 Share Posted September 28, 2008 $code != "highlight";<?phpecho 'raw data: 20080928<br />';$data = "20080928";echo 'Apply strtotime() to get the Unix timestamp :' . strtotime($data) . ' in seconds <br />';$add = (60 * 60 * 24);echo 'add 1 day == ' . $add .' seconds <br />';$data = $data + $add;echo 'New Unix timestamp :' . time($data) . '<br />';echo ?> There is an HTML and SQL bbcode, which is nice, but a php highlighting tag would be nicer. <?phpecho 'raw data: 20080928<br />';$data = "20080928";echo 'Apply strtotime() to get the Unix timestamp :' . strtotime($data) . ' in seconds <br />';$add = (60 * 60 * 24);echo 'add 1 day == ' . $add .' seconds <br />';$data = $data + $add;echo 'New Unix timestamp :' . time($data) . '<br />';echo ?> <?phpecho 'raw data: 20080928<br />';$data = "20080928";echo 'Apply strtotime() to get the Unix timestamp :' . strtotime($data) . ' in seconds <br />';$add = (60 * 60 * 24);echo 'add 1 day == ' . $add .' seconds <br />';$data = $data + $add;echo 'New Unix timestamp :' . time($data) . '<br />';echo ?> Link to comment Share on other sites More sharing options...
aspnetguy Posted September 29, 2008 Share Posted September 29, 2008 The bbcode tags are a feature of Invison Power Board. You will have to submit this request to them. We could hack the software to do it but it would have to be redone everytime there is a software update. So, unless IPB implements it then it isn't going to get done. Link to comment Share on other sites More sharing options...
justsomeguy Posted September 29, 2008 Share Posted September 29, 2008 I think it's funny that in the code box: code in the upper right they have the opening PHP tag, but there's no PHP highlighting available (which is also a little strange, considering that highlighting a string of PHP code is a built-in feature of PHP). Link to comment Share on other sites More sharing options...
jlhaslip Posted September 30, 2008 Author Share Posted September 30, 2008 The php bbcode will be coming in IPB 3x series. (apparently)http://forums.invisionpower.com/index.php?showtopic=275006 Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.