Closed (duplicate)
Project:
Lightbox2
Version:
6.x-1.9
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
31 Dec 2009 at 05:15 UTC
Updated:
15 Sep 2010 at 22:38 UTC
On my site I have news feeds and I am using lightbox2 to show the original site's story page - using lightframe.
This causes the other sites to open in a new tab: rel="lightframe[|width:400px; height:300px; scrolling: auto;]
However, this works just fine: rel="lightframe[|scrolling: auto;] ... that is - width/height are causing problems.
I have somewhat mitigated this problem by setting the size in HTML configuration page.
Ideally, I would love to be able to tell lightbox2 to auto size itself according to the size of the browser's open window within which it's being sized - either at 100% or with a small border through which my own underlying page is visible. Any ideas on how to do this ?
Comments
Comment #1
tesliana commentedFolks, does anyone have any ideas on this, as I am totally stuck.
EDIT: I refuse to believe that this can not be done. ;)
Comment #2
tesliana commentedSurely, somebody must know the answer to this ?!?
Comment #3
tesliana commentedAnyone ? Anyone at all ;?)
Comment #4
_paul_meta commentedI would also really like to be able to send custom width/height parameters to light frame ..
can someone let me know if this is possible or not, and if so, what is the correct syntax?
i tried something similar to rel="lightframe[|width:400px; height:300px; scrolling: auto;] and it breaks the lightframe.
Thanks :)
Comment #5
dnewkerk commentedConfirmed as well. The examples for controlling lightframe size given in the documentation do not work at all. The link simply loads as normal without a lightbox.
The example with the most parameters (grouping and caption) that still works correctly is:
<a href="http://www.yahoo.com" rel="lightframe[search][Search Yahoo]">Search yahoo</a>All the other more complex examples do not work at all.
Comment #6
akolahi commentedFor some reason it works when the input format is "PHP Code" but not when it is set as HTML.
Comment #7
Ryan Corrigal commentedThis, to me, sounds like an input format issue!
You can either disable the 'HTML Filter' in the default input format (not recommended, dangerous) or you can see the following thread for a solution!
http://drupal.org/node/483798
Comment #8
stella commentedduplicate of #483798: rel attribute lightframe disappears if I fill in a width