Thread Locked This thread is locked - replies are not allowed.


This question is answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 10 - Pages: 1 - Last Post: 27 May 22, 02:12 Last Post By: JeffTucker Threads: [ Previous | Next ]
robbif

Posts: 22
Registered: 15-Oct-2008
Saturn - Migrating Matrix-Slide to Saturn
Posted: 25 Feb 21, 20:04
 
I'm easily able to migrate everything in a Matrix-Slide show, including slide comments,
to a Saturn show, but not the URL links that appear with slide comments.

Is there an easy way to accomplish it?

Thanks as always!
Fred
JeffTucker

Posts: 8,332
Registered: 31-Jan-2006
Re: Saturn - Migrating Matrix-Slide to Saturn
Posted: 25 Feb 21, 22:27   in response to: robbif in response to: robbif
 
If you simply embedded links into your comments, those should come over unchanged, since they're just part of the comments - the jAlbum core doesn't know that there's anything unusual about them.

But if you were using MatrixSlide's ability to plant link buttons in the caption, that's a different kettle of fish. Those are unique to the skin, and the core doesn't know they're there at all.

How many of these are we talking about? If it's a relatively small number, you could just display the source code of the finished pages and do some copying and pasting. Otherwise, it will take a custom-written tool to extract those external links (URL, button text, and button tooltip) and append them to the comments.

At the end of the day, you still won't get the old link buttons without some additional finagling. Instead, you would just get simple text links in the comment. I resisted including things like that in Saturn. I had seen too many albums that ended up looking like link farms that, oh by the way, had a few small images. ;)
robbif

Posts: 22
Registered: 15-Oct-2008
Re: Saturn - Migrating Matrix-Slide to Saturn
Posted: 25 Feb 21, 23:38   in response to: JeffTucker in response to: JeffTucker
 
It's a bunch, but cut and past it is.

I saw that there was a completely different method of generating those links.
If I remember correctly is was included in the index.html.

Thanks!
JeffTucker

Posts: 8,332
Registered: 31-Jan-2006
Re: Saturn - Migrating Matrix-Slide to Saturn
Posted: 25 Feb 21, 23:48   in response to: robbif in response to: robbif
 
Post back if it proves to be too much of a hassle, or if you run into problems. I've written tools like this before, and it's not wildly difficult.
robbif

Posts: 22
Registered: 15-Oct-2008
Re: Saturn - Migrating Matrix-Slide to Saturn
Posted: 26 Feb 21, 02:31   in response to: JeffTucker in response to: JeffTucker
 
Let me see how many links I have to migrate.

Here's the tome I need to migrate...

http://frobbi.org/slides/az2017/index.html

Looks like about 40 links scattered over 2-3 levels of subshows.
JeffTucker

Posts: 8,332
Registered: 31-Jan-2006
Re: Saturn - Migrating Matrix-Slide to Saturn
Posted: 26 Feb 21, 02:44   in response to: robbif in response to: robbif
 
Alas, it would probably take longer to develop and test a tool to automate this than it would take just to harvest the URL's and manually paste them into the comments.
robbif

Posts: 22
Registered: 15-Oct-2008
Re: Saturn - Migrating Matrix-Slide to Saturn
Posted: 24 May 22, 16:54   in response to: JeffTucker in response to: JeffTucker
 
Well, here I am again. The only folder/page I did not migrate was the "home page".
Here's the public matrix version, still working well: https://frobbi.org/slides/az2017/index.html

The problem with the Saturn version seems to be with my link to a YouTube playlist, which worked fine in Matrix.
I can only guess it's related to the special characters. If so, I'm not sure how to correctly fix it.

From my test slideshow: https://frobbi.org/slides/az2017-22-TEST/

Problem example...
<a target="_blank" href="https://www.youtube.com/playlist?list=PLD0Hjm8DzotPEAGWWmP21k-US7iF8jKfO">See all my in-flight videos</a>

Another Problem example...
<a target="_blank" href="https://www.youtube.com/playlist?list=PLD0Hjm8DzotNnqv0-If787T9H7USMGoqs">Another playlist</a>

No Problem example...
<a target="_blank" href="https://youtu.be/XML5Q2sF6Wg">Simple YouTube link</a>

JeffTucker

Posts: 8,332
Registered: 31-Jan-2006
Re: Saturn - Migrating Matrix-Slide to Saturn
Posted: 24 May 22, 17:14   in response to: robbif in response to: robbif
 
No, it's not special characters. The problem is much more obscure than that, but I actually have a little note to myself about it in my skin development stuff, because when you run into it, it puzzles the daylights out of you for a while. ;)

In short, that link that you're planting in the comment is being grabbed by the Floatbox script that's running on the page. It thinks it's something it's supposed to open in a new lightbox. So instead of going to a new page, you're staying on the same page, but all of the navigation for the regular images in the project gets very confused.

I think the fix is just to tell Floatbox that it shouldn't touch this link, and there's an easy way to do that. Instead of entering this in your comment:
<a href="https://www.youtube.com/playlist?list=listcode" target="_blank">Click here</a>
Try this, instead:
<a class="nofloatbox" href="https://www.youtube.com/playlist?list=listcode" target="_blank">Click here</a>
robbif

Posts: 22
Registered: 15-Oct-2008
Re: Saturn - Migrating Matrix-Slide to Saturn
Posted: 24 May 22, 18:21   in response to: JeffTucker in response to: JeffTucker
 
Wow, you put me back in business in 20 minutes!
That's why I always say..

Thanks always,
Fred
JeffTucker

Posts: 8,332
Registered: 31-Jan-2006
Re: Saturn - Migrating Matrix-Slide to Saturn
Posted: 24 May 22, 18:51   in response to: robbif in response to: robbif
 
This is why I write myself little notes about weird stuff. :)
JeffTucker

Posts: 8,332
Registered: 31-Jan-2006
Re: Saturn - Migrating Matrix-Slide to Saturn
Posted: 27 May 22, 02:12   in response to: JeffTucker in response to: JeffTucker
 
Saturn version 83 takes care of this "automagically," so you don't need to do it manually. In fact, it's better if you don't insert the "class" code manually. If you do, it will end up being doubled. No real harm, but it won't validate.
Legend
Forum admins
Helpful Answer
Correct Answer

Point your RSS reader here for a feed of the latest messages in all forums