News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Tracking stats in a page outside the forum

Started by MultiformeIngegno, September 06, 2010, 08:04:46 AM

Previous topic - Next topic

MultiformeIngegno

Hello!
I'd like to track stats of a page outside the forum (a wiki...). I think I can do this by adding for example:

//This is the SSI.php file in the Board dir.
require("/SSI.php");

// Track stats
trackStats(array('hits' => '+')); trackStats();

writeLog(true);


Anyway I don't want the html code from the forum, I just want to be able to track the stats.
I tried adding: $ssi_layers = array('html'); but it messes up the html tags (example: two <head>, two <html>)...

What can I do?
Thanks in advance!
RockCiclopedia (wiki - forum), Tutta la storia del rock, scritta da voi ...
Rimanere aggiornati sul mondo della musica grazie al nuovo feed "RockCiclopedia Music News"!

vbgamer45

That code should not include any html.
Try
$ssi_layers = array();
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

MultiformeIngegno

Uhm... I added $ssi_layers = array(); and $_GET['action'] = 'mypage'; .
Then In Who.english.php:
$txt['whoall_mypage'] = 'My text here.';

But in Who's Online I see "Unknown Action" if an user is viewing that page... :(
RockCiclopedia (wiki - forum), Tutta la storia del rock, scritta da voi ...
Rimanere aggiornati sul mondo della musica grazie al nuovo feed "RockCiclopedia Music News"!

MultiformeIngegno

Okay, I fixed moving $_GET['action'] = 'mypage'; above the SSI.php require_once declaration. :)
RockCiclopedia (wiki - forum), Tutta la storia del rock, scritta da voi ...
Rimanere aggiornati sul mondo della musica grazie al nuovo feed "RockCiclopedia Music News"!

Suki

Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

Advertisement: