![]() |
Add-On for this mod!
I am preparing for a Halloween surprise for my members and I know that my "666" theme for June 6th, 2006 really upset a lot of members and there was no way for the members to OPT-OUT of my special styles so I have worked out a simple mechanism to allow my members to OPT-OUT of special styles as shown by this script. Step 1: Create a New User Profile Field Title: Use Special Event Styles Description: Do you wish to see special Holiday Website Styles. Options: Quote:
Field Required = yes, always Field Editable by User = yes Private Field = no Field Searchable on Members List = no Show on Members List Allow user to input their own value for this option = no Display Page: Options: other IMPORTANT - After you save this you need to look in the User Profile Field Managed and find the "name" of this new profile. On my site it is "field6"! the firections that follow you need to change the "YOUR-CUSOM-FIELD-ID" with YOUR field name! Make sure you don't mess this up in teh next step or you can overwrite something you don't want overwritten! Step 2: Run a Mysql Query to update ALL values in your database! IMPORTANT - Remember to check your PREFIX and use YOUR userprofile field! If you mess this up, there is NO WAY TO UNDO IT so I suggest a database backup! PHP Code:
Open Plugin: [Holiday/Event/Birthday Style Manager] Above first Line of Code Add: PHP Code:
PHP Code:
That is it, now users can go into their Options and change the value from yes to no and disable the style as shown on their birthday, holiday, or any other special day that this hack is used to redefine the style! |
Quote:
Wouldn't it be wise to add something like: Code:
else if ($vbulletin->userinfo['userid'] == '0'){ There might be an easier way to do this, or I might just be mistaken, but, I'm pretty sure this would turn it off for guests, and I don't want that. |
Is there any way to make this (more specific just the birthday style) show up for just the user who is having the birthday? Or does this do that? Reason being is if you have a large group the style will always be up more then the default. Not only that people may tire of the birthday theme really quick if it applies to all users.
|
Quote:
|
I installed this and it's great. The plus side is if a poster wants to resume from a normal style, he can change it, but the point of wishing him a happy birthday has been made. Love this hack, and thanks for the info lilbill.
|
Quote:
And as for my post above, I was thinking only the holiday portion of the code should be re-added outside of the conditional tags, because guests wouldn't have birthdays in the database. |
This is very old and I loved it back then and I love it now still
Color me crazy, but I just installed it on 4.1.10 and the darn thing still works :) Thanks EDIT: only the birthday portion works not the holiday :) |
All times are GMT. The time now is 08:41 AM. |
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:
|