|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
ltw Calendar installation
I am have used install scripts that have sql, so I am not sure how to "Run ltw_stall.php" as in the instructions. How to I get this going in phpAdmin?
Thanks, Pat |
|
#2
|
|||
|
|||
|
RE: ltw Calendar installation
never mind, figured it out.
I don't know however, how to fit it into my existing web page. I did change the .css file for color, size, etc. And my calendar is working great. Pat |
|
#3
|
|||
|
|||
|
RE: ltw Calendar installation
Can you provide the URL to the web page? and the exact problems you are having?
|
|
#4
|
|||
|
|||
|
RE: ltw Calendar installation
Yes, I am sorry. The calendar is installed here:
http://www.myyarnshop.com/calendar/calendar.php I want to interface it with the design of the site maybe here: http://www.myyarnshop.com/schedule.php Appreciate the help! Thanks, Pat |
|
#5
|
|||
|
|||
|
RE: ltw Calendar installation
Nice looking site!
I'm going to assume that you know some HTML and PHP. I'm also going to refer to specific line numbers in the HTML SOURCE from I got from going to the http://www.myyarnshop.com/schedule.php link. It looks like the "content" is the only thing that changes and is placed in the table cell that starts on line 57 and ends on line 83. So, the question is, is there a single file or two that controls the HTML that is generated in lines 1 to 56 and then 83 to 100 (the end). If it is two files, then set the ltw_config['html_header_file'] to the top and ['html_footer_file'] to the bottom. And remember, that the config file points to where they are relative to where you have the calendar installed. You will also have to add the <SCRIPT>...</SCRIPT> section from the ltw_header shipped with the program to your header file to get the popups to work. If the format is controlled by one file, then you want to do the following: 1) add the <SCRIPT>...</SCRIPT> section from the ltw_header shipped with the program to your header file to get the popups to work. 2) in the calendar code, find the statements that include $ltw_config['html_header_file'] & $ltw_config['html_footer_file'] and comment them out. 3) in schedule.php, do a fopen (I think)("http://www.myyarnshop.com/calendar/calendar.php ") where you want the calendar to display. fopen handles "remote files" That should pretty much do it. |
|
#6
|
|||
|
|||
|
RE: ltw Calendar installation
Hi, Yes I do know HTML and a little PHP. I will follow your instructions and let you know. Thanks so much!
Pat |
|
#7
|
|||
|
|||
|
RE: ltw Calendar installation
Ok, I am having a bit of a problem. An answer to your question is that there is a single file and I will be using your one file instructions.
This is the page I want it on - I added the script for the pop up windows in the head, but may it is wrong: http://www.myyarnshop.com/schedule.php 2. In the calendar code I commented out - but maybe this is wrong as well. Here is a little section of that code for the header and I did the same for the footer: case 'month': default: <!-- include_once($ltw_config['html_header_file']); --> if(!isset($_REQUEST['month']) || $_REQUEST['month'] < 1 || $_REQUEST['month'] > 12 || !isset($_REQUEST['year'])) { $timestamp = time(); 3. In Schedule.php I am not real familar with fopen so I looked on this forum and put this: I am getting this error on the calendar: http://www.myyarnshop.com/calendar/calendar.php I have done a lot of php ssi, and my mind is thinking that's all this should be, but I not very good at this. Thanks, Pat |
|
#8
|
|||
|
|||
|
RE: ltw Calendar installation
Your comment syntax is wrong for PHP.
<!-- include_once($ltw_config['html_header_file']); --> should be // include_once($ltw_config['html_header_file']); (You used HTML commenting in a PHP block ) Also, change the line for the 'html_footer_file' Additionally, you may need to add an fpassthru()to get the calendar displayed (Not sure, never tried it) <?php $fd=fopen("http://www.myyarnshop.com/calendar/calendar.php",'r'); fpassthru($fd); ?> |
|
#9
|
|||
|
|||
|
RE: ltw Calendar installation
Hello, Oh I am sorry I am being such a pain! Here is what I got now: (I think we're getting closer!)
Here's the page I want it to display from: http://www.myyarnshop.com/schedule.php Here is the normal calendar page: http://www.myyarnshop.com/calendar/calendar.php Thanks, Pat |
|
#10
|
|||
|
|||
|
RE: ltw Calendar installation
Pat. I haven't forgot about you. Just been really busy, plus lost the P/S in my computer for a few days.....
|
|
#11
|
|||
|
|||
|
RE: ltw Calendar installation
Hello, sorry to hear about that. Thanks for all your help. Now, I copied all the calendar files in the same directory as:
http://www.myyarnshop.com/schedule.php But getting errors if I click on the month ahead or before. Also, can't login from there. Now, I still have a folder for "calendar" with the same files. Do you think I need to delete that? Because right now that one is working fine and I can log in and add to the calendar. http://www.myyarnshop.com/calendar/calendar.php I thought I was out of the woods, but still quirky. Thanks, Pat |
|
#12
|
|||
|
|||
|
RE: ltw Calendar installation
1) On the login, you have a typo in the javascript definition in your header file:
function launchsmall(url) { window.name = 'opener'; eremote = open(url,............. ^ drop the "e", it should be "remote" 2) On the formatting when going to another month. I'm not sure if there is an easy answer. The calendar was really designed to work as "calendar.php" and that is hardcoded into the script (in version 3). If not too long, can you post schedule.php, or email it to me? I can make a better determination as to what it will take to fix this if I can see that code. |
|
#13
|
|||
|
|||
|
RE: ltw Calendar installation
Hello, I sent you an email with the code. Hope you get it alright. I did fix the e in front of remote.
Pat |
|
#14
|
|||
|
|||
|
RE: ltw Calendar installation
Pat:
I did not get an eMail. Please register here so I can send you a private message with my home eMail address so you can send it directly. Thanks! |
|
#15
|
|||
|
|||
|
RE: ltw Calendar installation
Hello, I registered and sent you another email.
Pat |
![]() |
| Viewing: Codewalkers Forums > Projects > ltwCalendar > ltw Calendar installation |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|