Page 1 of 2
Re: Registration
Posted: 06 May 2009, 07:05
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.
Re: Registration
Posted: 05 Sep 2009, 13:07
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
The code was posted here is correct...
Re: Registration
Posted: 08 Sep 2009, 18:50
by Jan
Ok
Re: Registration
Posted: 10 Jul 2012, 16:16
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 ?
Re: Registration
Posted: 17 Jul 2012, 15:45
by Sebpl
Hi Jan,
I have not been solved this problem until today.
Could you advise please ?
Re: Registration
Posted: 17 Jul 2012, 21:25
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 ?
Re: Registration
Posted: 17 Jul 2012, 23:20
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
Re: Registration
Posted: 18 Jul 2012, 14:17
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 ?
Re: Registration
Posted: 18 Jul 2012, 15:32
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

, see:
https://www.phoca.cz/documents/16-joomla ... -in-joomla
Jan
Re: Registration
Posted: 18 Jul 2012, 16:17
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