supanoob Posted August 28, 2007 Share Posted August 28, 2007 im looking at making it so new posts on my forum show in bold for people but ima little stuck on the theory behind it. any advice/help would be much appreciated, or a link to a tutorial on this would be great. Thanks in advance. Link to comment https://forums.phpfreaks.com/topic/67106-solved-new-posts/ Share on other sites More sharing options...
php_tom Posted August 28, 2007 Share Posted August 28, 2007 Here's some pseudocode: $postTimeStamp = 1010101010; // Could get this from a DB $now = time(); $newThreshold = 1 *24*60*60; // 1 day in seconds if($now - $postTimeStamp <= $newThreshold) echo "<b>".$postContent."</b>"; else echo $postContent; Maybe that helps you? Link to comment https://forums.phpfreaks.com/topic/67106-solved-new-posts/#findComment-336555 Share on other sites More sharing options...
supanoob Posted August 28, 2007 Author Share Posted August 28, 2007 i think so thanks. Link to comment https://forums.phpfreaks.com/topic/67106-solved-new-posts/#findComment-336562 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.