PDA

View Full Version : Calender in a box in phpclanwebsite problem


swedx
01-16-2008, 10:26 AM
it is wrong whit the calender the calender is not centered and when it is not centered there will come an scroolbar also and i have tryied so many php pages to look throug and i cant solve the problem

i really hope somebody here could help me out

you can se the problem here at the front page at http://www.xcrisso.dk calender is placed in the lower left corner as an box

if you are going to need any logind data for admin and login data for ftp you can have it if you ask

m5l5
01-16-2008, 03:28 PM
You probably need a line to center your content

echo "<table width=\"100%\"><tr><td><div align=\"center\">";

Then for the width, that can be changed in the style sheet.

/calendar/theme/default/esstlye.css (If you using the default install)

/* Main Table Setup Incluidng Date Number Fonts, Size and Color */
.mainTable {
background-color: #000000;
border: 0px solid #000000;
width: 160px;
}
.navTable {
background-color: #252525;
border: 0px solid #000000;
width: 160px;
}

Then just edit the widths.

swedx
01-16-2008, 04:13 PM
where should i put the php code in the top

m5l5
01-16-2008, 04:18 PM
If you post the code to your block, then it will be easier to help.

My block

<?php
if (eregi("block-Calendar.php", $_SERVER['PHP_SELF'])) {
Header("Location: index.php");
die();
}
ob_start();
echo "<table width=\"100%\"><tr><td><div align=\"center\">";
if (!eregi("modules.php", $_SERVER['PHP_SELF'])) {
$thisFile="index.php";
}
require("calendar/config.inc.php");
//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
echo "<div id=\"EPCcalendar\" align=\"center\">";
$EPCajax=1; require("calendar/calendar.php");
echo "</div>";
echo "</div></td></tr></table>";
echo "<br>";
$content = ob_get_clean();
?>

However, I am using the AJAX feature, which requires an additional edit to /includes/custom_files/custom_head.php and add the following just before the ?>

$EPCAJAX=1; require("calendar/calendar.php");

http://www.easyphpcalendar.com/forums/showthread.php?t=7536

swedx
01-16-2008, 04:28 PM
is it okay if you get ftp connection

swedx
01-16-2008, 04:30 PM
[Admin Removed FTP Information]

Not a good idea to post this information publically, event if it is only temporary.

swedx
01-16-2008, 04:42 PM
m515

whats is your email then can sent you some ftp info


PS by the way admin i have made a backup and made an ftp account with limit acces