How do I make a custom PHP function start every time a page loads?
How do I make a custom PHP function start every time a page loads? |
Well... Let's see here, what are some of the files that get called for every single page, regardless of what the page is? Hmmmm.... Popular files are:
inc/header.inc.php
inc/design.inc.php
templates/tmpl_{tmpl}/_header.html
templates/tmpl_{tmpl}/_footer.html
inc/classes/BxBasePageView.php
You could put it in any of those and it would then be in the code. Next up would be to just write the function and insert it where you chose/found to be the best place for it. |
Of course, but is there a proper way to do it like say with Wordpress? Also, where is the fuction for when a user posts a new post on the orca forums? Version 6.1 |
Would you like me to write the function for you? If so, then might be useful to know what the function is that you want. I have been kind enough to provide you with a more detailed answer in my first response than you were to provide details on what your trying to do in either of your responses.
As far as your next question goes:
Please post it in the Orca section of the forum and I'll be happy to answer it. I promise, that will happen within seconds of your posting... If I'm around that is... |