Customizing SMF > SMF Coding Discussion

SSI Track Stats

(1/5) > >>

MrCue:
trackStats(array('hits' => '+'));

I added that to my SSI.php under ssi_logOnline but it doesnt work. Any ideas how to get it to track hits from the SSI?

MrCue:
How do you get the SSI to do its banning stuff also?

[Unknown]:
You have to call obExit(); for the statistics to actually get committed.

Before you include SSI.php, just do this:

$ssi_ban = true;

-[Unknown]

MrCue:
Thanks.

MrCue:
Cant call obExit, it tells me it cant load the main template. Yet im not using the templates.
And when i turn banning on for the site i get this.
"Sorry, the copyright must be in the template.
Please notify this forum's administrator that this site is using an ILLEGAL copy of SMF!"

Navigation

[0] Message Index

[#] Next page

Go to full version