Dynamic login/logout account menu module

in
Here is a Drupal module to provide a dynamic [Login][My account][Log out] menu. Before the user is logged in, the menu shows only [Log in]. After, the menu change to [My account][Log out]. This is an alternative to the "User login" block. Maybe you do not want the "User login" block on every page, taking up valuable space and grabbing user attention away from your contents.

How it works

  1. When the user has not logged in, you get a [Log in/Create account] menu:

    click the "Log in/Create account" menu will takes you to the regular Drupal 'user' page:

  2. After the user is logged in, the menu change to [My account][Log out] and browser returns to where the user was:

    if the user was at the "page not found" 404 page, browser returns to the front page instead. (Note: default Drupal 404 page does not show navigation menu. To have Drupal show navigation menu, define your own 404 page at "admin/settings/error-reporting".)

  3. Click "My account" goes to the Drupal account page:

    Click "Log out" log out and return to front page.

How to use

By default the links are under the "Account menu". This is just like any menu like the primary-links, navigation. It can be placed in any block region: However, the links can be move to any menu through the admin/setting/accountmenu path. Here, I've moved the links to be part of the primary-links menu: You can try a demo of this at http://zen.hddigitalworks.com, you can try the login behavior with user "visitor", password "123". The menu can be rearranged, reconfigure, move to be a sub-menu through the admin/build/menu interface. The module is at http://drupal.org/project/accountmenu. 11944

hey i appreciate the work you

michael p's 的頭像

hey i appreciate the work you did on this module as it helped me out a good bit. my question is if you could kindly point me to where i need to look for changing the default url for the login link? the stuff in the thickbox is a bit cramped up and i would like to make it a bit wider, but i guess i'm missing something.

 

regards,

best regards

BytesLand's 的頭像

In drupal, there is an account menu provided by core user module, with 2 links: "my account" an "log out".
These 2 links are generated from lines 1043 to 1061 in modules/user/user.module, and are available through a user login block. I've just tried to remove these lines from the user.module code and they vanished as expected. Then i put the code back, but my links didn't come back!

thank you

jak poderwac laske's 的頭像

I did the exact same thing, for some strange reason the link does not come back... you have to uninstall the whole thing and then install it from scratch. I have no idea if there is a better way but that's what worked for me.

This information is very

Clubmz e-spy's 的頭像

This information is very interesting, I really enjoyed, I would like get more information about this, because is very beautiful, thanks for sharing.

re

visit Madrid's 的頭像

It was a great article. Thanks for your work, I bookmarked and will share with friends. holiday booking Austria

appropriate information

Youporn's 的頭像

I found this blog good as I found appropriate information on drupal.

LOGIN/LOGOUT MODULE

Maranda F. Moses's 的頭像

I am still doing some mistake while creating the login logout module in drupal. Let me try this tutorial to see how it works for me for my Lag switch 360 website


 

LOGIN/LOGOUT MODULE

Lag switch 360's 的頭像

I am still doing some mistake while creating the login logout module in drupal. Let me try this tutorial to see how it works for me for my website

Creating the login logout module

Alexiana's 的頭像

I am finding some problems in  creating the login logout module in drupal. I have tried this tutorial which helped me a lot for  for my sleeper sofa website

Good

Friend's 的頭像

You have posted excellent tutorial about Dynamic login/logout account menu module.I have learned lot of thing s and here and the best part is the way you presented the tips is very impressive and appreciable.constipation after surgery

nice

Breast Enlargement Cream's 的頭像

nice

Excellent posts to read keep

Cell Phone Spy Software's 的頭像

Excellent posts to read keep it up and keep going on this way. And keep sharing these types of things Thanks and I read your article and I keep reading your content.. It’s very interesting..!

Reply

constipation after surgery's 的頭像

You have posted excellent tutorial about Dynamic login/logout account menu module.I have learned lot of thing s and here and the best part is the way you presented the tips is very impressive and appreciable.

Reply

Intestinal Blockage's 的頭像

The work you did on this module helped me out a lot. My question is if you could kindly point me to where i need to look for changing the default url for the login link?

Nice

Headboards's 的頭像

Normal 0 false false false MicrosoftInternetExplorer4 Normal 0 false false false MicrosoftInternetExplorer4 /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;} /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;}

In science there is a dictum: don't add an experiment to an experiment. Don't make things unnecessarily complicated. In writing fiction, the more fantastic the tale, the plainer the prose should be. Don't ask your reader to admire your words when you want them to believe your story.

nice

Foil Insulation's 的頭像

I found the perfect place for my needs. Contains wonderful and useful messages. I have read most of them and has a lot of them. To me, he's doing the great work. 

   This topic hasn’t been

Auto shipping's 的頭像

 

 This topic hasn’t been much discussed on the internet, so it’s good to see people sharing these types of rare information through their blogs which provide knowledge to the readers in many ways.

 


Can't remove menu items from primary links

Ahmed's 的頭像

Hi, I'm trying this module and added the loing/logout itmes to the primary links. Now when I go to /admin/build/menu-customize/primary-links to remove them, the option to "delete" is missing. I can only disable. Please let me know what I should do. (Drupal 6)

Thanks in advance. 

I really loved reading your

double cut saw's 的頭像

I really loved reading your blog. It was very well authored and easy to understand. Unlike additional blogs I have read which are really not that good .

 

  This was a really neat

brother mfc 7420's 的頭像

 

This was a really neat dynamic login/logout account menu module and I’ve seen quite a few believe me!! I was really impressed with the way the drupal module has been demonstrated here and I am sure that by following the step by step directions, users will be able to understand how to work and use it with the help of the screen shots!! I hope we get more of such innovative and helpful tips so that we can make good use4 of it!!

