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
Display the date of creation of threads Details »»
Display the date of creation of threads
Version: 1.0.1, by PitchouneN64ngc (Senior Member) PitchouneN64ngc is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 3.6.7 Rating:
Released: 04-02-2007 Last Update: Never Installs: 70
Uses Plugins
 
No support by the author.

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

Show Your Support

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

Comments
  #22  
Old 05-12-2008, 02:09 PM
johnban johnban is offline
 
Join Date: Apr 2008
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #23  
Old 05-30-2008, 01:05 PM
tei727's Avatar
tei727 tei727 is offline
 
Join Date: Feb 2006
Posts: 162
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by johnban View Post
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!
Reply With Quote
  #24  
Old 05-27-2009, 07:48 PM
RedHotChili's Avatar
RedHotChili RedHotChili is offline
 
Join Date: Mar 2009
Posts: 68
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Has anyone installed this on 3.8.2?

Does anyone know any reason why it wouldn't work on 3.8.2?
Reply With Quote
  #25  
Old 05-28-2009, 06:30 AM
Outbackmark's Avatar
Outbackmark Outbackmark is offline
 
Join Date: Jun 2007
Posts: 125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #26  
Old 05-28-2009, 06:19 PM
RedHotChili's Avatar
RedHotChili RedHotChili is offline
 
Join Date: Mar 2009
Posts: 68
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks so much, Outbackmark.

I really appreciate it!
Reply With Quote
  #27  
Old 05-29-2009, 01:43 PM
Charlie98902 Charlie98902 is offline
 
Join Date: Dec 2006
Posts: 1,156
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #28  
Old 06-06-2009, 10:17 PM
RedHotChili's Avatar
RedHotChili RedHotChili is offline
 
Join Date: Mar 2009
Posts: 68
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?

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?

Quote:
Originally Posted by Charlie98902 View Post
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>
Reply With Quote
  #29  
Old 06-08-2009, 02:43 PM
RedHotChili's Avatar
RedHotChili RedHotChili is offline
 
Join Date: Mar 2009
Posts: 68
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.)
Reply With Quote
  #30  
Old 06-14-2009, 03:54 PM
RedHotChili's Avatar
RedHotChili RedHotChili is offline
 
Join Date: Mar 2009
Posts: 68
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anybody here able to explain how to do this plugin?
Reply With Quote
  #31  
Old 06-15-2009, 01:37 PM
RedHotChili's Avatar
RedHotChili RedHotChili is offline
 
Join Date: Mar 2009
Posts: 68
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wow, nobody willing to help?

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.
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 06:10 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.05277 seconds
  • Memory Usage 2,318KB
  • 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
  • (4)bbcode_code
  • (3)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
  • (3)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