PDA

View Full Version : Show Thread Enhancements - Enhanced Post Time: Show poster's local time and date in post


hambil
03-01-2009, 10:00 PM
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 (https://vborg.vbsupport.ru/showthread.php?t=152931&highlight=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 :)


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
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
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:


<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
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
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