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. Quote 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? Quote 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. Quote Link to comment https://forums.phpfreaks.com/topic/67106-solved-new-posts/#findComment-336562 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.