View Full Version : Removing "Statistics"
smahmood
05-16-2007, 07:27 PM
Hi,
I like to remove the site statistics from my webpage. Currently I am using "Minimalistic" template. Can anybody advise me, how to remove it?
Also, is it possible, just to show the total number of links and also total number of catagories (That generally shows in main page), in a seperate page. This is seperate page is only for site statistics.
Thanks for your help in advance!
Dave Baker
05-16-2007, 08:25 PM
Hello smahmood,
In order to remove:
***Open templates/yourTemplate/header.tpl and find code***
<!-- statistics box start -->
{include file="box-header.tpl" caption=$lang.statistics}
<table cellpadding="2" cellspacing="2">
<tr>
<td>{$lang.total_num_links}</td>
<td>{$num_links}</td>
</tr>
<tr>
<td>{$lang.total_num_categories}</td>
<td>{if $num_categories}{$num_categories}{else}0{/if}</td>
</tr>
</table>
{include file="box-footer.tpl"}
<!-- statistics box end -->
***Remove it***
In order to create the seperate page:
Download, unzip and upload:
statistics.php in the root of your directory
statistics.tpl in templates/yourTemlate/.
Admin Panel » Manage Pages » Add Page
Page URL: statistics
Page Title: Statistics
Show in Menus: Top Menu/Bottom Menu/Editor Menu
External URL: Yes
No Follow URL: Yes/No
Page External URL: www.yourDirectory.com/statistics.php
» Save Changes
smahmood
05-18-2007, 06:59 PM
Hi Dave,
you are great!!!! Just an example, how to explain so clearly, Thanks!
Dave Baker
05-18-2007, 08:58 PM
Always at your services smahmood!
Patsy
05-22-2007, 05:42 PM
Dave,
I saw this in my usual cruise of new posts and added it to my site --- I LOVE it!
You get 3 good ole thumbs up from me.... :good: :good: :good:
Patsy
www.ncfsearch.com/directory
vBulletin® v3.7.0, Copyright ©2000-2008, Jelsoft Enterprises Ltd.