More Button
More Button
Hi there, question, can we hide more button for specific groups?
Re: More Button
yes , you can use footer-extras.php to detect user's group
then write a Jquery code to hide buttons for this group
then write a Jquery code to hide buttons for this group
Re: More Button
Thank you Tammam, can you help me with the code?
Re: More Button
with my pleasure
and here's the code that is working for me
i hope it would hep you ,
Regards ,
Reham
and here's the code that is working for me
Code: Select all
//get user group
$memberInfo = getMemberInfo();
$user_group=$memberInfo['group'];
echo $user_group;
?>
<script>
$j(function(){
var user_group=<?php echo json_encode($user_group) ?>;
alert(user_group);
if(user_group !='admins'){
$j('#selected_records_more').remove();
}
})
</script>
Regards ,
Reham
Re: More Button
you will need to remove the alert button , i wrote it for testing and replace the admins by any group you want to prevent
Re: More Button
Thank you Tammam you are great
Re: More Button
Thank you gatenet for your kind words