Problem adding and using global vars of my own
Hi,
I'm using vB 3.6.8 patch level 2.
I want to add variables for use in any and all templates. To do so, I've created a mytxtfile.txt file with the desired content (in HTML), and added the following lines at the end of global.php:
$mytxtfile = 'mytxtfile.txt';
$mycontent = file_get_contents($mytxtfile);
Then, I added $mycontent inside templates, by writing $mycontent in the template editor.
The problem is that this works with some templates, but not with others. For example, it worked with navbar and with a new template I made, but not with postbit.
1. Why?
2. Is there a better way to do this?
3. Where are custom templates (like the new one I made) stored?
Any help will be appreciated,
Thank you,
R.
|