News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

SSI Track Stats

Started by MrCue, March 28, 2004, 07:05:38 AM

Previous topic - Next topic

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?
I am neither a Pessimist nor an Optimist, Just a Realist.

Eve-Online Forum | View Latest Eve-Online Kills | Site Map | SMF Installation

MrCue

How do you get the SSI to do its banning stuff also?
I am neither a Pessimist nor an Optimist, Just a Realist.

Eve-Online Forum | View Latest Eve-Online Kills | Site Map | SMF Installation

[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

I am neither a Pessimist nor an Optimist, Just a Realist.

Eve-Online Forum | View Latest Eve-Online Kills | Site Map | SMF Installation

MrCue

#4
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!"
I am neither a Pessimist nor an Optimist, Just a Realist.

Eve-Online Forum | View Latest Eve-Online Kills | Site Map | SMF Installation

[Unknown]

Well, actually, I was just saying obExit() takes care of it.  If you want, you can do it yourself by just calling the function with no parameters, like so:

trackStats();

-[Unknown]

MrCue

What causes the copyright failure?
I am neither a Pessimist nor an Optimist, Just a Realist.

Eve-Online Forum | View Latest Eve-Online Kills | Site Map | SMF Installation

[Unknown]

Just the way obExit works.  Are you still getting it without obExit()?

-[Unknown]

MrCue

i have this in SSI before writeLog() under ssi_logOnline

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

And in my main file, just before i include the ssi file i have
//$ssi_ban = true;

If i un-comment that line i get the error.
I am neither a Pessimist nor an Optimist, Just a Realist.

Eve-Online Forum | View Latest Eve-Online Kills | Site Map | SMF Installation

MrCue

Any ideas why i see the invalid SMF?
It also appears to load the wrong template, even though i have also specified $ssi_theme = '11'; before the include.
I am neither a Pessimist nor an Optimist, Just a Realist.

Eve-Online Forum | View Latest Eve-Online Kills | Site Map | SMF Installation

[Unknown]

You don't need the quotes for $ssi_theme, it can just be 11....

And, I assume it must be thinking you're banned.  Or something.  Can you link me to the code?

-[Unknown]

MrCue

Yes, i have a test account which i have banned.
Note the theme in the image is not http://www.battleclinic.com/forum/index.php the one there.
I am neither a Pessimist nor an Optimist, Just a Realist.

Eve-Online Forum | View Latest Eve-Online Kills | Site Map | SMF Installation

[Unknown]

Is the copyright not being displayed in that theme?

The banning is done before the theme is loaded... no wait, it isn't...

-[Unknown]

MrCue

I checked all my themes in preview, and they all display correctly.
Come to think of it, i dont even have a theme that looks like the one in the picture. So where is it being generated from?
I am neither a Pessimist nor an Optimist, Just a Realist.

Eve-Online Forum | View Latest Eve-Online Kills | Site Map | SMF Installation

[Unknown]

Can you give me a link to the page and test account?

-[Unknown]

MrCue

I am neither a Pessimist nor an Optimist, Just a Realist.

Eve-Online Forum | View Latest Eve-Online Kills | Site Map | SMF Installation

[Unknown]

It's using the default theme, for some reason...

-[Unknown]

MrCue

So how can i get it to use the ban then?
I am neither a Pessimist nor an Optimist, Just a Realist.

Eve-Online Forum | View Latest Eve-Online Kills | Site Map | SMF Installation

[Unknown]

After you include SSI.php, what does this display?

echo (int) $ssi_theme;

-[Unknown]

MrCue

I am neither a Pessimist nor an Optimist, Just a Realist.

Eve-Online Forum | View Latest Eve-Online Kills | Site Map | SMF Installation

Advertisement: