| View previous topic :: View next topic |
| Author |
Message |
jwallace Guest
|
Posted: Wed Sep 25, 2002 10:20 pm Post subject: imagery for the calendar |
|
|
I was able to get the calendar up...but to make it work I had to place the db_connect file into a phpinc folder. Because of this I do not have a includes folder. This does bring me to a new issue though...
I wanted to be able to place a header and buttons to the top of my calendar page, but I am a little confused on how to do that. I read the readme file and I have tried to direct the header to where my images are...but to no avail. First...I placed the path between the "DOCUMENT_ROOT" part of the file and then I tried making a top.php file and and then I replaced the /top.php file part with a path leading to my imagery...but no matter what I do it doesn't seem recognize it. I have been making sure I type "yes" for the includes section. I cannot place the files in the phpinc directory like the db_connect because it gives me all kinds of errors. Yet even if I add an includes folder I still get the same error.
The error I get is as follows:
Warning: Failed opening '/virtual/puca/public_html/top.php' for inclusion (include_path='/virtual/puca/phpinc') in /virtual/puca/public_html/calendar/index.php on line 82
Can you give me an example of how I should set up the following line of code in the config.php file so I know if I am doing something wrong. Or better yet is there a way I can change the code so I can add html to the index.php so it doesn't give me header errors and limiter errors.
These are the lines in the config.php file:
$use_includes = "yes"; // use header and footer files for site-wide formatting? (yes/no)
$header = getenv("DOCUMENT_ROOT")."/top.php"; // used for page formatting - header file path & name
$footer = getenv("DOCUMENT_ROOT")."/bottom.php"; // used for page formatting - footer file path & name
Also...I can not gain access into the admin section...it keeps saying my password is good...and then gives the message that I am being redirected.
I went in and changed the $custom_session = to FALSE like the documents stated but it still will not allow me to gain access.
Thanks for your help.
Jason |
|
| Back to top |
|
 |
Dan Admin / Developer

Joined: 19 Feb 2001 Posts: 2057
|
Posted: Wed Sep 25, 2002 11:15 pm Post subject: |
|
|
Hi Jason,
Where did you place the top.php and bottom.php files? From the error message you provided, it appears the corresponding server paths and URLs would be:
/virtual/puca/public_html/calendar/
http://www.yourdomain.com/calendar/
/virtual/puca/public_html/
http://www.yourdomain.com/
Which means top.php must reside in the /public_html/ directory ("web root") in order to be accessed with the include file paths the way you have them set. Is this what you have? If so, we can try something different like:
$header = "../top.php";
$header = "/virtual/puca/public_html/top.php";
It's possible DOCUMENT_ROOT is undefined on your server setup, which would explain the problem. As for the admin login issue, can you provide specifics of your server setup, such as UNIX or NT, PHP version, which MyCalendar version you are using, and anything else that may be of relevance?
Cheers,
Dan |
|
| Back to top |
|
 |
jwallace Guest
|
Posted: Thu Sep 26, 2002 8:16 am Post subject: specs on server |
|
|
First I would like to say thanks for your help on the headers.
I am using the MyCalendar version 2.2ob3
As far as the setup of the server the specs are as follows:
The operating system is Red Hat Linux
They run the Apache web server, version 1.3.12, Perl 5.6, PHP 4, and MySQL 3.23.
Hope this helps.
Thanks again,
Jason |
|
| Back to top |
|
 |
Dan Admin / Developer

Joined: 19 Feb 2001 Posts: 2057
|
Posted: Thu Sep 26, 2002 8:45 am Post subject: |
|
|
I take it the header/footer is working now?
| Quote: | | They run the Apache web server, version 1.3.12, Perl 5.6, PHP 4, and MySQL 3.23. |
That all looks good, but do you konw the specific PHP version? "PHP4" can mean an unfortunately large number of things. I've seen some hosts still running the 4.0 beta versions in production environments...
Cheers,
Dan |
|
| Back to top |
|
 |
jwallace Guest
|
Posted: Thu Sep 26, 2002 10:26 am Post subject: admin issues |
|
|
Yes...the headers & footers are working great!
The version of php the server uses is Php 4.06.
While I am at it...how which file do I modify to get
the bottom link colors to change....I want to use a
black background and the dark blue doesn't show
up too well.
Thanks,
Jason |
|
| Back to top |
|
 |
Dan Admin / Developer

Joined: 19 Feb 2001 Posts: 2057
|
Posted: Thu Sep 26, 2002 10:58 am Post subject: |
|
|
Hi Jason,
Thanks. I believe there are unresolved session issues with PHP 4.0.6 that may be causing the login problem, but I may need to take a look at your installation myself to be sure. Can you send me the URL and login privately?
The link colors are handled in css.php.
Cheers,
Dan |
|
| Back to top |
|
 |
jwallace Guest
|
Posted: Thu Sep 26, 2002 1:21 pm Post subject: information you requested |
|
|
Hi Dan,
I sent you an email with the information you requested.
Let me know if you need anything else.
Thanks,
Jason |
|
| Back to top |
|
 |
Dan Admin / Developer

Joined: 19 Feb 2001 Posts: 2057
|
Posted: Thu Sep 26, 2002 2:29 pm Post subject: |
|
|
Hi Jason,
Thanks. My internet connection has been down the past 3 hours, but it appears to be working fine now, so I'll take a look at your stuff as soon as I get back up and running.
Cheers,
Dan |
|
| Back to top |
|
 |
|