Jump to content

PHP bbcode tags


jlhaslip

Recommended Posts

$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

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...