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

Reply
 
Thread Tools Display Modes
  #1  
Old 05-08-2005, 07:27 PM
Benj's Avatar
Benj Benj is offline
 
Join Date: May 2006
Posts: 180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default inserting info into the calendar tables

hi i want to insert calendar dates into the vb calendar via a custom script. could someone break down to me the tables i would need to insert data into for the custom script to work? and in what format eg date and user id ?
Reply With Quote
  #2  
Old 05-08-2005, 09:13 PM
Reeve of shinra's Avatar
Reeve of shinra Reeve of shinra is offline
 
Join Date: Oct 2001
Location: NYC
Posts: 1,896
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I started to work on something of my own but never got around to it. I'd be interested in seeing your script when done if you dont mind.

Here are the fields for the calendar table. If your looking to add holidays you will also need to add two phrases...

holiday_title_cal_SOMETHING

Something would be your designator like 'bqday' and would spit out the event name like 'Brookyln Queens Day'.


holiday_event_cal_SOMETHING

Same thing but for the description.

Code:
 Field   	Type  	Attributes  	Null  	Default  	Extra  
 calendarid  	int(10) 	UNSIGNED 	No  	  	auto_increment  
 title  	varchar(255) 	  	No  	  	  
 description  	varchar(100) 	  	No  	  	  
 displayorder  	smallint(6) 	  	No  	0	  
 neweventemail  	varchar(255) 	  	No  	  	  
 moderatenew  	smallint(6) 	  	No  	0	  
 startofweek  	smallint(6) 	  	No  	0	  
 options  	int(10) 	UNSIGNED 	No  	0	  
 cutoff  	smallint(5) 	UNSIGNED 	No  	0	  
 eventcount  	smallint(5) 	UNSIGNED 	No  	0	  
 birthdaycount  	smallint(5) 	UNSIGNED 	No  	0	  
 startyear  	smallint(5) 	UNSIGNED 	No  	2000	  
 endyear  	smallint(5) 	UNSIGNED 	No  	2006	  
 holidays  	int(10) 	UNSIGNED 	No  	0
Reply With Quote
  #3  
Old 05-09-2005, 08:25 AM
Benj's Avatar
Benj Benj is offline
 
Join Date: May 2006
Posts: 180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

what it is im going to be running vb along side jamroom (jamroom.net) (if anyone knows it) when adding an event usin there script i would like the event to also be added to the vb calendar.......

when addin an event with jamroom you imput

event name

event location

event text

event date

if i added this infomation into the following fields would it work

Quote:
Field Type Attributes Null Default Extra
calendarid int(10) UNSIGNED No auto_increment
title varchar(255) No
description varchar(100) No
or would i have to hard code my user ID into the custom script. also on my calendar i have some required custom fields what happens if i dont fill these in with this custom script ?


thanks for ya help

Benj
Reply With Quote
  #4  
Old 05-09-2005, 01:34 PM
Reeve of shinra's Avatar
Reeve of shinra Reeve of shinra is offline
 
Join Date: Oct 2001
Location: NYC
Posts: 1,896
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I assume you would want to hard code the Calendar ID (not user id) into the script. I am not sure what happens when you dont enter required fields. I guess since your entering it directly into the database, it would spit out the error message that the required fields are missing but only one way to find out
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 02:41 AM.


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.03569 seconds
  • Memory Usage 2,188KB
  • 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
  • (1)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (4)post_thanks_box
  • (4)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit_info
  • (4)postbit
  • (4)postbit_onlinestatus
  • (4)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_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