Page 1 of 1

Member Download LogIn Problem

Posted: 28 Jul 2009, 11:14
by onkelfishi
Good Morning everybody

I installed phocadownload and created sections, categories and files. So I have different files, that are only available for members.
Here the link:
http://onkelfishi.de/index.php?option=c ... &Itemid=54
The German text says: that you can't download the file, because you are not a member.

If you send anybody the downloadlink (maybe from a registered member)
http://onkelfishi.de/index.php?option=c ... &Itemid=54
a new log-in site appears.

http://onkelfishi.de/index.php?option=c ... view=login

the problem is that I use community builder (as you can see on the left) and the log-in module (which appers in the middle) is the old joomla log-in (I have already disabled it in my module and plugin section)

how can I change the links named

* Haben Sie Ihr Passwort vergessen?
* Haben Sie Ihren Benutzernamen vergessen?
* Registrieren

The Register-Url from the Joomla login is: http://onkelfishi.de/index.php?option=c ... k=register
and the register-url from Community-Builder is: http://onkelfishi.de/index.php?option=c ... =registers


Or is there any change to replace the joomla log-in module with the community builder module?

thx for your help and sorry for my bad english

Re: Member Download LogIn Problem

Posted: 28 Jul 2009, 13:06
by Jan
Hi, I am sorry but I don't know. Phoca Download works with standard login authentification. I don't know CB so I cannot say what needs to be changed in the code, so the CB login will be displayed instead of standard plubin :idea: maybe you should search the code for login redirect and change it to some CB redirect :idea:

Re: Member Download LogIn Problem

Posted: 28 Jul 2009, 13:26
by onkelfishi
Jan wrote:Hi, I am sorry but I don't know. Phoca Download works with standard login authentification. I don't know CB so I cannot say what needs to be changed in the code, so the CB login will be displayed instead of standard plubin :idea: maybe you should search the code for login redirect and change it to some CB redirect :idea:
ok and where can i find (change) the "register" url from the standard log-in - so that I can put the new CB-register-url in?

PS: do you know the php file where i could find any Log-in information or what log-in plugin is used?

thank you

Re: Member Download LogIn Problem

Posted: 28 Jul 2009, 16:11
by codejunkie
In Phoca Download v1.1.0 it is in two files.

For category try the front end at about line 203

Code: Select all

components/com_phocadownload/models/category.php
For files try the front end at about 48 and 160

Code: Select all

components/com_phocadownload/models/file.php
I have not looked at the beta to see where in that code you need to adjust.

Re: Member Download LogIn Problem

Posted: 05 Jan 2010, 09:40
by fazk
Dear Jan,

How to make registered members can download while visitors can't download?

Thanks,

Fran

Re: Member Download LogIn Problem

Posted: 05 Jan 2010, 20:07
by Jan
Hi, you can display the category only for registered displayed or you can set in edit of files that the file will be accessible for registered only (if you want public user can see it but not download it, then just set "display for public" to yes)

Jan

Re: Member Download LogIn Problem

Posted: 05 Feb 2011, 13:07
by shivpintu
codejunkie wrote:In Phoca Download v1.1.0 it is in two files.

For category try the front end at about line 203

Code: Select all

components/com_phocadownload/models/category.php
For files try the front end at about 48 and 160

Code: Select all

components/com_phocadownload/models/file.php
I have not looked at the beta to see where in that code you need to adjust.
This worked.... thank you lot lot lot... 8)

Re: Member Download LogIn Problem

Posted: 09 Feb 2011, 09:17
by King Riptor
Jan wrote:Hi, you can display the category only for registered displayed or you can set in edit of files that the file will be accessible for registered only (if you want public user can see it but not download it, then just set "display for public" to yes)
Doesn't work for me no matter how it's configured, either everyone can download reguardless of login status or nobody, including super admin, see's nothing.

Update: Seems the default.php in category/views got corrupted for some reason, after replacing it the downloads work as they should.