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

COL NIL SATIS 07-01-2010 01:08 PM

Works great ..cracking little mod ...Thanks Boofo ...installed and rated 5

steve1966 07-02-2010 12:25 PM

thanks

odln018 07-03-2010 05:34 PM

Great, thanks!

LordVader 08-19-2010 03:21 PM

Thank you :)

Installed & working perfectly on VB-4.0.6

Excellent rating given. :up:

Thanks again

Will. :)

goran424 09-30-2010 02:19 AM

Quote:

Originally Posted by Winter Sonata (Post 2052721)
Could we have this working with 4.0.2

Thanks in advanced

+ 1

Boofo 09-30-2010 03:03 AM

Quote:

Originally Posted by goran424 (Post 2104900)
+ 1

Just change 4.0.3 to 4.0.0 in the xml file and it will work fine.

goran424 09-30-2010 04:58 AM

Thanks.

MoonDaemon 11-28-2010 10:05 PM

Great mod, but the Local Time & Date fields keep duplicating themselves in the postbit several times...

Boofo 11-28-2010 11:20 PM

Quote:

Originally Posted by MoonDaemon (Post 2126900)
Great mod, but the Local Time & Date fields keep duplicating themselves in the postbit several times...

It works fine with the default skin, which is what I use. You have a custom skin I take it?

MoonDaemon 11-29-2010 12:35 AM

↑ Right; I presume that I'll need to do some HTML-magic on my custom skin?

Boofo 11-29-2010 12:57 AM

It looks like you might have to. What postbit are you using? The legacy?

MoonDaemon 11-29-2010 02:53 AM

Yup, the PostBit Legacy; I've been needing to do this for a few other mods too, so it's old news to me. I'm still getting the hang of editing those templates, but I guess that I'll need to put the code for this mod somewhere in the PostBit Legacy template

Boofo 11-29-2010 03:09 AM

Quote:

Originally Posted by MoonDaemon (Post 2127000)
Yup, the PostBit Legacy; I've been needing to do this for a few other mods too, so it's old news to me. I'm still getting the hang of editing those templates, but I guess that I'll need to put the code for this mod somewhere in the PostBit Legacy template

Look in the xml file and you will see that I use a template hook in the postbit_legacy template. Just look for that hook in the template of the custom skin and see what is going on there.

Munkholm 12-12-2010 01:11 PM

Great plugin - Thank you.

One problem for a newbie here... I´d like to change the text "Local Time" to "Current Local Time", but have not been able to find anywhere to change it.
Apreciate the help - Thank you.

Edit: Located it in the .xml file, so uninstalled, changed text in .xml and reinstalled again ! Works like a charm - Thank you.

OldSchoolDSL 03-23-2011 05:37 AM

Installed and working

4.1.2 :)

XiTCLUB 03-23-2011 06:44 PM

Installed, Thanks

steve1966 04-17-2011 03:29 PM

nominated great mod

wally07 04-29-2011 10:17 PM

Works perfectly on 4.1.3!

I LOVE this mod!! Thanks a million boofo! :)

AWithers04 05-31-2011 12:42 PM

Works Great. Any idea how I can make the postbit title bold like below

Local Date: 05-31-2011
Local Time: 10:58 AM

Boofo 05-31-2011 12:52 PM

Look in the phrases for the mod.

AWithers04 05-31-2011 01:07 PM

Thanks. Once you mention phrase, I got it all fixed up. Fairly new to vbulletin so am learning a lot. Appreciate the quick response

Boofo 05-31-2011 01:44 PM

Glad you got it all fixed up. ;)

MishyMashy 12-19-2011 06:01 PM

Just what my members wanted thanks :)

datoneer 12-19-2011 09:06 PM

Working with 4.1.8. Rated 5 thanks

Universal 02-09-2012 12:51 AM

2012 Update, works fine with 4.1.10.

Thank you Boofo, great job as always / Installed

1320Nation 02-09-2012 02:40 AM

Quote:

Originally Posted by Universal (Post 2297746)
2012 Update, works fine with 4.1.10.

Thank you Boofo, great job as always / Installed

X2

Nice work!

TombstoneWarrior 02-12-2012 12:14 PM

boofo is there somewhere to make any changes to this mod? like a cpanel? i see my date and time i quess this mod does not need a cpanel .... love the mod though boofo thouth i would tell you 5 stars ad nominated!!!!!!!!!!!!!!!!!!!

Boofo 02-12-2012 12:26 PM

If you see the date and time in the postbit and profile, then it is working. There are no other settings for it.

I.G.O.T.A. 03-02-2012 02:19 AM

Installed on 4.1.5 & 4.1.10. No issues. Works as it should. Thank you.

Nirjonadda 03-03-2012 12:18 PM

Installed working on 4.1.10 but where Admin Panel Options?


All times are GMT. The time now is 06:13 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.01310 seconds
  • Memory Usage 1,790KB
  • 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
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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