vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Profile Enhancements - Timezone Image In Profile (https://vborg.vbsupport.ru/showthread.php?t=148338)

Nutz 05-28-2007 10:00 PM

Timezone Image In Profile
 
Timezone Image In Profile

Description
This plug-in will allow you to have a world timezone image in user profile view.(see screenshot).

LIVE DEMO: http://cursayer.com/member.php?u=1
http://64th.net/vB/img/timezone.png

Details
  • 1 Product
  • 1 Phrase
  • 1 Template Modification
Notes
Requires 1 small template modification to MEMBERINFO.
The time zone image is selected from the users Timezone options.

History
1.0 - Initial Version
1.5 - Time and date is imprinted on the timezone image.
2.0 - Updated to 3.6.x

Last Words
I hope you enjoy the hack and don't forget to click install please :)

Thanks,
Mat

iogames 05-28-2007 11:46 PM

Hehe! First!

Barakat 05-29-2007 12:18 AM

thanks

Bounce 05-29-2007 12:33 AM

Interesting ..

*Clicks Installed*

Nutz 05-29-2007 12:56 AM

Thanks.

Wonder is there is much call for this to be a user option in the user cp? Or are you all ok forcing your members to show there TZ? ;)

rjmjr69 05-29-2007 01:26 AM

nice. There is a mod out there called World Times. I have that installed will this be a problem to install along side?

bashy 05-29-2007 05:13 AM

Cheerz Nutz, hope this 1 installs better than i did with ya other version (i was new then :o) will try it tonight when i get home :)

Hornstar 05-29-2007 05:54 AM

nice work, looks like a cool profile enhancement. thanks.

Nutz 05-29-2007 07:42 AM

Don't forget to click install :)

Thanks,
Mat

Subah 05-29-2007 07:50 AM

Cool , Thanks :)

Nutz 05-29-2007 09:33 AM

Hey mike,
If you look at the screenshot you can see that this adds an image showing the users timezone, rather than just text :)

Thanks,
Mat

abdulla1 05-29-2007 10:10 AM

Exciting , will be installed

HeRmAn'S 05-29-2007 10:46 AM

version 3.6.5 ...lıne up ...no problem ..good work :) and Installed :up:

InfidelMatt 05-29-2007 11:39 AM

Very cool, but is there any way to modify the colors of the image? Blue and green don't really match my site very well and I'd like to customize it a bit.

ETA: Nevermind, downloaded it and answered my own question. Thanks! Will install after changing colors!

Matt

Nutz 05-29-2007 11:45 AM

Hi matt,
The images used to make it can be found in the 'gmti' folder.. 32 of them, you can edit them to your hearts content :)

Thanks,
Mat

hnjco 05-29-2007 12:08 PM

VB 3.6.7
Installed and working great :up

Stifmeister2 05-29-2007 03:26 PM

Nice! :)

MThornback 05-29-2007 05:04 PM

I got the 3.5 version working fine on 3.6, what if anything has changed?

Mrdby 05-30-2007 12:13 AM

Demo Anybody?

rjmjr69 05-30-2007 12:28 AM

Quote:

Originally Posted by rjmjr69 (Post 1256579)
nice. There is a mod out there called World Times. I have that installed will this be a problem to install along side?


Nutz any answer?

rjmjr69 05-30-2007 12:34 AM

Works fine with World Time Zones.... Thanks for the answer

How do you move it to the right side of the window like your screen shot shows? Mines on the left

ReQueM 05-30-2007 01:03 AM

Very nice... Thanx
*click insrtall*

Nutz 05-30-2007 07:15 AM

Quote:

Originally Posted by MThornback (Post 1256989)
I got the 3.5 version working fine on 3.6, what if anything has changed?

Just the template changes.. you should be fine.

Quote:

Originally Posted by rjmjr69 (Post 1257246)
How do you move it to the right side of the window like your screen shot shows? Mines on the left

The instructions on how to replace the usergroups with the map 'move it to the right' can be found in the 'Installation.txt' under the 'PS: This is the template edit to do if you want to replace the 'usergroups' area in the profile.' hidden away at the bottom :)

Taipa 05-30-2007 04:50 PM

Quote:

Originally Posted by Nutz (Post 1257417)
Just the template changes.. you should be fine.



The instructions on how to replace the usergroups with the map 'move it to the right' can be found in the 'Installation.txt' under the 'PS: This is the template edit to do if you want to replace the 'usergroups' area in the profile.' hidden away at the bottom :)

What if we want it on the right below the usergroups section, instead of replacing the usergroups section?

Nutz 05-30-2007 04:52 PM

Quote:

Originally Posted by Taipa (Post 1257720)
What if we want it on the right below the usergroups section, instead of replacing the usergroups section?

Bottom right you mean? would require something on the bottom left, unless your into big empty gaps :)

Thanks,
Mat

Taipa 05-30-2007 05:11 PM

Quote:

Originally Posted by Nutz (Post 1257728)
Bottom right you mean? would require something on the bottom left, unless your into big empty gaps :)

Thanks,
Mat

Yeah, bottom right. :)
Right now I have a big empty gap (on the bottom right) because the left column is longer than the right column. On my forum, moving the timezones to the right column would even up the two sides and eliminate the big empty gap.

