Getting 404 error after user login

marikar 22 Jun, 2010
Hi everyone!

Congratulations for your great, great work!

I'm experiencing a problem after user login. I'm getting a 404 error, although user is successfully logged in. I'm afraid that this is because I edited the modules/mod_login/tmpl/default.php by changing the register url
<li>
			<a href="<?php echo JRoute::_( 'index.php?option=com_chronocontact&chronoformname=registration' ); ?>">
				<?php echo JText::_('REGISTER'); ?></a>
		</li>


Is there a way to make it work?
Thank you in advance.
GreyHead 22 Jun, 2010
Hi marikar,

I'm not sure what you are trying to achieve here. Why would you send the user to a registration form after they've logged in?

Bob
marikar 22 Jun, 2010
I'm afraid I didn't make it quite clear.. Sorry for the misunderstanding.

What i mean above is that i modified the default.php file at mod_login (code above), in order to replace default login form with my registration chrono form. The registration process works fine. The problem is that when i insert my credentials at login form and hit "Login", i get a 404 error instead of redirecting at my user-profile page.

Thanks in advance,
Maria
marikar 23 Jun, 2010
Ok I found out what was going wrong. It was just that I hadn't selected a submenu to redirect after login. Sorry for the misunderstanding and congratulations for your work and support!

One question! Is there a possible way to add the fields from the chrono registration form to the "Edit your info" form ?

Thank you,
Maria
GreyHead 23 Jun, 2010
Hi Maria,

OK, I understand, sorry for being slow.

You can't add the fields to the Joomla update profile form without hacking the core, but you can create a replacement Update profile form. Copy the Registration form, disable the registration plugin and add the code to update the user object to the OnSubmit box.

Bob
marikar 12 Jul, 2010
Ok, I've created the details form by copying the registration form, but how actually can I "bring" the fields from the table and display them to the form? Sorry if it's something obvious but i'm really confused right now!

Thanks a lot for your help,
Maria
GreyHead 12 Jul, 2010
HI Maria,

The Profile Plugin is the easiest way, or you can add a PHP snippet to the Form HTML to get the information from the database table.

Bob
marikar 13 Jul, 2010
Hi!

Thanks for your reply. I'm trying to figure out how this plugin works but it's a bit blurry...I tried to search the forum but I'm still in the dark here😟 Where exactly should I put the "{}" fields in the form? I tried value={text_1} but it's not working, nor does the value="{text_1}"
GreyHead 17 Jul, 2010
Hi Maria,

Have you enabled the Plugin on the Form Editor Plugins tab?

Bob
This topic is locked and no more replies can be posted.