vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Calendar - Additional Events (https://vborg.vbsupport.ru/showthread.php?t=23385)

BabyU 07-22-2001 09:06 PM

I'm trying to create an additional calendar event specifically to show scheduled Chats. I want the chats to appear in a different style and also to be able to pull them over to the index page.

So far, I've accomplished all of this. My only problem is that I can't add a new Chat event. I have to go through phpMyAdmin and edit an existing event in the calendar_event table.

I've attached my calendar.php file for anyone that feels the urge to take a look. In the Public field of the calendar_events table, I have used public=3 to indicate a chat (with public=0 for public and public=1 for private).

I added templates called calendar_chatevent and calendar_chateventbutton. Everything works fine thus far. I can see my chat events in a different color and was able to pull them over to my index page via Mister's hack found at http://www.vbulletin.com/forum/showt...threadid=21232 .

The only problem is that I can not add a chat event directly from the calendar. I can only edit one through phpMyAdmin. I'm assuming that I'm overlooking something in the calendar.php file, but where do I indicate Public=3 for a chat? I still need to actually add the button to the template, but I didn't see any point until I figured out how to dictate that this particular button is for a chat event.

I've been staring at this all day, so if I'm not making sense, I apologize. Does anyone have any suggestions as to how to add an event other than public or private? Thank you in advance for any advice!

Here is what I have so far:
Calendar (chats in purple week of 7/22): http://www.babyuniversity.com/forums/calendar.php
Index page with today's chats:
http://www.babyuniversity.com/forums/index.php

BabyU 07-22-2001 10:14 PM

Sorry -- after reading through some additional posts, I realized I probably shouldn't have posted the calendar.php file, so I deleted the attachment.


All times are GMT. The time now is 08:03 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.01550 seconds
  • Memory Usage 1,711KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)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