vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Calendar events on non-VB pages (https://vborg.vbsupport.ru/showthread.php?t=105215)

Dave-G 01-25-2006 07:16 PM

LBmtb, have you tried moving the test.php file into the forum directory. remembering to change
Code:

chdir("forum/");
to
Code:

chdir("../forum/");

LBmtb 01-25-2006 07:28 PM

Same error.

Dave-G 01-25-2006 09:21 PM

wbear disregard PM, were using an external Calendar now, saves the problems.

wbear 01-25-2006 10:14 PM

Quote:

Originally Posted by Dave-G
wbear disregard PM, were using an external Calendar now, saves the problems.

Lol...wish I'd read this before the PM...
Disregard my forum signup, would you? Details in the PM.

LBmtb 01-26-2006 01:04 AM

I got it working!

This line
Code:

$events = $db->query ("SELECT UNIX_TIMESTAMP() AS dateline, dateline_from, eventid, title

                          FROM event

                          WHERE calendarid = 1 AND dateline_from >= UNIX_TIMESTAMP()

Looked at the wrong table because it didn't include the prefix to the table. So I merely added the prefix to the event table and changed the calenderid to the calender I wanted.
Code:

$events = $db->query ("SELECT UNIX_TIMESTAMP() AS dateline, dateline_from, eventid, title

                          FROM vb_event

                          WHERE calendarid = 2 AND dateline_from >= UNIX_TIMESTAMP()

and it worked. Here's the link to the test page

wbear 01-26-2006 01:19 AM

Good for you, LBmtb! Enjoy it...

Pouyan 01-29-2006 06:23 AM

Does this work with recurring events also?

RobAC 01-30-2006 01:10 PM

Has anyone tested this out in a .html file instead of PHP and if using a .htaccess file to parse PHP code in a .html file as suggested in the first post in this thread, does that cause any additional server load?

andreamarucci 01-31-2006 07:30 AM

This is one step ahead regarding my dream. To have also a minicalendar show up in non-vb pages. I'm talking about the mini calendar that is shown in the bottom of the calendar page. Do you think it's possible to have it in a non-vb page as well?

Freesteyelz 02-09-2006 02:27 AM

I'm currently trying to get this working on the forum home (without) having the use of Frames or iframes. Anyone has achieved it?


All times are GMT. The time now is 03:23 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.01911 seconds
  • Memory Usage 1,734KB
  • 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
  • (4)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete