vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   Show Thread Enhancements - Clickable user location using google maps (https://vborg.vbsupport.ru/showthread.php?t=145323)

groovybaz 05-22-2007 10:27 AM

Hi guys,

I noticed that this mod is not supported. It would be perfect for my forum.
Are there any problems that have occurred in installations at all? If anyone could give me a bit more info that would be great with regards to the safety of installing an unsupported mod as i am new to VBulletin.

Many thanks

PoetJA-1975 05-23-2007 01:06 AM

Quote:

Originally Posted by groovybaz (Post 1252621)
Hi guys,

I noticed that this mod is not supported. It would be perfect for my forum.
Are there any problems that have occurred in installations at all? If anyone could give me a bit more info that would be great with regards to the safety of installing an unsupported mod as i am new to VBulletin.

Many thanks

There is basically no installation - it's a simple template modification
And it works fabulously - I like it very much ;)

Jacquii.

Pasqualis 05-23-2007 07:08 AM

I just love this simple modification!! Thanks a lot 4x4 Mecca :D

I would also like to use this on my MEMBERINFO page, but this seems a little more complicated. Any adea how I could achieve that?

Oh, and one minor thing: better to use $vbphrase[location_perm]: in stead of Location: in your template mod. ;)

meissenation 05-23-2007 05:52 PM

An issue I'm having is that it's not parsing the spaces as %20 so when it tries to link it links to:
http://maps.google.com/maps?f=q&hl=en&q=gun lake, MI
Instead of:
http://maps.google.com/maps?f=q&hl=e...n%20lake,%20MI

4x4 Mecca 05-25-2007 09:26 PM

Quote:

Originally Posted by Pasqualis (Post 1253141)
I just love this simple modification!! Thanks a lot 4x4 Mecca :D

I would also like to use this on my MEMBERINFO page, but this seems a little more complicated. Any adea how I could achieve that?

Oh, and one minor thing: better to use $vbphrase[location_perm]: in stead of Location: in your template mod. ;)

Done, thanks!

4x4 Mecca 05-25-2007 09:31 PM

Quote:

Originally Posted by meissenation (Post 1253354)
An issue I'm having is that it's not parsing the spaces as %20 so when it tries to link it links to:
http://maps.google.com/maps?f=q&hl=en&q=gun lake, MI
Instead of:
http://maps.google.com/maps?f=q&hl=e...n%20lake,%20MI

I'm not sure why, if you and make an admin account, I'll check it out.

venomx 05-31-2007 11:57 PM

I tried this on my new forum I am making... I live in Washington, PA but the google map shows up wrong..

It gives this URL: http://maps.google.com/maps?f=q&hl=en&q=Washington, PA
When I am over here: http://maps.google.com/maps?f=q&hl=e...gton,+PA+15301

4x4 Mecca 06-01-2007 07:46 PM

If anyone is having trouble, and wants me to help, I would need admin access to test edit the template. PM me if you have created an account and I'll see if I can fix it.

venomx 06-02-2007 12:34 AM

Its not a bug in your script, its because in Pennsylvania theres a few dozen "Washington's" it just picks the wrong one unless I include the zip code....

4x4 Mecca 06-02-2007 01:37 AM

I thought it had to do with the field2 being in quotes, not apostrophe's, like this
OLD CODE
Code:

<if condition="$post['field2']">
<div>$vbphrase[location_perm]: <a href="http://maps.google.com/maps?f=q&hl=en&q=$post[field2]" title="Find $post[username] on Google Maps!" target="_blank"><img class="inlineimg" src="images/globe.gif" alt="Find $post[username] on Google Maps!" border="0" /></a> $post[field2]
</div></if>

New Code
Code:

<if condition='$post['field2']'>
<div>$vbphrase[location_perm]: <a href='http://maps.google.com/maps?f=q&hl=en&q=$post[field2]' title='Find $post[username] on Google Maps!' target='_blank'><img class='inlineimg' src='images/globe.gif' alt='Find $post[username] on Google Maps!' border='0' /></a> $post[field2]
</div></if>

I just replaced all the " with '

I searched google maps for http://maps.google.com/maps?f=q&hl=en&q=Washington+pa and it shows up


All times are GMT. The time now is 02:16 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.01140 seconds
  • Memory Usage 1,740KB
  • 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
  • (2)bbcode_code_printable
  • (3)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