vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   inserting info into the calendar tables (https://vborg.vbsupport.ru/showthread.php?t=81156)

Benj 05-08-2005 07:27 PM

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 ?

Reeve of shinra 05-08-2005 09:13 PM

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


Benj 05-09-2005 08:25 AM

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

Reeve of shinra 05-09-2005 01:34 PM

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 ;)


All times are GMT. The time now is 08:18 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.01865 seconds
  • Memory Usage 1,723KB
  • 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
  • (1)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete