Bug Fix 3.1 - adverts displaying to paid users

ysmods

New Member
Jan 29, 2013
860
1
0
UK
www.ysmods.com
I noticed that the adverts in the frontend of the script was being shown to all users including paid users.

The fix is below

open _footer.php
Code:
<!-- footer ads -->
    <div class="footerAds">
        <?php echo SITE_CONFIG_ADVERT_SITE_FOOTER; ?>
    </div>
Replace with
Code:
<!-- footer ads -->
    <div class="footerAds">
	<?php
        if (($Auth->loggedIn() == true) && ($Auth->level == 'free user'))
        {
            echo SITE_CONFIG_ADVERT_SITE_FOOTER;
        }
        ?>
    </div>