Scoop -- the swiss army chainsaw of content management
Front Page · Everything · News · Code · Help! · Wishlist · Project · Scoop Sites · Dev Notes · Latest CVS changes · Development Activities
Create an Account when already logged in? Developer Diary
By Mystic , Section Dev Notes []
Posted on Sat Dec 09, 2000 at 12:20:58 AM PST
Hmm... this seems strange.. Even when I am logged into scoop, the "Menu" shows "create account". Now, why would I want to creat an account when I am already logged in as a user? I suggest that "create account" be hidden if the user is logged in.

< comment form in URL | "Full Story"?? >

Menu
· create account
· faq
· search
· report bugs
· Scoop Administrators Guide
· Scoop Box Exchange

Login
Make a new account
Username:
Password:

Related Links
· Scoop
· Mystic's Diary

Story Views
  0 Scoop users have viewed this story.

Display: Sort:
Create an Account when already logged in? | 1 comment (1 topical, 0 hidden)
The hack : (none / 0) (#1)
by Mystic on Mon Dec 11, 2000 at 04:13:57 AM PST

Edit the main_menu setting to something liek this:

my $submit = ''; if ( $S->have_perm('story_post') ) { $submit = qq{+ <A HREF="|rootdir|/?op=submitstory">submit story<BR>}; } if (!($S->{UID} > 0)) { $submit =qq{$submit + <A HREF="|rootdir|/?op=newuser">create account<BR>}; } my $content = qq{ $submit |smallfont| + <A HREF="|rootdir|/?op=special&page=faq">faq<BR> + <A HREF="|rootdir|/?op=special&page=mission">Mission<BR> + <A HREF="|rootdir|/?op=search">search |smallfont_end|}; return $content;




Create an Account when already logged in? | 1 comment (1 topical, 0 hidden)
Display: Sort:

Hosted by ScoopHost.com Powered by Scoop
All trademarks and copyrights on this page are owned by their respective companies. Comments are owned by the Poster. The Rest © 1999 The Management

create account | faq | search