Eduardo G. Posted May 28, 2011 Share Posted May 28, 2011 Hi all. This is what I'm trying to do. First, want to make a hook that runs on all pages and gathers a specific information from the logged in user Second, I want to define a smarty variable depending on the information gathered. And last I want to insert just a variable name in my template o show that information. Example: a "happy bday addon" 1) From a hook/module, check if today user birth date. It it's true, then define smarty variable $bday = "happy birthday, dear user". Else $bday = "Not your birthday" 2) Just add {$bday} in footer.tpl and get my message shown. Questions: - how do I hook every page? maybe using "ClientAreaPage" hook point? - how can I define a smarty template from my hook so I can use it later in my templates? Thanks all. 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.