vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Happy Birthday Style (https://vborg.vbsupport.ru/showthread.php?t=109233)

-=Sniper=- 02-28-2006 10:00 PM

Happy Birthday Style
 

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

Talk Coding - Programming Forums

##########--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/showthrea...656#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

Quote:

Originally Posted by bitg
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

Quote:

Originally Posted by Webdude?
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

Quote:

Originally Posted by -=Sniper=-
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

Quote:

Originally Posted by cloyal
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/showthrea...ht=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

Quote:

Originally Posted by -=Sniper=-
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

Quote:

Originally Posted by -=Sniper=-
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

Quote:

Originally Posted by Virtuosofriend
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

Quote:

Originally Posted by -=Sniper=-
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

Quote:

Originally Posted by -=Sniper=-
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.

Quote:

Originally Posted by -=Sniper=-
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

Quote:

Originally Posted by -=Sniper=-
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.


All times are GMT. The time now is 04:55 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02642 seconds
  • Memory Usage 1,829KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (11)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete