Enthusiast: Collective Statistics

If you’ve installed Enthusiast successfully and also set up your collective, you might want to display certain statistics for your collective.

Important

Before firing into the statistics, you must use this code. It must be placed on the same page as where you want the statistics to appear.

<?php
include 'config.php';
include ENTH_PATH . 'show_collective_stats.php';
?>

Regular statistics

All you need to do is paste the code where you want the information to appear. Note that this only produces a number, so when formatting you need to write something before it to show what it represents! :)

Total number of categories in the collective, even if they are empty:

<?php echo $total_cats ?>

Total number of joined fanlistings:

<?php echo $joined ?>

Total number of pending joined fanlistings:

<?php echo $joined_pending ?>

Total number of approved joined fanlistings:

<?php echo $joined_approved ?>

Total number of owned fanlistings:

<?php echo $owned ?>

Total number of pending owned fanlistings:

<?php echo $owned_pending ?>

Total number of approved owned fanlistings:

<?php echo $owned_approved ?>

Total number of affiliates:

<?php echo $affiliates_collective ?>

Total number of members in the collective:

<?php echo $collective_total_fans ?>

Total number of approved members in the collective:

<?php echo $collective_total_fans_approved ?>

Total number of pending members in the collective:

<?php echo $collective_total_fans_pending ?>

The growth rate of owned fanlistings (rate at which you get approved):

<?php echo $owned_growth_rate ?>

The growth rate of members in your collective:

<?php echo $collective_fans_growth_rate ?>

The growth rate of joined fanlistings (rate at which you join fanlistings):

<?php echo $joined_growth_rate ?>

Newest Statistics

All you need to do is paste the code where you want the information to appear. Similarly, this only produces raw data.

The following is for the newest owned fanlisting:

Title of the fanlisting:

<?php echo $owned_newest['title'] ?>

Subject of the listing:

<?php echo $owned_newest['subject'] ?>

URL of the listing:

<?php echo $owned_newest['url'] ?>

Description:

<?php echo $owned_newest['desc'] ?>

The listing type:

<?php echo $owned_newest['listingtype'] ?>

The date it opened:

<?php echo $owned_newest['opened'] ?>

The image of the listing and its usage with absolute path:

<?php echo $owned_newest['imagefile'] ?>
<img src="enth/owned/<?php echo $owned_newest['imagefile'] ?>" alt="" />

The following is for newest joined fanlisting:

Subject of the listing:

<?php echo $joined_newest['subject'] ?>

URL of the listing:

<?php echo $joined_newest['url'] ?>

Description:

<?php echo $joined_newest['desc'] ?>

The date it was added:

<?php echo $joined_newest['added'] ?>

The image of the listing and its usage with absolute path:

<?php echo $joined_newest['imagefile'] ?>
<img src="enth/joined/<?php echo $joined_newest['imagefile'] ?>" alt="" />

Random Statistics

The following PHP codes are used to display a random owned fanlisting:

Title of the fanlisting:

<?php echo $owned_random['title'] ?>

Subject of the listing:

<?php echo $owned_random['subject'] ?>

URL of the listing:

<?php echo $owned_random['url'] ?>

Description:

<?php echo $owned_random['desc'] ?>

The listing type:

<?php echo $owned_random['listingtype'] ?>

The date it opened:

<?php echo $owned_random['opened'] ?>

The image of the listing and its usage with absolute path:

<?php echo $owned_random['imagefile'] ?>
<img src="enth/owned/<?php echo $owned_random['imagefile'] ?>" alt="" />

The following is for a random joined fanlisting:

Subject of the listing:

<?php echo $joined_random['subject'] ?>

URL of the listing:

<?php echo $joined_random['url'] ?>

Description:

<?php echo $joined_random['desc'] ?>

The date it was added:

<?php echo $joined_random['added'] ?>

The image of the listing and its usage with absolute path:

<?php echo $joined_random['imagefile'] ?>
<img src="enth/joined/<?php echo $joined_random['imagefile'] ?>" alt="" />

Examples

Newest fanlisting: Always – Amy and Rory

Newest fanlisting: <a href="<?php echo $owned_newest['url'] ?>" target="_blank"><?php echo $owned_newest['title'] ?> - <?php echo $owned_newest['subject'] ?></a>

Owned fanlistings: 24 open, 0 upcoming

Owned fanlistings: <?php echo $owned_current ?> open, <?php echo $owned_upcoming ?> upcoming<br />