Page 1 of 1

Redirecting users to registration after download

Posted: 07 Mar 2012, 15:54
by rodobor
Hello Jan!

First of all, thanks for the top quality content you're developing. It's not so common these days.

I've implemented your Phoca Download in a project for a client of mine.

Just a quick question,I'm sure it won't be a big issue to handle: when an unregistered user tries to download a protected file, he's redirected to a login page.

I'd like to redirect him, instead, to another page of mine, so I could easily implement a registration module. Could you suggest me where to edit the url redirection link? I've looked all over the PHP files but can't seem to find it.

Or better, is there a way to modify that user login page?

Thanks for attention
Best wishes
Rodolfo

Re: Redirecting users to registration after download

Posted: 07 Mar 2012, 20:46
by Jan
Hi, you should modify the php code, just search the frontend files for "redirect" string

Jan

Re: Redirecting users to registration after download

Posted: 07 Mar 2012, 20:54
by rodobor
Thanks for the reply!

I went into /components/com_phocadownload and looked in various php files but can't seem to find the right line of code.
Could you point me to the exact file to modify?


I'm mainly a front end/graphic designer so PHP it's a bit "out of my routine".

thanks
R

Re: Redirecting users to registration after download

Posted: 07 Mar 2012, 21:03
by Jan
Hi, I am not on my PC now, so cannot point to directly to the code as I don't know it ( forum-rules.php 9 ) :-(

Jan