vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   User's local time in post! (https://vborg.vbsupport.ru/showthread.php?t=35896)

Admin 03-08-2002 10:00 PM

User's local time in post!
 
A very simple hack, but I'm sure your users will like this. :)
With this you can display the local time for every user in their post. Look to the left to see the hack in action.

To install this hack download the attached file (localtimepost.hack.php), upload to your /admin folder and use vbHacker.

That's all I have to say... wow that was short. :D

Have fun that's what really matters! :)

Abbas 03-09-2002 08:55 AM

Hey..nice one FireFly- especially for forums with people from all around the world.

Thanks
-Abbas

Tim Wheatley 03-09-2002 09:55 AM

This is great! Thanks :)

Tommy Boy 03-09-2002 10:37 AM

You mean it didn't show the local time before this hack?? :eek:

TheComputerGuy 03-09-2002 10:47 AM

Very Nice Chen,

filth 03-09-2002 10:51 AM

Excellent hack

Cheers

Jawelin 03-09-2002 02:38 PM

Nice idea !
Just, I got confused reading the translated NOW time just above POST time...
It shouldn't be cleaner to put there the original poster time AT THE MOMENT he posted, instead of the poster timezone at the reader's instant ? :rolleyes:
This issue, I could use $post[dateline] instead of time() ... What do you think about ? ;)

Besides, I made a slight modification to display that line only when the poster's time is different than the 'official' board time, just to have a lighter postbit on the left side...
Great idea I stolen immediately, btw!
:)

Thanks.

Admin 03-09-2002 06:24 PM

Yeah you can use $post['dateline'] instead of time() to get the time it was when the post was posted. But I want to know what the time IS right now, because maybe I need to PM the user or something. :)

Tommy Boy 03-09-2002 06:58 PM

Ahh... NOW I get it. Sorry for the confusion earlier.

Lionhead 03-09-2002 11:58 PM

Cool hack

Thx FireFly :)


All times are GMT. The time now is 03:24 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.03058 seconds
  • Memory Usage 1,728KB
  • 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)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