Subscribers Module
------------------
	author: Adam Sheik
	phorum.org username: sheik
	date: 17th Oct 2012

This module introduces the concept of "subscribers" or "supporters" of your forums.
These could be users that are helpful, people who have donated money or something else - 
the point being that using this module you can make them "subscribers" and provide benefits
to them accordingly.
I wrote this module to allow supporters of my site to (optionally) hide the affiliate adverts and 
Google adverts that keep my site funded.

Currently, there are three "custom profile fields" which you must add via the Phorum Admin system.
These are:
1) subscription_expiry - this defaults to a year in the future when you add a subscriber. 
   Once the subscription expiry date has been reached, the user is no longer considered to be 
   a subscriber by this module.
2) subscriber - you never alter this directly, the module determines whether a user is a subscriber based
on subscription_expiry
3) hide_adverts - this custom field can be used within your templates to remove adverts for subscribers

I'm interested to know if anyone else ever uses this module, so please let me know by posting feedback
etc to : http://www.phorum.org/phorum5/read.php?62,152301

The following are suggested template changes for the subscribers module. 
There is a lot of scope for customisation here, be creative and please share your ideas on phorum.org.

header.tpl
----------
{IF USERINFO->hide_adverts 1}
	You can output nothing here, or perhaps create something cool just for subscribers
{ELSE}
	Your normal advert block (remember you can still break into PHP if necessary)
{/IF}

cc_usersettings.tpl (this change allows the user to show or hide adverts)
-------------------
{IF PROFILE->subscriber}
<tr>
    <td colspan="2">
		You are currently subscribed until {PROFILE->subscription_expiry} (yyyy-mm-dd)
    	
    	Some kind of Thank You message could also be added here.
    </td>
</tr>
<tr>
    <td valign="top" nowrap="nowrap">Hide Adverts:&nbsp;</td>
    <td width="100%">
	<select name="hide_adverts">
		{IF PROFILE->hide_adverts 1}
			<option value="1" selected>Yes</option>
			<option value="0">No</option>
		{ELSE}
			<option value="1">Yes</option>
			<option value="0" selected>No</option>
		{/IF}
	</select>
    </td>
</tr>
{/IF}


cc_start.tpl
------------
{IF PROFILE->subscriber}
<tr><td>Subscription Expiry: (yyyy-mm-dd)</td><td>{PROFILE->subscription_expiry}</td></tr>
{ELSE}
<tr><td>Subscriber:</td><td>Not subscribed <a href="some link">(more information on subscribing)</a></td></tr>
{/IF}
