The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Different Styles for Different Users
I just wanted to take the time to write up a conceptual "how to" allow different users to use different style sets. I am not writing up a specific hack because there is no one size fits all for this customization, and I also don't have time to support newbies right now.
For example, I have 2 premium style sets that do not have banners and that have most of my hacking work installed. Only my premium users can select those styles. In addition, my premium users can select any of the styles available to non-premium members. 1. The first thing to do is to add a column to your users table to indicate the user status. On my board, I have an integer column called "premium" that I set to 1 if the user is a paid member. However, with this system, it is possible to have more than one type of status. For example, you could set the value to 1 for your banner free surfers, 2 for your advanced feature surfers, etc. 2. Next is to set your styles so that they can only be used by the authorized users. Currently, in the database, there are two values for userselect in the styles table: 0 and 1. If the value is 0, the user cannot select it. If the style is 1, all users can select it. The trick is to make this value a higher integer for styles you only want used by certain people. On my board, I set userselect =2 for any styleset that should only be available for premium members. (I do this right within phpmyadmin) 3. Next, you want to tell global.php about your changes. Look for: PHP Code:
PHP Code:
4. The final step is to give authorized users access to the styles. Edit member.php so that: PHP Code:
PHP Code:
Conceptually, that's all there is to it. DO NOT TRY TO CUT AND PASTE the code I just showed you. You will need to work out your own variations based on how you set up your style hierarchy. My premium users have access to all styles. Yours might not. I hope this helps somebody. I have been running this hack for months now, and it works quite well. My premium members have 3 styles and my default members have 1. Any new hacks go into my premium styles for the most part. Amy |
#2
|
||||
|
||||
I forgot to note, I use this now instead of the hack that I wrote that allows admins to set a style as the default for a given usergroup. This hack gives my premium members choice instead of limiting them to one style.
Amy |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|