danixland-user-panel is a plugin that adds a new widget to be used on the Sidebar (or wherever you like).
This widget is an enhanced version of the standard meta widget, it shows the current user’s Gravatar (can be disabled
in the control panel), shows a link to your site’s Dashboard, to the current user’s options and detects if a user is
logged in or not.
If a user is not logged in, the widget checks if user registration is enabled and shows different links based on how
the admin set up registration on the site.
If registration is enabled, the widget shows a link to the registration page plus the usual “login” and “forgotten password”
where if registration is disabled, it shows only the standard “login” link.
This plugin allows the admin to display a set of custom links which can be shown based on usernames, user ids or even user roles and capabilities.
Starting with version 1.2 this plugin uses some code from the sidebar-login by Mike Jolley, so a big thank you goes to him for releasing this nice piece of software.
List is actually empty, but I’m open to suggestions.
Azerbaijani translation (for previous version, not working anymore) by: deqaxwer
Italian translation by me 🙂
Installing danixland-user-panel is straightforward and requires just a few seconds:
If you use the “Add New Plugin” pane from your dashboard just install it and activate it, then proceed to the last step and configure it.
Otherwise follow these steps:
- Download the latest version of the plugin.
- If using the “Install Plugins->Upload” section on the WordPress admin area just upload the zip file, otherwise unpack the zip file and upload
the “danixland-user-panel” directory inside the “wp-content/plugins” directory of your WordPress installation using your favourite ftp client.
- Activate the plugin through the ‘Plugins’ menu in WordPress.
- Add the widget to your sidebar from Appearance->Widgets.
- Configure the widget options through the Setting Panel which can be accessed from the sidebar clicking on Settings->User Panel Options.
What can I do to customize even more the appearance of the widget?
The code generated by the plugin is wrapped in an HTML element with class
dnx-user-panel, what kind of element is decided by your theme, if unsure ask his creator.
Contained in that element you’ll find an unordered list with id
dnxup_login_linksand a variable class based on what kind of user is surfing the page; these are the classes you can use:
- If the user is logged in to your site:
- If the user is not logged in to your site and you have registration enabled:
- Or if the user is not logged in to your site and you don’t want new users to register:
Also each custom list item has class
dnxup_custom_link, predefined list items have a specific id, and you can specify ids and classes for your custom links too!!
These are the predefined ids for every list item:
- If the user is logged in to your site:
Logged out users, no registration:
Logged out users, registration enabled:
Logged in users:
I’m stuck with your plugin and don’t seem to be able to customize it/make it work, can you help me?
I’d like this plugin to be translated in my language, can you do this for me?
Starting with version 1.2 the plugin ships with a .POT file that can be used to create a translation of the plugin in your language, so if you’re familiar with english you can help by providing a translation and it will be added to future versions of the plugin along with a link to your site on these pages 😉
To provide a translation simply edit the file “danixland-user-panel.pot” and fill every line with the traduction in your language, then save it as yourlanguagecode.po (E.G. it_IT.po for Italian), then contact me via the forums or my site and I’ll tell you how to send this file to me. I’ll add your translation ASAP.
If you have any other questions feel free to ask
There are no reviews for this plugin.
Contributors & Developers
“danixland-user-panel” is open source software. The following people have contributed to this plugin.Contributors
Interested in development?
- fixed i18n functionality. This plugin is now fully international and is now shipping with a working POT and an italian translation.
- wp_currentuserinfo() is deprecated as of latest WordPress 4.5-alpha, so I had to switch to wp_get_current_user() instead.
- Plugin now uses the __construct method which is recommended since WP 4.3
- Fixed errors that rendered the plugin unusable on WP 4.1 beta 1
- Added Azerbaijani translation
- Migration to the Settings API.
- Added options to set multiple custom links.
- i18n setup and plugin shipping now with standard .pot file to help translators.
- Added possibility to add a custom link
- Fixed “plugin link” that was pointing to a wrong url
- Added “password forgotten” link in no registration mode.
- This is the first version of the plugin.