PDA

View Full Version : Happy Birthday Style


-=Sniper=-
02-28-2006, 10:00 PM
############################################
##############--Bought to you by--###############

Talk Coding - Programming Forums
(http://www.talkcoding.com)
##########--Free / Premium vBulletin Solutions--#########
############################################



WORKS ON 3.6 :)

I got this idea, as soon as I saw this style https://vborg.vbsupport.ru/showthread.php?t=109205, but so did other people!

Well anyway, in the admincp -> VBulletin Options -> Happy Birthday Style you can select the style you want to force on their birthday.

Again, If the code can be improved, please let me know :)

Let me know if it works for you guys or not!

Note: No need for screenshot since it changes the users style, if its their birthday and back the next day

How to install; login to admincp -> then import the product -> set the birthday style in the admincp -> happy birthday style

ronoxQ
03-01-2006, 07:23 PM
What a great idea for a user's birthday! Thanks a lot, installing now!

Holidazed
03-01-2006, 07:27 PM
This is awesome. I am using this in conjunction with the style at https://vborg.vbsupport.ru/showthread.php?p=913656#post913656

Thank you

Can you make it so the user and change styles after the initial birthday one is forced on them?

-=Sniper=-
03-01-2006, 07:36 PM
Can you make it so the user and change styles after the initial birthday one is forced on them?

sorry I don't understand what you mean?

Edit: do you mean, they can change it back even though its their birthday?

if so, yes its possible but would meaing adding another field to the database and then running an cron every 24 hrs to change the field back for the next birthday...

or if someone else a different method?

Webdude?
03-01-2006, 10:53 PM
You should add in holiday ones too.... ie: I want to automatically have a Christmas style on Christmas, etc, etc.

Hornstar
03-02-2006, 01:59 AM
You are awesome, that will make it really cool now when people have there birthdays.

Thanks

hbalagh1
03-02-2006, 02:02 AM
what a great idea :) installing

Holidazed
03-02-2006, 12:51 PM
You should add in holiday ones too.... ie: I want to automatically have a Christmas style on Christmas, etc, etc.

I agree, can you add additional calendar events with forced styles too? I would love to force christmas, easter, valentines day, fourth of july, etc.

MissKalunji
03-02-2006, 12:55 PM
I've been looking for something like that!! thanks a lot

Virtuosofriend
03-02-2006, 01:05 PM
great think!Absolutely great thing!

Phooey
03-02-2006, 02:33 PM
Awesome idea! As soon as I finish creating a new style for user's birthdays I'll be installing this.

:banana:

Lady Divus
03-02-2006, 09:29 PM
Hello,
First: Allow me to say awesome idea!
Second: I have a question!

I am currently using one style on my forum. If i install this along with another style for birthdays, can i leave my current style forced on the rest of my users?

Example: Today is John Doe's Birthday, so the birthday style is forced on him. But no one else can use the birthday style, meaning they cant even choose it in the style chooser if they wanted to...

I want to force a birthday style on the person celebrating a birthday, while enforcing my current style on everyone else! Is this possible?

I hope i am making sense with my question...Thank you in advance!

Lady Divus

-=Sniper=-
03-02-2006, 10:00 PM
Its a default vb feature I think, somewhere in the admincp theres a option to set, so users can't select styles. (I think anyway)

It works as you described.

Other suggestions have been great, I think its possible but I don't have the time to work on it (as I would have to learn more php/mysql) because of uni work/exams.

I think maybe adding a field to the events section would be better, so if you want you can assign styleid/s to any event you want?

Lady Divus
03-02-2006, 10:07 PM
Its a default vb feature I think, somewhere in the admincp theres a option to set, so users can't select styles. (I think anyway)

It works as you described.
-=Sniper=-, thank you for your reply. Yes, there is a vB option to not allow members to choose other styles. I currently am using that option. I was just worried that by not allowing members to choose a different style, that it may interfere with the forced birthday style. I am happy to know it will not interfere...

Thank you for answering my question. Be well -

Lady Divus Clicks Install!

childfun
03-02-2006, 10:14 PM
How can you tell if this is working? I hate to sound dumb, but I installed it and then tried setting my birthday to today, and it didn't work.... What do I have to change to make the correct style come up (you are talking to a total novice here.....sorry!)

-=Sniper=-
03-02-2006, 10:21 PM
yes, thats how you would test it.

I just tested mine and it works (changing my DOB to today), anyway make sure that you have a valid Style ID set in the admincp.

(edit: its possible, there might be a problem with date formats, but I think its unlikely)

anyway, if it doesnt work, PM with admincp details and I'll check it out.

cloyal
03-03-2006, 02:52 AM
Sorry, but how do I determine the style ID. I've installed this and have no idea how to determine this or what it is.

Rickie3
03-03-2006, 07:53 AM
wow i love it and using it *installed*

