Youjoomla Support Forums (http://www.youjoomla.com/joomla_support/index.php)
-   YJ Pop login (http://www.youjoomla.com/joomla_support/forumdisplay.php?f=122)
-   -   Great module, but I fixed a couple bugs.. (http://www.youjoomla.com/joomla_support/showthread.php?t=8086)

bestonia 04-10-2011 12:29 AM

Great module, but I fixed a couple bugs..
 
Nice plugin, but i found and fixed two bugs in the j1.6 version:

1) there is no default option for login and logout redirection.
To fix this edit mod_yj_pop_login.xml file and change the following two field names to look like the following:

Code:

<field name="login" type="menuitem" default="" disable="separator" label="Login Redirection URL" description="PARAMLOGINREDIRECTURL">
    <option value="">JDEFAULT</option>
</field>
<field name="logout" type="menuitem" default="" disable="separator" label="Logout Redirection URL" description="PARAMLOGOUTREDIRECTURL">
    <option value="">JDEFAULT</option>
</field>

2) When I try to log out I get an invalid token error. This is because there is no token included in the logout form where there should be. To fix, edit /tmpl/default.php and add the following line of code to the form on about line 29

Code:

<?php echo JHtml::_('form.token'); ?>

Thanks for the plugin, its working a treat now.

rikiller 08-14-2011 08:29 PM

Thanks, Worked great for me mate. Well done.

thegodz 04-16-2012 08:06 PM

Hi there , i have done all the above ... still get the same error . Ive been looking around internet cant find the solution . :( Help ! lol

Katannah 11-26-2012 07:44 PM

Quote:

Originally Posted by thegodz (Post 45483)
Hi there , i have done all the above ... still get the same error . Ive been looking around internet cant find the solution . :( Help ! lol

I've checked the files above and the code was already included, but upon logout (even with the mod disabled), I have the following displayed in the Yougrids adv1 position:

JUser: :_load: Unable to load user with ID: 0

neo 11-27-2012 09:58 AM

Juser bug is related to your article not module login , closing this since the thread is over 6 months old


All times are GMT -4. The time now is 09:49 AM.

Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.