Log in

View Full Version : Last edited by Question


Digitalus
08-07-2006, 04:26 PM
Hi @all..

I hope this is the right section if not please move..
But i have an question..

I try to inlude the last edited by in my own vbpage
Its working but for 90% its shows up like this
Last edited by Digital : at . Reason: Updated test file
the day and time does not show

i use this in my template
<phrase 1="$post[edit_username]" 2="$post[edit_date]" 3="$post[edit_time]">$vbphrase[last_edited_by_x_on_y_at_z]</phrase>


And this in my php file
" . iif($deljoin, 'deletionlog.userid AS del_userid, deletionlog.username AS del_username, deletionlog.reason AS del_reason,') . "
editlog.userid AS edit_userid, editlog.username AS edit_username, editlog.dateline AS edit_dateline,
editlog.reason AS edit_reason,

LEFT JOIN " . TABLE_PREFIX . "editlog AS editlog ON(editlog.postid = post.postid)



Do i mis something? what do i need to do to show the day/date and time

Cheerz..

Nxs
08-07-2006, 05:02 PM
Only just started poking in the vB code - but to me im just confused over where edit_date and edit_time come from ? your just linking edit_dateline.

I know dates are stored in unix format in the db so when you pull something out you'll need to parse it with the vbdate function

these two lines in class_postbit.php leaped out on a grep.

$this->post['postdate'] = vbdate($this->registry->options['dateformat'], $this->post['dateline'], true);
$this->post['posttime'] = vbdate($this->registry->options['timeformat'], $this->post['dateline']);


but I have no idea where you go next.

Digitalus
08-07-2006, 05:41 PM
I got this from the Postbit Template <phrase 1="$post[edit_username]" 2="$post[edit_date]" 3="$post[edit_time]">$vbphrase[last_edited_by_x_on_y_at_z]</phrase>

I looked everywhere where $post[edit_date] $post[edit_time] comes from but cant find it...

The hack takes the Last edited by Digital from the threads that someone edit.. so realy dont understand why it now work for 100%
Im also just a n00b in this stuff