jDownloads Support Forum

Older Versions => jDownloads 3.2 (Support ended) => General => Topic started by: 4eng.ir on 08.09.2015 07:06:53

Title: how Change alias of all downloads using title
Post by: 4eng.ir on 08.09.2015 07:06:53
Hi

i want to update all alias of downlads , and use file title in alias
i can edit each file but  h have to many file
Title: Re: how Change alias of all downloads using title
Post by: 4eng.ir on 12.09.2015 22:11:52
sorry to spam

but don't have solution to Rewrite all alias? some of my downloads link have date in URL and its bad for seo
Title: Re: how Change alias of all downloads using title
Post by: Arno on 14.09.2015 15:08:16
Hi,
i think your problem has to do with older Downloads.
Where the unicode setting in Joomla configuration was not activated.

But this is not a jDownloads problem. So please use a Joomla support forum for it.

You can open every download and remove the current alias and save it then again.
Or you create a small php script what this can do for you.
Title: Re: how Change alias of all downloads using title
Post by: 4eng.ir on 14.09.2015 15:19:03
Hi tank you for reply
but how i can create php script   to perform this i don't know php
please help
Title: Re: how Change alias of all downloads using title
Post by: Arno on 14.09.2015 21:09:27
How many Downloads must you change?
Title: Re: how Change alias of all downloads using title
Post by: 4eng.ir on 14.09.2015 21:14:02
Hi
3000 files must changed
Title: Re: how Change alias of all downloads using title
Post by: Arno on 15.09.2015 13:07:52
Okay that is to much to do it manually.  ::)
But i have in the moment not the time to help here.

Maybe a freelancer?
Title: Re: how Change alias of all downloads using title
Post by: Arno on 15.09.2015 13:49:27
Hi,
maybe can you use this ploy:
- create at first a backup from your complete database
- create then a backup from your jD DB tables (via jD tools page)
- open the file: administrator/components/com_jdownloads/controllers/restore.php 
  (but use for this an editor like notepad++ - as he must support utf8 files)
- insert in line 163:
    $file['file_alias'] = "";
- save the file
- make sure that you have activated the unicode support in Joomla SEO settings
- start then the restauration process in the jD tools page and check the results

Please note that you can do this only when you have greater values for some server settings (php.ini):
- max_execution_time 600
- memory_limit 500M
- max_input_time -1

Important:
- i have not tested this really! So it is your risk whether you will try this.
Title: Re: how Change alias of all downloads using title
Post by: 4eng.ir on 21.09.2015 05:13:32
tank you Arno its work
for me
Title: Re: how Change alias of all downloads using title
Post by: Arno on 21.09.2015 11:55:32
Fine! Please forget not to restore the line 163 again. ;)