Home
Community
Download
Customize
Modifications
Themes
Patches
Support
Function Database
Online Manual
About
Contribute
Development
Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
This topic
This board
Entire Site
Community
Modifications
Themes
Wiki
Bugtracker
Select language:
Albanian
Arabic
Bulgarian
Catalan
Chinese Simplified
Chinese Traditional
Croatian
Czech Informal
Czech
Danish
Dutch
English British
English Pirate
English
Esperanto
Estonian
Finnish
French
Galician
German Informal
German
Greek
Hebrew
Hungarian
Icelandic
Indonesian
Italian
Japanese
Kurdish Kurmanji
Lithuanian
Macedonian
Malay
Norwegian
Persian
Polish
Portuguese Brazilian
Portuguese Pt
Romanian
Russian
Serbian Cyrillic
Serbian Latin
Slovak
Slovenian
Spanish Es
Spanish Latin
Spanish
Swedish
Thai
Turkish
Ukrainian
Urdu
Vietnamese
Yoruba
News:
Want to get involved in developing SMF, then why not lend a hand on our
github!
Home
Help
Search
Login
Register
Advertisement:
Simple Machines Community Forum
»
Customizing SMF
»
SMF Coding Discussion
»
Topic:
SSI Track Stats
« previous
next »
Print
Pages:
1
2
[
All
]
Go Down
Author
Topic: SSI Track Stats (Read 16380 times)
MrCue
Full Member
Posts: 533
Gender:
Chief Architect
SSI Track Stats
«
on:
March 28, 2004, 07:05:38 AM »
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?
Logged
I am neither a Pessimist nor an Optimist, Just a Realist.
Eve-Online Forum
|
View Latest Eve-Online Kills
|
Site Map
|
SMF Installation
MrCue
Full Member
Posts: 533
Gender:
Chief Architect
Re: SSI Track Stats & Banning
«
Reply #1 on:
March 28, 2004, 01:00:34 PM »
How do you get the SSI to do its banning stuff also?
Logged
I am neither a Pessimist nor an Optimist, Just a Realist.
Eve-Online Forum
|
View Latest Eve-Online Kills
|
Site Map
|
SMF Installation
[Unknown]
SMF Friend
SMF Master
Posts: 36,102
Gender:
Re: SSI Track Stats
«
Reply #2 on:
March 28, 2004, 05:16:04 PM »
You have to call obExit(); for the statistics to actually get committed.
Before you include SSI.php, just do this:
$ssi_ban = true;
-[Unknown]
Logged
MrCue
Full Member
Posts: 533
Gender:
Chief Architect
Re: SSI Track Stats
«
Reply #3 on:
March 28, 2004, 06:53:13 PM »
Thanks.
Logged
I am neither a Pessimist nor an Optimist, Just a Realist.
Eve-Online Forum
|
View Latest Eve-Online Kills
|
Site Map
|
SMF Installation
MrCue
Full Member
Posts: 533
Gender:
Chief Architect
Re: SSI Track Stats
«
Reply #4 on:
March 28, 2004, 07:10:37 PM »
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!"
«
Last Edit: March 28, 2004, 07:15:21 PM by MrCue
»
Logged
I am neither a Pessimist nor an Optimist, Just a Realist.
Eve-Online Forum
|
View Latest Eve-Online Kills
|
Site Map
|
SMF Installation
[Unknown]
SMF Friend
SMF Master
Posts: 36,102
Gender:
Re: SSI Track Stats
«
Reply #5 on:
March 28, 2004, 07:41:13 PM »
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]
Logged
MrCue
Full Member
Posts: 533
Gender:
Chief Architect
Re: SSI Track Stats
«
Reply #6 on:
March 29, 2004, 10:52:39 AM »
What causes the copyright failure?
Logged
I am neither a Pessimist nor an Optimist, Just a Realist.
Eve-Online Forum
|
View Latest Eve-Online Kills
|
Site Map
|
SMF Installation
[Unknown]
SMF Friend
SMF Master
Posts: 36,102
Gender:
Re: SSI Track Stats
«
Reply #7 on:
March 29, 2004, 11:20:33 AM »
Just the way obExit works. Are you still getting it without obExit()?
-[Unknown]
Logged
MrCue
Full Member
Posts: 533
Gender:
Chief Architect
Re: SSI Track Stats
«
Reply #8 on:
March 29, 2004, 11:27:47 AM »
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.
Logged
I am neither a Pessimist nor an Optimist, Just a Realist.
Eve-Online Forum
|
View Latest Eve-Online Kills
|
Site Map
|
SMF Installation
MrCue
Full Member
Posts: 533
Gender:
Chief Architect
Re: SSI Track Stats
«
Reply #9 on:
March 30, 2004, 08:39:42 AM »
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.
Logged
I am neither a Pessimist nor an Optimist, Just a Realist.
Eve-Online Forum
|
View Latest Eve-Online Kills
|
Site Map
|
SMF Installation
[Unknown]
SMF Friend
SMF Master
Posts: 36,102
Gender:
Re: SSI Track Stats
«
Reply #10 on:
March 30, 2004, 08:42:42 AM »
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]
Logged
MrCue
Full Member
Posts: 533
Gender:
Chief Architect
Re: SSI Track Stats
«
Reply #11 on:
March 30, 2004, 08:59:47 AM »
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.
Logged
I am neither a Pessimist nor an Optimist, Just a Realist.
Eve-Online Forum
|
View Latest Eve-Online Kills
|
Site Map
|
SMF Installation
[Unknown]
SMF Friend
SMF Master
Posts: 36,102
Gender:
Re: SSI Track Stats
«
Reply #12 on:
March 30, 2004, 09:07:04 AM »
Is the copyright not being displayed in that theme?
The banning is done before the theme is loaded... no wait, it isn't...
-[Unknown]
Logged
MrCue
Full Member
Posts: 533
Gender:
Chief Architect
Re: SSI Track Stats
«
Reply #13 on:
March 30, 2004, 09:11:56 AM »
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?
Logged
I am neither a Pessimist nor an Optimist, Just a Realist.
Eve-Online Forum
|
View Latest Eve-Online Kills
|
Site Map
|
SMF Installation
[Unknown]
SMF Friend
SMF Master
Posts: 36,102
Gender:
Re: SSI Track Stats
«
Reply #14 on:
March 30, 2004, 09:15:53 AM »
Can you give me a link to the page and test account?
-[Unknown]
Logged
MrCue
Full Member
Posts: 533
Gender:
Chief Architect
Re: SSI Track Stats
«
Reply #15 on:
March 30, 2004, 09:20:48 AM »
http://www.battleclinic.com
un: cue_test
pw: test
Logged
I am neither a Pessimist nor an Optimist, Just a Realist.
Eve-Online Forum
|
View Latest Eve-Online Kills
|
Site Map
|
SMF Installation
[Unknown]
SMF Friend
SMF Master
Posts: 36,102
Gender:
Re: SSI Track Stats
«
Reply #16 on:
March 30, 2004, 09:35:23 AM »
It's using the default theme, for some reason...
-[Unknown]
Logged
MrCue
Full Member
Posts: 533
Gender:
Chief Architect
Re: SSI Track Stats
«
Reply #17 on:
March 30, 2004, 09:47:09 AM »
So how can i get it to use the ban then?
Logged
I am neither a Pessimist nor an Optimist, Just a Realist.
Eve-Online Forum
|
View Latest Eve-Online Kills
|
Site Map
|
SMF Installation
[Unknown]
SMF Friend
SMF Master
Posts: 36,102
Gender:
Re: SSI Track Stats
«
Reply #18 on:
March 30, 2004, 09:58:32 AM »
After you include SSI.php, what does this display?
echo (int) $ssi_theme;
-[Unknown]
Logged
MrCue
Full Member
Posts: 533
Gender:
Chief Architect
Re: SSI Track Stats
«
Reply #19 on:
March 30, 2004, 10:06:10 AM »
11
Logged
I am neither a Pessimist nor an Optimist, Just a Realist.
Eve-Online Forum
|
View Latest Eve-Online Kills
|
Site Map
|
SMF Installation
[Unknown]
SMF Friend
SMF Master
Posts: 36,102
Gender:
Re: SSI Track Stats
«
Reply #20 on:
March 30, 2004, 03:10:38 PM »
So it's loading the right theme. Very strange....
-[Unknown]
Logged
MrCue
Full Member
Posts: 533
Gender:
Chief Architect
Re: SSI Track Stats
«
Reply #21 on:
March 30, 2004, 03:44:55 PM »
Its loading the right theme, but it doesnt look like the right theme.
Logged
I am neither a Pessimist nor an Optimist, Just a Realist.
Eve-Online Forum
|
View Latest Eve-Online Kills
|
Site Map
|
SMF Installation
[Unknown]
SMF Friend
SMF Master
Posts: 36,102
Gender:
Re: SSI Track Stats
«
Reply #22 on:
March 30, 2004, 06:50:42 PM »
No, that's theme 1, it's using the default stuff. It looks like the default theme, but it's using the correct theme's URL. Very strange.
-[Unknown]
Logged
Print
Pages:
1
2
[
All
]
Go Up
« previous
next »
Simple Machines Community Forum
»
Customizing SMF
»
SMF Coding Discussion
»
Topic:
SSI Track Stats