vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Thread started date plugin? (https://vborg.vbsupport.ru/showthread.php?t=103430)

zlos 12-21-2005 07:05 AM

Thread started date plugin?
 
I am seeking for a plugin, which would enable to show to my users when thread was started.

I tried to locate it in the functions, but it looks like manual code changes are required (this value simply does not exist in functions). This is something what I would like to avoid, as with each new version of vB I would have to redo this job once more.

Question: is there any plugin or coder skilled and willing to write a short & working plugin/product for that?

Marco van Herwaarden 12-23-2005 09:03 AM

Where do you want to show this?

zlos 12-23-2005 02:23 PM

Quote:

Originally Posted by MarcoH64
Where do you want to show this?

On the forumdisplay.php :)

Marco van Herwaarden 12-23-2005 02:41 PM

The info is available there in either $thread['dateline'] or $threadinfo['dateline']

zlos 12-23-2005 03:22 PM

Quote:

Originally Posted by MarcoH64
The info is available there in either $thread['dateline'] or $threadinfo['dateline']

This I know - but this is unformated Unix date format like "1133293626".
Is there any way of formatting dates directly in templates, which would be threadbits in this case? :)

Sorry, maybe I am asking stupid questions, but I need to know it.

zlos 12-26-2005 10:12 AM

Knock knock :)

-=Sniper=- 12-27-2005 07:44 PM

put this in the threadbit_process hook
PHP Code:

if ($thread['dateline'])
{
    
$thread['threaddate'] = vbdate($vbulletin->options['dateformat'], $thread['dateline'], 1);
    
$thread['threadtime'] = vbdate($vbulletin->options['timeformat'], $thread['dateline']);


then in the threadbit template you can use
HTML Code:

        <span class="smallfont">$thread[threaddate]</span>
        <span class="time">$thread[threadtime]</span>


zlos 12-28-2005 04:22 PM

Quote:

Originally Posted by -=Sniper=-
put this in the threadbit_process hook
PHP Code:

if ($thread['dateline'])
{
    
$thread['threaddate'] = vbdate($vbulletin->options['dateformat'], $thread['dateline'], 1);
    
$thread['threadtime'] = vbdate($vbulletin->options['timeformat'], $thread['dateline']);


then in the threadbit template you can use
HTML Code:

        <span class="smallfont">$thread[threaddate]</span>
        <span class="time">$thread[threadtime]</span>


Thanks - it works. :)

zlos 09-07-2006 09:00 AM

Works in 3.6.0 as well :)

zlos 10-13-2006 07:31 AM

Works in 3.6.2 also :D


All times are GMT. The time now is 02:43 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.01156 seconds
  • Memory Usage 1,750KB
  • 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
  • (2)bbcode_html_printable
  • (2)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete