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

tesliana’s picture

Folks, does anyone have any ideas on this, as I am totally stuck.

EDIT: I refuse to believe that this can not be done. ;)

tesliana’s picture

Surely, somebody must know the answer to this ?!?

tesliana’s picture

Anyone ? Anyone at all ;?)

_paul_meta’s picture

I 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 :)

dnewkerk’s picture

Confirmed 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.

akolahi’s picture

For some reason it works when the input format is "PHP Code" but not when it is set as HTML.

Ryan Corrigal’s picture

This, 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

stella’s picture

Status: Active » Closed (duplicate)