PDA

View Full Version : Too many threads, too little time. Need set up help.


dlocher
06-20-2006, 02:38 PM
OK, I was about to hijack somebody else’s thread (http://www.easyphpcalendar.com/forums/showthread.php?t=4229), but I figured it would be easier to start a new one. (It get’s so confusing jumping around threads).

I am running the following:

Website (not live yet): www.gracelandbaptistchurch.org (http://www.gracelandbaptistchurch.org)
PHP 4.4.2
MySQL 4.1.19 Standard
PHPNuke v 7.9
Easy PHP Cal 6.3.21
Install folder of calendar: gracelandchurch.org/calendar
Install of PHPNuke: default
If it's important, I am running Autotheme on the site.


Quoting ve9gra from (http://www.easyphpcalendar.com/forums/showthread.php?t=4229):
1- Install the EPC package to /*your-php-nuke-root*/calendar/
2- upload block-Calendar.php to /*nuke-root*/blocks/
3- upload Calendar module folder to /*nuke-root*/modules/
4a- (for PHP-Nuke version 7.5) find /*nuke-root*/includes/my_header.php and add towards the bottom

Question 1: Line 3, what exactly is the calendar module folder?

Question 2: I have created the block, the problem with that is I just want a 7 day list to show, not the whole month. Perhaps 7 days in blog style. Problem is, I can't get it to stop showing the month. I edited block-calendar.php, but I can't seem to change it. Here is my block-calendar.php:
START_____________________________________
<?php

if (eregi("block-Calendar.php", $_SERVER['PHP_SELF'])) {
Header("Location: index.php");
die();
}

ob_start();

$OL=1; require ("calendar/calendar.php"); //required if you're going to use overLib
require ("calendar/calendar.php"); //the line that shows the calendar

// What's following is the section required for the listing
// Uncomment if you want the listing to appear.
// You will have to modify the escal/templates/monthly.php file accordingly
// so that it fits in your site.

$LIST=1;
$listWeeks=1;
$DF = "D - M d";
$template="blog.php"; //just specify the name of the template - no path!
//require ("calendar/calendar.php"); //display the list of events

$content = ob_get_clean();
?>
END______________________________________


Question 3: I would like something in my week view (block on left) to open the full-blown calendar as a module (trying to follow directions above).

Any help would be appreciated, I apologize for making this a new thread, I am sure the answers I need are in many other posts.

Feel free to email me if you'd like: david@dashcorptech.com

ve9gra
06-20-2006, 05:01 PM
Question 1 : Look at post #4 from that same thread you're quoting me

Question 2 : I'm not sure how to respond to this one as the CSS section is not included yet, and the require meant to show the list is commented out. So right now, you're getting a naked calendar and no list. (you'll need to complete item 4 in my quote to fix the CSS issue)

Question 3 : It should be possible, but it might be more intuitive to have just a list, using the list mode, in that week view, and then having just the calendar block that would load the calendar module.

If you want, I can complete the installation for you for a small fee. You can get a hold of me through the link in my signature.

dlocher
06-20-2006, 08:24 PM
Follow up:

Question 1: Installed the code and created the module. Works great now.

Question 2: I have the includes/custom_files/custom_head.php already with the following code:

<?php // Custom head section to include the ESCal CSS $CSS=1; require ("calendar/calendar.php"); ?>

Question 3: I added the following code to my block-calendar.php and I can click on the block and launch the now working module:

unset($epcAltLink); $epcAltLink="modules.php?name=Calendar";

So at this point it all seems to be working except for the list view in the block. Shouldn't this be in the block-calendar.php code? If I try to add a list view, it boogers the css for the rest of the site and doesn't display the list anyway. Any other thoughts?

BTW, when you say "Small fee", what exactly are we talking about? You can email me a reply to that question :)

ve9gra
06-21-2006, 07:44 AM
Question 1 : Great :)

Question 2 : This looks like you have it all on one line. This needs to be two lines, cut at the $. Otherwise, it's commented out by the first line.

Question 3 : You might want to enable the list and then have a look at what exactly it is that's messing up. By default the blog template is quite a bit larger than a side column was ever meant to be, so you'll have to adjust the width of the list. There might be some CSS elements that would conflict with others on your site, altough I doubt that it is the case as the templates use names that others wouldn't use.

I sent you an email.

dlocher
06-21-2006, 11:40 AM
Question 2: It actually is 2 lines, I didn't notice when I pasted it here, it took out the CR/LF.

Question 3: How exactly (what code do I need) do I enable list mode? I assume I need to do that in my block-calendar.php code, but when I add $List=1, it doesn't change the output. Here is my current block-calendar.php code:
start_____________________________________________ ________
<?php

if (eregi("block-Calendar.php", $_SERVER['PHP_SELF'])) {
Header("Location: index.php");
die();
}

ob_start();

//required if you're going to use overLib
$OL=1; require ("calendar/calendar.php");

//makes the whole calendar point to a TOC link
unset($epcAltLink); $epcAltLink="modules.php?name=Calendar";

//the line that shows the calendar
require ("calendar/calendar.php");

// Code below doesn’t seem to have any effect when changed
$LIST=1;
$DF = "D - M d";
$template="modern.php";
//Code above doesn’t seem to have any effect when changed

$content = ob_get_clean();
?>
END___________________________________________

Oddly enough, when I change the $template to something else, the main block doesn't change. It is almost as though this isn't the right file I need to be editing, or there is something in this code that makes it ignore the rest.

Like I said, at this point, all I need to do is make my block show a 7 day list view of upcoming events.

ve9gra
06-22-2006, 06:55 AM
Question 2 : I'm not sure what's going on, normally it should work. You might have to start poking around in the include files to figure out which file has been changed so to enable the loading of that file (custom_head.php).

Question 3 : the block is fine, you were missing two lines though.

// Code below doesn’t seem to have any effect when changed
$LIST=1;
$listWeeks=1;
$DF = "D - M d";
$template="modern.php";
require("calendar/calendar.php");
//Code above doesn’t seem to have any effect when changed