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)
-   -   Show Thread Enhancements - Display the date of creation of threads (https://vborg.vbsupport.ru/showthread.php?t=143951)

PitchouneN64ngc 04-02-2007 10:00 PM

Display the date of creation of threads
 
This mod displays the date of creation of threads. This appears near the original poster on showthread.php and on search.php in "Show Theads" search method.

Only 3 plugins, 1 for each location and 1 for edit the template cache for apply the content found on previous plugins.

Enjoy ;)

PS: this is the version 1.0.1, the 1.0.0 version applied only on showthread.php :)

Subah 04-03-2007 07:36 PM

Thanks :)

Pvtiste 04-03-2007 07:41 PM

Good work Pitchoune ;)
Je prends et j'installe sur pvtistes.net :D

Vb-fr powaahhh ! ^^

rjmjr69 04-03-2007 09:13 PM

Nice thank you very much

WhyDoesItMatter 04-03-2007 09:58 PM

I've been looking for something like this. Thanks alot! *Clicks Install*

AMG021 04-03-2007 10:31 PM

dude this hack has been out already! :D for 3.6.5

https://vborg.vbsupport.ru/showthread.php?t=136551

Smoothie 04-04-2007 12:16 AM

Quote:

Originally Posted by AMG021 (Post 1219333)
dude this hack has been out already! :D for 3.6.5

https://vborg.vbsupport.ru/showthread.php?t=136551

Actually, it was done before that:
https://vborg.vbsupport.ru/showthread.php?t=103430

AMG021 04-04-2007 03:09 AM

Quote:

Originally Posted by Smoothie (Post 1219370)
Actually, it was done before that:
https://vborg.vbsupport.ru/showthread.php?t=103430

lol

tanyeri24 04-04-2007 08:41 PM

how can I change the font etc..? thanks.

PitchouneN64ngc 04-04-2007 08:45 PM

Quote:

Originally Posted by tanyeri24 (Post 1219957)
how can I change the font etc..? thanks.

It uses the same CSS class as the author name (CSS class "smallfont") :)

tanyeri24 04-04-2007 08:50 PM

Quote:

Originally Posted by PitchouneN64ngc (Post 1219959)
It uses the same CSS class as the author name (CSS class "smallfont") :)

Hi and thanks but I wannt use the same class, what should I do or how? :o

PitchouneN64ngc 04-04-2007 09:07 PM

For this, you must to know the use of regular expression and to edit the "parse_templates" hook like this:
HTML Code:

$vbulletin->templatecache['threadbit'] = preg_replace(
    '/\$thread\[postusername\]/',
    '\\0 <span class=\"xyz\">($startdate)</span>',
    $vbulletin->templatecache['threadbit']
);

I haven't tested this previous code.

tanyeri24 04-04-2007 09:23 PM

thanks PitchouneN64ngc it works...

voter 08-07-2007 07:13 AM

<font color="Red">UNINSTALL!</font>
It EATS CPU and generation of any simple forumdisplay with threadlist takes 5 times more time.

AlexanderT 11-30-2007 05:24 PM

Quote:

Originally Posted by voter (Post 1311705)
UNINSTALL!
It EATS CPU and generation of any simple forumdisplay with threadlist takes 5 times more time.

Looking at the code, this is highly unlikely.

Charlie98902 05-02-2008 01:56 AM

Works on 3.7.0 gold as well so you all know.

Charlie98902 05-03-2008 01:47 AM

Might want to port it over in that section now too?

PitchouneN64ngc 05-03-2008 01:31 PM

I'll see for check my mods for 3.7 and tell someone to move it if possible (or duplicate it specially for 3.7) :)

Just give me a few time to finish my actual work if possible ;)

johnban 05-07-2008 02:26 PM

Quote:

Originally Posted by Charlie98902 (Post 1505266)
Works on 3.7.0 gold as well so you all know.


How did you manage it? I try to install it and I got the following message.

