Jump to content

Script help


kdesilva

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 ..
Link to comment
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]
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.