My client has developed a WordPress site with links to information
relevant to all of their sales people. Good for them so far. Here's
where I have to become their genius:
They want a place for sales people to log in to gain access to their own
personal "dashboard" of sorts (not like the WP dashboard). They would
have read only rights to the entire site, even their own dashboard, and
no rights at all to anyone else's dashboard. No page or post creation,
and the contents of their own dashboard would be built dynamically based
on what files are there for them to view/download (sales reports,
commission statements, etc.) and links to sales presentations only for
clients in their sales region. They could also have multiple sales regions.
I'm thinking that a modified shopping cart plugin might work for this:
No "shopping" until they log in
Their dashboard is their personal shopping cart
No shopping, no removal of items from their cart, and obviously, no
checkout/payment
The items in the cart are their reports, and links to their sales
presentations.
Items would be dynamically added to their cart, preferably in real time,
but a separate chron job would work, too.
Passwords would have to pass certain strictness codes (8 to 15 chars,
number letter combinations)
I'm just beginning to get back into WordPress, and haven't yet learned
enough to know if any built-in features might do the job. Is my
shopping cart idea more complex than necessary for my needs? Are any of
you aware of any other plugin that would be simpler?
I would appreciate any suggestions.
--
Bill Woodland, Austin, Tx squ...@austin.rr.com
--
You received this message because you are subscribed to the Google Groups "WordPress Austin" group.
To post to this group, send email to wordpress-austin@googlegroups.com
To unsubscribe from this group, send email to wordpress-austin-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/wordpress-austin?hl=en
Our meeting information is available at http://www.meetup.com/austinwordpress/
--
You received this message because you are subscribed to the Google Groups "WordPress Austin" group.
To post to this group, send email to wordpress-austin@googlegroups.com
To unsubscribe from this group, send email to wordpress-austin-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/wordpress-austin?hl=en
Our meeting information is available at http://www.meetup.com/austinwordpress/
To post to this group, send email to wordpres...@googlegroups.com
To unsubscribe from this group, send email to wordpress-aust...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/wordpress-austin?hl=en
Our meeting information is available at http://www.meetup.com/austinwordpress/
Thanks Dmitri.
Nice function!
Bobbie
--
function my_login_redirect($redirect_to, $request){
global $current_user;
get_currentuserinfo();
//is there a user to check?
if(is_array($current_user->roles))
{
//check for admins
if(in_array("administrator", $current_user->roles))
return home_url("/wp-admin/");
else
return home_url("author/" .$current_user->user_login.);
}
}
add_filter("login_redirect", "my_login_redirect", 10, 3);It redirects to /author/ but doesn't include the user login after that. Do you see what I'm missing?Thanks to Bobbie and Dmitri. I'll get working on this very soon, as
they want it done by....well, very soon.
Dmitri: No, they shouldn't see each other's pages, but each one having
their own actual page is better for the sake of privacy, and also for
the chron job to update each page when necessary.
which brings me to the Peter's Login Redirect plugin that Bobbie
mentioned. Since it can be set to redirect for specific users, then I
think this plugin will work well for me.
Between both of your suggestions, I believe I can get very close to what
my client needs.
Happy Friday the 13th :)
else
return home_url("author/" .$current_user->user_login.);Current user login is: MyOtherGuide
Home Url admin: http://localhost/wp_guides/wp-admin/
Home Url author: http://localhost/wp_guides/author/MyOtherGuide
Current user login is:
Home Url admin: http://localhost/wp_guides/wp-admin/
Home Url author: http://localhost/wp_guides/author/