-=Sniper=-
03-03-2006, 08:54 AM
I will update it so, you can select the style from a dropdown menu, so no need to worry about the style id.

Edit: updated, now you can select the style from the dropdown in admincp -> happy birthday style

Virtuosofriend
03-03-2006, 11:23 PM
Sorry, but how do I determine the style ID. I've installed this and have no idea how to determine this or what it is.

admincp>style manager > (drop down list) All Style Options

cloyal
03-04-2006, 12:54 PM
I am using this hack.
https://vborg.vbsupport.ru/showthread.php?t=99402&highlight=random+logo

I imagine that is why this is not working since it starts the whole header in random. Not sure how I would edit this to accomodate the happy birthday on just the posters birthday.

evesve
03-05-2006, 02:44 PM
This looks great!

But...
I have my forum inside Subdreamer portal.
I can still change a Forum Birthday Style, but there will be a problem with the logotype.

There is no problem if I put a Birthday pic on top, over the logo.
But I canĀ“t change the default logo to a Birthday logo.

Am I right?????

caimakale
03-06-2006, 01:03 AM
This is only changing for admins on my site....not for regular users. Instead it changes their selected skin (I have 5 for them to choose from) to the forum default instead of the selected birthday skin. But for admins....it will switch from any style to the birthday skin. I have tested this with no cookies so I had to login, and on firefox and IE with the same results. I know I set the birthday correctly because the user I was testing with showed up as celebrating their birthday on the forumhome and in my vBaCMPS.

caimakale
03-06-2006, 01:43 AM
Ok...so put 1 & 1 together and what do you get....duh.

All hidden skins show up for admins all the time.

You can't hide the birthday skin from the users and then have it show up for them on their birthdays. I am sure there is a way around this I just haven't thought of it yet...I know I don't want this as a choosable skin, but I do want it displayed on their birthday.

-=Sniper=-
03-06-2006, 10:42 AM
caimakale; could you try the new version I just uploaded.

Disable the birthday style from user selection.

The birthday style should not appear, even though you have enabled user selection of other styles, only problem users still can't change the style until the end of the birthday.

Holidazed
03-06-2006, 12:44 PM
Disable the birthday style from user selection.

The birthday style should not appear, even though you have enabled user selection of other styles, only problem users still can't change the style until the end of the birthday.

I have v1.2 of this plugin and am having the same problem. I have disabled the user selection of the birthday style and it does not show up on their list. However, you cannot load the style directly by going to http://www.hidingplace.com/vbb350/index.php?styleid=5

This means that on their birthday, it does not work either.

Ideas?

-=Sniper=-
03-06-2006, 02:24 PM
it doesnt mean that, I suggest creating a test user.

Holidazed
03-06-2006, 02:52 PM
How do I make it so that I can use my brthday stylewith this plugin and not allow my users to select the style. It seems I cannot have it both ways.

-=Sniper=-
03-06-2006, 02:58 PM
you can! have you disabled the user selection of the style and created a test user to see if it works???

it has nothing to do with the way you change styles so using http://www.hidingplace.com/vbb350/index.php?styleid=5 is testing nothing.

Holidazed
03-06-2006, 03:04 PM
D'Oh! I was wrong. Sorry. It is working fine.

-=Sniper=-
03-06-2006, 03:06 PM
n/p :) glad its working.

caimakale
03-06-2006, 04:58 PM
caimakale; could you try the new version I just uploaded.

Disable the birthday style from user selection.

The birthday style should not appear, even though you have enabled user selection of other styles, only problem users still can't change the style until the end of the birthday.
The update fixed it. As far as not being able to change it...who cares, it's only one day you have to look at it. We can't cry and go change googles website on days they have added images etc. into the name to celebrate a holiday.

I am using the birthday style that is linked to this, it's actually a pretty good looking skin, I really hope people don't complain.

Holidazed
03-06-2006, 05:35 PM
Works awesome! Thank you.

I would really like to see this addon expanded to allow for forces styles on admin selectable calendar events though.

Is this in the works?

Kimah72
03-07-2006, 04:52 PM
admincp>style manager > (drop down list) All Style Options

Where do you place the style id once it is established? I'm also unable to have it default to the right style as it defaults to style 1. Can't wait for this to work for someone on their birthday! :)

Kimah72
03-08-2006, 02:08 PM
Well okay! I figured it out. No one said to go to the VBulletin options. You say in your instructions to go to admincp -> happy birthday style But it should say admincp -> VBulletin Options -> Happy Birthday Style.

So if anyone is looking for the drop down box, look in your Options. It's in the very last section below Plug In's/Hooks System. Very easy once you know where to go!

Thanks for the Plug In. It's very cool. I'm also on the same boat as wanting one to change for Holidays. :)

