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

   Popup Lightbox for Gallery to Del.icio.us Add to del.icio.us
  Digg Popup Lightbox for Gallery Digg it
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
Bada bing!
Enthusiast

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

A taxpayer voting for Obama is like a chicken voting for Colonel Sanders.

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

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

A taxpayer voting for Obama is like a chicken voting for Colonel Sanders.

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

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

A taxpayer voting for Obama is like a chicken voting for Colonel Sanders.

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 (), 39 Guests and 5 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Blogs, love em or hate em?
by Ian_W
10/05/08 03:47 PM
What do you use to edit the files
by Ian_W
10/05/08 03:33 PM
BeyondCompare v3.00
by Ian_W
10/05/08 03:32 PM
Glossy Black Theme with Image Reflection
by Gizmo
10/05/08 02:17 PM
ShareThis
by Gizmo
09/28/08 05:06 AM
[7.3] Viewing MySQL logfiles made easier
by AllenAyres
09/27/08 09:57 PM
Looking for a simple upload script
by Murphdog
09/26/08 08:45 PM
New Mods
[7.3] Viewing MySQL logfiles made easier
by blaaskaak
09/24/08 05:39 PM
[7.3] Language file checker
by blaaskaak
09/09/08 12:56 AM
[7.3.1] add search to showmembers page
by blaaskaak
09/07/08 04:50 AM
Multiple Identity Detector
by
12/30/06 06:39 PM
Newest Members
ghengis317, NitroX, Dogan, EliYah-, W-D
13344 Registered Users
Top Posters Last 30 Days
AllenAyres 16
blaaskaak 12
FREAK1 7
Mike L_dup1 4
Chris Bale 4
Ian_W 4
W-D 3

 

 

 
fusionbb message board php hacks