![]() |
Styles for Premium Members
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 :D 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. Custom Avatars Addon: https://vborg.vbsupport.ru/showthrea...084#post366084 No PM Quota for Premium Addon: https://vborg.vbsupport.ru/showthrea...882#post364882 |
Screenshot of making the style premium:
|
Here is the screenshot of making the user premium:
|
this looks very nice. I am not sure if I will install it though.
If I ever get a donation thing up and running it will come in very handy |
This is a very nice hack.
Good job! |
I got over my lazy spell and updated this hack so that you can change premium member's styles from the admin control panel. The text file has been updated.
If you have already installed it, you simply need to do this in user.php: Find: Code:
// returns a combo box containing a list of titles in the $tablename table. Code:
Code:
Code:
|
Question: There's a drop down menu for style sets in register.php and member.php. Does this make it so users who are registering cannot select premium styles?
Also, how would I go about making this work with the change style drop-down menu hack, located: here. |
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"); Code:
if ($bbuserinfo[premium]{ |
I don't think I ever mentioned, this code prevents non-premium members from simply setting the styleid in their url and viewing the premium styles that way. The hack treats it just like they tried to use a non-selectable style.
|
Oops! lol, of course! How can you make a guest a premium member :D! I was having a dumb moment, sorry.
Also, thanks for that code for the drop down change style hack by FireFly, very helpful. Will install this later :). |
What a good idea Amy :)
- miSt |
Nice hack:)
Satan |
I must be doing something wrong. I've tried this on my test board but I get the following error message after trying to save the user:
Quote:
|
danrak, when updating the file, I accidentally posted in the wrong query. This is the correct one:
ALTER TABLE `user` ADD `premium` TINYINT NOT NULL; Sorry for the confusion. Amy |
Ok. Sorry about that. Let me try that. Thanks.
|
Thanks man, installed it on vB2.3.0, don't know if it works fine, but will let u know..
|
I merged it with Contributing members, works perfect!
|
great. I have been using it for over a year now. It certainly helped cover hosting costs.
|
I have configured my PM system so that Premium members no longer have a PM quota. I combine this with another hack I wrote that deletes PMs older than 2 months old. (date configurable in the code)
So, here is the addon. In private.php, Find: Code:
if ($pmquota>0 and $touserinfo[usergroupid] != 6 and $bbuserinfo[usergroupid] != 6) { Code:
if ($pmquota>0 and $touserinfo[usergroupid] != 6 and $bbuserinfo[usergroupid] != 6 and $touserinfo[premium]!=1) { Amy |
hav u got any more addons, ie an addition for the mini avatars hack so that paid members can use mini icons next to there name on forumhome !
|
Most hacks can be added on very easily to this by only installing them to work on the premium styles. As I am upgrading right now, if I come across any others that I tweak more to work with the premium styles, I will most definitely post them here.
Amy |
thank you :p
|
would it be possible to alow premium members to have custom avatars and non premium members use the gallery avatars ?
|
Yes. In fact, I forgot that I had already done something similar. My regular members must have 200 posts to use custom avatars. Premium members can use them no matter how many posts they have. Back in a few with that addon and thanks for the reminder.
Amy |
nice one ! im tryin to make some additions also ! but i cant figure out the variable to select the premium mebers ? is it somthing like
userinfo[premium] ! because i want to add a small icon next to the premium peoples usernames in the whos online bit on forumhome |
OK. I am back.
I wrote two versions of the hack. The first is tested. The second is not. The first one makes it so that if you set a post limit for custom avatars, premium members are exempt from that limit. On my board, members need 200 posts to use custom avatars but premium members can use them no matter how many posts they have. The second one makes it so that if you disable custom avatars entirely for your normal members, premium members can still use them. I have not tested the second one and will rely on some brave soul to do so. I will happily fix any bugs. Amy |
Quote:
To do what you want to do, try this: In online.php Find: Code:
} else if (($mod["$key"] or $user['usergroupid'] == 5)and $highlightadmin) { Code:
} else if ($user['premium'])and $highlightadmin) { Amy |
u r a star ! and all this without usergroups thanks ever so much !
|
cant get icon to work ! i will not put it in onlin.php but i would like it to go in index so it shows up next to the username in forum home whosonline
|
OK. This one is easy.
In index.php Find: (twice) Code:
eval("\$activeusers = \"".gettemplate('forumhome_loggedinuser')."\";"); Code:
if ($loggedin['premium'] == 1 and $highlightadmin) { |
shes back wiv another quality addon ! hoope this wors /me opens smart ftp
|
doesnt seem to be working :S :s my index is soooo hacked and jam packed wiv crap that i just cant do it :( if i pm u the file wood u b able to do it , plus i can only find ONE instance of teh stated text :|
|
email me the file. You can go to my website and grab the contact email address and mail it there.
Amy |
thanks alot ps dont get me wrong im not no n00b i just cant figure it out as index is sooo hacked :( thanks ocne again 4 helpin me
|
can u pls help me with
premium mebers can set custom titles but normal cant ? |
I'll look at it for ya tomorrow, ok? Gotta work tonight and I don't want to start ripping code apart if I won't have time to finish it.
Amy |
ok thanks very much !
|
Quote:
Amy |
Works like a charm :D
im looking 4 ward to more additions ! cheers amy |
:D im back , how bout forums that only premiums can view so they can chat amongst themselves ?
|
All times are GMT. The time now is 12:50 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|