*

Recent

Author Topic: [Add On] Admin Stats from StatsCounter  (Read 5942 times)

am-fs

  • Owner
  • Developer
  • Full Member
  • ******
  • Posts: 228
  • Force: +1/-0
    • Great Flash Games
[Add On] Admin Stats from StatsCounter
« on: November 01, 2014, 08:01:44 PM »
Outlaw16151 requested this mod and wanted me to share it with the community. What this does is allow you to view your stats from StatCounter in your admin control panel using iframe.

Create an account on http://statcounter.com/
Add your stats code to the Google Analytics Code spot in the Admin => Ads

make the following edits.
pages/admin/index.php
Find:
Code: [Select]
case 'socialmedia':
include ('socialmedia.php');
break;

Add After:
Code: [Select]
case 'stats':
include ('stats.php');
break;

pages/admin/template.php
Find:
Code: [Select]
case 'settings':
$b = 'active';
break;

Add After:
Code: [Select]
case 'stats':
$b = 'active';
break;

Find:
Code: [Select]
                        <li><a href="'.$domain.'/index.php?action=admin&case=settings">Settings</a></li>

Add After:
Code: [Select]
                        <li><a href="'.$domain.'/index.php?action=admin&case=stats">Stats</a></li>


Create a new page named stats.php and upload to => pages/admin/
Add the code below:
Code: [Select]
<?php
echo'
<div class="heading">
<h2>Stats</h2> 
</div>
<br clear="all">
<iframe src="http://statcounter.com/" width="100%" height="880px" marginwidth="0" frameborder="0"></iframe>'
;
?>


Also you can get the StatCounter Apps for iOS and Android.
« Last Edit: November 01, 2014, 08:15:44 PM by am-fs »