Registration

Phoca Download - download manager
codejunkie
Phoca Professional
Phoca Professional
Posts: 167
Joined: 11 Apr 2009, 01:30
Contact:

Re: Registration

Post by codejunkie »

You will need to modify two files
  • components/com_phocadownload/models/category.php
  • components/com_phocadownload/models/file.php
You need to search for ...

Code: Select all

$mainframe->redirect(JRoute::_('index.php?option=com_user&view=login', false), JText::_("Please login to download the file"));
and replace the 'index.php?option=com_user&view=login' portion with the correct link to the Community Builder login link.
Download Phoca Download Menu Module for listing Sections or Categories.
kitty
Phoca Member
Phoca Member
Posts: 13
Joined: 31 Aug 2009, 12:25

Re: Registration

Post by kitty »

is for the latest version of Phoca?

Because I tried and it continues redirecting to defalut login page joomla. And I changed this text "Please login to download the file" too and continues appearing this old text.


Any help?


EDITED:

SOLVED :twisted: :twisted:

The code was posted here is correct...
If you like this suggestions for Phoca Download, vote it! :-)

limit downloads for user

manage groups
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48595
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Registration

Post by Jan »

Ok
If you find Phoca extensions useful, please support the project
Sebpl
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 10 Jul 2012, 16:02

Re: Registration

Post by Sebpl »

Hi, Jan,

We are now in 2012 with a new version of phoca dowload :)
I met the same problem than marc.

I changed in componant/com_phocadownload/models -> file.php the line 53 to : $returnUrl = 'index.php?option=com_comprofiler&return='.base64_encode($return);
But it doesn't work i have a redirection to the standard joomla menu.

Regarding the file "category.php" there are no line with returnurl..

Could you advise me ?
Sebpl
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 10 Jul 2012, 16:02

Re: Registration

Post by Sebpl »

Hi Jan,

I have not been solved this problem until today.

Could you advise please ?
Sebpl
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 10 Jul 2012, 16:02

Re: Registration

Post by Sebpl »

Hi,

i notified that the link to my menu is the following: 'index.php?option=com_comprofiler&task=registers'
So i changed the url in line 53 of the file.php to:
$returnUrl = 'index.php?option=com_comprofiler&task=registers&return='.base64_encode($return);
or
$returnUrl = 'index.php?option=com_comprofiler&view=login&return='.base64_encode($return);
it doesn't work so far...

when i click on the file to download i go to the following link:
mysite/component/users/?view=login&return=aW5kZXgucGhwP29wdGlvbj1jb21fcGhvY2Fkb3dubG9hZCZ2aWV3PWNhdGVnb3J5JmlkPTE6c3Vyb3djZSZJdGVtaWQ9MA==

any idea to help me ?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48595
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Registration

Post by Jan »

Hi, for now I didn't modify the code to redirect to other than standard login page, so for now experiences and ideas for this :-(

Jan
If you find Phoca extensions useful, please support the project
Sebpl
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 10 Jul 2012, 16:02

Re: Registration

Post by Sebpl »

Hi Jan,

I found where is the problem !!
The following code is the corect one for me:
$returnUrl = 'index.php?option=com_comprofiler&task=registers&return='.base64_encode($return);

but when i have the SEF ON in the joomla configuration, the return url doesn't works :), i mean that the return is for example:
component/phocadownload/file/3-badge.html

If i switch OFF the joomla SEF, so the return Url works fine...

Could you advise me ?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48595
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Registration

Post by Jan »

Hmmm, not sure, but maybe the menu link to com_profiler will help, if not then there needs to be done some customization regarding SEF and the com_profiler :idea:, see:

https://www.phoca.cz/documents/16-joomla ... -in-joomla

Jan
If you find Phoca extensions useful, please support the project
Sebpl
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 10 Jul 2012, 16:02

Re: Registration

Post by Sebpl »

Hi,

I found a subjet on the forum with SEF and phoca PDF.
I think that by adding some rewritting rule in the .htaccess it will fix this problems but i'am a beginner...

Could someone here could help me with this ?

Thank in advance.

Seb
Post Reply