vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Last edited by Question (https://vborg.vbsupport.ru/showthread.php?t=123310)

Digitalus 08-07-2006 04:26 PM

Last edited by Question
 
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
Code:

<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
PHP Code:

" . iif($deljoin, 'deletionlog.userid AS del_userid, deletionlog.username AS del_username, deletionlog.reason AS del_reason,') . "
editlog.userid AS edit_userideditlog.username AS edit_usernameeditlog.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.
Code:

                $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
Code:

<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


All times are GMT. The time now is 09:27 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01034 seconds
  • Memory Usage 1,720KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete