hey all,
I tried to code plugin that calculate the registered days of user to use in the postbit tamplate.
And succeeded =]
PHP Code:
$this->post['reg_days'] = round((TIMENOW - $this->post['joindate']) / 86400);
Hook: postbit_display_start.
But, when I checked that at the pm area, viewing of pm received,
it returns only the TIMENOW integer!
When I separated the " TIMENOW " from " $this->post['joindate'] " saw that "$this->post['joindate']" just doesn't return a numeral value in the postbit of pm area.
What code should I use to get the same value at the pm area?