The following dependencies were not met:
1. This product is not compatible with version 3.7.0 of vBulletin. (Compatible starting with 3.6.0 / Incompatible with 3.6.99 and greater)

Charlie98902 05-08-2008 01:21 AM

I had it on 3.6.9 and then used a test forum to update 3.6.9 to 3.7.0 Then I enabled the plugin. I didn't actually install it on 3.7.0

johnban 05-12-2008 02:09 PM

I installed it.

I Changed this line in the xml code..

<dependency dependencytype="vbulletin" minversion="3.6.0" maxversion="3.6.99" />

and from 3.6.99 I did it 3.7.99 and it was installed :)

tei727 05-30-2008 01:05 PM

Quote:

Originally Posted by johnban (Post 1517240)
I installed it.

I Changed this line in the xml code..

<dependency dependencytype="vbulletin" minversion="3.6.0" maxversion="3.6.99" />

and from 3.6.99 I did it 3.7.99 and it was installed :)

thanks!

RedHotChili 05-27-2009 07:48 PM

Has anyone installed this on 3.8.2?

Does anyone know any reason why it wouldn't work on 3.8.2?

Outbackmark 05-28-2009 06:30 AM

I just installed it on 3.8.2 and it works fine, just change the dependancy settings in the xml file to look like this -
Quote:

<dependencies>
<dependency dependencytype="vbulletin" minversion="3.8.2" maxversion="3.8.9" />
</dependencies>
If you are not sure how to I have attached the ammended files.

RedHotChili 05-28-2009 06:19 PM

Thanks so much, Outbackmark.

I really appreciate it! https://vborg.vbsupport.ru/external/2009/05/2.gif

Charlie98902 05-29-2009 01:43 PM

This is what my xml says:
Code:

<?xml version="1.0" encoding="ISO-8859-1"?>

<product productid="igusto_threaddate" active="1">
        <title>Thread Date Insert</title>
        <description>Insert thread dates into threadbit templates</description>
        <version>1.0</version>
        <url />
        <versioncheckurl />
        <dependencies>
        </dependencies>
        <codes>
        </codes>
        <templates>
        </templates>
        <plugins>
                <plugin active="1" executionorder="5">
                        <title>insert thread date into template</title>
                        <hookname>global_start</hookname>
                        <phpcode><![CDATA[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']
                  );
}]]></phpcode>
                </plugin>
                <plugin active="1" executionorder="5">
                        <title>fix thread dates</title>
                        <hookname>threadbit_process</hookname>
                        <phpcode><![CDATA[if ($thread['dateline']) {
    $thread['threaddate'] = vbdate($vbulletin->options['dateformat'], $thread['dateline'], 1);
}]]></phpcode>
                </plugin>
        </plugins>
        <phrases>
        </phrases>
        <options>
        </options>
        <helptopics>
        </helptopics>
        <cronentries>
        </cronentries>
        <faqentries>
        </faqentries>
</product>

Looking into the whole plugin there is 2 with this mod.

1. Threadbit_Process -
Code:

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

2. Global_Start -
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']
                  );
}

This is what it shows in my plugin area:

Product : Thread Date Insert

fix thread dates - threadbit_process

insert thread date into template - global_start

Maybe this will help others if the other way mentioned doesn't help? I am sure this mod has been modified to be able to be used by the latest version of VB 3.8.2 by my upgrade that does this for me but not 100% sure.

RedHotChili 06-06-2009 10:17 PM

Noob question. Do I enter the entire code below in the box that asks for the PHP code for the plugin, or just the PHP portion of it? :confused:

I'm at the "Add New Plugin" in my ACP.

I looked through this code and it looks like the Hook Location is: parse_templates

But in the Plugin PHP Code it seems like it's asking strictly for PHP code and not xml, which is what what was provided in the download.

So do I just pick out the PHP code from this and enter it there, or should I just enter the whole thing? :confused:

Quote:

