Not sure if this is a bug or conflict but after enabling the module and configuring my forms it works fine. But, when I logout it breaks. This is true for firefox, ie, safari and chrome. Has any one encountered this issue?

Comments

superdorx’s picture

I've ran circles around this issue and still nothing. has anyone encountered this problem?

superdorx’s picture

Anything at all? =)

mstrelan’s picture

I have encountered this but haven't quite put my finger on it. I think it may have to do with displaying 2 compact forms on the same page and/or css and javascript aggregation. Does that sound similar to you?

ilfelice’s picture

I don't know if this is related, but I noticed that the CSS ID configured by default is "user-login-form" when it should be "user-login" instead. You may want to make sure that the CSS IDs are correct.

mstrelan’s picture

@kokitomare - user-login-form and user-login are different forms. One is used for the login block and one is used on the page user/login. Also I don't think is related

sun’s picture

Priority: Critical » Normal
Status: Active » Postponed (maintainer needs more info)

If it doesn't work, then there must be error messages or something.

Jehu’s picture

I had the same problem here (not working for anonymous).

I had added the search form to compact forms configuration also. Both forms (login and search) are been on the same page, but i've forgotten to give access to search form to anonymous users.

Now, after giving permissions for using search form to anonymous users compact forms works again.

sun’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

Sorry, without further information this issue can only be closed as not reproducible.

Feel free to re-open this issue if you want to provide further information. Thanks.

Dave Meyer’s picture

It appears that there needs to be at least one system-provided form to call the relevant scripts. If you add an external form to a content block or page, the compact forms functionality won't work unless search or login is also on the page and is being rendered with compact form.

Andrew_Mallis’s picture

confirming Dave's observation in #9

designmonger’s picture

Confirming #9 also, appears to need a system form to add javascript. My case, I simply added the form to the page and had visibility:hidden added to the css for the system form. All seems ok for now.

Rob_Feature’s picture

Version: 6.x-1.2 » 6.x-1.3
Status: Closed (cannot reproduce) » Active

confirming this issue and reopening.

lucascaro’s picture

Title: Not working for anonymous users » Add ability to load compact forms script for all pages.
Version: 6.x-1.3 » 7.x-1.x-dev
Category: bug » feature

I took the liberty of changing this issue's title and category. This seems to be a feature request. I'd also like to see a checkbox for loading compact forms javascript on all pages, no matter if there is a system form or not.

I believe that new features are for 7.x only, so I've changed that as well, but correct me if I'm wrong.

Cheers.

Rob_Feature’s picture

Title: Add ability to load compact forms script for all pages. » Non-system blocks don't trigger load of necessary script
Version: 7.x-1.x-dev » 6.x-1.x-dev
Category: feature » bug

I'm not sure how this is a 'feature request' and not a bug (Maybe lucascaro is misunderstanding the issue). The only way this is a 'feature request' is if the module doesn't even attempt to work with non-system provided forms, but clearly it does since you can add your own custom css classes.

Changing back to D6 since that's where we're all observing this and changing the title to something that describes the issue.

Again to rehash: If you have a page that only uses a non-system form, the script doesn't load or work. It SHOULD load on any page that uses a css class specified in the settings page...but it doesn't. Either the ability to have custom css classes should be removed (which would be bad!) or it should load the script properly for any forms entered there.

Hence, in my view...not a feature request. A bug.

lucascaro’s picture

Just for the record, loading the module for any page that uses a css class means loading the script for all pages on the site. Since this seems like overkill if you're only using this in a page or two and since as it works now it will load the script only on pages with those system forms, I thought that it would be convenient to add a feature thtat will let you load the scripts for all pages, or even select on which pages to load it.

A quick fix would be loading the script for all pages always by default. But this would be bad for performance of all pages that don't need the script loaded.

Nathan005’s picture

if your reading this and you want a work around
an option is to build your custom forms with the webform module
it will cause the script to load

http://drupal.org/project/webform