| Customizations (Themes / Templates) Help with customizing the themes and templates. Post your own custom themes for others to enjoy. |
 |
modern.php |
 |
09-23-2005, 11:53 AM
|
#1
|
|
Calendar User
ScottR is offline
Join Date: Sep 2005
Location: Huntersville, NC
Posts: 72
|
modern.php
I am still having a problem with where in the modern.php file to adjust the width setting to shorten the width of the text based info box below the calendar itself. It is just to wide and I need to shorten the width. Any help would be appreciated, thanks.
http://64.255.6.181/calendar3.php
|
|
|
|
09-23-2005, 12:17 PM
|
#2
|
|
EPC Developer
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,887
|
Can you attach a copy of the modern.php file you have?
What should the max width be set to?
|
|
|
|
09-23-2005, 01:13 PM
|
#3
|
|
Calendar User
ScottR is offline
Join Date: Sep 2005
Location: Huntersville, NC
Posts: 72
|
.php is not allowed to be uploaded via the board.
I'de copy and paste the code here but the board will probably reject it since there would be to many characters.
If you could tell me what line# of code I need to dealing with, that would help.
|
|
|
|
09-23-2005, 01:29 PM
|
#4
|
|
EPC Developer
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,887
|
Please Zip it up before attaching.
|
|
|
|
09-23-2005, 01:44 PM
|
#5
|
|
Calendar User
ScottR is offline
Join Date: Sep 2005
Location: Huntersville, NC
Posts: 72
|
file attached
add a comment statement where you make the change so I know what to change if the width is not just right, thanks.
|
|
|
|
09-24-2005, 11:34 AM
|
#6
|
|
EPC Developer
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,887
|
Is this better?
|
|
|
|
09-24-2005, 12:20 PM
|
#7
|
|
Calendar User
ScottR is offline
Join Date: Sep 2005
Location: Huntersville, NC
Posts: 72
|
Quote:
|
Originally Posted by Brian
Is this better?
|
http://64.255.6.181/calendar3.php
No difference in the width from what it was.
|
|
|
|
09-24-2005, 12:28 PM
|
#8
|
|
EPC Developer
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,887
|
Not sure the file was updated on your server?
The section below should read a width of 500 (not 680):
.tableListings {
width: 680px;
border: 1px solid #006699;
margin: 0px;
padding: 0px;
}
|
|
|
|
09-29-2005, 02:47 PM
|
#9
|
|
Calendar User
ScottR is offline
Join Date: Sep 2005
Location: Huntersville, NC
Posts: 72
|
That is what it says, I just checked. But the width of the text based info is still to wide. It needs to be much less as we need to put back the left side stuff we have on the other pages.
.tableListings {
width: 500px;
border: 1px solid #006699;
margin: 0px;
padding: 0px;
}
http://64.255.6.181/calendar3.php This is our test page.
http://64.255.6.181/ This page you will see the left side info that we need to put back in on the above page.
Quote:
|
Originally Posted by Brian
Not sure the file was updated on your server?
The section below should read a width of 500 (not 680):
.tableListings {
width: 680px;
border: 1px solid #006699;
margin: 0px;
padding: 0px;
}
|
|
|
|
|
09-29-2005, 02:57 PM
|
#10
|
|
EPC Developer
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,887
|
If you look at the source of ( http://64.255.6.181/calendar3.php), you'll see that it's still using 680 for the width.
So, something isn't uploaded correctly on the server for it to grab the updated file...
|
|
|
|
09-29-2005, 03:25 PM
|
#11
|
|
Calendar User
ScottR is offline
Join Date: Sep 2005
Location: Huntersville, NC
Posts: 72
|
Quote:
|
Originally Posted by Brian
If you look at the source of ( http://64.255.6.181/calendar3.php), you'll see that it's still using 680 for the width.
So, something isn't uploaded correctly on the server for it to grab the updated file...
|
Yes I see the 680 if I go to that web page and look at the code. If I download the calendar3.php file to my editor and search for 680 that number is no where to be found.
I even looked at calendar/calendar.php and same thing, no 680 can be found. I did update the modern.php to say 500 and not 680.
|
|
|
|
09-29-2005, 03:38 PM
|
#12
|
|
EPC Developer
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,887
|
The number is in the modern.php file. Please check the file on your server for the correct width setting.
|
|
|
|
09-29-2005, 03:42 PM
|
#13
|
|
Calendar User
ScottR is offline
Join Date: Sep 2005
Location: Huntersville, NC
Posts: 72
|
Quote:
|
Originally Posted by Brian
The number is in the modern.php file. Please check the file on your server for the correct width setting.
|
It was changed days ago but it is still not working. I have copied the exact code here.
.tableListings {
width: 500px;
border: 1px solid #006699;
margin: 0px;
padding: 0px;
}
|
|
|
|
09-29-2005, 03:51 PM
|
#14
|
|
Calendar User
ScottR is offline
Join Date: Sep 2005
Location: Huntersville, NC
Posts: 72
|
modern.php file is attached
|
|
|
|
09-29-2005, 03:56 PM
|
#15
|
|
EPC Developer
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,887
|
Please open a support ticket with your FTP information so I can take a look...
|
|
|
|
09-29-2005, 04:20 PM
|
#16
|
|
Calendar User
ScottR is offline
Join Date: Sep 2005
Location: Huntersville, NC
Posts: 72
|
Quote:
|
Originally Posted by Brian
Please open a support ticket with your FTP information so I can take a look... 
|
I have attached the modern.php as modern.zip to this. I have also copied and pasted the code here and as you see the code is set to 500 and not 680.
.tableListings {
width: 500px;
border: 1px solid #006699;
margin: 0px;
padding: 0px;
}
|
|
|
|
09-29-2005, 04:34 PM
|
#17
|
|
EPC Developer
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,887
|
The page is still using the original modern.php file... So, as far as the server is concerned, the modified modern.php file is not in the calendar/templates directory where it is expecting it to be...
Do you have more than one calendar install on the server?
Could you be uploading the file to the wrong directory?
Are the paths correct in the calendar.php file (if there is more than one install).
Is the page set to use the modern.php template and not another?
|
|
|
|
09-29-2005, 05:16 PM
|
#18
|
|
Calendar User
ScottR is offline
Join Date: Sep 2005
Location: Huntersville, NC
Posts: 72
|
Quote:
|
Originally Posted by Brian
The page is still using the original modern.php file... So, as far as the server is concerned, the modified modern.php file is not in the calendar/templates directory where it is expecting it to be...
It is in the calendar/templates/ directory.
Do you have more than one calendar install on the server?
NO
Could you be uploading the file to the wrong directory?
See above.
Are the paths correct in the calendar.php file (if there is more than one install).
NA
Is the page set to use the modern.php template and not another?
|
If it is not can the text based display and the standard calendar be used at the same time?
|
|
|
|
09-29-2005, 05:46 PM
|
#19
|
|
EPC Developer
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,887
|
You can use any combination of the various calendar modes on the same page.
|
|
|
|
09-29-2005, 06:00 PM
|
#20
|
|
Calendar User
ScottR is offline
Join Date: Sep 2005
Location: Huntersville, NC
Posts: 72
|
Quote:
|
Originally Posted by Brian
You can use any combination of the various calendar modes on the same page. 
|
That's good just like on http://64.255.6.181/calendar3.php where I am using both. Per my previous message the modern.php file is in the correct folder and as you saw the code for the width is correct. So what is wrong?
|
|
|
|
09-29-2005, 07:09 PM
|
#21
|
|
EPC Developer
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,887
|
Please attach your code for the page calendar3.php.
|
|
|
|
09-29-2005, 08:12 PM
|
#22
|
|
EPC Developer
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,887
|
The demo.php file is using the correct modern.php file. It must be something in the calendar3.php
http://64.255.6.181/calendar/demo.php
|
|
|
|
09-29-2005, 08:13 PM
|
#23
|
|
EPC Developer
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,887
|
Actually, you're not using the modern.php template on calendar3.php. What template file are you using?
(It's defined by $template="templateName.php"; )
|
|
|
|
09-30-2005, 07:57 AM
|
#24
|
|
Calendar User
ScottR is offline
Join Date: Sep 2005
Location: Huntersville, NC
Posts: 72
|
Quote:
|
Originally Posted by Brian
Actually, you're not using the modern.php template on calendar3.php. What template file are you using?
(It's defined by $template="templateName.php"; )
|
This came out of the calendar3.php file.
<?php $LIST=1; $listWeeks = 4; $DF = "D - M d"; $template="monthly.php"; $CSS=1; require("calendar/calendar.php"); ?>
|
|
|
|
09-30-2005, 08:53 AM
|
#25
|
|
EPC Developer
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,887
|
I didn't realize that you were using the monthly.php template instead of the default modern.php one. It's the monthly.php file that needs to be edited to reduce the size of the List Mode.
Try editing that file, and if you get stuck, please attach a copy of what you currently have here and we'll be glad to help.
|
|
|
|
09-30-2005, 10:13 AM
|
#26
|
|
Calendar User
ScottR is offline
Join Date: Sep 2005
Location: Huntersville, NC
Posts: 72
|
Quote:
|
Originally Posted by Brian
I didn't realize that you were using the monthly.php template instead of the default modern.php one. It's the monthly.php file that needs to be edited to reduce the size of the List Mode.
Try editing that file, and if you get stuck, please attach a copy of what you currently have here and we'll be glad to help. 
|
Sorry for all the confusion but I should have sent you the code I had in the php file to inform me. I made the change from 680 to 500 and it worked just fine. http://64.255.6.181/calendar3.php
|
|
|
|
09-30-2005, 10:25 AM
|
#27
|
|
EPC Developer
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,887
|
Phew! I thought I was losing my mind there for a bit.
|
|
|
|
09-30-2005, 11:30 AM
|
#28
|
|
Calendar User
ScottR is offline
Join Date: Sep 2005
Location: Huntersville, NC
Posts: 72
|
Quote:
|
Originally Posted by Brian
Phew! I thought I was losing my mind there for a bit. 
|
No not at all :-) Just a little confusion here and there. Anyway here is the final layout http://64.255.6.181/calendar.php
Thanks for all your help and patient by the way.
|
|
|
|
09-30-2005, 12:06 PM
|
#29
|
|
EPC Developer
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,887
|
Looks good!
|
|
|
|
09-30-2005, 02:49 PM
|
#30
|
|
Calendar User
ScottR is offline
Join Date: Sep 2005
Location: Huntersville, NC
Posts: 72
|
Quote:
|
Originally Posted by Brian
Looks good! 
|
 happy now for sure
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -4. The time now is 02:56 PM.
|