OK, seems that I am a absolute dummy ;-)
Can anyone explain where to put the code

theme('galleria_lightbox_link', $nid, $width, $height, $text);

to use the lightbox-integration.
Must this be places in the template.php?

Regards

vistree

Comments

markus_cz’s picture

Seconded,

I just wanted to ask the very same question. I've been trying to enable lightbox for an hour, and now finally gave up. Im not that skilled in PHP to understand this :/

Any help would be really appretiated.

Thanks,

Jiri

rankinstudio’s picture

Me three, I can't figure out where to plug this code in

Please help!

maulwuff’s picture

you can place it in your node body. like:

echo theme('galleria_lightbox_link', arg(1), 800, 600,  "linktext");

you have to set the input filter to php.

this example is quick and dirty, as it uses arg(1) to get the node-id.

if you've got a template file for your node type (I created a new content type "gallerianode") you can put this call there, also.

rankinstudio’s picture

alright, thanks for the reply!

So, I plug this code into (create/page/body/ with .php filter enabled?) Cant get that workin on Genesis_Darkmatter theme.

Or, I can create a new content type, gallerianode...and add the code where?

Can I change the template.php file for the theme? Do you have this integration working?

Thanks for the help!

David

rankinstudio’s picture

ALRIGHT! FINALLY after three days I got some help from "rho" in the http://drupalchat.net/ support room. MANY THANKS TO RHO!

This is how you get galleria to open in lightbox.

You have to install galleria, lightbox, and enable your PHP module

You then choose the link to the galleria that you would like to open in ligthbox. You need the "Node ID" for that galleria page. You find that in the url of the galleria when you are editing it. Then you use PHP code in the body of the page LINKING to the galleria. Make sure your input format is switched from HTML to PHP, the php module enables this option. Mine looks like this.

        print theme('galleria_lightbox_link', 7, 800, 600,  '<img src="/images/paleoart/12.jpg" width="120" height="89" border="0" align="middle"></img><strong>Paleo Art</strong>');
      

SO, the link in this code is the number 7 which is the Node ID of the galleria im trying to open in light box. Copy this code and plug the Node ID of the galleria you want to open in lightbox where I have the 7. Then I have an image linking it ect. You can change the size of the lightbox galleria is opening in where the 800, 700 are. Its really as easy as that!

Cheers!

David Rankin
david@rankinstudio.com

Mark Theunissen’s picture

Status: Active » Closed (fixed)

Sorry I wasn't around to help, been on holiday.

Glad you figured it all out. The lightbox functionality is experimental and I have found some cross browser issues with it - so please exercise caution! This module is still a beta!!

vistree’s picture

... his post chowed me a nice extra "function": The gallerias are saved as iframes (what I did not know) and so, you can open the pure gallery by chosing yourhompe.de/galleria/7 (while 7 is the node ID of the gallery). Knowing this, you can create a popup-link (I use fckeditor, which makes this easy) to open the "pure" gallery in a popup ;-)

Know I have only one big step to figure out: how to use jcarousel within drupal to navigate with the thumbnails in a nicer way (instead of having a long grid-list).

Kind regards

vistree