Not sure what Im doing wrong.. I have checked the Enable for login links.
I have a login link in a menu and nothing seems to happen. I just navigates to the login page.

What am I missing?

Thanks

Marcel

Comments

Ingumsky’s picture

You should probably clear your website cache mate.

chaloum’s picture

Ingumsky

Thanks for you comment but I am doing that already and have the problem.

marcel

mdshields’s picture

You actually need to explicitly set up the link to the login box. Colorbox doesn't actually intercept Drupal to provide the capability for you.

So, here is what I did to get it going:

<a class="colorbox-load" href="?q=colorbox/form/user_login_block?width=300&height=300&iframe=true" title ="Login"> Login </a>

and here is the bug fix I provided to get it working:
http://drupal.org/node/1117666

chaloum’s picture

mdshields

thanks for that. I have gone down that path only because I couldn't get it to work as expected. But the link isn't what I want either as I want it to display when clicking on a menu link.

Does your bug fix resolve the issue?

thanks

Marcel

mdshields’s picture

I can't get the menu link to actually initiate colorbox popup. the only way I can get it working is by explicitly providing the special link.

Possibly could use jQuery to $().addClass("colorbox-load") and append the name-value pairs.

I think if the colorbox-load class is applied to the class declaration of the link, then there should be a default set of width-height and iFrame arguments associated with the logic of the module.

frjo’s picture

"Enable for login links" will add a Javascript that automatically rewrites all user/login links so they open in a Colorbox.

@chaloum, does Colorbox work as it should for images etc.? Make sure it's correctly installed.

This feature has been improved considerably in the latest 7-dev so please try it out.

chaloum’s picture

Frjo

I have enabled login link but it doesnt work for the login but it does work for images and inline links

thanks

Marcel

frjo’s picture

@chaloum, do you have an example site where I can see this problem?

chaloum’s picture

I'll pm you

frjo’s picture

@chaloum, change your login link from */user to */user/login and it will most likely work. The script look only for user/login.

chaloum’s picture

Frjo

Yep that worked.

Thanks

Marcel

frjo’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.