vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Help me, How to do this! (https://vborg.vbsupport.ru/showthread.php?t=110445)

nhacso 03-15-2006 11:36 AM

Help me, How to do this!
 
I saw some forum add the new field in showthread same as the photo make the forum is very good:

http://www.boostimg.com/uploads/datemgKN.gif

How to do this? I tried use $post[postdate] and $post[posttime] add to threadbit template but it doesn't work. :confused:

tnguy3n 03-15-2006 12:00 PM

try $thread[postdate] ;)

nhacso 03-15-2006 12:13 PM

Quote:

Originally Posted by tnguy3n
try $thread[postdate] ;)

It's not working. After I add $thread[postdate] to threadbit, nothing date show when view threads in forum. :tired:

Princeton 03-15-2006 12:47 PM

the date is already in showthread ... so, I'm not sure what you are trying to achieve

are you sure it's the "showthread" page?

tnguy3n 03-15-2006 04:16 PM

I think he wants to add the threaddate in FORUMDISPLAY

nhacso 03-15-2006 09:13 PM

Quote:

Originally Posted by tnguy3n
I think he wants to add the threaddate in FORUMDISPLAY

- Yes, yes. I want show the create date of author who write the topic same as the photo. It's difference the last post date of the last poster.

- I want put the create date near the thread title, but in ForumDisplay tempate I don't see the $thread[threadtitle] where the name thread appear.

tnguy3n 03-16-2006 10:58 PM

I don't know if dateline column is called in the query. If it is, you can add one plugin at forumdisplay_complete hook, with following content:
$thread['threaddate'] = vbdate($vbulletin->options['dateformat'], $thread['dateline']);

Then, in threadlist template, add the $thread[threaddate] wherever you wanna show it.

nhacso 03-17-2006 05:22 AM

Quote:

Originally Posted by tnguy3n
I don't know if dateline column is called in the query. If it is, you can add one plugin at forumdisplay_complete hook, with following content:
$thread['threaddate'] = vbdate($vbulletin->options['dateformat'], $thread['dateline']);

Then, in threadlist template, add the $thread[threaddate] wherever you wanna show it.

Nice Job! It's working very perfect. :banana:

Thanks tnguy3n so much. ;)


All times are GMT. The time now is 03:50 AM.

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.01076 seconds
  • Memory Usage 1,731KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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