I've been trying to customize my Wordpress Dashboard based on the user roles. For ADMIN, he has all the menus showing up in his dashboard menu:
Now I also have a user for whom I want only two menu items to show up, ie. Users and Upload Document, something like:
I tried Adminimize and Admin Menu Editor, but both doesn't do the intended task. Can anyone please suggest a way/Plugin to achieve this?
Go on user profile and give permission which you want to do it.
User >> all user >> select user >> and find list of role(this role has some permission.).
You can use the following plugin to have control on your admin menu and you can customized it based on your user roles
https://wordpress.org/plugins/client-dash/
Its really easy to use. Just Install it and Go to Settings – >Client Dash. The second tab will be Menus. Go there. Where it says “Select a menu to edit”, click in the dropdown and select the role you would like to customize the admin menu for. Then click on the Select button.
Ensure that “Import role’s existing menu items?” is checked and hit the Create Menu button. This will show a progress bar briefly as the menu that the selected role is currently seeing is imported. This way you don’t have to start from scratch but can easily modify what users with this role are already experiencing.
You can even add and delete menu items.
Hope you will find it helpful.
Related
I was wondering, is it possible to give a registered user to create his own menu based on his chosen categories for the website on WordPress? Let's say he chooses which menu items he wants to see & only sees those menu's when logged in.
This is not a built-in feature, but yes, this would be possible on a custom WordPress site (i.e. WordPress.org, not WordPress.com), and there are a lot of different ways you could structure it.
It would not be trivial to implement, however.
My initial approach would be to have an actual WordPress menu hold all possible items, and then store user preferences as to which of the items are shown or hidden. On their user profile edit page, you could output the menu items as a checkbox list, and then store their selection as a user option. On the rest of the site, when you output the menu, you'd first pull that user option, then output the menu items manually one at a time if they have the option for that item checked.
There are of course other ways, but they would be similarly complex -- well beyond copying and pasting a code snippet, or me typing up a solution for you here.
So I have few articles in my menu which are for registered users only. I want them to be visible for everyone but if the user is not logged-in once he clicks on the menu I want him get redirected to the login page..
I saw this tutorial: Auto redirect guests to login but it seems outdated, in joomla 3.3 I can't find any "alias" menu item type.
Is there any alternative for that?
Iam using Joomla 3.3.1 with Community Builder.
-Thank you.
There are two ways you could do this really. One is through code and the other is through the administrators panel. I'm assuming based on the question you are interested in the back end solution.
This involves creating two unique menu items with the same name (alias' would need to be different). One which is only visible to logged in users, which points to the component view desired. The second menu is only visible to guests, and will point to the user log in component view with a redirect url set to component view you wish them to be redirected to.
I attached a link below to an article explaining how to only show menu items to guests and have them hide when users are logged in.
http://docs.joomla.org/How_do_you_hide_something_from_logged_in_users%3F
After editing short description from magento admin panel and clicking on save, it shows message that it was saved successfully, but the short description was same before editing. I hope this issue is because of store view.
Has anyone else experienced this, and, what am I doing wrong?
If you use multiple store view...then on a drop would be came on left of each product view admin panel and here you should change store view according to your respective.after that you would change data of product.
Is effect visible in backend.
Are you sure you are viewing same store view for edit effect where you edited.In left sode you have an option to select store.
If effect visiblein backend and not in front end then you need to clear cache.Also if you are looking intp some listing page you need to do reindexing.
I want to load some extra author options to the profile pages of a Wordpress site, however, even though these options apply to every user, they should only be able to be modified by an admin user, therefore, is there a way to hide the options if the user is not an admin? but show them when editing other profiles as an admin user?
Thanks
This can be performed but not out of the box.
Roles and Capabilities
It is available using certain plugins
Lime PLugin
In Joomla prior to 1.6 i could set a menu-item to public, and its contents: an article for example to registered.
This lead to a situation where people could see the link to an article in the menu when not logged in, but got a login component whenever they clicked it. And after that they saw the article.
In 1.7 these same actions lead to a situation where when I click the link the component screen just stays empty.
How do I get registered articles to show a login screen when the front end user is not logged in with sufficient rights? It was soo easy before and I can't seem to get it to work now.
Im gonna answer my own question, because Im sure people will need this in the future, and my solution only involves a few rules of extra code and then you can set every article etc... to Registered and you'll see a login field when a user is not logged in.
In your templates index.php place this near the top, it gets your article's access level.
$article =& JTable::getInstance("content");
$article->load(JRequest::getVar('id'));
$cAccLevel = $article->get("access");
Then add a module position above your component, and only show it when your needed access level is > 1
<?php if($cAccLevel > 1): ?>
<jdoc:include type="modules" name="LOGIN_MODULE_POSITION" />
<?php endif; ?>
Then add a login module in your module manager to LOGIN_MODULE_POSITION.
Voila... no routing needed etc... everything works out of the box, I chose to style away the logout box and action field like this:
.logout-button,
.actions{
display:none;
}
Good luck!
Create a new menu from menu manager, say it is named "hidden
menu".
Add any menu items that will be accessible only to registered
users.
Set the required access levels of these menu items ("Special" in this example, but it could also be "Registered"). Do NOT create a
module for the "hidden menu". It will not be displayed on any page,
so it doesn't need a module.
Create your "real" menu (for example, "main menu") and the menu item that will display for all users (for example "Submit an
Article"). The menu item will have a menu item type of "Alias". It's
"Menu Item" parameter will be the "Submit an Article" menu item on
the "hidden menu". The Access Level for this menu item will be
"Public", since we want everyone to be able to see and use it.
Create a module of type "mod_mainmenu" for this menu, just like you
do for any menu.
Create a login module and set the access level to "Public". Make sure the module is displayed only on the "Public" menu item and
not the registred item, and select a visible position.
Now, when a guest (non-logged-in user) accesses the "Submit an
Article" menu choice, it redirects them to blank page with the "Only
for registred visitors" message. . If they log in successfully, they
are taken to the desired page (in this case, "Submit an Article").
If there were already logged in, they go there directly.
If what you want is just to show a content if the visitor is a registered user, you can use this code:
$user =& JFactory::getUser();
<?php
if( !$user->guest ){ ?>
[[what ever you want to do ]]
<?php endif; ?>
Hope that helps!!
Go menu CONTENT, create or edit a section to the items you want to protect.
You'll see an option: Access Level
There is 3 options:
Public, Registered and Special
Set it to:
Registered
Then you'll need to change your articles for this section and that's all.
First of all you have to update your joomla installation to 2.5 (it's the latest version of joomla), 1.7 is no more supported by Joomla community.
There are several ways to set your viewing rights. K2 is a useful CCK component to do the job, also a useful technique that I use to follow is to "link" your article's categories in a menu and set specific permissions to the menu items