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.
how to add a bit of java script to every page? (reinvigorate)
Trying to set up reinvigorate on my forum to track stats, and would like to add a little bit of javascript to every page. is there an easy way to do this? Sorry if this is a totally basic question, while i've managed to maintain a pretty successful forum, im still not particularly tech savvy
has anyone else tried using reinvigorate with vanilla? how did you like it? how did it work? I just got into the beta.
has anyone else tried using reinvigorate with vanilla? how did you like it? how did it work? I just got into the beta.
0
This discussion has been closed.
Comments
<?php /* Extension Name: Reinvigorate Extension Url: x Description: Adds the Reinvigorate stats JS to the specified pages. Version: 1.0 Author: x Author Url: http://x/ */ $Configuration["REINVIGORATE_PATH"] = 'extensions/Reinvigorate/'; // Specify which pages to add JavaScript to Head Control and do it. if (in_array($Context->SelfUrl, array( 'account.php', 'categories.php', 'comments.php', 'extension.php', 'index.php', 'people.php', 'post.php', 'search.php', 'settings.php', 'termsofservice.php'))) { $Head->AddScript($Context->Configuration['REINVIGORATE_PATH'].'reinvigorate.js'); } ?>
the sidepanel thing is working flawlessly, though.
Ofc if you do like above, it gets cached and benefits others
Edit: Of course, I always give credit where credit is due.