Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Insert Thread Date into threadbit - for knowing when thread was originally posted Details »»
Insert Thread Date into threadbit - for knowing when thread was originally posted
Version: 1.00, by SiMateoAko SiMateoAko is offline
Developer Last Online: Nov 2007 Show Printable Version Email this Page

Category: Forum Display Enhancements - Version: 3.6.4 Rating:
Released: 01-14-2007 Last Update: 01-14-2007 Installs: 157
Uses Plugins
 
No support by the author.

We've all experienced it... that user who finds threads 3 years old and resurrects them by posting a bizarre reply.

Other users usually fall for it too, and suddenly this three year old discussion is back from the dead, causing all sorts of confusion.

This product will insert the date of the original thread date in the threadbit plugin. This means that it will show up during searches and while viewing all threads in a forum.

In theory this will remove some of the confusion.

Included:

1 product - 2 plugins

Import the product and you should be ready to roll.

This product is not supported, and will only be updated if a confirmed bug is reported. Tested on 3.6.4 using the default threadbit template.

Brought to you courtesy of the folks at www.igusto.net

Changes:
1-15-2007
  • Removed redundant plugin
  • used native vbulletin date formating instead of php date formatting.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 01-15-2007, 09:13 PM
Smoothie Smoothie is offline
 
Join Date: Oct 2001
Location: New York
Posts: 1,834
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sensimilla View Post
yeah, but this one doesnt require file edits.
Read through the thread before speaking. That one doesn't either.
Reply With Quote
  #23  
Old 01-16-2007, 03:34 AM
SiMateoAko SiMateoAko is offline
 
Join Date: Apr 2006
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Smoothie View Post
Read through the thread before speaking. That one doesn't either.
it actually requires a template edit. This one doesn't.
Reply With Quote
  #24  
Old 01-16-2007, 12:12 PM
sensimilla sensimilla is offline
 
Join Date: Dec 2004
Location: Poland
Posts: 555
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by SiMateoAko View Post
it actually requires a template edit. This one doesn't.

He was probably reffering to this post at the end of the thread.

https://vborg.vbsupport.ru/showpost....3&postcount=22
Reply With Quote
  #25  
Old 01-17-2007, 07:45 AM
Kadi Kadi is offline
 
Join Date: Sep 2006
Location: Hijaz
Posts: 165
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great hack. Thanks.

Quote:
Originally Posted by TTG View Post
Changed one item in product to make it work on UK time ( = date('d-n-Y',)
clicked install
What item did you change?

How do I change the color of just this date alone?
Reply With Quote
  #26  
Old 01-18-2007, 05:30 AM
SiMateoAko SiMateoAko is offline
 
Join Date: Apr 2006
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Kadi View Post
Great hack. Thanks.



What item did you change?

How do I change the color of just this date alone?
It should work now with your native forum time.

To change the color, do the following.

Open the plugin entitled insert thread date into template

It should look like this:

Code:
if (THIS_SCRIPT == ('search' || 'forumdisplay')) {
         $vbulletin->templatecache['threadbit'] = str_replace(
                   '$thread[postusername]</span>',
                   '$thread[postusername]</span> <span class=\"time\">($thread[threaddate])</span>',
                   $vbulletin->templatecache['threadbit']
                   );
}
As you can see, I use the "time" class to color code it. Change it to whichever class you want. If you want to make it a custom color, like RED, the code could look like this:


Code:
if (THIS_SCRIPT == ('search' || 'forumdisplay')) {
         $vbulletin->templatecache['threadbit'] = str_replace(
                   '$thread[postusername]</span>',
                   '$thread[postusername]</span> <span style=\"color: #FF0000;\">($thread[threaddate])</span>',
                   $vbulletin->templatecache['threadbit']
                   );
}
Reply With Quote
  #27  
Old 01-18-2007, 06:56 AM
Kadi Kadi is offline
 
Join Date: Sep 2006
Location: Hijaz
Posts: 165
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks SiMateoAko for the quick reply.

I have another question.

My forum is right to left so the brackets are messed up with members who use English names. Could you tell me how to remove them?
Reply With Quote
  #28  
Old 01-18-2007, 07:38 PM
Eq4bits Eq4bits is offline
 
Join Date: May 2006
Posts: 468
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed and really like this, but, the date is BOLD, anyway to make it not bold? I haven't been able to locate it in the threadbit template at all, or anywhere else in the templates.
Reply With Quote
  #29  
Old 01-18-2007, 08:17 PM
SiMateoAko SiMateoAko is offline
 
Join Date: Apr 2006
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Kadi View Post
Thanks SiMateoAko for the quick reply.

I have another question.

My forum is right to left so the brackets are messed up with members who use English names. Could you tell me how to remove them?
I'm assuming this is an example of what you're talking about?

http://www.ms-saudi.com/forum/forumdisplay.php?f=22

I have no idea how I so easily found that being as I cannot read Arabic (I assume it's arabic). I guess I'm just used to vbulletin.

Anyway, that'll be an easy fix.

in your insert thread date into template plugin, change the code to look like this:

Code:
if (THIS_SCRIPT == ('search' || 'forumdisplay')) {
         $vbulletin->templatecache['threadbit'] = str_replace(
                   '$thread[postusername]</span>',
                   '<span class=\"time\">($thread[threaddate])</span> $thread[postusername]</span>',
                   $vbulletin->templatecache['threadbit']
                   );
}
of course, change your SPAN tags as needed as mentioned above.
Reply With Quote
  #30  
Old 01-18-2007, 08:22 PM
SiMateoAko SiMateoAko is offline
 
Join Date: Apr 2006
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Eq4bits View Post
Installed and really like this, but, the date is BOLD, anyway to make it not bold? I haven't been able to locate it in the threadbit template at all, or anywhere else in the templates.
Look in your insert date into template plugin that is associated with this product. You can change your class there.

It currently uses the "time" class to format the text.
Reply With Quote
  #31  
Old 01-18-2007, 10:11 PM
Eq4bits Eq4bits is offline
 
Join Date: May 2006
Posts: 468
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks! that did it, changed 'time' to 'smallfont'
looks much better
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 11:48 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05761 seconds
  • Memory Usage 2,315KB
  • Queries Executed 25 (?)
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
  • (3)bbcode_code
  • (7)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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_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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete