Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Vanilla With Your Mint?
Has anyone had success in getting Mint to track Vanilla stats?
I haven't been about to figure out how to penetrate the headers to place in the javascript for tracking.
I've already posted on the Mint forums, and the writer of Mint hasn't figured a way out either.
WIll all of this be solved with the next version of Vanilla as far as templating? I'll just wait until then if that is the case.
Any help would be appreciated!
0
This discussion has been closed.
Comments
<?php /* Extension Name: Mint Stats plugin Extension Url: http://bored.36-degrees.co.uk Description: Adds mint stats tracking to vanilla Version: 1.0 Author: Stuart frisby Author Url: http://www.36-degrees.co.uk */ if(in_array($Context->SelfUrl, array("index.php", "categories.php", "comments.php", "search.php", "post.php", "account.php", "settings.php"))){ $Head->AddScript("path/to/mint/mint.js.php"); } ?>
Does the job, simple enough.
If i get my forum working again I'll test it out
"path/to/mint/mint.js.php"
with...
"http://mysite.com/mint/?js"
Thanks for your time.
I get errors about the header already being submitted.
I can't seem to have all 3 together, the two and no Mint or Mint and not the two.
I made the change listed above as well
"http://mysite.com/mint/?js"
if(in_array($Context->SelfUrl, array("index.php", "categories.php", "comments.php", "search.php", "post.php", "account.php", "settings.php"))){ $mint_code = <<< ENDCODE <script type="text/javascript" src="http://www.cmehil.com/mint-scs/?js"></script> ENDCODE; $Head->AddString($mint_code,false);
By changing the code like that I seem to have eliminated all of the strange errors I was getting expect in the "singout" I get the headers have already been submitted error.
Which I assume is what AddScript does for you?
<script type=\"text/javascrip\t" src=\"http://www.cmehil.com/mint-scs/?js\"></script>
Before the TITLE in the Lussumo.Functions.php and that solved all the problems. It must be that this line HAS to before the title and the AddScript or the above way just wasn't cutting it??