News:

Support for jDownloads 3 has been ended
Since 17 August 2023 Joomla.org has discontinued support for Joomla 3.x. Therefore, we will no longer offer official support for our Joomla 3 jDownloads version 3.9.x from January 2024.
Please update your website to the latest Joomla version (Joomla 4 or Joomla 5) as soon as possible. Afterwards, please update jDownloads to the latest published version. The longer you delay, the more difficult the upgrade process for your website is likely to be.

Main Menu
Support-Forum

Direct link to download shows notice instead of login form

Started by guest35517, 20.11.2017 18:54:49

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

guest35517

Hi there!

As it says in the title, I'm trying to show joomlas login form when someone is trying to access a download which they're not allowed to get (if they're not logged in).

I've managed to have one category with public downloads for everyone which works fine and some more categories for registered users only. They should be visible and it only shows the download button when people are logged in (which works fine).

On the website should be a few links to those downloads so people can directly get them without browsing through the categories, but only if they're logged in, and this is where it stops working. It only shows the message from COM_JDOWNLOADS_DOWNLOAD_NOT_ALLOWED_MSG and not the login form.

I was reading the documentary and browsing the forums, but I can't find the appropriate infos to fix this. Any pointers what I'm doing wrong would be much appreciated.

Best regards,
M
  •  

ColinM

Hi
You are not doing anything wrong.  The facility to redirect is not there!  But it is a good idea to have as an option.
This is not a simple code change. Not everyone would want to automatically redirect to a logon in such a circumstance so it would probably need some extra configuration parameters.  Also there could be different login extensions.
Colin
PS please post suggestion in the Suggestion area so it does not get forgotten!
C
Colin M
  •  

guest35517

Hey Colin,
thanks for the information, I was under the impression that this was possible, since I found a lot of posts describing that kind of behaviour (at least in the older versions). Anyhow, I'll post it over there and hope for an update. Technically it would be enough to have the login form on the same page and just reload the referring page I reckon.
Best regards, M
  •