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.

Google Analytics & Lussumo File Browser

edited March 2007 in Vanilla 1.0 Help
Had a little bit of a problem getting Google Analytics to work Lussumo Filebrowser. Starting from the line // Write out the page footer (line 1412 for me), this is what I had to change. Thought it might be of some merit to someone who might come to the domain shooting search queries.

// Write out the page footer echo("</div>\r\n" // End ListContainer ."<div class=\"Foot\"> <form name=\"frmPager\" action=\"".CurrentUrl()."\" method=\"get\">"); $p = new Parameters(); $p->DefineCollection($_GET); $p->Remove("fpp"); echo '<script src="" type="text/javascript"> </script> <script type="text/javascript"> _uacct = "UA-xxxxxxx-x"; urchinTracker(); </script>'; echo($p->GetHiddenInputs() ."<div class=\"Pager\"> <div class=\"PagerLabel\">Files/Page: </div> <div class=\"PagerValue\"><input type=\"text\" name=\"fpp\" class=\"PagerInput\" value=\"".$Config->FilesPerPage."\" onchange=\"document.frmPager.submit();\" /></div> </div> </form> <div class=\"ApplicationInformation\"><a href=\"\">Lussumo</a> <a href=\"\">Filebrowser</a> ".$Config->Version." &copy; ".$Config->Date."</div> <div class=\"DeveloperInformation\">Developed by ".$Config->Developer."</div> </div> </div> </body> </html>"); ?>

Something didn't work with putting it right before the closing /body tag. Think it has something to do with the quotation mark being after the closing /html tag. Not sure, not into PHP like many! Glad to have it working and thought someone would find merit.

So as you can see, all I really added was:

echo '<script src="" type="text/javascript"> </script> <script type="text/javascript"> _uacct = "UA-xxxxxxx-x"; urchinTracker(); </script>';

after the $p->Remove("fpp"); and before echo($p->GetHiddenInputs().

N'Joy, thanks for all the help I've gotten over the months!
This discussion has been closed.