PDA

View Full Version : modern.php


ScottR
09-23-2005, 11:53 AM
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

Brian
09-23-2005, 12:17 PM
Can you attach a copy of the modern.php file you have?

What should the max width be set to?

ScottR
09-23-2005, 01:13 PM
.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.

Brian
09-23-2005, 01:29 PM
Please Zip it up before attaching. :)

ScottR
09-23-2005, 01:44 PM
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.

Brian
09-24-2005, 11:34 AM
Is this better?

ScottR
09-24-2005, 12:20 PM
Is this better?

http://64.255.6.181/calendar3.php

No difference in the width from what it was.

Brian
09-24-2005, 12:28 PM
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;


}

ScottR
09-29-2005, 02:47 PM
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.

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;


}

Brian
09-29-2005, 02:57 PM
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...

ScottR
09-29-2005, 03:25 PM
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.

Brian
09-29-2005, 03:38 PM
The number is in the modern.php file. Please check the file on your server for the correct width setting.

ScottR
09-29-2005, 03:42 PM
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;
}

ScottR
09-29-2005, 03:51 PM
modern.php file is attached

Brian
09-29-2005, 03:56 PM
Please open a support ticket with your FTP information so I can take a look... :)

ScottR
09-29-2005, 04:20 PM
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;
}

Brian
09-29-2005, 04:34 PM
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?

ScottR
09-29-2005, 05:16 PM
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?

Brian
09-29-2005, 05:46 PM
You can use any combination of the various calendar modes on the same page. :)

ScottR
09-29-2005, 06:00 PM
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?

Brian
09-29-2005, 07:09 PM
Please attach your code for the page calendar3.php.

Brian
09-29-2005, 08:12 PM
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

Brian
09-29-2005, 08:13 PM
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"; )

ScottR
09-30-2005, 07:57 AM
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"); ?>

Brian
09-30-2005, 08:53 AM
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. :)

ScottR
09-30-2005, 10:13 AM
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

Brian
09-30-2005, 10:25 AM
Phew! I thought I was losing my mind there for a bit. :tounge_sm

ScottR
09-30-2005, 11:30 AM
Phew! I thought I was losing my mind there for a bit. :tounge_sm

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.

Brian
09-30-2005, 12:06 PM
Looks good! :thumbs_up

ScottR
09-30-2005, 02:49 PM
Looks good! :thumbs_up

:) happy now for sure