Webmastersite.net
Register Log In

lightbox

Comments on lightbox

babrees
Expert

Usergroup: Customer
Joined: Aug 19, 2005
Location: England

Total Topics: 391
Total Comments: 1303
babrees
Posted Sep 10, 2010 - 11:49 PM:

I have used the lightbox script on older versions of wsnlinks without problems.

I am now trying to set it up on the latest version and cannot get it to work. It's not the script, as it works fine on a static page, just not with wsnlinks anymore. I am guessing that there is now some sort of conflict with the latest version.

I am really desperate to either get this working or find a script that will do the same thing, including being able to view the next attachment without closing the window. I cannot afford to pay as it is for a non-profit club that is short on funds.

(EDIT) According to this thread www.webmastersite.net/forum...hreads/thickbox--9067.html thickbox (which appears to do the same thing) is included in WSNLinks - but I can't find any information on it and have no idea how to implement it. Searching the web I found that you need to put class="thickbox" in the a href tag - tried that but it stopped the image showing altogether!

HELP!

TIA
Jill

Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Sep 11, 2010 - 4:13 AM:

jquery/thickbox-compressed.js is autoincluded everywhere already, yes. http://jquery.com/demo/thickbox/ tells me that thickbox is no longer being developed so I guess I'll have to eventually look for a replacement.

Are you using the lightbox jquery plugin -- http://leandrovieira.com/projects/jquery/lightbox/ -- or the regular lightbox? I'd recommend the jquery one since WSN uses jquery. Hopefully I can find a chance to play around with using it for WSN Classifieds or the like.
babrees
Expert

Usergroup: Customer
Joined: Aug 19, 2005
Location: England

Total Topics: 391
Total Comments: 1303
babrees
Posted Sep 11, 2010 - 5:35 AM:

Hi Paul

It's the original regular version of lightbox. TBH I don't know anything about jquery (embarrassed to say never heard of it!!)

I'll take a look at that

(edit) oh blimey! that's beyond me I'm afraid sad
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Sep 11, 2010 - 1:24 PM:

I'm playing around with the jquery one and I like it, so I'm going to replace the clunky slideshow option with it in 6.0. Here's what it's looking like so far:

Attached Files:
babrees
Expert

Usergroup: Customer
Joined: Aug 19, 2005
Location: England

Total Topics: 391
Total Comments: 1303
babrees
Posted Sep 11, 2010 - 9:01 PM:

I know it's me as I really don't understand the code, but I can't get it to work.
www.papillonclub.co.uk/papi...hampionship-show--406.html

I put the jquery.lightbox-0.5.js file in the jquery folder

In the morejavascript.txt file I added:
<script type="text/javascript" src="http://www.papillonclub.co.uk/jquery/jquery.lightbox-0.5.js"></script>

In the documentread.txt file I added:
$(function() {
$('a[@rel*=lightbox]').lightBox();
});


What have I missed or done wrong?

Jill
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Sep 12, 2010 - 3:53 AM:

Drop the $(function() { and });

Then use rel="lightbox" in the links. Also make sure you've added the CSS.
babrees
Expert

Usergroup: Customer
Joined: Aug 19, 2005
Location: England

Total Topics: 391
Total Comments: 1303
babrees
Posted Sep 12, 2010 - 5:00 AM:

[sigh] nope - that doesn't work either sad
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Sep 12, 2010 - 8:45 AM:

Well, it's pre-integrated in the current 6.0.0 Beta 4 release.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



Sorry, you don't have permission to post posts. Log in, or register if you haven't yet.