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)

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.


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