PDA

View Full Version : Birthdays in Calendar


Outrack
03-25-2009, 01:30 PM
Is there any way to display birthdays on the yearly calendar view (calendar_year), as well as events? I was almost certain there was an option for this in the ACP's Options, but I can't find anything... :erm:

Also, is it possible to add custom birthdates to the calendar to mark the birthdays and ages of celebrities?

TigerC10
03-25-2009, 01:36 PM
Is there any way to display birthdays on the yearly calendar view (calendar_year), as well as events? I was almost certain there was an option for this in the ACP's Options, but I can't find anything... :erm:


Did you even look?

Whenever you edit/add a calendar, there are 3 sections displayed. Here's the 3rd section:
https://vborg.vbsupport.ru/external/2009/03/5.png

View the calendar docs here:
http://www.vbulletin.com/docs/html/calendars_managing




Also, is it possible to add custom birthdates to the calendar to mark the birthdays and ages of celebrities?

Yes, you can add celebrity birthdays. No, you can't automatically display their ages unless you write a special plugin for it. If you don't want to make a plugin, or if you don't want to get someone to make a plugin for you, then you will either have to create 1-time events that have the ages added or you'll have to just deal with not listing their ages.

Outrack
03-25-2009, 10:59 PM
Did you even look?
Is this kind of arrogance necessary? I've already checked those settings and ensured that "Show Birthdays on this Calendar" has been selected, and it appears fine in the Weekly and Monthly views, but not Yearly (as specified in my original post).

I'm assuming your second suggestion involves simply adding an event, which doesn't help at all. I could code a plugin, but I was hoping there was a feature or pre-existing mod that offered this to save me the trouble.

TigerC10
03-25-2009, 11:38 PM
Is this kind of arrogance necessary? I've already checked those settings and ensured that "Show Birthdays on this Calendar" has been selected, and it appears fine in the Weekly and Monthly views, but not Yearly (as specified in my original post).

Yes, yes it is. You weren't clear that it was displaying correctly in the weekly or monthly views in your initial post - you merely asked about the yearly saying it wasn't displaying (leading me and everyone else to believe the featured was turned off entirely). Next, only holidays display on yearly view of the calendar. Otherwise, on large boards, every single day would be underlined for an "event". What is the purpose of having a special event item on the calendar if the birthdays crowded it off out of view?

I'm assuming your second suggestion involves simply adding an event, which doesn't help at all. I could code a plugin, but I was hoping there was a feature or pre-existing mod that offered this to save me the trouble.

Then you should post in the mod request area, or ask if there's a mod in the general discussion area. This is a programming discussion.

Outrack
03-26-2009, 12:27 AM
You weren't clear that it was displaying correctly in the weekly or monthly views in your initial post - you merely asked about the yearly saying it wasn't displaying (leading me and everyone else to believe the featured was turned off entirely).I thought it went without saying as I specifically mentioned calendar_year - either way, would there have been any harm in simply confirming if it appeared correctly in other views, instead of assuming I was ignorant?

... on large boards, every single day would be underlined for an "event". What is the purpose of having a special event item on the calendar if the birthdays crowded it off out of view?This isn't for a large board.

Then you should post in the mod request area, or ask if there's a mod in the general discussion area. This is a programming discussion.Granted, I worded that poorly - if I could establish that there wasn't a feature/mod available I would have taken to coding one, and would have asked for programming assistance or guidance as I'm not entirely familiar with vB's structure. I'm assuming that is what this section is for?

This attitude is unappreciated and entirely uncalled for.

TigerC10
03-26-2009, 01:56 AM
This isn't for a large board.

But the folks at Jelsoft have to program for large boards in mind.

This attitude is unappreciated and entirely uncalled for.

Sometimes it's the only thing that keeps people sane when they aren't paid to offer support. It also helps lessons stick, for example I used to spell "ridiculous" incorrectly as "rediculous". I always made that mistake until a friend of mine made fun of me by saying "yellowiculous, blueiculous, greeniculous". Since that humiliation, I haven't spelled the word incorrectly.



If you want to make your own mod, review the manual and API. Put some code together and then come ask us for help if something isn't working right. You'll get a much better response.

http://www.vbulletin.com/docs/html/
http://members.vbulletin.com/api/

Lynne
03-26-2009, 02:32 AM
When I read your first post, I thought the same thing TigerC10 thought - that you just wanted to put birthdays on the calendar. Sometimes it helps to be a bit more verbose to let us know that you have already tried certain things.

But anyway, you will want to look at the file functions_calendar.php - the function construct_calendar_output I think specifically. You should look in the API (in Quick Links) and also read the code regarding it. I have a feeling you will need to modify the code directly instead of using any plugin.

Outrack
03-26-2009, 03:57 PM
Sometimes it's the only thing that keeps people sane when they aren't paid to offer support. It also helps lessons stick, for example I used to spell "ridiculous" incorrectly as "rediculous". I always made that mistake until a friend of mine made fun of me by saying "yellowiculous, blueiculous, greeniculous". Since that humiliation, I haven't spelled the word incorrectly.I fail to see how being rude is a justifiable way of retaining one's sanity, and I didn't come here seeking a misguided lecture. Whatever your intention, I'd rather focus on my initial objective of finding solutions to my problems.

When I read your first post, I thought the same thing TigerC10 thought - that you just wanted to put birthdays on the calendar. Sometimes it helps to be a bit more verbose to let us know that you have already tried certain things.Alright... Apologies for not elaborating much, I won't make that mistake again.

What I'm looking to do is have Birthdays appear on the Yearly calendar view in the same way that events appear, and display a link back to that specific day (/calendar.php?do=getinfo&day=date&c=1). I'm sure this can be done with a simple if/else statement, but I'm not sure exactly what to reference - vBadvanced offers this feature on the mini-calendar, but I couldn't find anything in the template that could help (adv_portal_calendar_day and calendar_smallmonth_day are virtually identical, so I genuinely have no idea what triggers it).

For adding celebrity birthdates, I'm looking for a way to create another entry under "Add New Event" that would be similar to the Recurring Events structure, but offer an annual counter attached to entries (like normal birthdays). Events already allow for backdated entries, so I figured this would be relatively easy to add as most of what's needed is already available... It goes a bit beyond the scope of my knowledge though, so I'm not sure if I'm oversimplifying it - if so, would it be possible to just convert the Recurring Event feature to handle this? I'm hoping this can be done through a few simple template edits, though if the addition would be more suited to the mod request area, please let me know.

I read through the Calendars segment on the Manual, but can't find anything that helps - I'm afraid I don't know how to effectively use the API, though I'll persist and see what I can do... Any help or guidance on the best way to structure it in the interim would be greatly appreciated.

Lynne
03-26-2009, 04:56 PM
I mentioned the file to look at and the function used. I've never really looked into the calendar code, so I can't offer and specifics for help. If vbadvanced does it, then just copy their code (I don't have vbadvanced, so I have no idea what they do).