Follow Me on Twitter
Client Support Community Server Status Contact Us Client Login
Email Hosting Website Hosting Reseller Hosting VPS Hosting Dedicated Servers

    Join our Community      Check your private messages       Profile       Search       FAQ       Memberlist       Log in


lightbox2 help

 
Post new topic   Reply to topic    NetHosted Community Index -> Web Design
Garry Reply with quote
 NetHosted Customer

 

 Joined: 03 Oct 2005
 Posts: 524
 Location: Lincoln, UK

PostPosted: Fri Sep 09, 2011 12:25 pm    Post subject: lightbox2 help
 
Hi,

I have tried lightbox2 and jquery lightbox and I have the same problem with both.
I have added the javascripts and css files for the lightbox.

This is my code:
Quote:
<a href="getsnap.php?id={$user.id}&amp;typ=full&amp;picid={$pic.picno}" rel="lightbox" title="TITLE"><img src="getsnap.php?id={$user.id}&amp;typ=tn&amp;picid={$pic.picno}" width="45" height="45" alt="" /></a>


The problem hee is when you click on the image, it want you to save the file to your computer and not use the lightbox effect.

I have to put the image through getsnap.php?etc....

Any ideas?

_________________
Regards,
Garry
Crazy BigGaz - My blog 
Back to top
View user's profile Send private message Visit poster's website
Garry Reply with quote
 NetHosted Customer

 

 Joined: 03 Oct 2005
 Posts: 524
 Location: Lincoln, UK

PostPosted: Fri Sep 09, 2011 12:46 pm    Post subject:
 
Just put the code in the demo page and did direct url links and it worked.
Something must be mess it up

_________________
Regards,
Garry
Crazy BigGaz - My blog 
Back to top
View user's profile Send private message Visit poster's website
Garry Reply with quote
 NetHosted Customer

 

 Joined: 03 Oct 2005
 Posts: 524
 Location: Lincoln, UK

PostPosted: Fri Sep 09, 2011 12:57 pm    Post subject:
 
Looks like it is jquery that is messing it up
_________________
Regards,
Garry
Crazy BigGaz - My blog 
Back to top
View user's profile Send private message Visit poster's website
Garry Reply with quote
 NetHosted Customer

 

 Joined: 03 Oct 2005
 Posts: 524
 Location: Lincoln, UK

PostPosted: Fri Sep 09, 2011 1:17 pm    Post subject:
 
It looks like it was jQuery breaking it. As soon as I removed it, it worked.
Not sure why the the jQuery lightbox wouldn't work.

Anyway I have it working now, just need to move some code around for it to all work.

_________________
Regards,
Garry
Crazy BigGaz - My blog 
Back to top
View user's profile Send private message Visit poster's website
Garry Reply with quote
 NetHosted Customer

 

 Joined: 03 Oct 2005
 Posts: 524
 Location: Lincoln, UK

PostPosted: Sat Sep 10, 2011 12:08 am    Post subject:
 
After some searching and testing I just found colorbox that works with jQuery 1.6.1, and works with my setup.

The one that worked was using an eariler version of jQuery and would stop me doing other things on that page I wanted to.

_________________
Regards,
Garry
Crazy BigGaz - My blog 
Back to top
View user's profile Send private message Visit poster's website
Post new topic   Reply to topic    NetHosted Community Index -> Web Design
Page 1 of 1

User Permissions
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum

 
Jump to: