SMFHacks.com

SMF Classifieds => Support => Topic started by: Saftek on August 23, 2021, 12:51:56 am

Title: Broken image link
Post by: Saftek on August 23, 2021, 12:51:56 am
The closelabel.gif etc is showing as a broken icon. Using 5.1.6 on 2.0.18. Images in the correct folder.

It appears the link url is incorrect. For example:  should be https://www.mysite.com/forum/classifieds/images  but shows  as https://www.mysite.com/classifieds/images

How can I correct.
Title: Re: Broken image link
Post by: SMFHacks on August 23, 2021, 07:03:03 am
That should have been fixed in the latest version.
Title: Re: Broken image link
Post by: Saftek on August 23, 2021, 01:16:33 pm
I applied the latest version before posting. I've been having problems with some installations so perhaps the "fixed" file(s) didn't install properly.

Which file(s) do I need to check?
Title: Re: Broken image link
Post by: SMFHacks on August 23, 2021, 01:18:33 pm
just replace the classifieds folder.
Title: Re: Broken image link
Post by: Saftek on August 23, 2021, 01:53:49 pm
Replaced the entire Classifieds folder, none of the actual product pictures would load. I reverted to the older classifieds folder.

I would uninstall and reinstall, but the uninstall throws a bunch of errors. I am reluctant to disregard these, since I have a bunch of other SMFHacks mods installed.
Title: Re: Broken image link
Post by: SMFHacks on August 23, 2021, 02:03:28 pm
I meant just uploaded on top. Your original classifieds folder has your pictures. You just need to load the files.
Title: Re: Broken image link
Post by: Saftek on August 23, 2021, 02:12:13 pm
LOL... should have known that! Unfortunately, it didn't fix the original problem.

Title: Re: Broken image link
Post by: SMFHacks on August 23, 2021, 02:18:48 pm
Might have to clear the cache for the new files to load/hard refresh
Title: Re: Broken image link
Post by: Saftek on August 23, 2021, 02:28:08 pm
Did that. Also used different browser and selected graphics not previously accessed.

Still showing the missing "forum/" bit of the img src link.
Title: Re: Broken image link
Post by: SMFHacks on August 23, 2021, 02:31:39 pm
Check out and adjust this file and the line number

classifieds\js\lightbox.js line (66)
var fileLoadingImage = "/classifieds/images/loading.gif";
var fileBottomNavCloseImage = "/classifieds/images/closelabel.gif";
Title: Re: Broken image link
Post by: Saftek on August 23, 2021, 02:50:47 pm
Okay, I changed the links by adding /forum and it appears to be working. Don't know why my system is different!

Cheers.
Title: Re: Broken image link
Post by: SMFHacks on August 23, 2021, 03:02:33 pm
Ah, because your forum is in a subdirectory
Title: Re: Broken image link
Post by: Saftek on August 23, 2021, 03:08:48 pm
Ahh... yeah that has screwed me up before. When we moved that "invisible" public thing was the default and we left it that way.

Thanks.