Originally Posted by Charlie98902 (Post 1819540)
This is what my xml says:
Code:

<?xml version="1.0" encoding="ISO-8859-1"?>

<product productid="igusto_threaddate" active="1">
        <title>Thread Date Insert</title>
        <description>Insert thread dates into threadbit templates</description>
        <version>1.0</version>
        <url />
        <versioncheckurl />
        <dependencies>
        </dependencies>
        <codes>
        </codes>
        <templates>
        </templates>
        <plugins>
                <plugin active="1" executionorder="5">
                        <title>insert thread date into template</title>
                        <hookname>global_start</hookname>
                        <phpcode><![CDATA[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']
                  );
}]]></phpcode>
                </plugin>
                <plugin active="1" executionorder="5">
                        <title>fix thread dates</title>
                        <hookname>threadbit_process</hookname>
                        <phpcode><![CDATA[if ($thread['dateline']) {
    $thread['threaddate'] = vbdate($vbulletin->options['dateformat'], $thread['dateline'], 1);
}]]></phpcode>
                </plugin>
        </plugins>
        <phrases>
        </phrases>
        <options>
        </options>
        <helptopics>
        </helptopics>
        <cronentries>
        </cronentries>
        <faqentries>
        </faqentries>
</product>



RedHotChili 06-08-2009 02:43 PM

My apologies again for the noob question, but do I need to enter just the PHP code here or do I enter the entire xml? (See post above.)

RedHotChili 06-14-2009 03:54 PM

Anybody here able to explain how to do this plugin?

RedHotChili 06-15-2009 01:37 PM

Wow, nobody willing to help? :confused:

I see a lot of activity in this forum but my simple request for help keeps getting ignored.

I got an email notice this morning about not forgetting to check off the install button. Just because I downloaded doesn't mean I've installed. And if I can't get help here in installing this simple plugin I can't mark this as installed.

Outbackmark 06-21-2009 09:58 AM

Sorry Red I did not see your posts.
Just download the file from my post above go to your product manager, scroll all the way down and clicl Add/Import Product, then click the choose button (Top Right) and navigate to the file on your PC. Click Open then upload it, and it will install from there.

RedHotChili 07-03-2009 10:30 PM

Quote:

Originally Posted by Outbackmark (Post 1833909)
Sorry Red I did not see your posts.
Just download the file from my post above go to your product manager, scroll all the way down and clicl Add/Import Product, then click the choose button (Top Right) and navigate to the file on your PC. Click Open then upload it, and it will install from there.

No problem at all. I had actually forgotten about my request and just happened to check in today and lo and behold you came to my rescue! :)

Thank you so much for posting the much needed instructions that a total n00b like me really needed. I realize that for you coders and experienced users it is pretty obvious how to do this, but for beginners at the crawling stage it really helps knowing which steps to take and in what order.

Thank you again for taking the trouble to help me out. I did exactly as you instructed and it works just as you said it would.

:)

Outbackmark 07-06-2009 08:28 AM

Glad to help Red, we all get into a pickle once in a while LOL!

boandmichele 07-14-2009 02:31 PM

just installed on 3.8.3, using the attached file you posted above, outbackmark.

worked like a charm, this should probably be resubmitted in the 3.8 mods, since it works just fine with it. :) thanks!

Charlie98902 11-15-2009 11:28 PM

Please port this over to vb4.

Thanks

Wonksta 04-29-2011 12:50 AM

Anyone here know how to change the colour of the font used to display the date? I want to make it blend into the background slightly to look less 'cluttered'.

Thanks!

P.S. working on 3.8.6 using the dependency trick on page 2 I think.

RedHotChili 02-28-2012 06:25 PM

Is this mod now included in VB4.1.x?


All times are GMT. The time now is 07:14 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.01310 seconds
  • Memory Usage 1,826KB
  • 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
  • (4)bbcode_code_printable
  • (1)bbcode_html_printable
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (37)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete