php forum
php mysql forum
php mysql smarty
 
Topic Options
#317256 - 06/20/08 10:31 AM Popup Lightbox for Gallery
Viper_iii Offline
Lurker

Registered: 06/18/08
Posts: 3
I'm playing with the effect using the scripts from Lightbox 2
http://www.huddletogether.com/projects/lightbox2/

basically need to figure out where the template is for viewing the gallery posts and edit that template up. so when you click on the image in the post it pops up with a different css tag is all.

Pretty simple really. and would help my gallery look much better...

I was able to use this hack for my phpbb2 forums...
http://www.phpbbhacks.com/download/7844

pretty simple really... Again just don't know which template to modify for the effect...

Top
#317258 - 06/20/08 03:50 PM Re: Popup Lightbox for Gallery [Re: Viper_iii]
sirdude Offline
Enthusiast

Registered: 11/08/03
Posts: 441
Loc: SoCal
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
_________________________

Top
#317259 - 06/20/08 03:55 PM Re: Popup Lightbox for Gallery [Re: sirdude]
sirdude Offline
Enthusiast

Registered: 11/08/03
Posts: 441
Loc: SoCal
ps: the same concept can be applied to the latest posts from a gallery forum island dealio..

prolly make that a strip also...

:3c:
_________________________

Top
#317260 - 06/20/08 03:59 PM Re: Popup Lightbox for Gallery [Re: sirdude]
sirdude Offline
Enthusiast

Registered: 11/08/03
Posts: 441
Loc: SoCal
pps: you also want to steal the file description and make that the caption, so add that to the title="xxxx" for each image.. that will pump it over to the expanded view

:4c:

wink
_________________________

Top
#317273 - 06/23/08 05:31 PM Re: Popup Lightbox for Gallery [Re: sirdude]
Viper_iii Offline
Lurker

Registered: 06/18/08
Posts: 3
Okay... that helps... (just might be above my ability but I'll try)

I think I should be able to figure it out only with your above information...

Hopefully my test will be worth a darn..LOL

Again Thanks for that information!

Top


Moderator:  Gizmo 
Who's Online
0 registered (), 27 Guests and 11 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Forum 'Trader Ratings'.
by blaaskaak
11/20/08 08:27 AM
Problems reading a lot of old posts here
by Ruben Rocha
11/18/08 04:33 PM
PhotoPost BB Code Popup
by Iann128
11/15/08 01:24 PM
Customization needed
by Gizmo
11/12/08 12:28 PM
Team UBBDev Rides Again!
by AllenAyres
11/11/08 02:16 PM
Active Topics.
by AllenAyres
11/11/08 02:13 PM
Looking for a simple upload script
by AllenAyres
11/11/08 02:12 PM
New Mods
Forum 'Trader Ratings'.
by McLemore
11/19/08 02:14 PM
[7.4] Keep log of custom title changes
by blaaskaak
10/27/08 07:51 AM
User Authentication Class
by
01/19/07 02:59 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
PhotoPost BB Code Popup
by
11/06/06 05:43 PM
Newest Members
Begbie, cenk, MATTO, DougMMcts, tim Anderson
13361 Registered Users
Top Posters
AllenAyres 25448
JoshPet 11330
Rick 8372
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438

 

 

 
fusionbb message board php hacks