Ajax Poll Script
php Infinite Scroll
Ajax Likes Script
Address Book Script
Form2DB
PayPal IPN + eProduct Delivery Script
Text Ad Script
Lead Follow-Up Database Script
AdFreely -Ad Board Script-
Fade-In Slideshow
Ajax Poll Admin
URL Shortening Script
Posted by Nasko
2017-03-22

Hello!

I followed the instruction how to disable the edit, delete button. After the staff tries to edit, they can't edit or delete (that's good), they dont get an error message they just get a blank page. Is it possible that they get a custom message like "NOT ALLOWED" through a .js or something?

Waiting for your answer!

Regards

Nasko
Posted by Tom
2017-03-23

Hi, it's better you remove the edit/add-new/delete buttons from
the template, web/staff/tpl.(table-name).search.inc.php
Or you can hide it from staff. To hide code in a template, enclose it with
<?php if ( $sys->IsAdmin() ) { and } ?> like
<?php if ( $sys->IsAdmin() ) {
//code goes here
} ?>