Easy PHP Calendar - We really take care of your dates!


Go Back   Easy PHP Calendar > General Discussion > Customizations (Themes / Templates)

Customizations (Themes / Templates) Help with customizing the themes and templates. Post your own custom themes for others to enjoy.

Closed Thread
 
Thread Tools Search this Thread Display Modes

Possible bug in Multi-Calendar???
Old 08-22-2006, 10:06 PM   #1
tmcashan
Calendar User
 
tmcashan is offline
Join Date: Aug 2006
Posts: 6
Default Possible bug in Multi-Calendar???

After nearly pulling my hair out it looks like $epcMultiPad does not pass it's variable like it's supposed to. I used the following:

<?php
$MULTI=1;
$epcMultiWidth = "100%";
$epcMultiPad = 0;
$epcMultiNav = "0px";
$epcMultiCol = 1;
$epcMultiRow = 3;
require ("calendar/calendar.php");
?>

$epcMultiPad = X;
Set X to the amount of padding (in pixels) to use in the table cells.

However, the table that gets created does not listen to the variable it is "supposed" to be getting passed.

You can see an example here: http://goyouth.org/events.php

The code looks like:
<table width="100%" border="0" cellspacing="0" cellpadding="10">

The 10px cellpadding in the right side table is jacking the alignment of the page. I just want the table to receive it's intended padding.

All help is very much appreciated and thanks in advance for your time and support.

Sincerely,
Travis
 

Old 08-23-2006, 07:21 AM   #2
ve9gra
Support Team
 
ve9gra's Avatar
 
ve9gra is offline
Join Date: Jun 2003
Location: New Brunswick, Canada
Posts: 4,965
Default

I can't really offer much help for that problem, Brian could, but I just wanted to say that that template is absolutely gorgeous!
__________________
-- Gervais
EPC Tutorials... We're here to help!
Offering custom integration services. Contact me here.
* Not affiliated with EasyPHPCalendar or NashTech Inc.
 

Old 08-23-2006, 10:52 AM   #3
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,878
Default

I'm not sure exactly what you're describing... But, can you not use the multi-calendar generator and place three calendars on the page with require statements and make them align just the way you want?
__________________
-- Brian

Questions?

Instructions: Version 6 - Version 7 | FAQ | Errors FAQ | Paths FAQ | Forums | Support
| Web Site Hosting
 

Old 08-23-2006, 03:08 PM   #4
ve9gra
Support Team
 
ve9gra's Avatar
 
ve9gra is offline
Join Date: Jun 2003
Location: New Brunswick, Canada
Posts: 4,965
Default

What he means is that he's set $epcMultiPad to 0, but the cellpadding for the table is still 10.

Or does $epcMultiPad control the cellspacing instead?
__________________
-- Gervais
EPC Tutorials... We're here to help!
Offering custom integration services. Contact me here.
* Not affiliated with EasyPHPCalendar or NashTech Inc.
 

???
Old 08-23-2006, 06:50 PM   #5
tmcashan
Calendar User
 
tmcashan is offline
Join Date: Aug 2006
Posts: 6
Default ???

"I'm not sure exactly what you're describing"

Did I not use documentation, links to actual coded pages, and code snippets from those pages to describe my problem?

What are you describing when you say "can you not ... make them align just the way you want?

On your marketing site it says "have complete control over how the calendar looks and interacts with users"

All I am wondering is what $epcMultiPad is supposed to do. If I put in 1000 it will correctly create a table with cellpadding at 1000px, like so:

<table width="100%" border="0" cellspacing="0" cellpadding="1000">

If I put in 0 it will make the table have cellpadding 10px???

<table width="100%" border="0" cellspacing="0" cellpadding="10">

If the minimum is 10 then I'll have to figure out another way to do this. If you tell me it's a bug then I'll work around it and wait for it to get fixed. Either way is fine with me.
 

Old 08-23-2006, 07:55 PM   #6
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,878
Default

1 is the minimum for padding. What I was suggesting was to add the calendar three times to your page so you can "have complete control over how the calendar looks and interacts with users". The multi-calendar generator is just a helpful tool to do this, but it is also easily done manually and allowing more control over the final outcome.

If setting this variable to 1 doesn't work, please follow my earlier suggestion. If that will do what you wish, I can tell you how to make each month increment over the previous (which is just adding 1 to the $mo variable before each require).
__________________
-- Brian

Questions?

Instructions: Version 6 - Version 7 | FAQ | Errors FAQ | Paths FAQ | Forums | Support
| Web Site Hosting
 

Thanks...
Old 08-24-2006, 01:19 AM   #7
tmcashan
Calendar User
 
tmcashan is offline
Join Date: Aug 2006
Posts: 6
Default Thanks...

Brian,

I appreciate your input. I didn't see the $mo variable in any of the documentation. That worked just fine. I used the following instead of multi-calendar and it obeys my css.

<?php
$mo = date("m");
require("calendar/calendar.php"); ?>
<?php
$mo = date("m")+1;
require("calendar/calendar.php"); ?>
<?php
$mo = date("m")+2;
require("calendar/calendar.php"); ?>

So thanks again. Problem solved.
 
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Multi Calendar Mode....... bradphipps General 1 06-24-2006 03:11 PM
Multi Calendar Display jaystorr General Support 1 05-18-2006 10:05 AM
multi calendar soimafreak General Support 4 11-21-2005 09:23 AM
Property Calendar - multi user Jon General 0 07-27-2005 12:08 AM
Multi calendar at top of page donmarvin General 5 06-04-2005 01:35 PM



All times are GMT -4. The time now is 04:56 PM.


vBulletin skins developed by: eXtremepixels
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright 2009 NashTech, Inc.

| Home | Register | Today's Posts | Search | New Posts |