a marvelous source of info

Phone Lookup's 的頭像

I visited this page first time and found it Very Good Job of acknowledgment and a marvelous source of info.........Thanks Admin!

I have learned lot of thing s

Dried Fruits's 的頭像

I have learned lot of thing s and here and the best part is the way you presented the tips is very impressive and appreciable.

RE

Tony's 的頭像

I even told my friends to take a look at your blog and in fact your blog is already bookmarked on my computer. Hope to see more of this. Great..

 

Tony

dvds

star wars the clone wars season 2 dvd boxset's 的頭像

Scríobhann tú leis an bhfeidhm agus is é an t-ábhar i do aiste maith; na hairteagail bata díreach leis an ábhar.

Loved it

Monster Galaxy's 的頭像

I really loved reading your blog. It was very well authored and easy to understand. Unlike additional blogs I have read which are really not that good .

I had a tough time

Find name by phone number's 的頭像

I had a tough time implementing this Login module but your post has made my path easy to an extent.I will follow some of your ideas.

Post is nicely written and

Plagiarism Chekcer's 的頭像

Post is nicely written and well explained. i appericiate your writing style and things you mentioned in this post

hollister uk

hollister uk's 的頭像

 

thank you very much for taking the time to share with those who are starting on the subject. Thanks for providing us such a useful information.

good share

scratch card's 的頭像

This was actually a very good tutorial . I had some problems logging in but this article helped me out in a big way. Thanks for sharing this with the community.

I am still doing some mistake

allopurinol dosage's 的頭像

I am still doing some mistake while creating the login logout module in drupal. Let me try this tutorial to see how it works for me for my website

Plagiarism checker

Plagiarism checker's 的頭像

 

I have been reading your posts regularly. I need to say that you are doing a fantastic job. Please keep up the great work.

Plagiarism checker

leather trousers

leather trousers's 的頭像

 

Article was a tribute to the one of the worlds finest bands. Even though it has been over 25years since the band performed under one roof, its very heart touching to know that a huge audience welcomed them with warm hearts.leather trousers

Very informative post. I

actos side effects's 的頭像

Very informative post. I would really appreciate the efforts you all have made here to make this page more informative. Thanks again…That is some inspirational stuff. Never knew that opinions could be this varied.

I am happy to find this post

citalopram hbr's 的頭像

I am happy to find this post very useful for me, as it contains lot of information. I always prefer to read the quality content and this thing I found in you post.

Interesting

webhost's 的頭像

Very glad to read your blog.Thank you for sharing this article.It is great! I will keep your article in my idea. Very happy reading.

Interesting

webhost's 的頭像

Very glad to read your blog.Thank you for sharing this article.It is great! I will keep your article in my idea. Very happy reading.

Interesting

webhost's 的頭像

Very glad to read your blog.Thank you for sharing this article.It is great! I will keep your article in my idea. Very happy reading.

a really neat dynamic

Tipis Harga Murah's 的頭像

a really neat dynamic login/logout account menu module and I’ve seen quite a few believe me!! I was really impressed with the way the drupal module has been demonstrated here and I am sure that by following the step by step directions

Thanks

sending flowers to greece's 的頭像

I am so happy to read this. This is the kind of manual that needs to be given and not the random misinformation that's at the other blogs. Thanks for sharing this

This feature is really good

nancy's 的頭像

This feature is really good ad also very user friendly as well. Thanks for sharing this step by step tutorial for explaining the steps.
Nancy from Lingerie wholesale distributor | car credit.

This feature is really good

Collection's 的頭像

This feature is really good ad also very user friendly as well. Thanks for sharing this step by step tutorial for explaining the steps. I will definitely use this for my site functionality as well.

Blog Commenting Service

ashbcl32's 的頭像

Thats all I are able to say. You most absolutely have built this blog website into something special. You clearly know what you are working on, youve insured so many corners. thanks.Blog Commenting Service

Good Post

Rati's 的頭像

The post is written in very a good manner and it entails many useful information for me. I am happy to find your distinguished way of writing the post. Now you make it easy for me to understand and implement the concept. Thank you for the post.Tour PackagesSpa Deals

A great post for this certain

Abbie's 的頭像

A great post for this certain topic.
The failure of info always takes a person to some sense of disappointment.
However for the simplicity of individuals, Specialists launched an alternative for problems.
In case there is a loss of data situation, an end user should have a knowledge of appropriate info recovery tool.
pc file recovery

Directory Submission service

ashbcl32's 的頭像

It is important to choose right one since the first time.Nice post to hang on. I really loved it the way of the stuff provided in this article.

how to get rid of a pimple overnight

how to get rid of a pimple overnight's 的頭像

It seems to be partly hereditary, but why some folks are suffering from it and others are untouched isn’t exactly known.

Lexia 3

Lexia 3's 的頭像

We are a online platform for Car diagnostic Tools,obdii scanner and Auto key/car repair tools 100Z Tacho V2008 Programming

It gives me inspiration.I

American Outfitters Kinderkleding's 的頭像

It gives me inspiration.I think I will also inspired by you and think about more new ideas.

Excellent post the

special education Teacher salary's 的頭像

Excellent post the information available here is great. I really like your post and i really appreciate that. I wanted to thank you for this excellent read.I’ll definitely be subscribing to your site.

You must be aware that you

special education Teacher salary's 的頭像

You must be aware that you really have an awesome site. Does exactly what it sets out to do. Stimulating me to read much more of your post. Hope to see a lot more excellent posts from you shortly.

發表新回應

這個欄位的內容會保密,不會公開顯示。

Navigation

使用者登入