Discuss
These forums are for “community” support and general discussion, also check out the FAQs, try this first and read the WPS admin guide.
| Bronze/Silver/Gold members | Not a Bronze/Silver/Gold member? | |
| Please submit a helpdesk ticket.You will receive a quicker and more efficient response, prioritised over the forum. Thank you. | Sorry, you can’t use the helpdesk. Please use these forums to log problems. You can purchase temporary helpdesk support, or Fancy upgrading? |
Hi,
I thought I would share something that I found really useful, using filters, it is possible to display images on the profiles of Admins/Editors/Contributors ETC, This is a really neat way of displaying authority on your website, This is how I did it,
Open up your "Functions.php"
Paste the following code;
function my_rank_badge( $html, $uid ) {
$user = get_userdata($uid);
$badge = '';
if ($user->user_level == 10) {
$badge = "<img src='Img Url goes here' style='margin: 0px 0px -72px 1px; float:right'>";
}
if ($user->user_level == 1) {
$badge = "<img src='Img URL Goes here' style='margin: 0px 0px -72px 1px; float:right'>";
}
if ($user->user_level == 7) {
$badge = "<img src='Img URL Goes here' style='margin: 0px 0px -72px 1px; float:right'>";
}
return $badge.$html;
}
add_filter( 'symposium_profile_header_filter', 'my_rank_badge', 10, 2);
----
broken down, the first (level 10) will display the image on all administrator profiles, the (level 1) will be contrinutors, and the (level 7) Will be editors,
The styles are suited to my WP theme, So feel free to play around with them as you like, (works best in full width pages)
hope this can help some of you!
- Mike
This topic is for information only, no answer will be selected.
You are not permitted to reply on this forum. Login...





Saving...