Difference between revisions of "PHP Extra SSI Functions Introduction"

From Online Manual

Jump to: navigation, search
m (2 revisions: Importing from local.)
m (Bot: Automated text replacement (-  + ))
 
(10 intermediate revisions by 4 users not shown)
Line 4: Line 4:
  
 
Hit Counter:
 
Hit Counter:
 +
{{code|1= <?php trackStats(array('hits' => '+')); trackStats(); ?>}}
 +
Add the ability to track the number of hits on your website to be included to the number of hits on your [[Forum]] (requires Track daily statistics and Track daily hits must be enabled in your forums Admin Edit Features and Options settings).
  
<div class="codeheader">: <a href="javascript:void(0);" onclick="return smfSelectText(this);" class="codeoperation"></a></div><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php&nbsp;trackStats</span><span style="color: #007700">(array(</span><span style="color: #DD0000">&#039;hits&#039;&nbsp;</span><span style="color: #007700">=&gt;&nbsp;</span><span style="color: #DD0000">&#039;+&#039;</span><span style="color: #007700">));&nbsp;</span><span style="color: #0000BB">trackStats</span><span style="color: #007700">();&nbsp;</span><span style="color: #0000BB">?&gt;</span></span></code>
+
[[Category:Developing SMF]]
Add the ability to track the number of hits on your website to be included to the number of hits on your [[Forum]] (requires Track daily statistics and Track daily hits must be enabled in your forums Admin Edit Features and Options settings).
+
[[Category:Integrating SMF]]
 +
[[category:SSI]]

Latest revision as of 08:06, 1 July 2013

There are quite a few extra features you can have working on your website by using SSI.php. Below are some advantages that are not listed in the examples.

  • PHP Extra SSI Functions List

Hit Counter:

<?php trackStats(array('hits' => '+')); trackStats(); ?>

Add the ability to track the number of hits on your website to be included to the number of hits on your Forum (requires Track daily statistics and Track daily hits must be enabled in your forums Admin Edit Features and Options settings).