View Full Version : Holiday/Event/Birthday Style Manager
-=Sniper=-
05-31-2006, 10:00 PM
############################################
##############--Bought to you by--###############
Talk Coding - Programming Forums
(http://www.talkcoding.com)
##########--Free / Premium vBulletin Solutions--#########
############################################
If you have my Happy Birthday Style Hack installed, you must uninstall it first before you install this one.
https://vborg.vbsupport.ru/showthread.php?t=109233
I think I should request hooks in the holiday manager, so it would make this hack easier, or they can even make it default, until then this should do.
I've not tested it fully, so consider it a beta.
Login -> admincp -> vBulletin Options -> Holiday/Event/Birthday Style Manager By Sniper
to make the required changes.
loads of styles here which you can use https://vborg.vbsupport.ru/forumdisplay.php?f=161
Sniper
EasyTarget
06-01-2006, 08:50 PM
sweet idea.
Quarterbore
06-01-2006, 09:50 PM
Thank You! I am installing this now....
The birthday mod has been greatly appreciated on my site!
Edit - Installed and working fine on my site... THANK YOU!!!
shadowevil
06-02-2006, 02:14 AM
good job ....but mod is work vbb 3.5.4 ??? *installed*
-=Sniper=-
06-02-2006, 10:33 AM
yes, I don't see why not.
Feckie (Roger)
06-02-2006, 11:15 AM
Thanks Was Waiting For This ...Awesome Job
Holidazed
06-02-2006, 12:40 PM
This is exactly what I requested. Awesome! Thank you.
Can you add 1 feature please?
An option in the ACP to disallow users from changing the style when a holiday style is in effect?
-=Sniper=-
06-02-2006, 12:54 PM
in the style settings, you can set "allow user selection" to no, this should do the trick.
Holidazed
06-02-2006, 02:01 PM
in the style settings, you can set "allow user selection" to no, this should do the trick.That stops them from selecting the holiday style, but not from selecting the main style when the holiday style is in effect.
-=Sniper=-
06-02-2006, 02:47 PM
hmm, have you tested this as admin or normal user?
so, you want to disable the dropdown menu in the footer which allows users to select the style?
Holidazed
06-02-2006, 03:42 PM
Both. I understand that as an admin, I can select any style I like, but when I logged out and looked at it as an unregistered user, I had the holiday style I wanted by default but was also able to change that style to the forum default.
-=Sniper=-
06-03-2006, 10:34 PM
ok, i will add it into next version.
fulviods
06-04-2006, 05:42 PM
I have 2 languages on my forum, italian and english. Italian=default language.
This hack work when english language is selected but not when italian language is selected... what do I have to do to make it work under the italian language?
fulviods
06-06-2006, 09:26 AM
no one knows? :-(
Quarterbore
06-06-2006, 10:39 AM
I realy don't understand why people can't just click off the "allow user select" button... That is what I did on my site and guests can't switch...
http://www.timeshareforums.com/?
Oh yea, this is my "666" theme modified from the "fire" theme on the style forums here... this was served up using this MOD just for today.
-=Sniper=-
06-06-2006, 11:31 AM
cool, glad its working well :)
fulviods: not sure why it could only work with english, PM access to your forums so I can have a look?
ryancooper
06-06-2006, 11:46 AM
Just wondering. Where does it take the date from? The users computer or the server?
Just wondering how I can test this?
Quarterbore
06-06-2006, 12:28 PM
Just wondering. Where does it take the date from? The users computer or the server?
Just wondering how I can test this?
I didn't know that until today... It works off te computer user's clock on their PC... I had members on the east coast USA talking about my 666 theme while members in other time zones were asking what they were talking about...
Last night was a late night for me but LOTS of fun with this mod!!!
http://www.timeshareforums.com/?
Note, my 666 theme is only for today so if you don't see flames, blood, etc you know why...
ryancooper
06-06-2006, 12:39 PM
Thats not good then. If i change my date on my comuter to my birthday nothing happenes. . . hmm will have to check it out.
Quarterbore
06-06-2006, 01:30 PM
It looks like I may he wrong...
I have my system set so that if it is the birthday the birthday should be primary... also, if I change the date my special 6/06/20006 theme does not show...
The difference must be the timezone offset AND NOT the PC's setting...
Sorry for the confusion (I didn't know)
Quarterbore
06-07-2006, 01:25 AM
OK, today was my first day of using this and I learned that some members really don't like when we play with things they are used to...
Is there a way that we could modify this script to allow a member to turn off this MOD in their usercp somehow? I know for ths to work it takes primary style authority so members can't just switch out so perhaps you can help me understand where I can code in an extra conditional like...
For example, perhaps I can create a new User Profile Filed (Single-Slection Radio Button) for:
Display Special Themes (YES/NO) with editable by user (YES), private (yes), seachable (no), and on member list (no) and a default to yes...
Then all we need to do is add a conditional for that user that says:
IF THIS PROFILE FILED == YES { DO THE CUSTOM THEME ;}
I just need a way to allow members to bail out if they wish...
mwouterse
08-18-2006, 01:34 PM
Sorry, but I don't understand where I have to upload this file
(product holidaystylemanager. xml) who can help me
mwouterse
08-18-2006, 01:52 PM
I am stupid, I already found it. Forget my first message. It works great now. THANKS!
Quarterbore
08-30-2006, 05:39 PM
OK, anybody using this in vB 3.6? I also plan to recode this and create a way for users to Opt Out of the special themes....
Wayne Luke
02-13-2007, 11:18 PM
Just installed and it is working for me on 3.6.4.
Just installed and it is working for me on 3.6.4.
That's good news!
The birthday hack works great!
I think this one will be even better....just in time for St. Patty's Day!
Thanks Sniper!
MysticMoon
07-24-2007, 10:42 PM
Hi,
Would it be possible to have a certain style show depending on a custom field date?
What I'm trying to do is have a romantic/love theme show on members anniversaries, which they input the date in a custom profile field.
thanks
gmattox
10-30-2007, 09:28 AM
I had this set to start last night, and now I can't get into my forums at all. Its throwing a database error, and I can't even log into my admincp. How can I get in to disable it or unistall it?
cdoyle
08-07-2008, 10:20 PM
Is there a 3.72 update to this?
I used to have this on my 3.5 forum and liked it, but it's not working now.
Quarterbore
10-30-2008, 04:56 PM
I reinstalled it on my 3.7.3 board and it works for me still.
I still wish there was a setting to allow a user to disable this via a profile field.
Quarterbore
10-30-2008, 06:32 PM
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:
yes
no
Set Default = yes
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!
UPDATE `PREFIXuserfield` SET
`YOUR-CUSOM-FIELD-ID` ='yes'
Step 3: Modify your plugin:
Open Plugin: [Holiday/Event/Birthday Style Manager]
Above first Line of Code Add:
if ($vbulletin->userinfo['userid'] > '0' AND $vbulletin->userinfo['YOUR-CUSOM-FIELD-ID'] == 'yes'){
After LAST line Add:
}
Now What?
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!
lilbill0005
12-03-2008, 05:39 PM
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!
Hey, thanks for what you posted, but, I have a question. Wouldn't your modification of this also disable the holiday system for guests?
Wouldn't it be wise to add something like:
else if ($vbulletin->userinfo['userid'] == '0'){
And then paste all of the original code again, and then add another } at the end?
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.
cloyal
12-07-2008, 12:30 AM
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.
lilbill0005
12-07-2008, 07:43 PM
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.
The birthday style only shows up for the person whose birthday it is. Unless you have it set to a particular date or event or something.
cloyal
12-07-2008, 11:58 PM
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.
lilbill0005
12-08-2008, 05:55 AM
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.
No problem.
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.
Merjawy
01-11-2012, 02:30 PM
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 :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.