themaCreator
http://creator.themasoftware.com/forum/

Dependent links in post texts / GIF instead of cover.
http://creator.themasoftware.com/forum/viewtopic.php?f=4&t=7513
Page 1 of 1

Author:  51n15ter [ December 29th, 2023, 12:10 pm ]
Post subject:  Dependent links in post texts / GIF instead of cover.

Hi, I just got the themaCreator app and I have 2 questions I couldn't find the answer for in the tutorials and on this forum.

1. Question:
I want to add doodstream folder links (one or more) to my posts where all videos of the particular webcam model are sorted.
This means these links are changing depending on the model (video file name).
Currently I construct my post texts in MS Excel and I have a list (which is expanded when a new model is added) of the models with the matching links and an excel function is choosing these links depending on the file name.
Is it possible to add such function or somehow add dependent links in TC?

An additional question is if it's possible to trim some of the tags? For example the file name is modelname_2023-12-23 p1.
In excel I can easily import the file names and then just trim everything from the "_202" part (because neither the model's name nor the subsequent text is fixed length) and I get the model's name.

2. Question:
For some of the videos I maually create GIF previews.
Is there a possibility to use these GIFs instead of the cover image if there is a GIF available for that particular video and use the basic random cover image where there is no GIF available?

Author:  Freddy [ December 29th, 2023, 3:53 pm ]
Post subject:  Re: Dependent links in post texts / GIF instead of cover

Hi,

will try to review and answer today in details.

1. You probably could add them with replacements.

You can trim with replacements as well.

2. You can use custom GIF (just need to change few settings).

Author:  Freddy [ December 29th, 2023, 8:49 pm ]
Post subject:  Re: Dependent links in post texts / GIF instead of cover

1. Will think the best way for those links.

For trimming where exactly do you need that? Inside message text? Only for filename which is uploaded to host? Subject?

If it's inside message text I would need a bigger example what's around to target that.

For subject / filename, you can use this replacement (if it's for Filename the set "Apply to" as "Filename"). Add replacement under "REPLACEMENTS" -> "Subject" tab:

Search for:
Code:
(.+?).[0-9]{4}.[0-9]{2}.[0-9]{2}.+


Replace with:
Code:
$1


Enable regex search.

2. In "TEMPLATES" -> "Video" -> "Settings" -> disable option to "Always try to get cover from external source".

In "Settings" -> "Process" -> "Cover" -> "If using cover file prefer image which has name has text" -> by default it's set to "cover", so your image file must have word "cover" anywhere in filename. You can change that or leave it empty (if left empty = first image will be used).

In "Settings" -> "Process" -> "Upload" -> enable "Don't reduce size for GIF images".

Author:  Freddy [ January 7th, 2024, 5:06 pm ]
Post subject:  Re: Dependent links in post texts / GIF instead of cover.

For the links, if you already selecting a folder with the files, you could put there .txt file with needed doodstream links.

Or group the files in folder and add that .txt file. Select the folder when processing then.

In "Main" template you can just use then {#txtText#} tag (it will be those links which you have in .txt file).

...

You could as well do it with replacements, but I guess there are quite a lot of model names so you would need to add quite a lot of replacements (depends on where in message text you need to insert those links to write the replacement example).

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/