Page 1 of 1
Download restricted files - Redirected to a custom page
Posted: 24 Jan 2018, 17:33
by wolter
When unregistered users want to download restricted files, it will direct them to a login page. What i am looking for is to change the redirection to a custom page, which file do i need to edit to accomplish this ?
Note:
I am aware the message when being redirected to the login page can be changed in the language string in language file - in language file - in ini, but this is not what i am looking for.
Cheers and thanks for a great extension
Re: Download restricted files - Redirected to a custom page
Posted: 25 Jan 2018, 15:54
by Jan
Hi, in the code, you should search for redirect code.
Just search on your filesystem the string: "index.php?option=com_users&view=login" in phoca download folder to get info where the redirection is applied.
Jan
Re: Download restricted files - Redirected to a custom page
Posted: 25 Jan 2018, 19:33
by wolter
Thanks for reply!
Re: Download restricted files - Redirected to a custom page
Posted: 28 Jan 2018, 18:16
by wolter
com_phocadownload/controllers/user.php
com_phocadownload/models/file.php
com_phocadownload/models/play.php
com_phocadownload/views/user/view.html.php
Changing the redirection where the sentence "index.php?option=com_users&view=login" can be found in any of theses 4 files does not make any difference. Any other suggestions ?
Cheers
Re: Download restricted files - Redirected to a custom page
Posted: 28 Jan 2018, 20:31
by Jan
Hi,
files does not make any difference.
Any difference to what?
Try to search all the "redirect" strings, to see if there is no redirect set with variable (not a string)
Jan
Re: Download restricted files - Redirected to a custom page
Posted: 29 Jan 2018, 00:22
by wolter
Sorry for not being clear. What i mean is that changing redirect into any custom url in those files does not make any difference, still redirects to same location and not to the custom url i entered.
Re: Download restricted files - Redirected to a custom page
Posted: 04 Feb 2018, 18:42
by Jan
Hi, are you sure, your template or another system plugin does no override the output of the component (I mean you change the code in component, but it is overriden by template, so it is inactive) :ide:
Jan