This module is working for me quite well with the iframe setting, with one exception: Say someone posts a link in a forum post, e.g.
http://drupal.org
If a user clicks this link in the phpbb post, the whole Drupal page loads within the iframe.
Similarly, suppose someone links to a page on my site in a phpbb post:
http://mysite.com/some-drupal-node
When the user clicks on this link, my whole Drupal site renders within the iframe. Including another nested iframe for the phpbbforum page...
Is there any way to make all links in phpbb to URLs that are not in the phpbb directory open to the top level frame rather than within the iframe?
Comments
Comment #1
xjmOops, selected wrong version. I'm using the most recent release verson.
Comment #2
xjmComment #3
skeal commentedhello
the problem is not drupal or the bridge
it's phpbb itself
look here for example:
http://www.phpbb.com/kb/article/links-opening-new-windows/
Comment #4
xjmThanks for the prompt reply. That would allow me to open links in entirely new windows, but what about opening them in the same window, at the top rather than in the iframe? This is particularly relevant for links to other posts on my forum, or to pages on my drupal site linked in the forum. On the "standalone" phpbb site it's not a concern if they open in the same window, but it is frustrating to have my drupal site open within itself, inside the iframe.
Might it be possible to create a javascript for this module that adds the appropriate target to links within the iframe that are on the site's domain? (I tried the External Links module, but it did not apply to links within the iframe.)
Comment #5
fizk commentedComment #6
xjmHm, don't think this was actually ever fixed. ;)
Comment #7
Paul Lomax commentedThis isn't a problem for the module, it is a problem for your site. Putting this somewhere in your forum styles should work.
$(".postbody .content a[href^='http://']").attr("target","_top");Comment #8
fizk commentedxjm, Congrats on getting to the Community Spotlight :)