Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Calendar events on non-VB pages Details »»
Calendar events on non-VB pages
Version: 1.00, by wbear wbear is offline
Developer Last Online: Oct 2013 Show Printable Version Email this Page

Version: 3.5.2 Rating:
Released: 01-12-2006 Last Update: Never Installs: 29
Is in Beta Stage  
No support by the author.

This extension allows you to pull calendar events to display on a non-VB page. You'll need to change the first few lines to reflect your current site information, and look within the code for the site URL to change to your own. In this script, it occurs three times (DOMAIN.COM/FORUM_ADDRESS).

Needs to be on a page that is parsed for PHP content, either by way of naming the page '.php', or by using .htaccess to add it to the list of files that are parsed by PHP. [AddType application/x-httpd-php .html]

I've seen lots of requests for this, but couldn't locate anyone that had released one, so here goes (mods, if there is one like this, feel free to remove mine..I couldn't find it). The code was gathered from a number of sources long ago and slapped together by me. I don't know the full origin of each bit, so if you wrote any of this and want credit, go for it. In it's current (unpolished) state, it's been heavily adapted by me anyway, and there's room for improvement, certainly. It's inelegant code (an understatement), but works AFAIK.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #42  
Old 04-09-2006, 03:52 PM
Gizmo999 Gizmo999 is offline
 
Join Date: Dec 2005
Location: In my own virtual world
Posts: 126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #43  
Old 04-09-2006, 04:00 PM
opelgtman opelgtman is offline
 
Join Date: Jun 2005
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

make the file on here its own php page, then on your main page use a php include statement and it works fine
Reply With Quote
  #44  
Old 04-10-2006, 02:52 AM
rastyx rastyx is offline
 
Join Date: Feb 2006
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #45  
Old 04-15-2006, 09:54 PM
CocteauBoy CocteauBoy is offline
 
Join Date: Apr 2005
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #46  
Old 04-24-2006, 10:29 PM
MissKalunji's Avatar
MissKalunji MissKalunji is offline
 
Join Date: Aug 2003
Location: Canada
Posts: 2,845
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does this work? ornot? THanks!
Reply With Quote
  #47  
Old 05-02-2006, 03:53 PM
MamboCube's Avatar
MamboCube MamboCube is offline
 
Join Date: Jul 2005
Location: Cardiff, Wales
Posts: 95
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #48  
Old 06-01-2006, 08:39 AM
MamboCube's Avatar
MamboCube MamboCube is offline
 
Join Date: Jul 2005
Location: Cardiff, Wales
Posts: 95
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #49  
Old 06-01-2006, 11:29 PM
CocteauBoy CocteauBoy is offline
 
Join Date: Apr 2005
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

troy
Reply With Quote
  #50  
Old 06-01-2006, 11:50 PM
wbear wbear is offline
 
Join Date: Jan 2005
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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)
Reply With Quote
  #51  
Old 06-02-2006, 04:43 AM
CocteauBoy CocteauBoy is offline
 
Join Date: Apr 2005
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
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 11:38 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.04861 seconds
  • Memory Usage 2,307KB
  • Queries Executed 25 (?)
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
  • (5)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete