Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4263
Latest: Cekky
New This Month: 0
New This Week: 0
New Today: 0
Stats
Total Posts: 43455
Total Topics: 7557
Most Online Today: 60
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 35
Total: 35

Author Topic: lightbox in smf gallery lite. is it possible?  (Read 24029 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: 16524
    • 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: 16524
    • 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: 16524
    • 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
3859 Views
Last post June 16, 2007, 07:38:17 pm
by SMFHacks
10 Replies
9442 Views
Last post December 05, 2007, 10:49:46 pm
by djmac
1 Replies
5054 Views
Last post January 30, 2008, 07:19:53 pm
by SMFHacks
1 Replies
5035 Views
Last post January 19, 2008, 01:59:59 pm
by SMFHacks
4 Replies
4375 Views
Last post December 11, 2008, 07:29:40 pm
by SMFHacks

+- Recent Topics

[Mod]Tenor Posting Animated Gifs by SMFHacks
August 30, 2024, 04:04:26 pm

List of other errors after installing and trying to use by SMFHacks
August 27, 2024, 02:15:52 pm

Subject Error by SMFHacks
August 27, 2024, 02:15:46 pm

Store Not Logging Transactions or Sending Emails for Paid Items, Free Items Work by SMFHacks
August 27, 2024, 05:26:52 am

Don't Know How to Unhide Previously Hidden Items in Latest SMF Store 5.0 by Michael Vail
August 26, 2024, 11:38:33 pm

Undefined array key "session_var" and Undefined array key "session_id" Errors by SMFHacks
August 26, 2024, 11:10:54 pm

SMF Links Error by yamiacaveman
August 22, 2024, 06:21:53 pm

HTTP Error 500 by SMFHacks
August 20, 2024, 12:28:53 pm

Site upgrade to 2.1 by live627
August 18, 2024, 02:47:33 am

Uninstall issue and new licence no email by landyvlad
August 16, 2024, 08:05:48 am

Powered by EzPortal