Jump to content


This topic is now archived and is closed to further replies.


Script help

Recommended Posts

Just a small one..

I want to be able to add the code [code]rel="lightbox"[/code] .. to this code

[code]<a href="'.$gallery_uri.'file='.$current.$path['basename'].'">'.$path['basename'].'</a>[/code]

How do I do it? The "" keeps effing everythign up ..

Share this post

Link to post
Share on other sites
Do you want [i]rel="lightbox"[/i] to passed over the URL or do want it to be as an attribute as I dont know where you want it. If you want it be passed over the URL then use this:
[code]'<a href="'.$gallery_uri.'file='.$current.$path['basename'].'&rel=lightbox">'.$path['basename'].'</a>'[/code]or if as an attrubute use this:
[code]'<a href="'.$gallery_uri.'file='.$current.$path['basename'].'" rel="lightbox">'.$path['basename'].'</a>'[/code]

Share this post

Link to post
Share on other sites


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.