News:

Wondering if this will always be free?  See why free is better.

Main Menu

SMF Gallery

Started by SMFHacks.com Team, September 16, 2006, 07:13:02 PM

Previous topic - Next topic

Mike66

It's just the full size image that I'm having problems with.

I can get the full size image to be responsive in a post, but not in gallery view.

vbgamer45

What have you tried?
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

Mike66

Quote from: vbgamer45 on November 15, 2021, 12:11:16 PMWhat have you tried?

The usual suspects:
img{
     max-width: 100%;
     height: auto;
}

vbgamer45

Can you share link.
Do you enable medium image size display?  Or popups with highslide?
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

Mike66

Quote from: vbgamer45 on November 17, 2021, 01:36:39 PMCan you share link.
Do you enable medium image size display?  Or popups with highslide?

Link shared via PM.

Settings currently set at 'Nothing/No Fullsize Image'

vbgamer45

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

Mike66

Let me know if you'd like me to change it to the default theme?

The same things happen in default.

Mike66

Think I've found the problem, it is the image linking code box not shrinking!

vbgamer45

Quote from: Mike66 on November 17, 2021, 02:25:52 PMThink I've found the problem, it is the image linking code box not shrinking!
Good catch might be.
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

Mike66

Quote from: Mike66 on November 17, 2021, 02:25:52 PMThink I've found the problem, it is the image linking code box not shrinking!

I'm sure I'll manage to fix that in CSS, come to think of it, I think I remember doing that for my gallery in 2.0.

Just need to find a way of getting some space in under the (Gallery Name/Total Images/Reorder/Options) menu bar now.

Cheers
Mike

Mike66

Fixed  8)
...................... I really don't get on with tables!  ;D

Mike66

Here's another tricky one  ;D

When members use Post Image Upload, the photo in the post becomes a clickable link to the gallery photo, is there a way to disable that? So that the photo in the post is not a clickable link.

Cheers
Mike

Mike66

Failing that, I'll edit posts to simplified img tags for the time being, until I can find a solution.

Cheers
Mike

vbgamer45

For that addon you need to modify
Sources/Gallery2.php
in function Gallery_PostUpload2

function redirect_code()
{
document.location.href = \'' . $forumurl. '&smfgallery_id=0&smfgallery_text=%0A%5Burl%3D' . $pageurl . '%5D%5Bimg%5D' . $picurl . '%5B%2Fimg%5D%5B%2Furl%5D%0A\';
}
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

Mike66

Thanks vbgamer45!

Should I simply remove that piece of code, or can you help me out with what to select/replace please?

Cheers
Mike

vbgamer45

Change to
function redirect_code()
{
document.location.href = \'' . $forumurl. '&smfgallery_id=0&smfgallery_text=%0A%5Bimg%5D' . $picurl . '%5B%2Fimg%5D0A\';
}
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

Mike66

#4156
Thanks  8)

That almost works, but I'm getting "OA" after the image?

Result of an upload results in:

[img]https://www.mysite.co.uk/forum/gallery/2-131221121025.jpeg[/img]0A
Cheers
Mike

Mike66

I have removed the "0A" from the code, so it now ends in "%5D\';"

This seems to work  :)  but I don't know what the implications of that are?

Thanks again for your help - awesome!
Mike

vbgamer45

%OA I think is a new line.
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

Mike66

Quote from: vbgamer45 on December 13, 2021, 08:44:19 AM%OA I think is a new line.

That's what I guessed it was.

Doesn't seem to have broken anything anyway  :) 

Thanks once again for your help, we have achieved exactly what I was looking for!
Cheers
Mike

Advertisement: