Jump to content

Recommended Posts

No i mean times between two post like Vbulletin or other BBS System  ;D

 

that's a little different to what your initial post implied  :)

 

I should imagine you would do this using a date calculation, eg current post time and last post time...here is some sample date difference code which you may be able to adapt and then include an if statement, for example, to ensure last post was not less than 10 seconds ago.

 

<?php
//time difference 
$today = strtotime("now");
$logged_day = strtotime("$system_date"); //this is the date the call was logged
$timediff_sec = $today - $logged_day; //time difference in seconds
$timediff = $timediff_sec/86400; //86400 seconds in a day therefore dividing by this give no of days
$timediff = floor($timediff); //round down otherwise will appear one day older than actually is
?>

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.