When I open the login form (/user) in colorbox, using colorbox_node it works fine - if I fill out user/password correct. It redirects me.

But on pages that doesn't redirect (f.ex. if I enter wrong password) - I get a whole bunch of json output.

I would very much appreciate any hints to what could be the issue..

The problem can be viewed here: (click the Login link in the top menu)
http://legacy.fosshosting.com/

I'm using logintoboggan module to combine user and register form on 1 page.

Comments

iLLin’s picture

You need to add ajax to your form, so it reloads within the colorbox.

klavs’s picture

I thought you meant add ajax to the form class. But that obviously wasn't it.

Is there some std. ajax that isn't loaded in the colorbox, that I need to include somehow?

The colorbox has set iframe: false.

iLLin’s picture

You need to do a form alter on that login form. Login Tobbagan I believe has this somewhere, or you can just do it your self with a form alter.

klavs’s picture

what do I need to alter in the form? I've altered the form so it has class="ajax" - but that didn't change anything.

According to the description of colorbox_node - it seems it should handle this:
uses the built in AJAX Framework and menu callback functions. You can display any page now, not just nodes. Support for webforms was added and the module will dynamically add AJAX support to the displayed modal box to keep error messages and confirmation pages inside the modal box.

but that somehow fails :(

Sorry for being slow - and thank you for trying to help me

iLLin’s picture

The user login is not a webform, my description is accurate. I suggest you do a search on how to alter the form to provide ajax support.

iLLin’s picture

Status: Active » Closed (works as designed)
iLLin’s picture