Please don't criticize me, i am a noob and asking for help here was my last resort. I spent hours trying to get fancy login to work...(more like half a day)
I am using drupal 6 w/ genesis theme. I uploaded fancy login module correctly, enabled it and set permissions. I enabled it in a non custom block. The plain "login" link shows up when i log out, but when i click on it just redirect me to the standard drupal login page.
On the main fancy login page from drupal.org its states under installation: "...After it is installed, any anchor tag () that goes to the URL user/login will automatically be enabled with the Fancy Login functionality. A block is also provided (though disabled upon installation) that contains such a link....)
This is the part that i do not understand. I do not know how to apply an anchor tag to the urls user/login. When i do apply it to a url user/login, it doesn't work. I can not find the correct user/login url. And i was not able to find the block that was disabled upon installation that was stated in the installation instructions.
any help would be great. I just dont want to give up because i can't get it to work.
Comments
Comment #1
jaypanSorry about my slow response here.
The first thing to do is go to the folder for the genesis theme. Open the file called template.php.tpl. Look for a line of code that looks something like this:
print $closure;Orecho $closure;.If you don't find either of those, just search for
$closure. If you don't find that, then paste this:print $closure;Right before your closing </body> tag. If you DO find the code I mentioned above (anything with $closure) in it, paste the code you find, and I'll try to help you track down the problem.
Comment #2
jaypanComment #3
jaypanComment #4
Teeman commentedI alse had the same problem and your solution worked, but i'm wondering why it couldn't work while the page.tpl file didn't have the closure at the bottom.
Comment #5
jaypanIt's because of how the login is set up. I have to preload the form in order for it to work properly, because of Drupal's method of form handling. So I use hook_footer(), which adds output to the $closure element. The output is the login form. It is hidden on page load, and then when a login link is clicked, the javascript first darkens the screen, then moves the login form to the middle of the screen and fades it in. So without the $closure, there is no form to be displayed.
Comment #6
riemino commentedI am trying to get the FancyLogin module to work when the CAPTCHA is enabled. Everytime I enter my username, password, and CAPTCHA, I get redirected to /user/login with an "Invalid CAPTCHA token." error. Of course, I am entering the CAPTCHA correctly.
Any thoughts?
Comment #7
jaypanOff the top of my head, I don't know, but do you really want to have a captcha on your login? That seems like a little over kill - the user already has to put in a password. Usually you put a captcha on the registration page.
Comment #8
riemino commentedI've been getting hit by brute-force login for some of my users. I am trying to figure out the best way to deal with this. I have installed the Login Security module as well. I was thinking that the CAPTCHA at login would be a temporary measure. I am running Drupal 6.
Thanks for your response. :)
Comment #9
StellaM commentedI am pretty new to Drupal and in the middle of building my first website. Some weeks ago, I had Fancy Login working as intended but I made some changes to the site and then had to set aside the project for 10 weeks. Now that I am back working on it, I find that Fancy Login is not working properly. This is quite possibly because of some change I made but despite many hours of testing I am not able to fix the problem.
FYI, I am trying to launch the Fancy Login lightbox via the the Login link on the Secondary menu (I am using a modified version of the FeverUltra template by Antsin). I have verified that the "closure" statement is present at the end of page.tpl.php. What is happening at the moment is as follows:
When you click on the Login menu from the homepage, I am redirected to the /user/login page (I have enabled Clean URLs) to login. Once on this page, if instead of logging in, I click again on the same menu item, the link points to /user/login?destination=user/login and when you click on the link the Fancy Login lightbox pops up correctly. In fact, Fancy Login works correctly from every page other than the homepage (the link points to various node numbers from different pages).
I hope I am explaining the situation correctly. I desperately need to fix this problem as quickly as possible and would appreciate any and all help. Please let me know if you need a link to my "under construction" website. Many thanks in advance.
Comment #10
jaypanIt sounds like you probably have a javascript bug/conflict with another module on the page where it isn't working. Install the firebug plugin for Firefox, open it, then reload the page where the popup isn't working. It will show you any errors that exist.
Comment #11
StellaM commentedJay,
Thank you so much for your quick response. I do have firebug installed and love it in as much as I know how to use it. Unfortunately, as I am not a web-developer some issues are beyond me.
You are right, of course... but it took me a while to figure out that the conflict appears to be with the DHTML Menu module. In a perfect world, I would like to be able to use both modules as we have major issues with our Primary Menu's child links overlapping without DHTML Menu, and Fancy Login is rather indispensible to the way we have our Secondary Menu set up. Our under-construction website is at www.willifest.com/drupal. Is there any guidance you can give me? We have to launch our beta site as soon as possible.
I truly appreciate all your help... Stella
Comment #12
jaypanIf anyone is still having issues, please upgrade to version 6.x-2.x and open new a new issue for any problems that arise.
Comment #14
Kitty77 commentedDear Jaypan,
I'm having the exact same problem and I don't seem to be added the $closure code correctly as it's still not working for me.
I've tried to add it to the html.php.tpl right before the but that gave me me an error 'undefine variable' .
Can you please help me through this ?
Thanks for your attention
Kindest regards,
Comment #15
macusernick commentedKitty77... I was having the same issue as you (I think). Just make sure that the version of jQuery your site is using is 1.8 or below. As soon as I switched it, the popup worked fine. Also you don't need to add the $closure bit either. Hope that helps!
Comment #16
jaypanYou mention html.tpl.php, but this thread is regarding Drupal 6, which has $closure (Drupal 7 doesn't), so your problem is somewhere else.
What does your html.tpl.php look like?