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: 43307
Total Topics: 7525
Most Online Today: 310
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 211
Total: 211

Author Topic: lightbox in smf gallery lite. is it possible?  (Read 23849 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: 16457
    • 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: 16457
    • 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: 16457
    • 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

  • 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: 16457
    • 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

  • 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: 16457
    • 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
3773 Views
Last post June 16, 2007, 07:38:17 pm
by SMFHacks
10 Replies
9332 Views
Last post December 05, 2007, 10:49:46 pm
by djmac
1 Replies
5037 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 donk
Today at 12:57:32 am

“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