Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Holiday/Event/Birthday Style Manager Details »»
Holiday/Event/Birthday Style Manager
Version: 1.00, by -=Sniper=- -=Sniper=- is offline
Developer Last Online: Dec 2013 Show Printable Version Email this Page

Version: 3.5.2 Rating:
Released: 05-31-2006 Last Update: Never Installs: 23
Uses Plugins
Is in Beta Stage  
No support by the author.


############################################
##############--Bought to you by--###############

Talk Coding - Programming Forums

##########--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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #32  
Old 10-30-2008, 06:32 PM
Quarterbore Quarterbore is offline
 
Join Date: Mar 2005
Location: Valley Forge PA
Posts: 538
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:
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!

PHP Code:
UPDATE `PREFIXuserfieldSET  
`YOUR-CUSOM-FIELD-ID` ='yes' 
Step 3: Modify your plugin:

Open Plugin: [Holiday/Event/Birthday Style Manager]

Above first Line of Code Add:

PHP Code:
if ($vbulletin->userinfo['userid'] > '0' AND $vbulletin->userinfo['YOUR-CUSOM-FIELD-ID'] == 'yes'){ 
After LAST line Add:

PHP Code:

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!
Reply With Quote
  #33  
Old 12-03-2008, 05:39 PM
lilbill0005's Avatar
lilbill0005 lilbill0005 is offline
 
Join Date: Jan 2007
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Quarterbore View Post
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:
Code:
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.
Reply With Quote
  #34  
Old 12-07-2008, 12:30 AM
cloyal cloyal is offline
 
Join Date: Sep 2005
Posts: 56
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #35  
Old 12-07-2008, 07:43 PM
lilbill0005's Avatar
lilbill0005 lilbill0005 is offline
 
Join Date: Jan 2007
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by cloyal View Post
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.
Reply With Quote
  #36  
Old 12-07-2008, 11:58 PM
cloyal cloyal is offline
 
Join Date: Sep 2005
Posts: 56
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #37  
Old 12-08-2008, 05:55 AM
lilbill0005's Avatar
lilbill0005 lilbill0005 is offline
 
Join Date: Jan 2007
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by cloyal View Post
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.
Reply With Quote
  #38  
Old 01-11-2012, 02:30 PM
Merjawy's Avatar
Merjawy Merjawy is offline
 
Join Date: Sep 2002
Location: USA
Posts: 505
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:10 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04685 seconds
  • Memory Usage 2,293KB
  • Queries Executed 24 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (3)bbcode_php
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (7)postbit
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete