Version: 1.00, by wbear
Developer Last Online: Oct 2013
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.
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)
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.
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
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...
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.