Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4274
Latest: kellanphil
New This Month: 3
New This Week: 1
New Today: 0
Stats
Total Posts: 43645
Total Topics: 7572
Most Online Today: 202
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 183
Total: 183

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

0 Members and 1 Guest are viewing this topic.

Offline clarkkent93

  • Member
  • *
  • Posts: 13
    • View Profile
    • USS Riverside
lightbox in smf gallery lite. is it possible?
« on: February 23, 2007, 07:42:17 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

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16611
    • View Profile
Re: lightbox in smf gallery lite. is it possible?
« Reply #1 on: February 23, 2007, 08:10:42 pm »
I currently do not how to create that affect. I would need to research it. Currently busy with some projects.
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 clarkkent93

  • Member
  • *
  • Posts: 13
    • View Profile
    • USS Riverside
Re: lightbox in smf gallery lite. is it possible?
« Reply #2 on: February 23, 2007, 09:31:41 pm »
I've done some research using Google of all things.  One site has used SMF Gallery (I don't know if it's Lite or Pro).  I have the website so here it is: http://www.haus23.de/forum/index.php?action=lightbox as well as Lightbox JS

This might give you that jumpstart that you were looking for!  It would definitely make your mod over the top!

Let me know what I can do to help.  I'm not a coder but I'm willing to test it.  I'll do what needs to be done to make this work!  I look forward to hearing back on this one.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16611
    • View Profile
Re: lightbox in smf gallery lite. is it possible?
« Reply #3 on: February 23, 2007, 10:26:00 pm »
Looks like a nice script. Just trying to think where would I put it to use?
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 clarkkent93

  • Member
  • *
  • Posts: 13
    • View Profile
    • USS Riverside
Re: lightbox in smf gallery lite. is it possible?
« Reply #4 on: February 23, 2007, 11:34:22 pm »
i'm just trying to figure out how to add it like the site in the previous post.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16611
    • View Profile
Re: lightbox in smf gallery lite. is it possible?
« Reply #5 on: February 24, 2007, 08:16:42 am »
Adding it is easy. Just a couple of javascript calls toa dd. Just not sure where it would look good.
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 clarkkent93

  • Member
  • *
  • Posts: 13
    • View Profile
    • USS Riverside
Re: lightbox in smf gallery lite. is it possible?
« Reply #6 on: February 24, 2007, 12:40:08 pm »
i like how the one site had smf gallery where all categories were immediately shown and you had the option to filter down to specific categories.  is there a way that i can modify mine that way?  would you be able to walk me through?

as far as lightbox is concerned, most of the members of my site would rather have the lightbox effect when clicking on the thumbnail instead of going to a different page for the full-size picture.  i hope that makes sense.

Offline Mannie

  • Bad Emails DO NOT EMAIL
  • Member
  • *
  • Posts: 27
    • View Profile
    • Spliffcanvas
Re: lightbox in smf gallery lite. is it possible?
« Reply #7 on: April 13, 2007, 06:52:44 am »
I would like this to, or if there is another way to show full size images so that they won't break the template of the site. Maybe in a popup or a new window. Now i let users use a maximum width of 864px but most people render in larger resolutions. Hope there is a way to do this, oh i use gallery pro

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16611
    • View Profile
Re: lightbox in smf gallery lite. is it possible?
« Reply #8 on: April 13, 2007, 07:03:26 am »
That is something planned for the next release of SMF 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 Mannie

  • Bad Emails DO NOT EMAIL
  • Member
  • *
  • Posts: 27
    • View Profile
    • Spliffcanvas
Re: lightbox in smf gallery lite. is it possible?
« Reply #9 on: April 13, 2007, 07:14:52 am »
Ok ;)
Hope that's soon lol, well we know it's in the works then so we will wait :D

Offline m771401

  • Member
  • *
  • Posts: 13
    • View Profile
Re: lightbox in smf gallery lite. is it possible?
« Reply #10 on: June 20, 2007, 12:11:38 am »
I used this script from dynamic drive


Added p.filename to the query

Code: [Select]
      //Show the pictures
      $dbresult = db_query("SELECT p.ID_PICTURE, p.commenttotal, p.filesize, p.views, p.filename, p.thumbfilename, p.title, p.ID_MEMBER, m.memberName, m.realName, p.date, p.description FROM {$db_prefix}gallery_pic as p, {$db_prefix}members AS m WHERE  p.ID_MEMBER = m.ID_MEMBER  AND p.ID_CAT = $cat AND p.approved = 1 ORDER BY ID_PICTURE DESC", __FILE__, __LINE__);


Then changed the link for the thumbnail like so:

