Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 4260
Latest: Verrick
New This Month: 0
New This Week: 0
New Today: 0
Stats
Total Posts: 43306
Total Topics: 7525
Most Online Today: 662
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 191
Total: 191

Author Topic: lightbox in smf gallery lite. is it possible?  (Read 23845 times)

0 Members and 1 Guest are viewing this topic.

Offline GKDantas

  • Member
  • *
  • Posts: 43
    • View Profile
    • Carrara Lounge
Re: lightbox in smf gallery lite. is it possible?
« Reply #15 on: October 16, 2007, 08:43:43 am »
I would like if the guys that know PHP and others language could speak in the newbie language... something like: install this in this direcorty, find this in this file and change to this...
Sorry but the way tjhat all post make we almost the time do wrong things in ours gallery.

Offline Paracelsus

  • Member
  • *
  • Posts: 4
    • View Profile
    • Fórum SCP
Re: lightbox in smf gallery lite. is it possible?
« Reply #16 on: October 16, 2007, 10:39:45 am »
Do you have a link to a forum with it in use just want to see how it looks

Check my signature. ;)

As for the code, it's quite simple...

Open index.template.php and put the "script" code that is on the installation instructions in Lightbox website... make sure the paths are correct to the Lightbox package that you have to upload (with the directories with images, .js and .css files).

Then open display.template.php and in the part of attachments with thumbnail modify the link and put somewhere rel="lightbox".

I can do a step-by-step manual, but you have to show me where do you get stuck.

Offline Paracelsus

  • Member
  • *
  • Posts: 4
    • View Profile
    • Fórum SCP
Re: lightbox in smf gallery lite. is it possible?
« Reply #17 on: October 16, 2007, 10:43:20 am »
I can leave a link of a specific post so it will be faster to find a picture to open it ;D

http://www.forumscp.com/index.php?topic=7989.msg223869#msg223869

Offline m771401

  • Member
  • *
  • Posts: 13
    • View Profile
Re: lightbox in smf gallery lite. is it possible?
« Reply #18 on: January 10, 2008, 04:03:40 pm »
Do you have a link to a forum with it in use just want to see how it looks

Sorry to revive an old post. I started this site but never got around to finishing it.
I'm not a programmer and not smart enough to figure out how get the next image part of lightbox to work.

Anyway... as requested. http://houstoncanine.com/index.php?action=gallery;cat=4

I would love to see this included as a feature in gallery.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16457
    • View Profile
Re: lightbox in smf gallery lite. is it possible?
« Reply #19 on: January 10, 2008, 07:36:30 pm »
I added it but only in the pro verison
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline 5thmsstech

  • Member
  • *
  • Posts: 16
    • View Profile
Re: lightbox in smf gallery lite. is it possible?
« Reply #20 on: January 10, 2008, 10:06:51 pm »
There is a lightbox option in gallery pro?

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16457
    • View Profile
Re: lightbox in smf gallery lite. is it possible?
« Reply #21 on: January 10, 2008, 10:08:11 pm »
I currently use highslide which I found out is a little different than lightbox script it self.

But if needed I can create a lighbox mod for the gallery.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16457
    • View Profile
Re: lightbox in smf gallery lite. is it possible?
« Reply #22 on: January 10, 2008, 10:33:59 pm »
Just added a lightbox mod to the gallery for the pro edition
http://www.smfhacks.com/index.php/topic,1664.msg9097/topicseen.html#new
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline dannbass

  • Member
  • *
  • Posts: 4
    • View Profile
Re: lightbox in smf gallery lite. is it possible?
« Reply #23 on: February 21, 2008, 07:56:11 pm »
Could you add it to the Lite version as well... I'm using the highslide for the thumbnails in the attachments and I'm quite happy with the performance, better than the lightbox. 

Thanks in advance!!
« Last Edit: February 21, 2008, 08:11:03 pm by dannbass »

Offline =TSA=PizzaRoll

  • Member
  • *
  • Posts: 1
    • View Profile
Re: lightbox in smf gallery lite. is it possible?
« Reply #24 on: March 24, 2008, 02:06:11 pm »
I was hoping somebody would be able to help me with this.  I really like the lightbox effect that I've had in other sites that I've done and was wondering how hard it would be to do with SMF Gallery.  Is there someone willing to take a look at it to see if it's feasible?

Thanks.

Bernard

I've managed to get "integrate lightbox v1.4" to work with the SMF Gallery Lite version.
Funny part is that I went back to using it without lightbox due to the fact that lightbox doesn't let you view details of the picture or add comments and such.
I'm working on modifying the gallery code a bit to add an extra link under images that says "view with lightbox", while leaving the thumbnail href behavior in the gallery mod's control.



From the "/Themes/Default" directory, find the file "gallery.template.php"

In the 'gallery.template.php' file, find:


Code: [Select]
echo '<td align="center"><a href="' . $scripturl . '?action=gallery;sa=view;id=' . $row['ID_PICTURE'] . '">
replace with:


Code: [Select]
echo '<td align="center"><a href="' . $modSettings['gallery_url'] . $row['filename']  . '" rel="lightbox">
I'm also using a I love SMF version of lightbox.js which resizes the image to fit the users specific screensize and allows you to click anywhere on the screen to close the preview.
I've attached it - but I make no promises!

I'm looking into the smf gallery pro to see how lightbox has been integrated.

Thanks for the Gallery mod -  I like it alot!

Offline dannbass

  • Member
  • *
  • Posts: 4
    • View Profile
Re: lightbox in smf gallery lite. is it possible?
« Reply #25 on: March 24, 2008, 04:33:11 pm »
Cool, Thanks, I'll give it a try. Thanks for doing this! SMFHacks probably has no time for this kind of little things and tweaks of the free version.

Could you later show me an example of how are you working around it?
Thanks a lot!

 

Related Topics

  Subject / Started by Replies Last post
1 Replies
3771 Views
Last post June 16, 2007, 07:38:17 pm
by SMFHacks
10 Replies
9329 Views
Last post December 05, 2007, 10:49:46 pm
by djmac
1 Replies
5035 Views
Last post January 30, 2008, 07:19:53 pm
by SMFHacks
1 Replies
5012 Views
Last post January 19, 2008, 01:59:59 pm
by SMFHacks
4 Replies
4318 Views
Last post December 11, 2008, 07:29:40 pm
by SMFHacks

+- Recent Topics

Attachment images Upsidedown or Sideways by SMFHacks
June 10, 2024, 04:00:21 pm

“Insert from Gallery” by donk
June 10, 2024, 01:26:57 pm

Pretty Urls extras by SMFHacks
May 13, 2024, 10:28:54 am

Mod question by Verrick
May 11, 2024, 02:42:50 pm

i have paid but cant download ad pro. by SMFHacks
May 02, 2024, 11:29:38 pm

Please Help! by SMFHacks
April 17, 2024, 08:04:55 am

Rate own images by fvlog19
April 11, 2024, 10:56:53 am

Tidy Child Boards on 2.1.4 by SMFHacks
April 04, 2024, 03:54:12 pm

Problems SMF 2.0.19 > 2.1.4 SMF Gallery Pro - Recents Images to overall header by Michel68
March 30, 2024, 12:41:08 pm

Can't DROP 'id_member'; check that column/key exists Datei: by SMFHacks
March 30, 2024, 11:58:20 am

Powered by EzPortal