Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 12-16-2010, 04:53 AM
lille L lille L is offline
 
Join Date: Oct 2007
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Is there a add on or template for - date for posting a thread

Yes, my header asks the question.
Is there a add on or template, which fix me a date for posting?

In vb only the date for the last post is showing, I need the info to incl date for original posting.
Today it shows nick, header, and date for last post.

In case some wonder, I mean new post, lastest post lists.
In the bolk at the left side.. (see pic) its only showing header, with the nick underneath.
I wonder if its possible to get the date for posting, at the side of the nick. Just like the bolk at the right, has both date and nick.
Attached Images
File Type: png Skjermbilde 2010-12-16 kl. 07.51.59.png (136.1 KB, 0 views)
Reply With Quote
  #2  
Old 12-17-2010, 02:22 AM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This can be done but you need two plugins and a template edit.

First go to Admin CP -> Plugin Manager -> Add a New Plugin

Product: vbulletin
Hook Location: threadbit_display
Title: make threadbit dates
Execution Order: 5
code:
PHP Code:
$thread['fdate'] = vbdate($vbulletin->options['dateformat'], $thread['dateline']);
$thread['ftime'] = vbdate($vbulletin->options['timeformat'], $thread['dateline']);

$thread['postdatex'] = $thread['fdate'] .' '$thread['ftime']; 
Set Active to YES

Save The Plugin

Now Add Another Plugin:

Product: vbulletin
Hook Location: search_results_threadbit
Title: make search dates
Execution Order: 5
PHP Code:
$thread['fdate'] = vbdate($vbulletin->options['dateformat'], $thread['dateline']); 
$thread['ftime'] = vbdate($vbulletin->options['timeformat'], $thread['dateline']); 

$thread['postdatex'] = $thread['fdate'] .' '$thread['ftime']; 
Set Active to YES

Save The Plugin

Now edit your threadbit template-
I suggest the following but you can put the date anywhere you want.

Find the code:
Code:
<span style="cursor:pointer" onclick="window.open('member.php?$session[sessionurl]u=$thread[postuserid]', '_self')">$thread[postusername]</span>
Right after it add:
Code:
  - $thread[postdatex]
You can thank Lynne for the plugin code, it was from her mod here.

You'll get something like the attached image (without the "ZZ" I forgot to delete that from my code...)
Attached Images
File Type: gif ss_datethreadbit.gif (13.2 KB, 0 views)
Reply With Quote
  #3  
Old 12-17-2010, 06:37 AM
lille L lille L is offline
 
Join Date: Oct 2007
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oh fantastic !!!! Your are the best ! Thank you, works perfect!



--------------- Added [DATE]1292578307[/DATE] at [TIME]1292578307[/TIME] ---------------

Oh... now I see a bug..

the datestamp shows and works perfect. But it dosent show the original thread postdate. But as the same as in the other bolk. The last post date
Reply With Quote
  #4  
Old 12-17-2010, 09:11 AM
lille L lille L is offline
 
Join Date: Oct 2007
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

As this

the wired thing is that the datestamp is correct in CP sub list and inside the forums.
Its only the new post and todays post lists it dosent show correct...
Attached Images
File Type: png Skjermbilde 2010-12-17 kl. 12.10.06.png (110.4 KB, 0 views)
File Type: png Skjermbilde 2010-12-17 kl. 12.21.06.png (160.8 KB, 0 views)
Reply With Quote
  #5  
Old 12-17-2010, 11:17 AM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Whoopsie... I forgot all about the search results...

OK, no problem... we need to do a couple things...

First in the plugin you already have we need to change $thread['postdate'] to $thread['postdatex']

Next in the template edit you need to change $thread[postdate] to $thread[postdatex].

Finally we have to add 1 more plugin...

go to Admin CP -> Plugin Manager -> Add a New Plugin

Product: vbulletin
Hook Location: search_results_threadbit
Title: make search dates
Execution Order: 5
PHP Code:
$thread['fdate'] = vbdate($vbulletin->options['dateformat'], $thread['dateline']); 
$thread['ftime'] = vbdate($vbulletin->options['timeformat'], $thread['dateline']); 

$thread['postdatex'] = $thread['fdate'] .' '$thread['ftime']; 
Set Active to YES

Save The Plugin

You should now get the correct dates in both the forums and search results.(Which includes Today's Posts and New Posts).

--------------- Added [DATE]1292592135[/DATE] at [TIME]1292592135[/TIME] ---------------

Note: I have updated the original instructions so anyone searching for this later can simply follow the complete instructions in my earlier post, (post #2).
Reply With Quote
  #6  
Old 12-17-2010, 11:34 AM
lille L lille L is offline
 
Join Date: Oct 2007
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

eh.. thanks...
But now is all my threads gone???? All content in the forum
Reply With Quote
  #7  
Old 12-17-2010, 11:36 AM
lille L lille L is offline
 
Join Date: Oct 2007
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

But as you see... its three sites of content... supposed to be..
Attached Images
File Type: png Skjermbilde 2010-12-17 kl. 14.35.40.png (111.4 KB, 0 views)
Reply With Quote
  #8  
Old 12-17-2010, 11:40 AM
lille L lille L is offline
 
Join Date: Oct 2007
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ah... its working

I need to keep the postdate in both plugins... and the template. Then its all working
postadatex removed all the headliners ?

No its perfect everywhere! THANK you so much !
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:21 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.04281 seconds
  • Memory Usage 2,275KB
  • Queries Executed 14 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_code
  • (3)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (5)postbit_attachment
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete