Enthusiast: Creating a Fanlisting

If you’ve installed Enthusiast successfully and also set up your collective, you might want to begin work on a fanlisting.

Setting up

Firstly, you will need to go to the admin panel (such as yoursite.com/enth2) and login.

Go to Owned and click Add.

Install the fanlisting. It should be pretty self-explanatory. You need to enter your database information – such as the password.

For Database table, choose a one-worded (no spaces) unique identifier for the fanlisting. For example, if your fanlisting is for toothbrushes of the brand Moo, you might want to name the tables mootoothbrushes or mootooth.

Feel free to make the fanlisting current or upcoming. If you choose upcoming, don’t forget to edit the fanlisting later and make it “current” with a valid date!

Click “Add and setup this fanlisting” and take note of the ID of the fanlisting.

Configuration

Go to the folder where you downloaded Enthusiast onto your computer. Find the config.php file outside of the enth2 folder in the download. If you are unsure, return to your downloaded folder, open it, and the config.php you see there is the one you’ll be looking at.

Fill in the proper database values as you did in creating your collective:

database info

Now find the following line towards the bottom of the file:

//$listing = 1;

Uncomment the line by removing the two slashes:

$listing = 1;

Change the number 1 to the ID of the fanlisting that was shown when you set up the fanlisting. Save the changes.

Now you must upload the file to your website. Place it in its own folder or subdomain for the fanlisting. NOT in the folder for the admin panel and NOT in your collective. For example, upload it to my-collective.com/my-first-fanlisting.

Creation

Creation is easy. If you have a layout ready, you can use those files. If not, you can create the pages for the join form, members page, update page and lost password page.

The files must have a .php extension. You might have the following files:

Members list

Paste the following code on list.php, or where you want the members list to appear.

<?php include 'config.php';
include ENTH_PATH . 'show_sort.php';
include ENTH_PATH . 'show_members.php'; ?>

Note that there are other more complicated options to display the list, but this way is the easiest, and you can refer to the installation file for more options.

Joining form

Paste the following code on join.php, or where you want your joining form to appear.

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

This only shows the form, so before this, you can write rules or information if you like.

Update form

Paste the following code on update.php, or where you want your update form to appear.

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

This also only shows the form so you can write around the PHP code.

Lost password form

Paste the following code on lostpass.php, or where you want your update form to appear.

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

This also only shows the form so you can write around the PHP code.

Listing statistics

Paste the following code on index.php, or where you want the statistics to appear.

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

The statistics will look a bit like this:

stats

Extra

Paste the following code on affiliates.php, or where you want affiliates to appear.

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

You can create a codes page or extra pages for the fanlisting; it’s your choice.

Finalising

Go to your Enthusiast admin panel and go to owned and click edit next to your new fanlisting. Click “info”. Fill in the subject (what the fanlisting is for), URL, email and title (name) of the fanlisting.

After saving, go to “settings” on the left. Things should be pretty self explanatory:

settings for fanlisting

The join, list, update and lostpass pages should be edited if you gave them a different name than was mentioned in this tutorial.

Upload all the fanlisting files to your website in the same folder. Your fanlisting should be ready to go!