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)

AndrusW 10-27-2006 03:56 AM

Excuse my ignorance, but where would I find this threadbit_process hook?

Anyone know?

zlos 11-04-2006 09:41 AM

functions_forumdisplay.php :)

zlos 11-12-2006 08:29 AM

Works in 3.6.3

Smoothie 11-12-2006 05:34 PM

Could someone with a bit more knowledge than me please explain where this goes??

zlos 11-13-2006 07:26 AM

Quote:

Originally Posted by Smoothie (Post 1115631)
Could someone with a bit more knowledge than me please explain where this goes??

1. Find & edit the file includes/functions_forumdisplay.php;
2. Insert this:
PHP Code:

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


at line 183

2. Go to template threadbit and insert there new code like this one:
HTML Code:

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

Reload forumdisplay.php of any forum and you will see thread creation date there.

Ciao
Tom

Smoothie 11-17-2006 01:39 AM

zlos,

Thanks!

ragtek 11-25-2006 10:43 PM

by me there's something by just 6 thread's
by the others thers nothing standing

Smoothie 11-25-2006 10:46 PM

Quote:

Originally Posted by ragtek (Post 1125140)
by me there's something by just 6 thread's
by the others thers nothing standing

Link or screenshot?

ragtek 11-25-2006 11:02 PM

1 Attachment(s)
here are some screenshots
thx 4 help

the code is:
PHP Code:

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


hook:threadbit_precess

template:
HTML Code:

                <if condition="$show['gotonewpost']"><a href="showthread.php?$session[sessionurl]goto=newpost&amp;t=$thread[threadid]" id="thread_gotonew_$thread[realthreadid]"><img class="inlineimg" src="$stylevar[imgdir_button]/firstnew.gif" alt="$vbphrase[go_to_first_new_post]" border="0" /></a></if>
                        $thread[movedprefix]
                        $thread[typeprefix]
                        $thread[moderatedprefix]
                        <a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]" id="thread_title_$thread[realthreadid]"<if condition="$show['gotonewpost']"> style="font-weight:bold"</if>>$thread[threadtitle]</a>
                        <if condition="$thread['pagenav']">$stylevar[dirmark]<span class="smallfont" style="white-space:nowrap">(<img class="inlineimg" src="$stylevar[imgdir_misc]/multipage.gif" alt="$vbphrase[multipage_thread]" border="0" /> $thread[pagenav]<if condition="$show[pagenavmore]"> ... <a href="showthread.php?$session[sessionurl]t=$thread[threadid]&amp;page=$thread[totalpages]$thread[highlight]">$vbphrase[last_page]</a></if>)<span class="smallfont" style="float:right">Thema erstellt: $thread[threaddate]&nbsp;<span class="time">$thread[threadtime]</span></span>
        </span></if>
                </div>


Smoothie 11-25-2006 11:12 PM

1 Attachment(s)
<a href="https://vborg.vbsupport.ru/showpost.php?p=1116105&postcount=15" target="_blank">https://vborg.vbsupport.ru/showp...5&postcount=15</a>

Works for me


All times are GMT. The time now is 01:55 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.01154 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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