-=Sniper=-
03-09-2006, 02:57 PM
If someone can send me a list of the most wanted holiday/s. I can easily do it. However a more complicated one which lets you add it to your own events won't be possible yet.

also what if the users birthday is on the same day as the holiday, which do you want first, or shall i let the admins decide?

cloyal
03-10-2006, 03:00 AM
If someone can send me a list of the most wanted holiday/s. I can easily do it. However a more complicated one which lets you add it to your own events won't be possible yet.

also what if the users birthday is on the same day as the holiday, which do you want first, or shall i let the admins decide?


A decision by the Admin would be nice. I know some may want to honr poster birthdays over holidays and vice versa.

Quick question. How do I load the template and still keep my default. The last time I loaded the xml, it overwrote my default template and everyone had a happy birthday. Not sure what I did wrong, but this is the first time doing this type of install envolving a template like the Happy birthday.

(sorry still a relative newbie on this)

-=Sniper=-
03-10-2006, 02:26 PM
are you using the latest version? because its working fine at my end.

Barteken
03-10-2006, 03:45 PM
MY GOD this is awesome! sounds really promising! gonna install this one right away! Thx

Holidazed
03-10-2006, 04:11 PM
If someone can send me a list of the most wanted holiday/s.
The holidays I am interested in ar New Year's Day, Valentines Day, St. Patrick's Day, Easter, Veterans Day, 4th of July, Halloween, Thanksgiving and Christmas.

I can easily do it. However a more complicated one which lets you add it to your own events won't be possible yet.
I can wait, thank you

Also what if the users birthday is on the same day as the holiday, which do you want first, or shall i let the admins decide?
I think it should be an admin decision.

cloyal
03-10-2006, 05:49 PM
are you using the latest version? because its working fine at my end.


I'm using 3.5.4
I had to remove the xml file . Just not sure how to import this(birthday xml), because last time I over wrote my default, by accident. I am probably just being stupid, but would rather be safe then sorry.

Feckie (Roger)
03-10-2006, 08:48 PM
The holidays I am interested in ar New Year's Day, Valentines Day, St. Patrick's Day, Easter, Veterans Day, 4th of July, Halloween, Thanksgiving and Christmas.


I can wait, thank you


I think it should be an admin decision.


Don't forget ground hog day

Barbarian
03-11-2006, 06:02 PM
Sniper did an awesome job - very happy our skin is working out for a lot of people :)

IndeGuru
03-12-2006, 03:56 AM
I'm on an older version of vBulletin, 3.5.0 and I have everything installed. The skin works, I've gotten the mod uploaded but it's not appearing in my vBulletion Options drop down box so that I can force the style on a user's birthday. Any ideas or suggestions?

Feckie (Roger)
03-27-2006, 10:45 AM
Any Update On The Update

-=Sniper=-
03-27-2006, 01:57 PM
not had a chance to work on it yet because of uni, I will see if I can start it later on today.

CrashfAB
03-27-2006, 06:36 PM
I totaly dig this idea. I am 100% new at this and having a hell of a time to get the style to even upload--arg!! (did I mention I am new to this,lol).

So when I click the download button to get the style it opens up a new window of code. So am I supposed to save it as a .xml file then and upload it into my BBS? (I was going to just FTP it but the server is having hickups)..

Sorry for the noob stuff but I am still trying to get wet at this stuff...

cdoyle
03-31-2006, 08:34 PM
anyone know where to get a Birthday style that works with 3.50?

ryancooper
04-15-2006, 12:10 PM
not had a chance to work on it yet because of uni, I will see if I can start it later on today.


Thanks for putting time into these hacks! You all rock! As for holidays I think major ones would be great as well. Easter, christmas, st pattys day. Ect. . . Thanks for all your hard work!! :cool:

Dj megas
04-17-2006, 01:46 AM
need some help please with this one!!
I just cant see the birthday theme no metter what i do!
my site is
http://www.greekwave.net/forums/index.php
you can login with
user/test
pass/test
Thank you

Feckie (Roger)
04-19-2006, 03:02 PM
Thanks for putting time into these hacks! You all rock! As for holidays I think major ones would be great as well. Easter, christmas, st pattys day. Ect. . . Thanks for all your hard work!! :cool:


So Have You Had Any Luck With This

-=Sniper=-
04-20-2006, 01:22 PM
Sorry not yet, exams are close first one is on may 3rd - till the middle of May. From then I will start to work on it.

csidlernet
04-21-2006, 09:52 AM
thanks man

lordi
04-22-2006, 01:05 PM
sorry, but do u mean that this can let me select the H-B style to a specific user only?? for example it's ur bd and u r an effective user in my vb...can i easily go to the admincp and set the HB style just for u to see ???????

Quarterbore
05-05-2006, 12:21 PM
I agree, can you add additional calendar events with forced styles too? I would love to force christmas, easter, valentines day, fourth of july, etc.

