Gofast77 Posted December 2, 2014 Report Share Posted December 2, 2014 Hi, Today I would like make an little modification to the script : I would like enable PIREP validation only for the other pilots reports (so the validator can't validate his reports). Is it possible ? Kind regards, Gofast Quote Link to comment Share on other sites More sharing options...
Moderators servetas Posted December 2, 2014 Moderators Report Share Posted December 2, 2014 Open your admin/templates/pireps_list.tpl and find: foreach($pireps as $pirep) { after that, place this: if($pirep->pilotid == Auth::$userinfo->pilotid) { continue; } Please bare in mind that you will not able to see your own pireps too. George Quote Link to comment Share on other sites More sharing options...
Gofast77 Posted December 3, 2014 Author Report Share Posted December 3, 2014 And for the notification number on the dashboard ? Quote Link to comment Share on other sites More sharing options...
Moderators servetas Posted December 3, 2014 Moderators Report Share Posted December 3, 2014 Modifying the function which calculates this number might create problems to other parts of your website. A new function should be created for that. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.