Log in

View Full Version : $this->post['joindate'] at pm area - doesn't work :\


drbuddha
03-21-2008, 03:16 PM
hey all,

I tried to code plugin that calculate the registered days of user to use in the postbit tamplate.
And succeeded =]

$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.

:confused:

What code should I use to get the same value at the pm area?

Boofo
03-21-2008, 03:19 PM
Try either $pm['joindate'] or $pminfo['joindate']

drbuddha
03-21-2008, 04:55 PM
Nada :(