mreza69 Posted February 23, 2014 Share Posted February 23, 2014 hi I saw addons_html variable in clientareahome.tpl in all templates. it seems it is for use by addons to put their html codes in client area home page (like notifications). now I use it for my own addons by ClientAreaPage hook and it works, but when I use it for 2 addons only one of them will show. my sample code is: function polls_hook_ClientAreaPage($vars){ $html=array('addons_html'=>$vars['addons_html']); $html['addons_html'][]='blah blah'); return $html; } add_hook("ClientAreaPage",1,"polls_hook_ClientAreaPage"); it seems when my first addon overwrite the addons_html variable, the changes don't pass to another one hook file! now I wanna to know what is the standard way to put the addon html in addons_html variable? is there any hooks for this job? regards 0 Quote Link to comment Share on other sites More sharing options...
Miron Posted February 23, 2014 Share Posted February 23, 2014 Hi, Just use this code: function polls_hook_ClientAreaPage($vars){ $addonhtml = "<div class=\"alert alert-success\">"; $addonhtml .= "blah blah"; $addonhtml .= "</div>"; return $addonhtml; } 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.