vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Forum Display Enhancements - Insert Thread Date into threadbit - for knowing when thread was originally posted (https://vborg.vbsupport.ru/showthread.php?t=136551)

Smoothie 01-15-2007 09:13 PM

Quote:

Originally Posted by sensimilla (Post 1159998)
yeah, but this one doesnt require file edits.

Read through the thread before speaking. That one doesn't either. :)

SiMateoAko 01-16-2007 03:34 AM

Quote:

Originally Posted by Smoothie (Post 1160167)
Read through the thread before speaking. That one doesn't either. :)

it actually requires a template edit. This one doesn't. :)

sensimilla 01-16-2007 12:12 PM

Quote:

Originally Posted by SiMateoAko (Post 1160340)
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

Kadi 01-17-2007 07:45 AM

Great hack. Thanks.

Quote:

Originally Posted by TTG (Post 1159686)
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?

SiMateoAko 01-18-2007 05:30 AM

Quote:

Originally Posted by Kadi (Post 1161261)
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']
                  );
}


Kadi 01-18-2007 06:56 AM

Thanks SiMateoAko for the quick reply.

I have another question. :o

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?

Eq4bits 01-18-2007 07:38 PM

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.

SiMateoAko 01-18-2007 08:17 PM

Quote:

Originally Posted by Kadi (Post 1161989)
Thanks SiMateoAko for the quick reply.

I have another question. :o

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.

SiMateoAko 01-18-2007 08:22 PM

Quote:

Originally Posted by Eq4bits (Post 1162430)
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.

Eq4bits 01-18-2007 10:11 PM

thanks! that did it, changed 'time' to 'smallfont'
looks much better :D


All times are GMT. The time now is 01:53 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.01085 seconds
  • Memory Usage 1,748KB
  • 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_code_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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