Register  It's Free! Monday,   September  6,   2010
User Name Password
  Downloads   Modules

Login
Username:

Password:

Remember me



Lost Password?

Register now!
Main Menu
Who's Online
8 user(s) are online (5 user(s) are browsing Forum)

Members: 0
Guests: 8

more...
Please Read This
All my modules require users to be registered to add listings or to reply to a listing.
There are parts that NEED a user ID. to work properly.

All reputable websites DO NOT allow anonymous users to add anything, even on the
Xoops site you need to be registered, there are many reasons for this.

You may be able to hack the module to work with non registered users, it will probably not be easy, and I do not support this. I'm sorry but thats the way it is.

Browsing this Thread:   1 Anonymous Users





better than lightbox
Not too shy to talk
Joined:
2008/2/27 9:44
Posts: 36
Offline
I just found a great script that is better than lightbox. it is called lightbox Plus. it automatically scales the photo equivalent to the current window size IF the photo is larger.

here is the link:

http://serennz.sakura.ne.jp/toybox/lightbox/

just create a new directory, I named mine lightboxPlus

then upload all the files located on the "resource" folder.

then change your index.php from line 776 to this:
Quote:

/*$header_lightbox = '<script type="text/javascript" src="lightbox/js/prototype.js"></script>
<script type="text/javascript" src="lightbox/js/scriptaculous.js?load=effects"></script>
<script type="text/javascript" src="lightbox/js/lightbox.js"></script>
<link rel="stylesheet" href="include/yogurt.css" type="text/css" media="screen" />
<link rel="stylesheet" href="lightbox/css/lightbox.css" type="text/css" media="screen" />';
*/
$header_lightbox = '
<script type="text/javascript" charset="UTF-8" src="lightboxPlus/spica.js"></script>
<script type="text/javascript" charset="UTF-8" src="lightboxPlus/lightbox_plus.js"></script>
<link rel="stylesheet" href="include/yogurt.css" type="text/css" media="screen" />
<link rel="stylesheet" type="text/css" href="lightboxPlus/lightbox.css" media="screen,tv" />
';


as you can see i just commented out the previous code and added my own code.

then make sure you edit "lightbox_plus.js"

Quote:

addEvent(window,"load",function() {
var lightbox = new LightBox({
loadingimg:'loading.gif',
expandimg:'expand.gif',
shrinkimg:'shrink.gif',
previmg:'prev.gif',
nextimg:'next.gif',
effectimg:'zzoop.gif',
effectpos:{x:-20,y:-20},
effectclass:'effectable',
closeimg:'close.gif',
resizable:true
});
});


please put in the ABSOLUTE PATH or else you wont see the next, previous, close, etc. images. Just follow the instructions on the website.

thats all folks. hope this helps. I'm currently very busy right now so all questions must be posted here. thanks!

Posted on: 2009/4/7 7:26
Transfer the post to other applications Transfer


Re: better than lightbox
Not too shy to talk
Joined:
2008/2/27 9:44
Posts: 36
Offline
ignore my post above and just use this:

http://blog.hma-info.de/2008/04/09/la ... -with-automatic-resizing/

make sure you READ it.

Posted on: 2009/4/16 5:53
Transfer the post to other applications Transfer






You can view topic.
You cannot start a new topic.
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.

[Advanced Search]


Donat-O-Meter
Make donations with PayPal!

Donations
Waiting Contents Ext
System Downloads Forum Alumni Job Listings Garages classifieds
Weather
Southington
Conditions as of
23 minutes ago


partly cloudy
Temp: 75 °F
Feels like: 77 °F
Rel hum: 31 %
Wind increasing
SW at 10.4 mph
view forecast
jlmzone © 2010
Powered by XOOPS 2.4.4