I need a custom home page for my site. The home page will be created seperately and will be promoted to Drupal home page. I dont want normal Drupal links on that page. That I can do. However I want a login button and on clicking it a layer(div tag) would appear where the user can login/request new password/create a new account. Request new password and create new account requests will be directed to relevant Drupal nodes. However, on logging in the user must remain in the home page with a Wecome Username message displayed somewhere. Also we will be providing each user with a blog and there is also a forum. So when the user logs in and is in the home page...A message should be displayed stating the following with proper links
1. Mails recieved by the user
2. Replies to her forum messages
3. Comments on her blog
How will I do it? Should I use hooks? Or are there modules for the purpose?
Help is urgently wanted
Comments
Set block visibility by user role
It sounds to me like there are three parts to what you're trying to do.
1. Dynamically display the login form. I'd suggest using jQuery to manipulate the login block. Not sure if there's a module out there to do this, but it doesn't take much jQuery to clone the block, move it after your button in the DOM, hide it, and set it to show when the button is clicked.
2. Keep users from getting redirected to their User page when logging in. I think there are multiple modules to handle this, though I haven't used any of them. You might try Login Destination.
3. Display certain content only to authenticated users. You can do most of this by creating blocks for your mail, replies, and comments, and then setting them to be visible only to authenticated users. (To set visibility, go to Administer > Blocks. Find the block you want, and click 'Configure'. You'll find the setting you want under 'Role specific visibility settings'.) You can also restrict which page(s) the blocks appear on, so that they only show on the front page (or wherever you want them). As for the "Welcome, your_user_name," you may need to add some preprocessing code to template.php in your theme, unless one of the login modules can handle that for you.
Thanks
I have already downloaded login destination and that solves part of the problem. However, I am new to Drupal development so it wil take me some time to implement the rest.. Can I ask you for help once in a while?
Regards,
Sandip
I believe...whatever doesn't kill you, makes you.......stranger
We're all here to help
Of course you can ask for help—and if I'm not around to give it, there are always lots of other people who are (most of whom are better at this than I am).
If you're new to jQuery, too, I'd suggest working through 15 Days of jQuery, starting here. (Don't worry. It took him 15 days to write it, but it won't take you 15 days to read it.)