So we finally got our forum transferred to the new host and upgraded to 2.1.4, and it all seem to be working great, pretty much. I see only two issues:
1. I'm seeing repeated admin errors, from when I add or browse an image in the image gallery. See attached image below.
I searched for the error in this forum but didn't see anything related except to upgrade to the latest version but we already are at 2.1.4. How do we repair this issue in 2.1.4?
2. When I click on an image in a post (linked to the image gallery) the image doesn't re-display at full size.
In other words, in 2.0.17 the image displayed at about 50%, but if I clicked on an "in line" image, the image expanded to display a 1:1 pixel mapping. Clicking again on the image made it go back to the smaller display size.
How do I get that click to display full size image feature back in 2.1?
For mod support you need to ask in the topic dedicated to supporting the specific mod.
Quote from: Kindred on October 11, 2024, 04:39:06 AMFor mod support you need to ask in the topic dedicated to supporting the specific mod.
VBGamer45 said we need to install the current version of the gallery mod to fix the BBC error (and we will do that), but they said that the image not resizing when clicked is an SMF problem, maybe the Theme... but I looked in there and don't see anything that might be related.
Here is how I originally reported the issue of an image click not resizing the image: "When I click on an image in a post (linked to the image gallery) the image doesn't re-display at full size.
In other words, in 2.0.17 the image displayed at about 50%, but if I clicked on an "in line" image, the image expanded to display a 1:1 pixel mapping. Clicking again on the image made it go back to the smaller display size.
How do I get that click to display full size image feature back in 2.1?"
Note also that in 2.1.4 when I hover the mouse over images that were copied over from 2.0.17, it shows the hand icon to indicate that it is clickable, but it doesn't re-size when clicked. But today I tried uploading a new image to the image gallery and pasting that in a post.
In this most recent test, the hand cursor doesn't even appear at all when hovering over the image, and it's a large image that is displayed at ~50% actual size.
How do I get the clickable image re-sizing back on?
See above reply for details...
Here is an example of a post with an image brought over from our 2.0.17 SMF:
https://smf.probesoftware.com/index.php?topic=2.msg10746#msg10746
The mouse hover shows a hand icon but nothing happens when clicked.
Now here is a recent image posted on the 2.1.4 SMF:
https://smf.probesoftware.com/index.php?topic=2.msg12897#msg12897
Note that a mouse hover over the image doesn't even show that it's clickable.
So the question is: how do we make these images clickable (and expand to full size) like they were in the 2.0.17 SMF version?
I believe that works here... if so, then there is something that you have done on your system to break it -- either a mod or theme...
Quote from: Kindred on October 12, 2024, 09:18:46 PMI believe that works here... if so, then there is something that you have done on your system to break it -- either a mod or theme...
I note that it doesn't seem like this support forum has in-line images inserted in a post using the BBC code... see the links above for examples in our forum.
The only mod we have installed is the Gallery Lite 5.5 which was what was on the 2.0.17 SMF version. We will upgrade to 8.0.1 on the SMF 2.1.4 version on Monday, I'm just wondering what setting needs to be changed to get this image click behavior to work again?
There you go.
(https://smf.probesoftware.com/gallery/1_12_10_24_12_46_11.png)
And true, this doesn't seem to offer a way to see it in full size.
Quote from: probeman on October 12, 2024, 09:12:28 PMThe mouse hover shows a hand icon but nothing happens when clicked.
Not true, it does resize - At least for me. Not much, but it does.
I'm guessing, both of these are limited by the Admin settings Max display width\height of posted or attached images
Quote from: Aleksi on October 13, 2024, 09:05:17 AMThere you go.
(https://smf.probesoftware.com/gallery/1_12_10_24_12_46_11.png)
And true, this doesn't seem to offer a way to see it in full size.
Quote from: probeman on October 12, 2024, 09:12:28 PMThe mouse hover shows a hand icon but nothing happens when clicked.
Not true, it does resize - At least for me. Not much, but it does.
I'm guessing, both of these are limited by the Admin settings Max display width\height of posted or attached images
I really appreciate your help, we'll figure this out eventually I'm sure.
OK, so you get a hand cursor for the above in-line image you inserted when the mouse hovers over it? And it changes size to full size when clicked on? Not for me!
The max image size in the Gallery settings were both 2500 pixels which should be more than enough to display the above image at full size (my monitor the image was captured from is only 1920 pixels wide!) so I changed them both to 3000 pixels but no effect.
Again: I don't get the hand cursor and the image you posted doesn't re-size when clicked on.
You can see that the image you posted in your post isn't full size because the fonts are so small. I wish I could grab a screen capture on the old forum, but the re-directs we put in prevent that.
The image we are discussing is actually Height: 694 Width: 1194 but it is certainly not being displayed that large.
Quote from: probeman on October 13, 2024, 10:58:40 AMOK, so you get a hand cursor for the above in-line image you inserted when the mouse hovers over it? And it changes size to full size when clicked on? Not for me!
No, I don't. Like I said it doesn't offer a way to resize it.
But for your example post from 2.0, on your site, I do see the hand icon and it does resize. Not much, but it does.
So what I'm saying is there is likely something different between these images, or how they are embedded. And my first guess was just the admin size restrictions, as the embed I made here is exactly 600px wide, and that is the admin width restriction on this site.
Quote from: Aleksi on October 13, 2024, 11:12:50 AMQuote from: probeman on October 13, 2024, 10:58:40 AMOK, so you get a hand cursor for the above in-line image you inserted when the mouse hovers over it? And it changes size to full size when clicked on? Not for me!
No, I don't. Like I said it doesn't offer a way to resize it.
But for your example post from 2.0, on your site, I do see the hand icon and it does resize. Not much, but it does.
So what I'm saying is there is likely something different between these images, or how they are embedded. And my first guess was just the admin size restrictions, as the embed I made here is exactly 600px wide, and that is the admin width restriction on this site.
OK, that makes sense.
But our 2.1 site has a size restriction of 2500 (now 3000) pixels and I don't even get the hand cursor.
On thing I've noticed is that the original images from our 2.0 site often had a width and height defined like this:
[img width=512 height=473]https://smf.probesoftware.com/gallery/1_03_10_24_9_35_41.png[/img]
But the new images in 2.1 don't have this info...
I also notice this in admin when I try to uninstall the gallery (to upgrade it to 8.0.1) or install the recaptha mod:
could this be related to the problem?
Well, you need to look at exactly WHAT is failing on the uninstall and manually do that action -- just like you would for a failed step on install...
Quote from: Kindred on October 13, 2024, 07:13:00 PMWell, you need to look at exactly WHAT is failing on the uninstall and manually do that action -- just like you would for a failed step on install...
You more than the warning I showed in the image above that the Third party and SMF download sites are "unknown or not found"?
Where would I find that additional information?
The not found sites ate irrelevant
Quote from: Kindred on October 13, 2024, 09:54:07 PMThe not found sites ate irrelevant
Ok, so where would one find more useful information on why these errors are being generated when I try to uninstall Gallery Lite 5.5?
I ask because VBGamer45 suggested that we try to uninstall Gallery 5.5 before installing 8.0.1.
I need to see list of errors screenshot. Hard to tell if language file save to ignore.
https://wiki.simplemachines.org/smf/Error_in_mod_installation
Same thing, just replace install with uninstall
Quote from: vbgamer45 on October 14, 2024, 01:05:27 AMI need to see list of errors screenshot. Hard to tell if language file save to ignore.
See attached image.
Below that should be a list of errors... I am not seeing the whole page.
Quote from: vbgamer45 on October 14, 2024, 11:21:56 AMBelow that should be a list of errors... I am not seeing the whole page.
Sorry about that!
See images below. The two "add before" errors are the same.
There is no failures there. You can proceed with the uninstall.
Quote from: vbgamer45 on October 14, 2024, 12:31:17 PMThere is no failures there. You can proceed with the uninstall.
And just to be sure, the uninstall won't delete any of the existing images in the current gallery? That is, when I then install gallery 8.0.1 those images will still all be visible?
That is, it doesn't matter that at the top of the page it says that the "Third Party Download Site" is "Unknown or Not Found"?
Correct no files or data is deleted.
Doesn't matter.
Quote from: vbgamer45 on October 14, 2024, 01:09:16 PMCorrect no files or data is deleted.
Doesn't matter.
Ok, thanks.
And on a related note: can I also just go ahead and install the ReCapthca and Stop Forum Spam mods even with the same "Site Unknown or Not Found" warnings?
yes
So I uninstalled gallery 5.6 and installed gallery 8.0.1 and I think it worked. I uploaded an image and the "show_bbc" error no longer occurs. Thank-you!
Now the only remaining problem is that large images don't re-display at full size when clicked on. In fact recent image uploads don't even show a "hand" cursor when the mouse is hovered over the image:
https://smf.probesoftware.com/index.php?topic=2.msg12897#msg12897
Though older images (from 2.0.17) do show the "hand" cursor, but still don't re-display to full size when clicked on:
https://smf.probesoftware.com/index.php?topic=2.msg7642#msg7642
This image click behavior did work back on SMF 2.0.17!
I can't see any settings in the 8.0.1 gallery Settings for this... any suggestions?
The first image has height/width property set. The second does not. That seems to be the difference.
Quote from: vbgamer45 on October 14, 2024, 05:51:07 PMThe first image has height/width property set. The second does not. That seems to be the difference.
Yes, I noticed that also. How does one control whether the height/width are included in the BBS code?
But more importantly why do these large images not re-scale to full pixel (1:1) scale when clicked? And back again when clicked a 2nd time?
This image click re-size behavior always happened in 2.0.17 but no longer in 2.1.4. Is it something our tech broke when he transferred our forum to the new host?
It would have to be a change to the gallery. I don't think i ever included fixed height/width to the bbc linking codes.
Quote from: vbgamer45 on October 14, 2024, 06:09:10 PMIt would have to be a change to the gallery. I don't think i ever included fixed height/width to the bbc linking codes.
These height/width parameters were there from the v5.x gallery on our 2.0.17 SMF forum. I swear!
You mentioned you saw the height/width values in the older posts from the v 2.0.17 forum:
https://smf.probesoftware.com/index.php?topic=2.msg7642#msg7642
I didn't add those by hand!
Can you confirm that normally, large images are sub-scaled to display, but when clicked they should re-display at full scale?
In fact, if the 1:1 image scaled so large that it exceeded the width of the browser window, a horizontal scroll bar would appear at the bottom of the post!I definitely saw that behavior on the old 2.0.17 forum!
SMF at one time used to check on post save for images in posts, then try to look them up to get dimensions. This is how it would put the dimensions in.
I *believe* this was discontinued in 2.1 in general because a) it was unreliable as anything for so many images, leaving you facing a white screen at times, but b) it utterly doesn't work with responsive sizing (e.g. on mobile) and was replaced with sizing CSS.
I realise this doesn't help you but it's not broken, it's working as intended for the majority use case.
Quote from: Arantor on October 15, 2024, 03:02:58 AMSMF at one time used to check on post save for images in posts, then try to look them up to get dimensions. This is how it would put the dimensions in.
I *believe* this was discontinued in 2.1 in general because a) it was unreliable as anything for so many images, leaving you facing a white screen at times, but b) it utterly doesn't work with responsive sizing (e.g. on mobile) and was replaced with sizing CSS.
I realise this doesn't help you but it's not broken, it's working as intended for the majority use case.
Thanks! It's good to know I'm not going crazy!
So to explain better for everyone, the screen shots below show the re-scaling effect in SMF 2.0.17 when the image is clicked on. First default scaling (at ~50% scale), and then when clicked, it re-scales at 1:1 (full) scale. When at full scale, the forum somehow inserts a horizontal scroll bar if the image is too wide for the browser window.
This *was* a really cool feature!
You say this feature was "replaced with sizing CSS". How does that work? Can it provide a similar (large) image re-scaling so users of the forum can see the posted (large) image at full scale somehow?
No, that's not how the sizing functionality works.
In both cases the general idea is the same: try to make sure the image doesn't break the forum layout. In days of old the only method you had was to say "load the picture at a smaller size" which is what the old code sometimes managed to do.
In the new world we just have rules to say "let the image be no more than 80% of the width of the post, or full size if that fits", and did away with the toggle option because most of the time you don't want that.
What you're asking for is a function that has been removed owing to the fact that the old method doesn't ever work correctly on mobile and the new one does, but the new one has a limitation that it doesn't have the toggle you're hoping for - and no one is interested in building it in the new way of working.
Quote from: Arantor on October 15, 2024, 12:02:58 PMIn the new world we just have rules to say "let the image be no more than 80% of the width of the post, or full size if that fits", and did away with the toggle option because most of the time you don't want that.
Sorry to be a pain, but you say the image expands to 80% of the width of the post or full size if that fits, but I'm not seeing that if I maximize the browser window.
See attached image.
That isn't what I said.
The rule is "max-width", meaning "try to let the image be its full size, up to a maximum width of the forum size", the exact number is theme dependent.
But it won't just go to 80% (for example) if the image just isn't that big. Otherwise you'd distort small images on big screens, and that doesn't help you scale big images down for mobile.
Quote from: Arantor on October 15, 2024, 12:34:15 PMThat isn't what I said.
The rule is "max-width", meaning "try to let the image be its full size, up to a maximum width of the forum size", the exact number is theme dependent.
But it won't just go to 80% (for example) if the image just isn't that big. Otherwise you'd distort small images on big screens, and that doesn't help you scale big images down for mobile.
Yes, I get that it should not expand every image. But
this is a large image that is NOT expanding to 80% though it should be able to. It's still not at 1:1 even though there is room for it.
Did you look at the image I attached? Please tell me what I am missing...
If it's a theme limit is there a theme setting I can change? I've already got the image max width and height to 3000 pixels in the gallery configuration.
The image is 1194x694, and someone has defined a max-height of 512px so it's taken the size and fitted it to fit the max height (rather than the max width which is the smaller of 100% or 512px) - this is NOT the default configuration of SMF.
It's not defined in the theme but that's how someone has configured it, and that's based on looking at the inline styling as emitted by your forum right now.
I couldn't check that before because I was at work and I only have an iPad I can safely use while at work, and it's a little bit difficult to examine the CSS on an iPad.
Quote from: Arantor on October 15, 2024, 12:57:29 PMThe image is 1194x694, and someone has defined a max-height of 512px so it's taken the size and fitted it to fit the max height (rather than the max width which is the smaller of 100% or 512px) - this is NOT the default configuration of SMF.
It's not defined in the theme but that's how someone has configured it, and that's based on looking at the inline styling as emitted by your forum right now.
I couldn't check that before because I was at work and I only have an iPad I can safely use while at work, and it's a little bit difficult to examine the CSS on an iPad.
Yes, the image is 694 x 1194. Here the BBC code for that image in that post on our forum:
[img]https://smf.probesoftware.com/gallery/1_14_10_24_1_51_29.png[/img]
It DOES display at 1:1 (full scale) in the gallery, but NOT in the forum post. And it does not re-size as the browser window is expanded.
Where is the max height defined as 512? I didn't do that!For anyone interested, here's the link to the post:
https://smf.probesoftware.com/index.php?topic=2.msg12897#msg12897
Sorry, I'm just trying to understand this new sizing code...
Go into the admin area, use the little search box and search for 'max_image_height'.
Quote from: Arantor on October 15, 2024, 01:21:29 PMGo into the admin area, use the little search box and search for 'max_image_height'.
Yeaaaah! That fixed it!!!
Thank-you and sorry to be such a bother.
Want to see something really cool?
With the old images from the 2.0.17 SMF forum, the in-line images now have the original image toggle click behavior back again!
https://smf.probesoftware.com/index.php?topic=2.msg10746#msg10746
Click on the image and it toggles.
But newly posted images (in 2.1.4) still have the new auto scaling as the browser window is re-sized:
https://smf.probesoftware.com/index.php?topic=2.msg12897#msg12897
Very cool!