Code: [Select]
//commenting out old link and adding new one.
/*       echo '<td align="center"><a href="' . $scripturl . '?action=gallery;sa=view;id=' . $row['ID_PICTURE'] . '"><img src="' . $modSettings['gallery_url'] . $row['thumbfilename']  . '" border="0" /></a><br />'; */
         echo '<td align="center"><a href="' . $modSettings['gallery_url'] . $row['filename']  . '" rel="lightbox"><img src="' . $modSettings['gallery_url'] . $row['thumbfilename']  . '" border="0" /></a><br />';

You can see it in action in here

Offline Paracelsus

  • Member
  • *
  • Posts: 4
    • View Profile
    • Fórum SCP
Re: lightbox in smf gallery lite. is it possible?
« Reply #11 on: September 28, 2007, 07:09:19 am »
Hi!

Does anyone know how to install lightbox in the attached images in SMF? I've tried using the "rel" command in the "a href" link code displayed in Display.template.php for attachments with thumbnail but couldn't get it work :-\. Has anyone had success with it?

Offline eskimo

  • Member
  • *
  • Posts: 1
    • View Profile
Re: lightbox in smf gallery lite. is it possible?
« Reply #12 on: October 09, 2007, 06:34:14 am »
I used this script from dynamic drive


Added p.filename to the query

Code: [Select]
      //Show the pictures
      $dbresult = db_query("SELECT p.ID_PICTURE, p.commenttotal, p.filesize, p.views, p.filename, p.thumbfilename, p.title, p.ID_MEMBER, m.memberName, m.realName, p.date, p.description FROM {$db_prefix}gallery_pic as p, {$db_prefix}members AS m WHERE  p.ID_MEMBER = m.ID_MEMBER  AND p.ID_CAT = $cat AND p.approved = 1 ORDER BY ID_PICTURE DESC", __FILE__, __LINE__);


Then changed the link for the thumbnail like so:

Code: [Select]
//commenting out old link and adding new one.
/*       echo '<td align="center"><a href="' . $scripturl . '?action=gallery;sa=view;id=' . $row['ID_PICTURE'] . '"><img src="' . $modSettings['gallery_url'] . $row['thumbfilename']  . '" border="0" /></a><br />'; */
         echo '<td align="center"><a href="' . $modSettings['gallery_url'] . $row['filename']  . '" rel="lightbox"><img src="' . $modSettings['gallery_url'] . $row['thumbfilename']  . '" border="0" /></a><br />';

You can see it in action in here

 ???Sorry I am a newbie, could you pls give us the specified direction of how to make lightbox effect available in SMF Gallery. Thanks very much  ;D 

Offline Paracelsus

  • Member
  • *
  • Posts: 4
    • View Profile
    • Fórum SCP
Re: lightbox in smf gallery lite. is it possible?
« Reply #13 on: October 12, 2007, 04:19:06 am »
Ok, I got to do it... not in Gallery but in "regular" SMF attached images.

It's quite simple actually: just modify index.template.php with the lightbox script and then on display.template.php you have to put rel="lightbox" somewere in the link that is created from those attached thumbnails.

It works perfectly... in fact, I even changed it later to Slimbox to be lighter ;)

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16611
    • View Profile
Re: lightbox in smf gallery lite. is it possible?
« Reply #14 on: October 12, 2007, 07:16:04 am »
Do you have a link to a forum with it in use just want to see how it looks
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/

 

Related Topics

  Subject / Started by Replies Last post
1 Replies
3943 Views
Last post June 16, 2007, 07:38:17 pm
by SMFHacks
10 Replies
9637 Views
Last post December 05, 2007, 10:49:46 pm
by djmac
1 Replies
5083 Views
Last post January 30, 2008, 07:19:53 pm
by SMFHacks
1 Replies
5069 Views
Last post January 19, 2008, 01:59:59 pm
by SMFHacks
4 Replies
4415 Views
Last post December 11, 2008, 07:29:40 pm
by SMFHacks

+- Recent Topics

Ability to exclude categories from ezPortal SMF Gallery random image ezblock by Alistair
Today at 08:20:13 am

How to move SMF to new server by SMFHacks
January 21, 2025, 08:45:53 pm

Figuring out settings by SMFHacks
January 12, 2025, 04:56:14 pm

Filesizes incorrect by SMFHacks
January 12, 2025, 02:02:47 pm

December 2024 Sale! by SMFHacks
December 02, 2024, 10:30:38 pm

Denying members some admin settings by rickk
November 17, 2024, 12:02:55 pm

Weird setup by SMFHacks
November 07, 2024, 06:37:41 am

Restoring a deleted photo by Monocero
November 01, 2024, 04:23:56 am

Gallery Pro reinstalation by Lirorobert
October 14, 2024, 01:43:43 am

Move picture from main gallery to user gallery by SMFHacks
October 11, 2024, 09:11:00 pm

Powered by EzPortal