gbotica Posted November 5, 2015 Share Posted November 5, 2015 Regarding the creation of Alert and Panel elements for the Six theme, as described here: http://docs.whmcs.com/Customising_the_Six_Theme#Alerts Is there a way to create these elements with PHP via a hook (i.e. without needing to edit templates?) Something like: add_hook('ClientAreaPageAnnouncements', 1, function($vars) { // create an Alert or Panel for the Announcements page... ); } ); Presumably this would output to the top of the page? Thanks in advance. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted November 6, 2015 Share Posted November 6, 2015 http://docs.whmcs.com/Hooks:ClientAlert Use this hook to add your own custom alerts to the Client Area Notifications section. 0 Quote Link to comment Share on other sites More sharing options...
gbotica Posted November 8, 2015 Author Share Posted November 8, 2015 Thanks for your response. I'm not trying to set a Alert Notification, rather the Alert and Panel elements as per: http://docs.whmcs.com/Customising_the_Six_Theme#Alerts There are template tags for outputting the blue notification to the page body and also a panel like on the homepage, for example: {include file="$template/includes/panel.tpl" type="warning" headerTitle="Optional title goes here" bodyContent="Body content to display goes here" footerContent="Optional footer content goes here"} Is there a way to create these inside a page hook? Thanks for your help. 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted November 8, 2015 Share Posted November 8, 2015 Thanks for your response. I'm not trying to set a Alert Notification, rather the Alert and Panel elements as per: http://docs.whmcs.com/Customising_the_Six_Theme#Alerts There are template tags for outputting the blue notification to the page body and also a panel like on the homepage, for example: {include file="$template/includes/panel.tpl" type="warning" headerTitle="Optional title goes here" bodyContent="Body content to display goes here" footerContent="Optional footer content goes here"} Is there a way to create these inside a page hook? Thanks for your help. No it's only available to be included inside template files. - - - Updated - - - at least not by default, but you can edit your template to listen to ActionHooks and parse those messages! 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.