« Protect photos with a transparent gifcustom display for specific users »

custom display for specific groups

Leave a comment »

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!


Feedback awaiting moderation

This post has 1 feedback awaiting moderation...

Leave a comment


Your email address will not be revealed on this site.

Your URL will be displayed.
PoorExcellent
:!: :?: :idea: :) :D :p B) ;) :> :roll: :oops: :| :-/ :( :'( |-| :>> :yes: ;D :P :)) 88| :. :no: XX( :lalala: :crazy: >:XX
(Line breaks become <br />)
(Name, email & website)
(Allow users to contact you through a message form (your email will not be revealed.)
This is a captcha-picture. It is used to prevent mass-access by robots.
Please enter the characters from the image above. (case insensitive)

User tools

Who's Online?

  • Guest Users: 5

XML Feeds