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

Prefix for random filenames.
http://creator.themasoftware.com/forum/viewtopic.php?f=3&t=7332
Page 1 of 1

Author:  zelenuy [ October 1st, 2022, 8:06 pm ]
Post subject:  Prefix for random filenames.

Please add the ability to use your own prefix to random names. I have couple threads, its very difficult monitoring files, which genre threads I need work more and which need to be closed. For example, random name: rA26e377ce. With this option it can be something like this: prefix_rA26e377ce.

Attachments:
prfix.jpg
prfix.jpg [ 12.2 KiB | Viewed 528 times ]

Author:  Freddy [ October 2nd, 2022, 6:30 am ]
Post subject:  Re: prefix for random names

You can already do that with replacement. Even for needed sections (or all).

Add this replacement under "Subject" tab -> with "Apply to" selected "Filename":

Search for:
Code:
^


Replace with:
Code:
prefix_


Enable regex search.

Author:  zelenuy [ October 2nd, 2022, 10:58 am ]
Post subject:  Re: Prefix for random filenames.

Using replacements as on picture, the prefix was added to the new's title. This is not I want. Before uploading, video file renamed to "n937u5sbengx.mp4" and when I click on link, I see that name. My suggestion is to add this prefix exactly to the randomly renamed file, uploaded to filehost: "n937u5sbengx.mp4" ► "bdsm-n937u5sbengx.mp4".

Image

Attachments:
1.jpg
1.jpg [ 120.73 KiB | Viewed 519 times ]

Author:  Shaki [ October 2nd, 2022, 1:02 pm ]
Post subject:  Re: Prefix for random filenames.

Add this replacement under "Subject" tab -> with "Apply to" selected "Filename"

Image

Author:  Freddy [ October 2nd, 2022, 1:31 pm ]
Post subject:  Re: Prefix for random filenames.

As Shaki pointed out, you just added the replacement with wrong "Apply to" type and even in wrong place (under "Message" tab). It must be set to "Filename" and added under "Subject" tab (not message).

Delete your replacement.

Click on "Subject" tab -> write the replacement again -> make sure to select "Apply to" as "Filename" (it will only be applied to Filename then, not the title / subject).

It will be 100% as you want.

Author:  zelenuy [ October 2nd, 2022, 3:11 pm ]
Post subject:  Re: Prefix for random filenames.

Freddy wrote:
As Shaki pointed out, you just added the replacement with wrong "Apply to" type and even in wrong place (under "Message" tab). It must be set to "Filename" and added under "Subject" tab (not message).

Delete your replacement.

Click on "Subject" tab -> write the replacement again -> make sure to select "Apply to" as "Filename" (it will only be applied to Filename then, not the title / subject).

It will be 100% as you want.


For 99%, but its ok. One thing I need to do after upload - delete this prefix from the name, because I only needed it in the link name. Thank you.

Image

Author:  Freddy [ October 2nd, 2022, 3:32 pm ]
Post subject:  Re: Prefix for random filenames.

Add this "Message" replacement to remove from not the links:

Search for:
Code:
([^/])prefix_


Replace with:
Code:
$1


Enable regex search.

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