Amount of sites submitting.
Author Message
c0rrupt
Administrator


Posts: 250
Joined: Mar 2010
Post: #1
Amount of sites submitting.
1
0
Show the amount of sites that are submitting.

Credit to jomasco.

Create a new php file named wcddl_ShoAmouSites.php and paste the following in it:
PHP Code: (Select All)
<?php
    
/*BEGIN_INFO
    This module will show the total sites<br />
     by jomasaco
    END_INFO*/
    
if(!defined("WCDDL_GUTS"))
       exit;
    
$modEnabled true//Change to false if don't use
        
if($modEnabled) {
 
$found mysql_num_rows(mysql_query("SELECT distinct sid FROM wcddl_downloads"));
 
$amountsites =  $found .'';
 
$core->setTemplateVar("amountsite",$amountsites);
    }
?>

Upload the wcddl_ShoAmouSites.php file to your modules folder.

Add the following where you would like it displayed:
PHP Code: (Select All)
<?=$core->templateVar("amountsite")?>

Be sure to visit WCDDL.org Affiliates
07-12-2012 06:22 PM


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Amount of Downloads in Graph c0rrupt 9 298 11-15-2010 01:34 PM
Last Post: nYXem



User(s) browsing this thread: 1 Guest(s)

This forum uses Lukasz Tkacz MyBB addons.