Advertisement:

Author Topic: SMF Gallery  (Read 1210380 times)

Online vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 21,621
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: SMF Gallery
« Reply #3980 on: September 18, 2019, 10:10:32 AM »
You could try doing manual code such as css to force the image size on the view picture page.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline sc2142

  • Semi-Newbie
  • *
  • Posts: 21
Re: SMF Gallery
« Reply #3981 on: September 18, 2019, 10:24:16 AM »
You could try doing manual code such as css to force the image size on the view picture page.
Sorry, Im not sure what you mean.

Online vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 21,621
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: SMF Gallery
« Reply #3982 on: September 18, 2019, 10:27:27 AM »
Basically there is no built in way in the lite version and would have to be custom coded to be added to the lite version.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline sc2142

  • Semi-Newbie
  • *
  • Posts: 21
Re: SMF Gallery
« Reply #3983 on: September 18, 2019, 10:29:24 AM »
Basically there is no built in way in the lite version and would have to be custom coded to be added to the lite version.
Ah, Okay, Ill have to find someone to code it for me, Thanks.

Offline Diego Andrés

  • Customizer
  • SMF Hero
  • *
  • Posts: 3,357
  • Gender: Male
    • DiegoSetroc on GitHub
    • @bihgetter on Twitter
    • SMF Tricks - Free & Premium Themes
Re: SMF Gallery
« Reply #3984 on: September 19, 2019, 09:51:12 AM »
Using CSS would be the best way of doing it like vbgamer suggested.

SMF Tricks - Free & Premium Responsive Themes for SMF.

Offline sc2142

  • Semi-Newbie
  • *
  • Posts: 21
Re: SMF Gallery
« Reply #3985 on: September 19, 2019, 09:52:10 AM »
Using CSS would be the best way of doing it like vbgamer suggested.
Okay, Well, I dont know how so unless someone here wants to do it for me i dont know.

Offline Diego Andrés

  • Customizer
  • SMF Hero
  • *
  • Posts: 3,357
  • Gender: Male
    • DiegoSetroc on GitHub
    • @bihgetter on Twitter
    • SMF Tricks - Free & Premium Themes
Re: SMF Gallery
« Reply #3986 on: September 19, 2019, 09:53:17 PM »
Using CSS would be the best way of doing it like vbgamer suggested.
Okay, Well, I dont know how so unless someone here wants to do it for me i dont know.

Could you provide a link to see this issue

SMF Tricks - Free & Premium Responsive Themes for SMF.

Offline sc2142

  • Semi-Newbie
  • *
  • Posts: 21
Re: SMF Gallery
« Reply #3987 on: September 20, 2019, 06:45:08 AM »
Using CSS would be the best way of doing it like vbgamer suggested.
Okay, Well, I dont know how so unless someone here wants to do it for me i dont know.

Could you provide a link to see this issue
This is my test site. https://fgcjhbdn.website/forums/gallery/picture/2/ [nofollow]
Heres a virus total: https://www.virustotal.com/gui/url/ff1dc7063550d501dde641601924bb15c5e3f8ab24569fac67b5e120647188d2/detection [nofollow]

Offline Diego Andrés

  • Customizer
  • SMF Hero
  • *
  • Posts: 3,357
  • Gender: Male
    • DiegoSetroc on GitHub
    • @bihgetter on Twitter
    • SMF Tricks - Free & Premium Themes
Re: SMF Gallery
« Reply #3988 on: September 20, 2019, 10:56:38 AM »
Try adding something like
Code: [Select]
td#sp_center img {
    width: Xpx
}

Replace X with your width

SMF Tricks - Free & Premium Responsive Themes for SMF.

Offline sc2142

  • Semi-Newbie
  • *
  • Posts: 21
Re: SMF Gallery
« Reply #3989 on: September 20, 2019, 10:57:49 AM »
Try adding something like
Code: [Select]
td#sp_center img {
    width: Xpx
}

Replace X with your width
Sorry, Im not the brightest, where do i put it xD

Offline Diego Andrés

  • Customizer
  • SMF Hero
  • *
  • Posts: 3,357
  • Gender: Male
    • DiegoSetroc on GitHub
    • @bihgetter on Twitter
    • SMF Tricks - Free & Premium Themes
Re: SMF Gallery
« Reply #3990 on: September 20, 2019, 10:59:15 AM »
At the end of the /css/index.css file in your theme folder

SMF Tricks - Free & Premium Responsive Themes for SMF.

Offline sc2142

  • Semi-Newbie
  • *
  • Posts: 21
Re: SMF Gallery
« Reply #3991 on: September 20, 2019, 11:02:41 AM »
It did work, However, It made every other image enlarge everywhere else on the forum also.

