Closed (fixed)
Project:
Colorbox
Version:
7.x-1.0-beta4
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
11 Jul 2011 at 00:20 UTC
Updated:
27 Jul 2013 at 11:28 UTC
Hi,
Please can you tell me how to launch an external url say "google.com" in a colorbox from my drupal 7 node ?
Thanks
Comments
Comment #1
frjo commentedHere are some examples:
Remember to enable Colorbox load in the Colorbox configurations.
Comment #2
rolandk commentedThanks very much !
Comment #3
viny-1 commentedHi,
Starting with Drupal, can you tell me where am I supposed to add this link ? I guess in a css file somewhere, but I have no clue how css works...
I have checked eRecruiter and there are heavily using this module, I would love to be able to show external web site like them automatically...
Thanks a lot
Viny
Comment #4
rolandk commentedMake sure you install this colorbox mod in drupal.
Turn on colorbox in admin settings
When you create content, just
* set the content type to Full HTML
* add a link like this to the content body
Preview or open your content.
Comment #5
viny-1 commentedThanks a lot, works like a charm.
Is it possible to add a link directly from a menu or from a link field ?
Actually, if the user is going to enter the content by himself, he should enter http://www.google.com, and the link would be automatically updated to the link with the colorbox iframe
I have no idea if this is doable.
Viny
Comment #6
rtdean93 commentedThis is working for me - but when I call the external URL - the paths are causing trouble.
The external link I am trying to call is http://therock.ccbchurch.com/w_form_response.php?form_id=510
And when I have
<a class="colorbox-load" href="http://therock.ccbchurch.com/w_form_response.php?form_id=510/?width=950&height=500&iframe=true">open Page in Colorbox (iframe)</a>- I get a redirect page - since the external link is trying to parse the URL.Any suggestions on a workaround?
Comment #7
hutch commentedYou have two question marks in the query string and a slash getting in the way, try
I have adjusted the dimensions to get rid of the scrollbars (at least for me)
A question mark denotes the start of a query string, the ampersands delimit the key-value pairs, you were getting a redirect probably because w_form_response.php (re)started on the second '?' and could not make sense of it.
Comment #8
rtdean93 commentedThanks - it works great
Comment #9
frjo commentedComment #11
tomas.teicher commentedI tried to create link as follows:
The resulted link looks like this:
When I click on the link, colorbox is shown but it is empty. When I look in code in firebug, I see such content of colorbox:
So no content was loaded. When I replace "href" argument with some internal link, colorbox works ok. So the problem is only with external link. the url is correct, when I open it in browser in normal way without colorbox, google is loaded.
Could anybody help?
Comment #12
hutch commentedI think the problem lies with using google, not with colorbox, I just tried
and it works fine.
Comment #13
BenjaminRH commentedI had this same problem. With a normal YouTube link. I'm just getting
Strangely, when I try switching the normal watch?v= to watch_popup?v= it works.
Comment #14
Yorgg commentedEverything is giving me white pages except #12 code that works with youtube except for google.
And I'm using the dev-version.
ps. I have Colorbox Load enabled. Where else should I be looking at?
Comment #15
bessone commentedAlso with 6.x-1.1 to me give always a empty body.
Comment #16
Poieo commentedThe only way I could get a Google Map to work in colorbox was to use their web element builder:
http://www.google.com/webelements/#!/maps
Using the link provided there (plus the colorbox variables appended) opened the map in a nice clean colorbox.
Comment #17
angelusnoctis commentedI also get a blank iframe when I try to open external URLs. ¿Any idea on how to fix this?
Comment #18
mordonez commentedsame problem as angelusnoctis (colorbox 1.3).
Comment #19
gausarts commentedSeems all specific to google, below is why google iframe fails:
http://tech.slashdot.org/story/11/10/23/1949227/google-not-reciprocating...
http://productforums.google.com/forum/#!category-topic/websearch/how-do-...
Comment #20
angelusnoctis commentedFor me it is not working even with external URLs that are not from Google. Has anybody found a fix for this?
Comment #21
gbrands commentedTo get it working with Google Maps, just append another variable: &output=embed
Worked for me!
Comment #22
aze2010 commentedsubscribing. Isn't working with external Links like Twitter, Google, and so on.
Ist it maybe not probably working with "Https (SSL) Links" ?I dont know ...