Previous Thread
Next Thread
Print Thread
Rate Thread
#317256 06/20/2008 10:31 AM
Joined: Jun 2008
Posts: 3
Lurker
Lurker
Offline
Joined: Jun 2008
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...

Sponsored Links
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

Joined: Nov 2003
Posts: 482
Enthusiast
Enthusiast
Offline
Joined: Nov 2003
Posts: 482
ps: the same concept can be applied to the latest posts from a gallery forum island dealio..

prolly make that a strip also...

:3c:

Joined: Nov 2003
Posts: 482
Enthusiast
Enthusiast
Offline
Joined: Nov 2003
Posts: 482
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

Joined: Jun 2008
Posts: 3
Lurker
Lurker
Offline
Joined: Jun 2008
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!

Sponsored Links

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
Nettomo
Nettomo
Germany, Bremen
Posts: 417
Joined: November 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
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,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)