Version: 1.00, by amykhar
Developer Last Online: Nov 2013
Version: 2.2.x
Rating:
Released: 02-14-2003
Last Update: Never
Installs: 18
No support by the author.
This Hack allows you to set styles for use only by premium members. (Premium members are people that you decide are premium either because they have paid or because you like them or for whatever reason you determine they are premium)
This hack does not use the usergroup system because it allows premium users to be in any usergroup. This enables me to keep moderators in a mods group, Epinions members in an Epinions group, and everybody else in the registered group and still mark them as a contributor.
Premium members on my board have paid a membership fee. My nonpaid members have the default style that has ad banners and few if any hacks.
My premium members have 5 styles to choose from. None have Ad Banners and there are more hacks and features.
If you want to see a live demo: Join my forum, look at the styles available to you. Then pay to become a premium member and look to see the available styles once you have paid.
KNOWN ISSUES:
None.
I will include screenshots in a few minutes.
NOTE: I will support this hack for users who know how to run queries and edit files. I will not explain the basics of hacking. I will support bugs. I will also refine the instructions if they are incorrect.
I did not incorporate it into register.php because my members have to register first before they can become premium members. The paypal integration requires that their username already exist. Therefore, people registering can only choose from the non-premium styles.
Regarding the second question, I would simply change This:
Code:
$allstyles=$DB_site->query("SELECT style.title, user.styleid, COUNT(*) AS count FROM user LEFT JOIN style USING (styleid) WHERE style.styleid IS NOT NULL AND style.userselect=1 GROUP BY user.styleid");
to this:
Code:
if ($bbuserinfo[premium]{
$allstyles=$DB_site->query("SELECT style.title, user.styleid, COUNT(*) AS count FROM user LEFT JOIN style USING (styleid) WHERE style.styleid IS NOT NULL AND style.userselect>0 GROUP BY user.styleid");
}
else {
$allstyles=$DB_site->query("SELECT style.title, user.styleid, COUNT(*) AS count FROM user LEFT JOIN style USING (styleid) WHERE style.styleid IS NOT NULL AND style.userselect=1 GROUP BY user.styleid");
}
Hey, i cant make this work. i get the same error every time i tryed. error at line 67.
this line:
$allstyles=$DB_site->query("SELECT style.title, user.styleid, COUNT(*) AS count FROM user LEFT JOIN style USING (styleid) WHERE style.styleid IS NOT NULL AND style.userselect>0 GROUP BY user.styleid");
I followed the text file exactly yet whenever i edit the global.php file i get this
Warning: Cannot modify header information - headers already sent by (output started at /home/*****/*****/global.php:391) in /home/*****/*****/admin/functions.php on line 1723
Showing up above the header of a scheme for some users, though it works perfectly for me, anyone know whats wrong?
Just a little problem here. I've already followed all the instructions. Only a tiny problem though. Everytime I make someone a premium member, it will not stay that way adn make the person not premium again.