| « Protect photos with a transparent gif | custom display for specific users » |
This hack allows you to show custom information for a specific group. Thanks to ¥åßßå again. This code will detect which group the user is in and display whatever you have in the echo lines for them to see.
Simply enter the group ID # for each case and then enter in the information you want them to see in the echo line. You can enter this code into any of your skin files where you want the information to display.
Code:
<?php | |
if( empty( $current_User ) ) | |
{ // not logged in | |
} | |
else | |
{ // logged in | |
switch( $current_User->group_ID ) | |
{ | |
case 1 : | |
echo 'group 1 can see this'; | |
break; | |
case 2 : | |
echo 'group 2 can see this'; | |
break; | |
case 3 : | |
echo 'group 3 can see this'; | |
break; | |
default : | |
} | |
} | |
?> |
Your can also do this for specific users. b2evo - custom display for specific users
What else can you do with this? How about put a style sheet link and change up your skins look for selected groups! Run a script for one group! Enter privileged information for the group! The possibilities are endless!
This post has 1 feedback awaiting moderation...