5
Did you get this working or not?
I use PPHLogger on several sites and wanted it on my XOOPS one as well. What I did was create a smarty tage for the Logger code in header.php like so;
// PPHLogger insert code for template
$xoopsTpl->assign('xoops_pphlogger','');
All of that code works best on one line.
Then in theme.html I just added;
head>
<body background="<{$xoops_imageurl}>white16.jpg">
<{$xoops_pphlogger}>
just after the body tag as you can see. This is working for me. I found that using an absolute path for the JS file to be useful because you don't know from what directory your header and theme files are going to be called.
One gotcha to watch out for. Did you upload the pphlogger.js file to the XOOPS root directory? It won't work without the JS file being in place.
Is there a way to get the PHP version (PHP+JS) rathen than just the JS. I don't know how we can insert PHP into the final page output. I run this site on the same server as the PPHLogger script so I would prefer to use PHP+JS so that I can log search engine spiders. On one of my other sites I do this which is easy because all of the public pages are .php files.