How to add statcounter tracking code?
Where are the files I can edit to add the statcounter tracking code?
Best Answers
-
peregrine MVP
@gstar moving from pm back to forum....
this is the error you are now getting..$compile_dir \'/home/xxx/domains/example.com.com/public_html/cache/Smarty/compile\'
make sure and verify the directory is writeable cache/Smarty/compile
also the odd thing is the "\" at the end of compile and before home, not sure if that is standard.
also, seems kind of odd to have your domain name in the middle...
/home/xxx/domains/example.com/public_html/cache/Smarty/compilenot sure why your domain name is in the middle
on my local server if I set compile permissions incorrectly
/var/www/vanilla/cache/Smarty/compile
without my domain name sandwiched in between.
but verify that
cache/Smarty/compile (is writeable)I'm also not sure if you also have a problem with "\", or your .htaccess
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
5 -
whu606 MVP
Follow the instructions here to create a custom theme:
http://vanillaforums.org/docs/themequickstart
For the custom.css file, it only needs to contain the css rule change(s) you want to make in your theme, so it could be as simple as one (or no) css declaration.
Whatever you don't change is called from the default css file.
Make any changes to the html via your custom default.master file.
5
Answers
Themes > Theme name > Views > default.master.tpl
Open with text editor and add code in footer.
There was an error rendering this rich post.
Thanks @aery. What about if I use the default theme?
(Right now I am unable to use anything else - I get bonk error)
first off to solve your bonk error. Which is always good to know.
http://vanillaforums.org/discussion/comment/167383/#Comment_167383
http://vanillaforums.org/discussion/comment/168676/#Comment_168676
also see how to create your own theme if that is what you want.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
I CHMOD 777 this folder: /cache/Smarty/compile
It shows now more BONK error, but if I change to test different themes, something is going wrong... Is there a tmp folder I need to empty?
if you say BONK error it gives you a bonk page. Is that what you see?
if you get a detailed error report post it.
if you don't do either don't expect a solution because you are not helping us help you.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
There is no detailed error. Or maybe I'm doing something wrong. It says:
Will PM you my site URL.
http://vanillaforums.org/docs/errors
@gstar moving from pm back to forum....
this is the error you are now getting..
$compile_dir \'/home/xxx/domains/example.com.com/public_html/cache/Smarty/compile\'
make sure and verify the directory is writeable cache/Smarty/compile
also the odd thing is the "\" at the end of compile and before home, not sure if that is standard.
also, seems kind of odd to have your domain name in the middle...
/home/xxx/domains/example.com/public_html/cache/Smarty/compile
not sure why your domain name is in the middle
on my local server if I set compile permissions incorrectly
/var/www/vanilla/cache/Smarty/compile
without my domain name sandwiched in between.
but verify that
cache/Smarty/compile (is writeable)
I'm also not sure if you also have a problem with "\", or your .htaccess
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
@peregrine thank you!!!
that worked like a charm....
So all it took was to set 777 CHMOD on the compile folder.
This is located in: /cache/Smarty/compile/'
For the record: The statcounter tracking can be added here:
/applications/dashboard/views/default.master.php
Add at the bottom before
@gstar
For the record, you should not make changes to the Vanilla core.
The change you suggest should be made in your custom theme's default.master file.
if you don't have a custom theme you should create one if you are planning on making changes to Vanilla.
@whu606 thank you for your reply. can you explain what you mean?
i'm using the default theme... should i make an extra copy of it and rename it?
@gstar
Follow the instructions here to create a custom theme:
http://vanillaforums.org/docs/themequickstart
For the custom.css file, it only needs to contain the css rule change(s) you want to make in your theme, so it could be as simple as one (or no) css declaration.
Whatever you don't change is called from the default css file.
Make any changes to the html via your custom default.master file.
@whu606 got it!
it appears i made the changes in default.master.php