![]() |
Thread Age Insert for vB 4
1 Attachment(s)
Thread Age Insert for vB 4
Version 1.0.2 (By Boofo) What does this product do? This product will calculate the age of a thread, in days, and insert it after the thread title or start date in the listing. Examples: --------------------------- In forumdisplay: Testing days old after thread title ? Today <=This will display in bold text Testing bbcode ? 1 day old Testing something... ? 16 days old In showthread: Thread: Testing days old after thread title ? 12 days old Credits: Thanks goes out to Adrian for showing me a new way to do template edits and style variables in products. Version Information: Version 1.0.0 --Initial release for vB 4 Version 1.0.1 --Code optimized and days calculation rewritten to avoid any future gregoriantojd errors with certain installations. Added location setting where the thread age can be added either after the thread title or after the start date line. Added a font color setting and removed the span class highlight code. Version 1.0.2 --Removed font color setting and added Style Variable setting for the Thread Age Insert Font Color, so it can be set for each style separately. Added the Thread Age in the showthread at the top after the thread title, if you are using the "After thread title" option. Installation Overview: --------------------------- 1 Product XML (3 Plugins, 10 Phrases, 1 Setting, 1 Style Variable) Installation Instructions: --------------------------- 1. Go to your Admin CP Scroll down to 'Plugin System' Click 'Manage Products' Click 'Add/Import Product' Click the 'Browse' button, and locate the product-boofo_threaddays.xml file on your computer 2. Go to your Admin CP -> vBulletin Options -> 'Thread Age Insert' and set the following options: Thread Age Insert Location: Choose which location you want the thread age to display. (Default is off, Do not show thread age.) 3. Go to your Admin CP -> Styles & Templates -> Style Manager -> StyleVars (In the All Style Options drop-down) -> Threadbit -> boofo_threaddays_color Enter the color code of the font color that you want the Thread Age to show up in. NOTE: You will need to do this for all styles. ------------------------------------------------------ Done! Enjoy! Code:
if ($mark_as_installed != 'clicked') |
Thx great!
|
Tagged for now :D
|
Does this use phrases for translations or would I need to edit the templates or xml file?
|
From the first post: 1 Product XML (2 Plugins, 3 Phrases)
|
Thank you :)
|
Boofo will this work on 4.0.6??
|
It should, yes.
|
Quote:
Great stuff,will try it now and let you know,cheers Boofo mate:) |
confirm it works flawlessly on 4.0.6...great work Boofo thanks
|
hi i have vb 4,1,2 and i have instal this hack and i see this mesage after,,,
Warning: gregoriantojd() expects parameter 1 to be long, string given in [path]\includes\functions_forumdisplay.php(498) : eval()'d code on line 40 |
Quote:
|
Quote:
|
Thanks. I will see what I can figure out for you as I have not run into this before. Hang tight. ;)
|
installed works well on vb 4.0.3 but this mod shows only days.would be nice to show months and years.
|
That would take a lot more calculations as you would have to allow for leap years, etc. I think it would be more hassle than it is worth for a free mod.
|
Maybe have an age cut off setting... anything older than the cut off just shows "older than XX days".
|
Mikey likey :D.
|
This looks nice but I decided not to install this because it may discourage users not to view certain threads because of its age.
|
Can somebody help me with this? is this a simple importing of the xml file? what does (2 Plugins, 3 Phrases) mean?
This is a great mod btw |
Just follow the Installation Instructions in the first post and you will be fine. The 2 Plugins, 3 Phrases is for information purposes only. Also, you might want to click the install button so you can be notified of any updates to this mod.
|
Hi,
Confused... Started by xxxx, 1 Week Ago 06:49 AM but the script shows - 10 days old ??? |
Also how can I change the colour of hte highlighted text ?
thanks |
Quote:
Quote:
|
Installed and worked on default skin but not my custom skins. When I disable then re-enable, it shows the going through and altering the custom skins but there no change. Any idea why?
|
Apparently the line is looks for to add the Thread Age to is different in the custom skins. It was designed on the default skin.
|
What is the line that it adds in the default skins? If I knew what to search for I could add it into the correct place in modified ones to have it displayed.
|
I suggest to put a small icon that indicate an old thread (old thread is controlled by setting) ?
|
Just happened to find this today by accindent...I did a search by keyword and on the results page....there was the thread age right next to the title. So what do I need to add to the showthread template to get this result there as well. If it works on the results template, it should work on the others with no problem.
|
Excelent Good Mod..
|
Quote:
|
I just mean that if it works on the search results page then I should be able to get it to work on the "SHOWTHREAD" page. Just need to know what line it adds and/or where.
**Edit - Using the: Admincp->Options->Thread Age Insert I was able to get it to show after the thread start date, just not the title. This is what I was looking for anyway, so it works perfectly for me. Thanks BooFo! You're mods are always GREAT! Keep up the good work, we all appreciate it! |
You are using a custom skin, aren't you?
It shouldn't be showing on the showthread, anyway, as that is where the posts show. It is set to the templates that the thread titles show up in. |
is it not possible to show after the username as i have removed the thread start date
|
Quote:
|
1 Attachment(s)
in below picture i wanted it their is it possible
only username will be displayed i want after tht |
Not possible since you removed the start date as that is what it looks for on that line.
|
Great mod
Installed, rated and nominated. Are you going to release an update that will change it from showing in days to (days, weeks, months, years)? |
Quote:
|
1 Attachment(s)
This only calculates the age of the first post in a thread right?
Just making sure I am doing it right. |
All times are GMT. The time now is 04:57 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|