Hi all,
I have not been working with php since Mambo was a novelty, so I’ve lost some bits and pieces in coding skill. In other words; I need you help. I am going to include slimstats in my template, but I can not figure out how to do it. I guess I need to call a snippet, but how do I do that? And how should the snippet be configured?
Thanks
Thanks!
But follwing the above instructions do not make any records in the slimstats database. Looking at the reports in modx I find the following error:
parse error, unexpected ’<’
Parse error: parse error, unexpected ’<’ in C:\Inetpub\peatcom\modx-0.9.5\modx-0.9.5\manager\includes\document.parser.class.inc.php(724) : eval()’d code on line 1
any ideas, anyone?
I use the following for the plugin code - there are no php tags and it works in 0.9.5:
@include_once( $_SERVER["DOCUMENT_ROOT"]."/assets/plugins/slimstat/inc.stats.php" );
Hope this helps,
Al
-
☆ A M B ☆
- 24,524 Posts
Just remove the extraneous <?php at the beginning, and the ?> at the end.