"sanji";p="7220" wrote:First of all - and even if already everyone said so - I'd like to say that this mod is really great. It makes posting of more complex messages much easier. A great addition to IM.
Even more fantastic would be the possibility to control which buttons are displayed from the ACP. But this might be a little difficult to implement.
Therefore, I wonder if there was a simple way to remove some of the buttons for normal users, but leave them for example for moderators or administrators. The function does not need to be blocked for normal users, but if the icone itself would not be displayed, that would be enough.
Is that possible (I mean, not too difficult)?
Thanks,
sanji
use this mod and place the images you want to hide from normal users between the code in the tpl...
- Code: Select all
# #-----[ OPEN ]------------------------------------------ # includes/page_header.php # #-----[ FIND ]------------------------------------------ # $template->assign_block_vars('switch_user_logged_in', array()); # #-----[ AFTER, ADD ]------------------------------------------ # // Admin Only View Mod if ( $userdata['user_level'] == ADMIN ) { $template->assign_block_vars('switch_admin_view_only', array()); } // Admin Only View Mod // Mod Only View Mod if ( $userdata['user_level'] == MOD ) { $template->assign_block_vars('switch_mod_view_only', array()); } // Mod Only View Mod // Mod Only View Admin & Mod if ( $userdata['user_level'] == ADMIN || $userdata['user_level'] == MOD ) { $template->assign_block_vars('switch_admin_and_mod_view_only', array()); } // Mod Only View Admin & Mod # #-----[ OPEN ]------------------------------------------ ### templates/subSilver/**file_you_want_to_place_swicth_in**.tpl # #-----[ FIND ]------------------------------------------ ## The code you want to remain hidden from everyone except Administrators # #-----[ BEFORE **CODE**, ADD ]------------------------------------------ # <BEGIN> # #-----[ AFTER **CODE**, ADD ]------------------------------------------ # <END> # #-----[ FIND ]------------------------------------------ ## The code you want to remain hidden from everyone except moderators # #-----[ BEFORE **CODE**, ADD ]------------------------------------------ # <BEGIN># #-----[ AFTER **CODE**, ADD ]------------------------------------------ # <END> # #-----[ FIND ]------------------------------------------ ## The code you want to remain hidden from everyone except administrators and moderators # #-----[ BEFORE **CODE**, ADD ]------------------------------------------ # <BEGIN># #-----[ AFTER **CODE**, ADD ]------------------------------------------ # <END> # #-----[ SAVE & CLOSE ALL FILES ]-------------------------- #