malin Posted August 27, 2018 Share Posted August 27, 2018 (edited) I added the bellow hook method in my project, why after I edited the Announcement, there do not alert the info? add_hook('AnnouncementEdit', 1, function($vars) { // Perform hook code here... echo "<script>alert('AnnouncementEdit');</script>"; }); Edited August 27, 2018 by WHMCS ChrisD Added code into a code box 0 Quote Link to comment Share on other sites More sharing options...
malin Posted August 27, 2018 Author Share Posted August 27, 2018 @WHMCS ChrisD Can you take a look at this? whe the ` echo "<script>alert('AnnouncementEdit');</script>"; ` do not work? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted August 27, 2018 Share Posted August 27, 2018 it works an a hook - with the hook active, I get the popup after I have saved the announcement. 0 Quote Link to comment Share on other sites More sharing options...
malin Posted August 28, 2018 Author Share Posted August 28, 2018 @WHMCS ChrisD Why I do not work? whether should open any switch? 0 Quote Link to comment Share on other sites More sharing options...
malin Posted September 5, 2018 Author Share Posted September 5, 2018 On 8/27/2018 at 8:44 PM, brian! said: it works an a hook - with the hook active, I get the popup after I have saved the announcement. Hi, friend. do you mean you test my code success? but mine there is no any result. can you contact me? 0 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.