The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Birthdays in Calendar
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? |
#2
|
||||
|
||||
Quote:
Whenever you edit/add a calendar, there are 3 sections displayed. Here's the 3rd section: View the calendar docs here: http://www.vbulletin.com/docs/html/calendars_managing 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. |
#3
|
|||
|
|||
Quote:
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. |
#4
|
||||
|
||||
Quote:
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. |
#5
|
|||
|
|||
Quote:
Quote:
Quote:
This attitude is unappreciated and entirely uncalled for. |
#6
|
||||
|
||||
But the folks at Jelsoft have to program for large boards in mind.
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/ |
#7
|
||||
|
||||
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. |
#8
|
|||
|
|||
Quote:
Quote:
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. |
#9
|
||||
|
||||
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).
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|