themaManager
http://manager.themasoftware.com/forum/

Auto Replace Links From .txt File.
http://manager.themasoftware.com/forum/viewtopic.php?f=4&t=7551
Page 1 of 1

Author:  Pablo01 [ February 6th, 2023, 4:13 pm ]
Post subject:  Auto Replace Links From .txt File.

Hi,

My template for hostlinks has this structure:

url = {#linkUrlWithFileName#}

That is due to the coding on the wordpress website in this case.

Anyway, I wanted to test the feature to replace links auto in TM by having the new links in a txt file - I did that and TM did find the txt but replaced 0 files.

Is this because there literally is
url = https://tezfiles.com/fille/22222

in the leeched post?

This is the template for posting to this blog.
Code:
<!-- wp:code --><pre class="wp-block-code"><code>[themaCreator]
name = {#fileName#}
{#cover#}
{#preview#}
{#links#}
size = {#fileSizeInBytes#}
format = {#fileExtension#}
width = {#videoWidth#}
height = {#videoHeight#}
format = {#videoFormat#}
duration = {#videoDuration#}
aspect_ratio = {#videoAspectRatio#}
extension = {#fileExtension#}
quality = {#videoQualityText#}</code></pre><!-- /wp:code -->


Cover Tab
Code:
cover = {#imageDirectUrl#}
cover_thumb = {#imageThumbUrl#}


Preview Tab
Code:
preview = {#imageDirectUrl#}
preview_thumb = {#imageThumbUrl#}


Hostlinks tab:
Code:
url = {#linkUrlWithFileName#}


The txt file contains only the link urs with filename and nothing else.

Author:  Freddy [ February 6th, 2023, 5:07 pm ]
Post subject:  Re: Auto Replace Links

The links in your site must also have filename in them.

Your example looks without filename.

Looks like they were posted in wrong format in the past.

It will only work for future links which you will be posted correctly with filename (once they are dead).

For those old links you would need to replace them via GUI.

Author:  Pablo01 [ February 6th, 2023, 5:25 pm ]
Post subject:  Re: Auto Replace Links From .txt File.

The files are uploaded today and brand new

do they have to be "dead" before they are replacable ? because they are online maybe thats why?

And they do have filename like this url = https://tezfiles.com/file/d595168bc98ae ... teaser.mp4

Author:  Pablo01 [ February 6th, 2023, 5:32 pm ]
Post subject:  Re: Auto Replace Links From .txt File.

i think it works now it found 4 links and I have 4 links in txt - its problem on the WP side I think - will investigate.

Author:  Freddy [ February 6th, 2023, 5:35 pm ]
Post subject:  Re: Auto Replace Links From .txt File.

The links don't need to be dead.

PM me URL with login details and .txt file which you are using.

Could take a look.

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