Hi,
I’d like to say this is a great add-on.
Just a note: I am running mysql 5 and to start off oddly had a problem and had to create the database info by manually putting in the sql as a previous poster had mentioned.
But nevertheless, my problem.
I am having difficulties with calling the id placeholder in the &id=`` parameter.
I initially call the content of the page with the hit counter from a ditto call, which works fine and returns the hit count, but when I go to the actual page with the hit counter on it, I receive a parse error. I’ve tried [+id+], and also created a template variable and tried to call it with error incurring each time.
Any help with this would be appreciated because it would be very useful for me to avoid having to manually insert the id into the field on each and every page, so that it will work for the page itself, and also the ditto call.
The pagehitcounter call:
[[ViewCountPageHit? &pre=`` &id=`[*id*]`]]
<br /><br />The error:<br />
« Execution of a query to the database failed - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '[*id*]' at line 1 »
SQL: SELECT * FROM modx_page_hit_counter WHERE `page_id` = [*id*]
<br />