Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
Ingumsky CreditAttribution: Ingumsky commentedYou should probably clear your website cache mate.
Comment #2
chaloum CreditAttribution: chaloum commentedIngumsky
Thanks for you comment but I am doing that already and have the problem.
marcel
Comment #3
mdshields CreditAttribution: mdshields commentedYou 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:
and here is the bug fix I provided to get it working:
http://drupal.org/node/1117666
Comment #4
chaloum CreditAttribution: chaloum commentedmdshields
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
Comment #5
mdshields CreditAttribution: mdshields commentedI 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.
Comment #6
frjo CreditAttribution: frjo commented"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.
Comment #7
chaloum CreditAttribution: chaloum commentedFrjo
I have enabled login link but it doesnt work for the login but it does work for images and inline links
thanks
Marcel
Comment #8
frjo CreditAttribution: frjo commented@chaloum, do you have an example site where I can see this problem?
Comment #9
chaloum CreditAttribution: chaloum commentedI'll pm you
Comment #10
frjo CreditAttribution: frjo commented@chaloum, change your login link from */user to */user/login and it will most likely work. The script look only for user/login.
Comment #11
chaloum CreditAttribution: chaloum commentedFrjo
Yep that worked.
Thanks
Marcel
Comment #12
frjo CreditAttribution: frjo commented