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)

Gizmo999 04-09-2006 03:52 PM

Quote:

Originally Posted by opelgtman
nevermind, i got it to work


How please?? it'll save me lots of time updating my website home if this works

opelgtman 04-09-2006 04:00 PM

make the file on here its own php page, then on your main page use a php include statement and it works fine

rastyx 04-10-2006 02:52 AM

Quote:

Originally Posted by opelgtman
make the file on here its own php page, then on your main page use a php include statement and it works fine

I've got the same problem ("Unable to add cookies, header already sent"), but only sometimes:

If my page is .shtml and include the hack as a server-side include
Code:

<!--#include virtual="/community_events.php" -->
<!-- this is the calendar_on_nonvb.txt file -->

ie http://www.tear.org.au/index-new.shtml

then the code works.

If my page is php and I use a php include it doesn't:
http://www.tear.org.au/index-new.php

I get an error relating to line 6 which is the first line after <title>...</title>. I can move this line, or change it (in index-new.php) but I still get the error referring to the whatever line of code comes after the html <title> tags.

I've found the line in vBulletin's includes/functions.php (line 1607)
Code:

eval(standard_error(fetch_error('cant_set_cookies', $filename, $linenum)));
which calls the error message we're getting, but it is beyond me what is triggering it or how to fix it.

Any help appreciated. I really don't want to change my index page back to .shtml. I've probably got 1000 pages linked to it as index.php

CocteauBoy 04-15-2006 09:54 PM

Hi!

I am so happy with this, but I've noticed a problem recently. For some reason, only one of my entries consistently gets translated as being a day LATER in the calender feed. I have deleted and re-entered it over and over and it still feeds as one day later. It's strange, because it is only that one event, no matter what date I post it.

Note: DST is in effect for both vBullletin and Subdreamer. Keep in mind that other events are not affected, for some reason.

Any suggestions as to what to fix?

Thanks!

Troy

PS otherwise, WONDERFUL hack here!

MissKalunji 04-24-2006 10:29 PM

Does this work? ornot? THanks!

MamboCube 05-02-2006 03:53 PM

i get this error

Fatal error: Call to a member function on a non-object in /home/****/public_html/forum/global.php on line 235

any ideas?

MamboCube 06-01-2006 08:39 AM

anyone know how to fix this error:

Fatal error: Call to a member function on a non-object in /home/****/public_html/includes/calendar.txt on line 2

this thing is really bugging me now

can anyone help?

--------------------------------------------------------
this is a block of code i have at the top of calendar.txt:

Code:

$events = $db->query ("SELECT UNIX_TIMESTAMP() AS dateline, dateline_from, eventid, title
                          FROM event
                          WHERE calendarid = 1 AND dateline_from >= UNIX_TIMESTAMP()

                          ORDER BY dateline_from LIMIT 10");

this is the second line in the file:
Code:

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

CocteauBoy 06-01-2006 11:29 PM

I guess no one is around to support this thread anymore? Too bad. This is a great mod.

troy

wbear 06-01-2006 11:50 PM

If you note the details above, it's unsupported. I didn't write this, but pulled a few similar bits of code I found to get it working for me and thought I'd share.

@MamboCube, do you have the rest of the code that allows it to connect to the VB database in that page as well? The code you gave is the same as mine, but it's missing the calls to VB...
Code:

chdir("forum/");
require('./global.php'); 
chdir("../");

(your folder names and paths may be different)

CocteauBoy 06-02-2006 04:43 AM

Okay, after hours upon hours of trying to get this to work, it just isn't going to happen.

For those considering using this, my experience has been this:

1. the formatting for the layout is awful and very tedious to alter
2. some events are fed to your non-vb page as being one full day ahead of its actual schedule (I have no idea why or how this happens to only certain events)
3. Recurring events are not fed to your non-vb page

For me, it has been a waste of time.

**clicks uninstall**

Very unfortunate... we really need something like this.


All times are GMT. The time now is 09:50 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.01313 seconds
  • Memory Usage 1,740KB
  • 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
  • (5)bbcode_code_printable
  • (2)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