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

blue6995 05-14-2009 06:11 PM

I'm not using the Template Modification System - where in the postbit_legacy and postbit templates do I place the $ept_info variable?

How can I right align it?

Many thanks

DobieGillis? 05-14-2009 06:19 PM

lol! Mine is an hour off. Where do I adjust?

iyama 05-19-2009 11:02 AM

Not working with me. Uninstalled

lm3a.net 05-20-2009 08:29 AM

thank you ,,

down.low 06-23-2009 04:08 AM

Quote:

Originally Posted by blue6995 (Post 1810832)
I'm not using the Template Modification System - where in the postbit_legacy and postbit templates do I place the $ept_info variable?

How can I right align it?

Many thanks


I'd like to know this answer as well hambil?

down.low 06-23-2009 04:26 AM

Quote:

Originally Posted by blue6995 (Post 1810832)
I'm not using the Template Modification System - where in the postbit_legacy and postbit templates do I place the $ept_info variable?

How can I right align it?

Many thanks



Put it right before this code block in your postbit that you're using:


Code:

<if condition="$show['postcount']">#<a href="showpost.php?$session[sessionurl]p=$post[postid]&amp;postcount=$post[postcount]" target="new" rel="nofollow" id="postcount$post[postid]" name="$post[postcount]"><strong>$post[postcount]</strong></a></if>
            <if condition="$show['inlinemod']">
                <input type="checkbox" name="plist[$postid]" id="plist_$postid" style="vertical-align:middle; padding:0px; margin:0px 0px 0px 5px" value="$post[checkbox_value]" />
            </if>
        </td>
    </if>


down.low 06-26-2009 12:05 PM

Quote:

Originally Posted by iyama (Post 1813405)
Not working with me. Uninstalled

Mine is an hour off as well- can anyone help with this issue if at all possible?

PGAmerica 06-26-2009 11:17 PM

I was wondering this also; some times are correct and other zones are off by an hour - thanks

down.low 07-03-2009 01:23 PM

Any one else having this problem or has found a fix for it?

TheLastSuperman 07-03-2009 01:39 PM

Quote:

When used on a server that automatically adjusts its time for Daylight Saving Time, vBulletin's time will be off by one hour when displaying the times for users outside of those areas observing DST. A rather nasty quirk that usually gets those overseas and in places that don't observe DST a little ticked off on my forums.
Paul used to have a mod for this yet it's old so in the graveyard, as far as I know it can still be an issue but not 100%.

S-MAN

Birched 08-11-2009 01:33 AM

Sorry, not working well for me (times are erratic) -- uninstalled

Cloverfield 03-04-2010 12:18 PM

Does this tell people what time they POSTED the comment in their time? Or will that time always update and tell you their local time, NOT when they posted the post you are looking at.

Cloverfield 03-05-2010 04:43 PM

Not quite what I wanted. (I would have liked that time to update every minute rather than just stay as the time they posted the comment), however, it's pretty good. Thanks.

TimberFloorAu 03-06-2010 12:07 AM

We run a VB4 version of Boofos mod, which displays the current time and date of each member in their postbit:

To see it use the demo account details in my sig.

Cloverfield 03-06-2010 12:53 PM

Unfortunately I'm on 3.8.0.

TimberFloorAu 03-07-2010 02:05 AM

Boofos mod works on 3.8

I am not sure If I am allowed to post his code, perhaps speak to a moderator, and let me know. If so I will upload it

Dr.osamA 08-26-2010 04:42 PM

installed

thanxx

asylum119 11-14-2010 02:47 AM

I am after the same sort off thing but have 4.0.x

Any suggestions

TheLastSuperman 12-02-2011 07:32 PM

Moved to graveyard per authors request - https://vborg.vbsupport.ru/showthread.php?t=274938


All times are GMT. The time now is 06:11 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.01290 seconds
  • Memory Usage 1,773KB
  • 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_code_printable
  • (1)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (29)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