Nutz 05-30-2007 05:38 PM

In your case then:
## FIND ##
HTML Code:

</table>
<br />

$footer

##########

## REPLACE WITH ##
HTML Code:

<tr>
        <td class="tcat" width="50%">&nbsp;</td>
        <td class="tcat" width="50%">$vbphrase[timezone_image]</td>
</tr>
<tr valign="top">

        <td class="panelsurround" align="center">
        </td>

        <td class="panelsurround" align="center">
        <div class="panel">
                <div align="$stylevar[center]">
                <img src="gmtimage.php?gmt=$userinfo[timezoneoffset]&localtime=$userinfo[localtime]&localdate=$userinfo[localdate]#gif.gif" alt="$vbphrase[timezone_image]"/>
                </div>
        </div>
        </td>

</tr>

</table>
<br />

$footer

###################

Should do the trick :)

Thanks,
Mat

Hengest 05-30-2007 09:52 PM

Installed, thanks for this :up:

bitdefuser 05-30-2007 09:55 PM

Why didn't anyone think of this before?
Great Add-on, very useful for my users. :)
Edit: Oh, hehe. :p 3.5.x: https://vborg.vbsupport.ru/showthread.php?t=101415

Nutz 06-01-2007 09:18 AM

Quote:

Originally Posted by bitdefuser (Post 1257958)
Why didn't anyone think of this before?
Great Add-on, very useful for my users. :)
Edit: Oh, hehe. :p 3.5.x: https://vborg.vbsupport.ru/showthread.php?t=101415

Glad your finding this useful bitdefuser. May I link your site as a live demo? :) seeing as you allow guests to view user profiles after all :)

Thanks,
Mat

bitdefuser 06-01-2007 05:41 PM

Quote:

Originally Posted by Nutz (Post 1258881)
Glad your finding this useful bitdefuser. May I link your site as a live demo? :) seeing as you allow guests to view user profiles after all :)

Thanks,
Mat

Sure! :) Here's me: http://www.cursayer.com/members/bitdefuser

Nutz 06-01-2007 08:38 PM

Thanks :D linked you in the first post.

Thanks,
Mat

Taipa 06-04-2007 04:33 PM

Quote:

Originally Posted by Nutz (Post 1257776)
In your case then:
## FIND ##
HTML Code:

</table>
<br />

$footer

##########

## REPLACE WITH ##
HTML Code:

<tr>
        <td class="tcat" width="50%">&nbsp;</td>
        <td class="tcat" width="50%">$vbphrase[timezone_image]</td>
</tr>
<tr valign="top">

        <td class="panelsurround" align="center">
        </td>

        <td class="panelsurround" align="center">
        <div class="panel">
                <div align="$stylevar[center]">
                <img src="gmtimage.php?gmt=$userinfo[timezoneoffset]&localtime=$userinfo[localtime]&localdate=$userinfo[localdate]#gif.gif" alt="$vbphrase[timezone_image]"/>
                </div>
        </div>
        </td>

</tr>

</table>
<br />

$footer

###################

Should do the trick :)

Thanks,
Mat

Thank you! :D
That's just perfect! ^_^

bongwater 06-04-2007 07:28 PM

works flawlessly on my 3.6.7

Alibass 06-05-2007 01:46 AM

Nice hack, thanks! *Installed*

BadgerDog 06-05-2007 11:40 AM

Installed on v3.6.7PL1.... :)

Works great (replaced usergroup area)... :up:

Thank you...

Regards,
Badger

deezelpope 06-05-2007 11:50 AM

I did the same thing...:) Looks great!!:up:

BadgerDog 06-05-2007 12:49 PM

Ok, got a bit of a problem....

Had a user from Newfoundland.... GMT -3.30 send an email to me. He's not getting the map display, but rather the classic RED X that the file is not there. I checked his display and the RED X points to this filename, stored under directory GMTI off of the root.

Code:

http://www.milsurps.com/gmtimage.php?gmt=-3.5&localtime=11:17 AM&localdate=06-05-2007#gif.gif
I downloaded the file and check it. It appears like a normal GIF and it displays fine.

Any suggestions as to why this particular timezone would not have it's corresponding filename found? Perhaps something to do with the comma issue?

I haven't checked all of the other timezones, but the ones I have seem to be working fine.

Thanks

Regards,
Badger

Nutz 06-05-2007 02:31 PM

Hey there badger, can you shoot me a link to the user in questions profile please?

Thanks,
Mat

BadgerDog 06-05-2007 02:38 PM

Quote:

Originally Posted by Nutz (Post 1261779)
Hey there badger, can you shoot me a link to the user in questions profile please?

Thanks,
Mat

I was going to do that, then I fixed the problem..... :up:

I went through all of the GIFs on the server that had a comma in the filename and changed it to a period.

ie: as originally installed: gmt_-3,5.gif

renamed it to: gmt_-3.5.gif

Problem solved and the guy from Newfoundland is happy.... :D

I have no idea why this worked, but it did and his gif pic loads and appears fine now ....

Regards,
Badger


All times are GMT. The time now is 06:05 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.01442 seconds
  • Memory Usage 1,826KB
  • 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
  • (4)bbcode_html_printable
  • (10)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