|
Replies:
6
-
Pages:
1
-
Last Post:
26 Mar 25, 10:43
Last Post By: ming666
|
Threads:
[
Previous
|
Next
]
|
|
Posts:
240
Registered:
20-Nov-2009
|
|
|
|
Switching from http to https
Posted:
9 Oct 21, 11:51
|
|
|
|
Hello
Recently I made the switch from my website being hosted using http to https, and need to ask...
I have just noticed that the links I use beneath my albums are now not working. However, any links that target a 'page' on my site do still work as do those targeting other web sites, the only ones that do not work are those used inside my skin that are targeting and loading one of my 'albums'...
I have reset jAlbums settings in the upload manager and it seems that jAlbum can function with its uploads, whether or not it is set to http or https, however, doing this makes no difference to my non working album links.
Sooo, I open the albums, and in the album settings page I change the external links to read https, the links now work fine.
My question is, is there a global way I can set this up so that my skin can see it, and so that I dont have to now edit every single link that each of my albums contain. As, after so many years, I now have a lot of albums to modify...
I am using my faithful and unerring, MatrixSlide skin...
Regards Peter
Edited by: PeterGibb on 9 Oct 2021, 11:27
|
|
|
Posts:
8,559
Registered:
31-Jan-2006
|
|
|
|
Re: Switching from http to https
Posted:
9 Oct 21, 13:31
in response to: PeterGibb
|
|
|
|
You could open all of the project files - jalbum-settings.jap - in a text editor (not a word processor), and do a global search-and-replace to change http: to https: Clunky, but it would work - the project files are just text files, and the links are saved in there as text strings. But if you've added link buttons to individual images, those are stored in the images' .info files. Same principle, but a lot more files to find, open, and edit.
You need to persuade RobM to write a "tool" for you!
(Rob - if you want to tinker with this, the project file variables in question are hsLinkButtonURL, hsLinkButtonURL2, and hsLinkButtonURL3. The image-level variables, in the .info files, are locHsLinkButtonURL, locHsLinkButtonURL2, and locHsLinkButtonURL3. If Peter has also used a custom button, you'd need to target hsCustomButtonAction and locHsCustomButtonAction, as well.)
|
|
|
Posts:
4,083
Registered:
4-Aug-2006
|
|
|
|
Re: Switching from http to https
Posted:
9 Oct 21, 13:45
in response to: JeffTucker
|
|
|
You could open all of the project files - jalbum-settings.jap - in a text editor (not a word processor), and do a global search-and-replace to change http: to https: Clunky, but it would work - the project files are just text files, and the links are saved in there as text strings. But if you've added link buttons to individual images, those are stored in the images' .info files. Same principle, but a lot more files to find, open, and edit.
An easier way is to open one file and then do a global search and replace on all files in a directory. On a Mac I use BBEDIT and ‘Multi-File Replacing’.
You need to persuade RobM to write a "tool" for you!
(Rob - if you want to tinker with this, the project file variables in question are hsLinkButtonURL, hsLinkButtonURL2, and hsLinkButtonURL3. The image-level variables, in the .info files, are locHsLinkButtonURL, locHsLinkButtonURL2, and locHsLinkButtonURL3. If Peter has also used a custom button, you'd need to target hsCustomButtonAction and locHsCustomButtonAction, as well.)
And albumAddress, of course. For now though, see what Peter makes of the text editor approach.
I have not been using my Mac, for personal reasons, so any tool might take a while to conjure up.
|
|
|
Posts:
240
Registered:
20-Nov-2009
|
|
|
|
Re: Switching from http to https
Posted:
9 Oct 21, 13:55
in response to: JeffTucker
|
|
|
|
Thank You both, very much.
I wondered what Jeff might say.
These modified .jap files would all need re-uploading I am assuming ?
I can edit them in Notepad as its pretty straight forward. After the editing can I just use Multimaker to make and upload in bulk ?
I have been looking through my albums on my site and there are a lot to do, but some time ago I decided to change and standardise these links, mainly for continuity, and a huge number are now links to other pages which has paid off with this as they all work fine.
Regards Peter
|
|
|
Posts:
8,559
Registered:
31-Jan-2006
|
|
|
|
Re: Switching from http to https
Posted:
9 Oct 21, 15:28
in response to: PeterGibb
|
|
|
These modified .jap files would all need re-uploading I am assuming ?
Yes.
I can edit them in Notepad as its pretty straight forward. After the editing can I just use Multimaker to make and upload in bulk ?
Yup, that would do the trick with no pain.
|
|
|
Posts:
240
Registered:
20-Nov-2009
|
|
|
|
Re: Switching from http to https
Posted:
11 Oct 21, 14:24
in response to: JeffTucker
|
|
|
|
I think I have done it all now, I did use the text editor but ended up
opening the affected projects and doing it manually.
It seemed that once I was in the rhythm of it, I could very quickly navigate
to the external links tab and it was just a case of planting an 's' in the appropriate places.
It took a while but all is working again now. Over time I have been changing things to be a standard view, sort of, and it has turned out really well, it also meant I did not have do do as much as I had at first thought.
The MatrixSlide external links that pointed to other pages or webby places were all fine, it was just the links targeting other projects that were not responding.
Many Thanks again for the help with it, as it was a good exercise to do a bit of a clean up in one or two areas while I was at it.
Regards Peter
|
|
|
Posts:
90
Registered:
27-Aug-2019
|
|
|
|
Re: Switching from http to https
Posted:
26 Mar 25, 10:43
in response to: PeterGibb
|
|
|
In case anyone else is looking to do this or a similar find and replace (in my case specifically in the comments section)
https://www.rjlsoftware.com/software/utility/search/
Is lightning fast and free
comments are stored in the comments.properties file and can be filtered in the above by using "*.properties"
|
|
|
|
Legend
|
|
Forum admins
|
|
Helpful Answer
|
|
Correct Answer
|
|