vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Show Thread Enhancements - Enhanced Post Time: Show poster's local time and date in post (https://vborg.vbsupport.ru/showthread.php?t=207097)

hambil 03-01-2009 10:00 PM

Enhanced Post Time: Show poster's local time and date in post
 
A simple little mod that adds the poster's time and date to the display of posts. See the attached screen shot and it will make sense.

Install
Import the product-etime.xml file from your admincp product manager.

Uninstall
Uninstall the product-etime.xml file from your admincp product manager.

Disable
Disable the Enhanced Post Time product from the product manager in your admincp.

Dependencies
This mod makes use of the Template Modification System.

To use it, install the Template Modification System first, then this mod.

Just in case you don't do that, and decide you want to after the fact, I've included a seperate templateedits-etime.xml file you can import using the Template Modification System.

However, you can also manually add the $ept_info variable to the postbit_legacy and postbit templates if you wish not to use the Template Modification System.

This mod adds no queries.

digicom 03-02-2009 11:04 AM

You Didnt Attach product xml file

hambil 03-02-2009 11:07 AM

You didn't give me a chance :p

Jasem 03-08-2009 01:29 AM

good MOD, Thank you

installed

RedeemedWarrior 03-24-2009 07:13 AM

installed :D

PGAmerica 04-12-2009 02:32 AM

This outputs a result of "Username's time Today, 06:43 PM". This is fine, but I want to make a minor modification. How do I do that? (eg. Username's Time: Today, 06:43 PM)

hambil 04-12-2009 02:42 AM

It's all done in the postbit_display_complete plugin, and not phrased :( First plugin I wrote upon returning and had a lot to re-remember :)

PHP Code:

if ($usertz != $this->post['timezoneoffset'])
{
  
$ept_info $post['username'] . "'s time ";
  
$ept_info .= $ept_date ', ';
  
$ept_info .= $ept_time '   ';


Is the code you're looking for.

PGAmerica 04-12-2009 03:44 AM

I went to my plugin manager. I do not see a plugin named "postbit_display_complete". I see a hook location with that name.

PGAmerica 04-12-2009 03:46 AM

I found it. The plugin name is "Modify the date and time to add posters date and time" under the "Product : Enhances Post Time". got it fixed. Thank you.

acegames 05-13-2009 11:41 AM

Great mod


All times are GMT. The time now is 04:55 AM.

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.05679 seconds
  • Memory Usage 1,731KB
  • 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
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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