Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Nov 2003
Posts: 482
Enthusiast
Enthusiast
Offline
Joined: Nov 2003
Posts: 482
it's a combo bombo, basically..

showflat is loading the medium pic of the main image, then thumbs for the other ones (if they exist) for that post.

since lightbox uses the full sized images and does it's own thumbing, you will need to just load the full one(s) in showflat..

also, showflat would need to add some calls to the header that add the needed .js stuff (put in ubb_js)

for example:
PHP Code
 if ($forum_info['FORUM_IS_GALLERY']) {
$js_array = array(
0 => "quickquote.js",
1 => "image.js",
2 => "gallery.js",
);


just add your .js dudes to that array .. matter of fact, you are prolly replacing image.js and gallery.js (not sure), with lightbox and prototype, scriptac..

[note] i have a minified (compressed) version of scriptac, prototype called protoculous.js that saves loading them individually.. [/note]

(oops, forgot that note is just my special tag on another forum laugh

then in post_gallery.tpl, you'll need to make changes to add the rel="lightbox" to the image (if one) or add rel="lightbox[whatever]", so they are grouped as a strip..

also kill the thumbs area of the template, since the .js does that part for you! wink

then the scriptaculous and lightbox.js take over from there..

you also, might just copy/paste the lightbox.css into your extra css for each style, so you can style on a per theme basis..

the only draw back, would be in loading the full images all the time, but i don't see that as a big problem :2c:

---

i think i'll have a run @ it for 7.3.1, if you haven't figured it out by then.. smile

Sponsored Links
Entire Thread
Subject Posted By Posted
Popup Lightbox for Gallery Viper_iii 06/20/2008 5:31 PM
Re: Popup Lightbox for Gallery sirdude 06/20/2008 10:50 PM
Re: Popup Lightbox for Gallery sirdude 06/20/2008 10:55 PM
Re: Popup Lightbox for Gallery sirdude 06/20/2008 10:59 PM
Re: Popup Lightbox for Gallery Viper_iii 06/24/2008 12:31 AM

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
hatter
hatter
USA
Posts: 69
Joined: January 2001
Forum Statistics
Forums63
Topics37,575
Posts293,932
Members13,824
Most Online6,139
Sep 21st, 2024
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,835
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2025 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.1
(Snapshot build 20240918)