How can I auto-update the file I upload?

Viewing 12 posts - 26 through 37 (of 37 total)
#166424

Tanvir
Moderator

Hello,

“Download” text can be changed by editing php file of wpdm theme.
However, to change download text in the file list,
https://ftsincome.co.uk/testin-dwn/

It needs to edit in src/package/filelist.php page.
However, to edit button on shortcodes, I need to edit in another php files.

Do you just need to change download text in the filelist only?

Also updating wpdm plugin or activated theme will remove the edits unless you use child theme.

Thanks

#166425

Adeyeye Gabriel
Participant

Hello Tanvir,

I want to edit each button shortcodes, so the button shows different download text, how do I do that.

Like the text link style where I set any text as the download text, I want the same too.

And also how can list the files on https://ftsincome.co.uk/testin-dwn/ to show from the newest to the oldest.

I have been able to make it show just 14 files as I want but I don’t get the sorting.

Thanks

#166436

Tanvir
Moderator

Hello,
Glad to hear that the 14 files issue has been fixed.
Let me know please did you edit the filelist.php for that?

Also Adding asort($allfiles); in download-manager\src\Package\filelist.php
in near around line 345 will solve the sorting issue.
sort

However, You can also change the download text from there. Also to change download buttons in shortcode, just provide me the page url with the shortcode you are using so that I could guide you to change those too.
Thanks

#166437

Adeyeye Gabriel
Participant
This reply has been marked as private.
#166441

Tanvir
Moderator

OK please provide me temporary admin access of your website and ftp access.
So that I could do it.
Also please let me know the changes you want in shortcode and just let me know where did you applied changes to show 14 files. That could also create issue.
Thanks

#166500

Adeyeye Gabriel
Participant
This reply has been marked as private.
#166545

Tanvir
Moderator

Hello,

You can change this text to change the download button text.
Screenshot-8

I checked it in the line 67 in FileList.php file.

Thanks

#166546

Adeyeye Gabriel
Participant

I want to be able to set different download text for different single file package, not a total change to all download button.

The same way this Direct download link work

[wpdm_direct_link] – Embed direct download link as a simple text link

Or if there is a CSS class I need to add to the direct link as a simple text link to make it a button, I will appreciate.

Thanks.

#166610

Tanvir
Moderator

Hello @science4me,
Hope you are well.
Unfortunately it is not possible currently. You can’t add different text for individual buttons. Instead, you can set different text for all the buttons as I showed in the last reply.
However, you can contact with the customization team about this issue like the another issue to get a customization service.
Thanks

#166627

Adeyeye Gabriel
Participant

Okay Tanvir,

Where Can I put the codes I put in Filelist.php so that new updates wont overwrite it

Thanks

#166631

Tanvir
Moderator

Hello,
Sorry There is no filter available for this function . You have to manually edit this every times you update. However, if you apply customization service, they will give you the solution to use the codes without overwriting.
Thanks

#167290

Shahjada
Keymaster

We shall add a filter with the next update to manipulate file list

Viewing 12 posts - 26 through 37 (of 37 total)

The topic ‘How can I auto-update the file I upload?’ is closed to new replies.