vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Miscellaneous Hacks - User's Local Time and Date in Postbit and Profile for vB 4 (https://vborg.vbsupport.ru/showthread.php?t=243379)

Boofo 05-26-2010 10:00 PM

User's Local Time and Date in Postbit and Profile for vB 4
 
1 Attachment(s)
User's Local Time and Date in Postbit and Profile for vB 4
Version 1.0.0
(By Boofo)

What does this product do?
This product will show the local time and date of users in their posts and profile. That way, you will know what the time and date is where they are located. I use this on my site so I will have an idea if it is the middle of the night, where they are at, or daytime. With your users living in all corners of the globe, this hack is a nice gauge of the different time zones without having to figure out each one in your head.

Note: This will also show the correct time and date of the poster to guests. You do not have to be logged in to know what time it is in someone else's world.

Credits:
Thanks goes out to Andreas for pointing me in the right direction for the profile time and helping to verify the original code. And thanks goes out to Chen Avinadav for making the first local time hack for vB 2 and allowing me to release it for vB 3, vB 3.5, vB 3.7 and now vB 4.

Version Information:
Version 1.0.0 --Initial release for vB 4

Installation Overview:
----------------------------
1 Product XML (4 Plugins, 2 Phrases and 2 templates)

Installation Instructions:
-------------------------------
Go to your Admin CP
Scroll down to 'Plugin System'
Click 'Manage Products'
Click 'Add/Import Product'
Click the 'Browse' button, and locate the product-boofo_date_time.xml file on your computer
---------------------------------------------------

Done!
Enjoy!

Code:

if ($mark_as_installed != 'clicked')
{
        $you_get = 'squat';
}
else
{
        $you_get = 'support';
}


sulasno 05-27-2010 08:13 AM

tagged and thanks

BadgerDog 05-27-2010 12:04 PM

Installed ..

Thank you .. :)

Regards,
Badger

princeedward 06-11-2010 07:39 AM

Thanks!!!
Marked Installed-Nominated-Rated Excellent

;)

Winter Sonata 06-13-2010 12:49 AM

Could we have this working with 4.0.2

Thanks in advanced

Sean James 06-28-2010 11:31 AM

When installing on vB4.0.4 i got this error message:

Quote:

XML Error: not well-formed (invalid token) at Line 1

BadgerDog 06-28-2010 11:58 AM

Can someone confirm for sure whether this works with 4.04 or not?

We're upgrading in the next few days and if it doesn't, we'd want to un-install it... ;)

Thanks .. :)

Regards,
Badger

Boofo 06-28-2010 12:04 PM

It works fine with 4.0.4 PL1. The best way to find out is to check it after upgrading.

Griffin80, I would suggest re-downloading it and trying it again as I just re-installed in on 4.0.4 PL1 and got no such error.

AliceHoward 06-28-2010 04:26 PM

Absolutely brilliant idea, works perfectly, thank you very much. :)

China-Rising 06-28-2010 09:57 PM

Great little mod,

Thanks:)


All times are GMT. The time now is 10:24 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.03531 seconds
  • Memory Usage 1,730KB
  • 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_quote_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