A place to post questions and ideas about SuperCali PHP Event Calendar
You are not logged in.
I am pleased to announce the release of SuperCali 1.0.6. This version is intended to improve script performance by reducing the number of database calls. It also addresses some bugs with regard to user permissions to view events.
Due to popular demand, I've also included a new module, "Upcoming", which is designed to be included within another Web page to show a list of upcoming events. Be sure to take a look at configuration and usage instructions included in the file.
You can download the 1.0.5 to 1.0.6 patch files here:
http://supercali.inforest.com/downloads.php
Best Regards,
Dana C. Hutchins
Inforest Communications
Offline
Awesome!!! I am soo happy the permissions work correctly now. This is great.
Crafty
Offline
Dana,
I love the new module but can't seem to figure out how to call the Upcoming events to a seperate web page. While I can manipulate html my expertise on php and includes is extremely limited. I may just not be seeing the instructions in a format that I understand, can you provide a sample of what I need to include in my html code to show the "upcoming events" on a seperate web page.
Thanks
Offline
OK, here is the PHP code for the outside page Put this where you want your list, assuming that your page is in the root Web folder and your calendar files are in a folder off of this called /calendar.
<?php
/* NOTE: To call this module within your code set $_REQUEST[o] to the ID of this module id shown in modules page of SuperCali. For example:
$_REQUEST[o] = 5;
$hideheader = true;
include "calendar/index.php";
unset($_SESSION[o]);
*/
?>
Offline
Hi Dana,
I've tried to get this working with my calendar and on my home page.
However nothing appears when I input the script.
Here is what I have in my source:
<?php
$_REQUEST[o] = 5;
$hideheader = true;
include "cal/index.php";
unset($_SESSION[o]);
?>
Offline
I think it might be that this page is not being parsed as PHP. Try renaming it index.php
Thanks,
Dana
Offline
> Rob wrote:
> Hi Dana,
I've tried to get this working with my calendar and on my home page.
However nothing appears when I input the script.
Here is what I have in my source:
<?php
$_REQUEST[o] = 5;
$hideheader = true;
include "cal/index.php";
unset($_SESSION[o]);
?>
Rod,
did you get it to work?
my website where I am testing this script is www.fwcnc.com/indexnew.php
and i am having the same issue. My module ID tho is 6. But I still get 0 results.
When I change my page to .pho I get:
Warning: main(): Failed opening '' for inclusion (include_path='.:/usr/local/lib/php') in /home/content/f/w/w/fwwoc/html/calendar/includes/start.php on line 28
Warning: mysql_connect(): Can't connect to local MySQL server through socket '/usr/local/mysql-5.0/data/mysql.sock' (2) in /home/content/f/w/w/fwwoc/html/calendar/includes/start.php on line 33
Could not connect to database, try again later
I have verified my settings and I know my db name and user are correct.
HELP!!!!!
Offline
It looks like the paths to the supercali files aren't being interpreted correctly, since these are relative links. I'll see about fixing this and issuing it in a few days.
Thanks,
Dana
Offline
> Dana C. Hutchins wrote:
> It looks like the paths to the supercali files aren't being interpreted correctly, since these are relative links. I'll see about fixing this and issuing it in a few days.
Thanks,
Dana
Please let me know as soon as you do. I am trying to use it on our Church website that has recently been launched!.
Thanks!
Offline
Hi Dana,
I tried your suggestion of changing it to index.php
So this is what my script looks like:
<?php
/* NOTE: To call this module within your code set $_REQUEST[o] to the ID of this module id shown in modules page of SuperCali. For example:
$_REQUEST[o] = 5;
$hideheader = true;
include "index.php";
unset($_SESSION[o]);
*/
?>
It still gives me the same result, I even placed this HTML page in the root folder of the Calendar and it still came up with nothing.
Please find a screen shot of the error here: http://img367.imageshack.us/img367/7066/errorgb5.jpg
This was after renaming my HTML file to .PHP, it also changed the entire colour scheme lol.
If I keep the file to .HTML, no error appears, but nothing else appears either
Am going to try and rename my folder from Cal to calendar and see if that works.
Please can you try and fix asap ![]()
Thanks,
Rob
Last edited by Rob (2008-11-17 08:11 am)
Offline
> Rob wrote:
> Hi Dana,
I tried your suggestion of changing it to index.php
So this is what my script looks like:
<?php
/* NOTE: To call this module within your code set $_REQUEST[o] to the ID of this module id shown in modules page of SuperCali. For example:
$_REQUEST[o] = 5;
$hideheader = true;
include "index.php";
unset($_SESSION[o]);
*/
?>
It still gives me the same result, I even placed this HTML page in the root folder of the Calendar and it still came up with nothing.
Please find a screen shot of the error here: http://img367.imageshack.us/img367/7066/errorgb5.jpg
This was after renaming my HTML file to .PHP, it also changed the entire colour scheme lol.
If I keep the file to .HTML, no error appears, but nothing else appears either
Am going to try and rename my folder from Cal to calendar and see if that works.
Please can you try and fix asap ![]()
Thanks,
Rob
Rob,
If you read my post just after your initial, I bet you are having the same issue I am. See her response to me about the bug she has to fix.
I left my page as a php so she could see the errors. If I left mine as HTML it would appear as "all is ok just no results". When I changed to .php I had a page full of errors dealing with MySql and some other stuff.
Offline
Hi Whoneycutt,
I think we are experiencing the exact same error.
Hope we can resolve this quickly.
Regards,
Rob
Offline
Hey Dana,
Been awhile now, any idea as to why its still not working?
Offline
Sorry for the long delay, Version 1.0.7 fixes this, and is released today.
Offline
Dear Dana,
Even after installing the 2 files to update the version 1.0.6 to 1.0.7, I can not manage to call the upcoming events from another page. I get always redirected to the install.php and receive the FILE NOT FOUND message. (The requested URL /install.php was not found on this server).
When I check the code, I think this error occurs during the inclusion of includes/start.php where the code checks for the existence of config.php...
I don't know how to fix this problem. Can you help, please.
Thanks.
Offline
Sorry, it works perfectly now!
In fact, the new code to call the upcoming events from another page is in the new upcoming.php file and reads as follows:
/* NOTE: To call this module within your code set $_REQUEST[o] to the ID of this module id shown in modules page of SuperCali. For example:
$_REQUEST[o] = 5;
$hideheader = true;
chdir ("demo_calendar");
include "index.php";
chdir("../");
unset($_SESSION[o]);
*/
Thanks Dana for this wonderful product.
Offline
Hi again, Dana,
I noticed that while the upcoming events are being properly displayed in another website using the supplied code, the links don't point to the correct directory.
see www.bestnoticeboard.com. The links to the calendar events generated by the script are not correct. They should point to the directory \events where my calendar is installed!
I didn't manage to fix it. Can somebody help, please?
Thanks.
Offline
Hello,
You might see if $calendar_url is set in the config.php file. Let me know.
Dana
Offline
Yes, the $calendar_url is set to "http://www.bestnoticeboard.com/events/".
When you go directly to www.bestnoticeboard.com/events, the calendar is working perfectly and the links are correct. But when I call the upcoming events from another page, such as the homepage, then the links are no longer correct. I thought it might have something to do with the chdir command, but I don't know how to fix the problem!
Offline
OK, I found the bug.
On line 51 of modules/upcoming.php, add $calendar_url to the list of global variables:
global $title, $niceday, $start_time, $end_time, $venue, $city, $state, $cat, $color, $background, $ed, $usr, $o, $c, $m, $a, $y, $w, $lang, $ap, $status, $calendar_url;
I think that will fix it.
Dana
Offline
It works. Fantastic.
It is wonderful.
Thanks, Dana.
Sim.
Offline
To be fixed in version 1.0.8
Thanks,
Dana
Offline
Thanks Dana.
Offline