If someone can send me a list of the most wanted holiday/s. I can easily do it. However a more complicated one which lets you add it to your own events won't be possible yet.

also what if the users birthday is on the same day as the holiday, which do you want first, or shall i let the admins decide?

:banana: I would love to see something like that!!!

Edit: Oh yea: Installed!!! I am using it on a 3.5.2 vB

Here is a list of holidays you might consider in the new version (Some I know may be hard to work out (Labor Day & Thanksgiving):


New Year's Day, January 1st.
Groundhog Day, February 2.
Valentine's Day, February 14.
St. Patrick's Day, March 17.
April Fools's Day, April 1.
Easter (here is a complicated way at doing easter calcs http://www.assa.org.au/edm.html#Method)
Memorial Day, last Monday in May
Flag Day, June 14th.
United States of America's Independence Day, July 4.
Labor Day, first Monday in September.
Columbus Day (traditional), October 12.
United Nations Day, October 24.
Halloween, October 31.
Election Day, Tuesday on or after November 2.
Veterans Day, November 11th
Thanksgiving Day, fourth Thursday in November.
Christmas Day, December 25th.

Now, I found this page that might help calculate some of the funky days...

http://www.smart.net/~mmontes/ushols.html

Pehaps a table with dates w/ year would work (IE Easter http://aa.usno.navy.mil/data/docs/easter.html )

Dr.Viggy
05-09-2006, 01:36 AM
very nice. works like a charm. *installed.

i do have one question though. i have a 2nd navbar plugin that doesn't show up in the birthday style. i didn't have to edit code to make it work on the default style though. i believe it was a product that was imported. will i have to manually update the navbar code for this style? (it's the first style i've added so far)

-=Sniper=-
05-09-2006, 10:04 AM
the style isn't mine (you can use any style you want) but yes you will have to edit it.

Dr.Viggy
05-09-2006, 10:12 AM
yeah i actually decided to give it about 10 seconds of work and time after i posted that and all is well now. i guess that's what i get for asking first and looking later. great style, looks cool

-=Sniper=-
06-01-2006, 08:21 PM
Just released a holiday/style/birthday style manager here https://vborg.vbsupport.ru/showthread.php?t=117353

Lqd
06-09-2006, 03:16 AM
I was wondering something,

But since I am a total nubber on vb... is it possible to duplicate the current style you have, and add something like the snow for xmas on that style only, of course replace the flakes with pies or presents or whatever you like...

Can this be done?

silentwille
06-19-2006, 05:58 PM
Hello,

It's possible to add this in vbulletin 3.0.12 (eg, with a conversion for 3.0.12) ??

Thanxs

mlbvb
08-10-2006, 03:36 PM
very nice. works like a charm. *installed.

i do have one question though. i have a 2nd navbar plugin that doesn't show up in the birthday style. i didn't have to edit code to make it work on the default style though. i believe it was a product that was imported. will i have to manually update the navbar code for this style? (it's the first style i've added so far)

When you import a new skin, you have to uninstall all of your products, upload the skin, and then reinstall the products to have them show up on the new skin (when your import the products, they go into all your current skins and edit the templates).

Quarterbore
08-30-2006, 05:36 PM
Does this work with 3.6? I had it on my 3.5.2 forums but I have been cautious about bringing all the extras back...

Holidazed
09-07-2006, 06:00 PM
Does this work with 3.6? I had it on my 3.5.2 forums but I have been cautious about bringing all the extras back...
I would like to know the answer to this too.

-=Sniper=-
09-07-2006, 06:44 PM
yes it does!

engager
10-20-2006, 04:20 PM
Yes, this works in v3.6.2 excellently! Much credit to you, -=Sniper=- ! A Nice hack indeed!

Tell me, can you make another xml so we can force other Styles onto whoever; when we want to show off new additional skins?

That would be great if you could do this!

Br.

theparentpack
08-08-2008, 09:50 AM
Any idea if this works with 3.7 pl2?

Welshy2008
08-24-2008, 06:28 PM
admincp>style manager > (drop down list) All Style Options



Hi Guys - I am running vB 3.6.8 Patch Level 2 and I thought I'd give this a go.


But - I am not getting anything. I have set my birthday to Today - but still nothing.


What exactly am I supposed to be seeing?

Welshy2008
08-24-2008, 06:33 PM
Plus the only option that I have in the drop down menu is "Default Style".

Merjawy
09-03-2008, 02:36 PM
great idea.. I have tried it on 3.7.2 and now on 3.7.3 and it works fine, members loving it

Thanks

wwolf27
09-03-2008, 04:10 PM
Very nice!!

JoyB
10-30-2010, 04:22 PM
Is there any chance this will be released for version 4.0.8 please? :)