![]() |
Quote:
How please?? it'll save me lots of time updating my website home if this works |
make the file on here its own php page, then on your main page use a php include statement and it works fine
|
Quote:
If my page is .shtml and include the hack as a server-side include Code:
<!--#include virtual="/community_events.php" --> 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))); 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 |
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! |
Does this work? ornot? THanks!
|
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? |
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 Code:
$events = $db->query ("SELECT UNIX_TIMESTAMP() AS dateline, dateline_from, eventid, title |
I guess no one is around to support this thread anymore? Too bad. This is a great mod.
troy |
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/"); |
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. |
for my website i use this
Code:
<?php i find this works just as well |
MamboCube: This actually worked on my CMS site, but it dosent display correctly. Its not in order and it will display old and out of date events. Is there a way to add a date and then order it from latest to oldest and have it remove the old events? I played around with it a bit but couldnt get it to work right with my limited knowledge. Thanks
|
have u put in this bit?:
Code:
order by dateline DESC LIMIT 10 |
If you want it to list it with the date, and not show events which have already passed, use this code
Code:
|
I have tried both of those options.
dateline dosent display in the correct order nor does dateline_from or to or really any other filds I tried. |
works for me... http://www.eternalbeats.net/home2.php
using the code i just pasted |
Quote:
|
no prob
if you wanna see it in action use http://www.eternalbeats.net/home.php now, i updated also if someone could help with code to retrive the custom fields, that would be dope |
Final workin Code also for 3.6
sorry for my poor english PHP Code:
LIMIT 10 say "show 10 dates" and is changebel |
I was looking for a way to display the calendar events from a specific calendar on certain sub-forums. I looked and looked and tried dozens of "working code" examples, but could NOT get anything to work properly.
I found the previous example code to be very close, but I kept having problems with the date, so I made a couple of modifications to get it to work the way I wanted. The following example will display the Calendar ID 3 events if the Forum ID is 3. This is done with two modifcations. A modification to the forumdisplay.php code and a modification to the ForumDisplay Template. I also set the number of event days to 45 because I have it set to '0' in the vb options. forumdisplay.php PHP Code:
I use the same events format as the one used for index.php and have inserted it into the forumdisplay template. ForumDisplay Template PHP Code:
This modification was installed on a board using 3.6.5. |
Maybe someone read this and could help me out
I tred this script bu it seems to be he doesn`t interpret UNIX_TIMESTAMP() It only shows me upcoming dates 1 day ahead. |
All times are GMT. The time now is 01:31 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|