The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Comments |
#22
|
|||
|
|||
![]()
on google map, i click on "link", then copy the Second line code "HTML"
and then paste in between the 2 exemple : Quote:
I got the same thing than Saan... |
#23
|
|||
|
|||
![]()
As a test, it would be good to use the URL source of those who CAN get the map-only to embed, to make sure it isn't something on our servers. The originator presents a grainy photo of the URL, but getting it in copy would be ideal.
I suspect that the parsing within this mod isn't polished enough to account for ALL the types of Google URLs out there. |
#24
|
||||
|
||||
![]()
This is really interesting. I hope someone can improve this. I was previously using Stonyarc his hack, but that is in the graveyard for a security flaw.
|
#25
|
|||
|
|||
![]()
From the best of my ability, here's the text of his HTML he got from Google (from his post #9 on page 1, URL = http://forums.tinet.org/showthread.php?t=103). Try to paste this into a posting on your server using the "GMAP" tags to see what you get. All that comes back for me a map of Spain centered on Madrid, and again with the Google headers at the top, not just a map. API key issue perhaps?
Quote:
|
#26
|
|||
|
|||
![]()
I have been running this mod for a few days and not found any of the issues that other people are describing. So here is some information that may or may not help other mod users:
1) The Google Maps API key is irrelevant to this mod and is a red herring 2) You have to get the code to embed from: http://maps.google.com Looking at the bbcode it seems that other Google domains (i.e. .es may work but I have not try this) 3) For my users I have created an FAQ that details exactly how to use the mod, see here for that: http://www.therevcounter.com/faq/241...ads-posts.html 4) This is how I have the bbcode configured: Title: Google Map BB Code Tag Name: gmap Replacement Code: Code:
<script type="text/javascript"> function checkURL() { if ((url.indexOf("http://")!=url.lastIndexOf("http://"))||url.lastIndexOf("http://")!=0){return false;} if (url.indexOf('"')>=0) {return false;} if (url.indexOf("http://maps.google")!=0){return false;} return true } tot='{param}'; tot=tot.substr(tot.indexOf("src="")+10,tot.length); url=tot.substr(0,tot.indexOf(""")); urlp=url.replace(/;amp;/g,';'); url=urlp; if (checkURL()) { document.write('<iframe width="640" height="480" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="'+url+'"></iframe>'); } else { document.write("<p><b>Wrong map URL, edit the post to change it.</b></p>Reload the page when finished to check if correct."); } </script> [gmap]iframe code[/gmap] Description: Embeds Google maps into posts. To use this find the map you want on Google Maps, click the link icon and select all text that is in the "Paste HTML to embed in website" section. Then paste into the post surround by [gmap][/gmap] Use {option}: No Button Image (Optional) I didn't define one, you can if you want Remove Tag If Empty Disable BB Code Within This BB Code Disable Smilies Within This BB Code Disable Word Wrapping Within This BB Code All yes |
#27
|
|||
|
|||
![]() Quote:
|
#28
|
|||
|
|||
![]()
Thanks Mr Eyes,
I forgot to tell how to tune the other settings for the BBCode... I'll update the main entrance. I have'nt any API key or similar, this works using the embed option that google offers. To the users having problems, please set the settings for the BBCode as follows: Use {option}: -> No Remove Tag If Empty -> Yes Disable BB Code Within This BB Code -> Yes Disable Smilies Within This BB Code -> Yes Disable Word Wrapping Within This BB Code ->Yes And then let me know if your problems persist... For those having the Permission problems, test the above solution, and if the problem persists, could you do an "View source" and then paste the code for the tot variable here? You can find : tot=' And then paste here the whole line... Thanks |
#29
|
|||
|
|||
![]()
I get the error "Wrong Map URL....."
map link code is: Code:
<iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps/ms?hl=en&ie=UTF8&msa=0&msid=107862149087073613526.00044b7d4c1dc31d40e5d&t=h&ll=53.384826,-1.69503&spn=5.158155,2.562814&output=embed&s=AARTsJolE0Pef8rEmKk2Gs9h4BwtXXwYlQ"></iframe><br /><small><a href="http://maps.google.com/maps/ms?hl=en&ie=UTF8&msa=0&msid=107862149087073613526.00044b7d4c1dc31d40e5d&t=h&ll=53.384826,-1.69503&spn=5.158155,2.562814&source=embed" style="color:#0000FF;text-align:left">View Larger Map</a></small> Code:
tot='<iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps/ms?hl=en&ie=UTF8&msa=0&msid=107862149087073613526.00044b7d4c1dc31d40e5d&t=h&ll=53.384826,-1.69503&spn=5.158155,2.562814&output=embed&s=AARTsJolE0Pef8rEmKk2Gs9h4BwtXXwYlQ"></iframe><br /><small><a href="http://maps.google.com/maps/ms?hl=en&ie=UTF8&msa=0&msid=107862149087073613526.00044b7d4c1dc31d40e5d&t=h&ll=53.384826,-1.69503&spn=5.158155,2.562814&source=embed" style="color:#0000FF;text-align:left">View Larger Map</a></small>'; tot=tot.substr(tot.indexOf("src="")+10,tot.length); |
#30
|
|||
|
|||
![]()
It works for me...
![]() I'm gone here: http://maps.google.com/maps/ms?hl=en...dc31d40e5d&t=h Clicked on the link button, and copied the content from the field: Paste HTML to embed in website then I've pasted the content inside the Please enter the BBCode definition for gmap and check these values are like here: Use {option}: -> No Remove Tag If Empty -> Yes Disable BB Code Within This BB Code -> Yes Disable Smilies Within This BB Code -> Yes Disable Word Wrapping Within This BB Code ->Yes If public, let me see your test page... |
#31
|
||||
|
||||
![]()
I've got running OK now. This is so cool !!!
Just one small thing, does someone here knows an instrution to include on the code to remove the hyperlinks from Google Maps before the gmap instruction ? I'll tell you why, on my board I have to use "parse links automaticaly" so when I past the Google Map link it comes with the links and if I use it with the link parsed the BB Code doesn't work, so I have to remove the hyperlink manually. As most my users are hard to teach this sequence I was wondering about this solution to be inside of gmap BBCode it self. Tks |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|