Offline Diego Andrés

  • Customizer
  • SMF Hero
  • *
  • Posts: 3,357
  • Gender: Male
    • DiegoSetroc on GitHub
    • @bihgetter on Twitter
    • SMF Tricks - Free & Premium Themes
Re: SMF Gallery
« Reply #3992 on: September 20, 2019, 11:17:41 AM »
Yes I'm aware just was waiting for you to complain ;D
I'm not familiar with SMF Gallery so I have to install the mod to give you more specific instructions, I'll do that later.

SMF Tricks - Free & Premium Responsive Themes for SMF.

Offline sc2142

  • Semi-Newbie
  • *
  • Posts: 21
Re: SMF Gallery
« Reply #3993 on: September 20, 2019, 11:18:34 AM »
LOL

Offline Diego Andrés

  • Customizer
  • SMF Hero
  • *
  • Posts: 3,357
  • Gender: Male
    • DiegoSetroc on GitHub
    • @bihgetter on Twitter
    • SMF Tricks - Free & Premium Themes
Re: SMF Gallery
« Reply #3994 on: September 20, 2019, 11:21:26 AM »
Code: (Gallery2.template.php) [Select]
<img height="' . $context['gallery_pic']['height']  . '" width="' . $context['gallery_pic']['width']  . '" src="' . $modSettings['gallery_url'] . $context['gallery_pic']['filename']  . '" alt="' . $context['gallery_pic']['title']  . '" />

Code: (Replace) [Select]
<img class="gallery_pic" height="' . $context['gallery_pic']['height']  . '" width="' . $context['gallery_pic']['width']  . '" src="' . $modSettings['gallery_url'] . $context['gallery_pic']['filename']  . '" alt="' . $context['gallery_pic']['title']  . '" />


Code: [Select]
img.gallery_pic {
    width: Xpx
}

No testing either so no promises again  ;D

SMF Tricks - Free & Premium Responsive Themes for SMF.

Offline sc2142

  • Semi-Newbie
  • *
  • Posts: 21
Re: SMF Gallery
« Reply #3995 on: September 20, 2019, 11:32:42 AM »
Code: (Gallery2.template.php) [Select]
<img height="' . $context['gallery_pic']['height']  . '" width="' . $context['gallery_pic']['width']  . '" src="' . $modSettings['gallery_url'] . $context['gallery_pic']['filename']  . '" alt="' . $context['gallery_pic']['title']  . '" />

Code: (Replace) [Select]
<img class="gallery_pic" height="' . $context['gallery_pic']['height']  . '" width="' . $context['gallery_pic']['width']  . '" src="' . $modSettings['gallery_url'] . $context['gallery_pic']['filename']  . '" alt="' . $context['gallery_pic']['title']  . '" />


Code: [Select]
img.gallery_pic {
    width: Xpx
}

No testing either so no promises again  ;D

Thanks bud, It works, Anyway to keep it from upscaling now? LMAO

Offline Diego Andrés

  • Customizer
  • SMF Hero
  • *
  • Posts: 3,357
  • Gender: Male
    • DiegoSetroc on GitHub
    • @bihgetter on Twitter
    • SMF Tricks - Free & Premium Themes
Re: SMF Gallery
« Reply #3996 on: September 20, 2019, 12:11:03 PM »
For lower resolutions?

SMF Tricks - Free & Premium Responsive Themes for SMF.

Offline sc2142

  • Semi-Newbie
  • *
  • Posts: 21
Re: SMF Gallery
« Reply #3997 on: September 20, 2019, 12:12:20 PM »
Yes, I would like to keep resolutions that are lower than what is specified untouched.

Offline Diego Andrés

  • Customizer
  • SMF Hero
  • *
  • Posts: 3,357
  • Gender: Male
    • DiegoSetroc on GitHub
    • @bihgetter on Twitter
    • SMF Tricks - Free & Premium Themes
Re: SMF Gallery
« Reply #3998 on: September 21, 2019, 10:23:51 PM »
Sorry I forgot about this was a bit busy

You'd have something like this
Code: [Select]
@media screen and (max-width: 767px) {
img.gallery_pic {
    width: Xpx
}
}

You can replace max with min (if you want) and the resolution, or add more  :D

Also works with a range
Code: [Select]
@media screen and (min-width: 240px) and (max-width: 640px)

SMF Tricks - Free & Premium Responsive Themes for SMF.

Offline sc2142

  • Semi-Newbie
  • *
  • Posts: 21
Re: SMF Gallery
« Reply #3999 on: September 22, 2019, 05:36:54 AM »
It works, However, It ignores the larger images now. :-\