Jump to content


Photo

Script help


  • Please log in to reply
1 reply to this topic

#1 kdesilva

kdesilva
  • Members
  • PipPip
  • Member
  • 12 posts

Posted 31 March 2006 - 03:32 PM

Just a small one..

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

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

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

#2 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 31 March 2006 - 05:21 PM

Do you want rel="lightbox" 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:
'<a href="'.$gallery_uri.'file='.$current.$path['basename'].'&rel=lightbox">'.$path['basename'].'</a>'
or if as an attrubute use this:
'<a href="'.$gallery_uri.'file='.$current.$path['basename'].'" rel="lightbox">'.$path['basename'].'</a>'





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users