Change default Joomla Login Form With Pop Login

Hi.
i have a question.

how can i change the default login module in joomla (com_user) from a link
i use this link to call the joomla default login module

'index.php?option=com_user&view=login'

how can i use the pop login module with this kind of link

This link comes from the phocadownloads component, and i need it for when a visitor tries to acces a registered only content the pop up appears asking for user and pass.

is that posible ?


thanks in advance.
11 years 10 months ago #1 by mexican

Please Log in or Create an account to join the conversation.

Hi, Did you mean when some one trying to access a content that is need login access then the pop login will be poped up? Not really sure this is will be working but you can try to change the link into something like this :
<a href="#" rel="tppoplogin" class="poplogin">LOGIN</a>
Please make sure all poplogin javascripts are loaded
11 years 10 months ago #2 by andy

Please Log in or Create an account to join the conversation.

Thanks for your response.

yes is for when a visitor is trying to access a content that is restricted to registered user.

the component (phocadownloads ) detects this and sent the request to

$returnUrl = 'index.php?option=com_users&view=login&return='.base64_encode($return);

from the file
"/components/com_phocadownload/helpers/phocadownload.php"

which loads the default login

( i choose the phocadownload module but i have seen the same kind of links in others components.)

so in specific the question is.

how can i make the change from

$returnUrl = 'index.php?option=com_users&view=login&return='.base64_encode($return);

to
<a href="#" rel="tppoplogin" class="poplogin">LOGIN</a>
lets say i've changed to this

$returnUrl = 'index.php?"#" rel="tppoplogin" class="poplogin" ($return);

and all kind of variants, the default login components does not load anymore, but neither the Pop Login module, in the address bar of the browser, displays the above string but it changes to

/index.php/article_link#" rel="tppoplogin" class="poplogin"

is this posible or do you know a trick or workaround ?

thanks in advance
11 years 10 months ago #3 by mexican

Please Log in or Create an account to join the conversation.

Hi Mexican, I'm sorry it looks like this is something that is not possible without a major javascript modification :(
11 years 10 months ago #4 by andy

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum