Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 03-25-2009, 01:30 PM
Outrack Outrack is offline
 
Join Date: Aug 2007
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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?
Reply With Quote
  #2  
Old 03-25-2009, 01:36 PM
TigerC10's Avatar
TigerC10 TigerC10 is offline
 
Join Date: Apr 2006
Location: Austin, TX
Posts: 616
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Outrack View Post
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:


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



Quote:
Originally Posted by Outrack View Post
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.
Reply With Quote
  #3  
Old 03-25-2009, 10:59 PM
Outrack Outrack is offline
 
Join Date: Aug 2007
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TigerC10
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.
Reply With Quote
  #4  
Old 03-25-2009, 11:38 PM
TigerC10's Avatar
TigerC10 TigerC10 is offline
 
Join Date: Apr 2006
Location: Austin, TX
Posts: 616
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Outrack View Post
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?

Quote:
Originally Posted by Outrack View 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.
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.
Reply With Quote
  #5  
Old 03-26-2009, 12:27 AM
Outrack Outrack is offline
 
Join Date: Aug 2007
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TigerC10
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?

Quote:
Originally Posted by TigerC10
... 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.

Quote:
Originally Posted by TigerC10
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.
Reply With Quote
  #6  
Old 03-26-2009, 01:56 AM
TigerC10's Avatar
TigerC10 TigerC10 is offline
 
Join Date: Apr 2006
Location: Austin, TX
Posts: 616
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Outrack View Post
This isn't for a large board.
But the folks at Jelsoft have to program for large boards in mind.

Quote:
Originally Posted by Outrack View Post
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/
Reply With Quote
  #7  
Old 03-26-2009, 02:32 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #8  
Old 03-26-2009, 03:57 PM
Outrack Outrack is offline
 
Join Date: Aug 2007
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TigerC10
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.

Quote:
Originally Posted by Lynne
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.
Reply With Quote
  #9  
Old 03-26-2009, 04:56 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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).
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 07:07 PM.


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.04214 seconds
  • Memory Usage 2,259KB
  • Queries Executed 13 (?)
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)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (12)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete