|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
okay im an *IDIOT*
i dont know how, but i screwed something up... my calender looks like its graphical side is all gone, and the admin panel doesnt work. I have NO idea what happened.
www.washujsu.com ... click on Calender in the menu |
|
#2
|
|||
|
|||
|
RE: okay im an *IDIOT*
oh, and none of the clicking on days works, at all
|
|
#3
|
|||
|
|||
|
RE: okay im an *IDIOT*
Have you checked the paths. It looks like you lost the link to the css file for starters.
If you have installed into subfolders within your site you will need to change the paths, I dhad the same problem at first. In the cal_header find the line change the HREF="ltw_style.css" to HREF="../my calendarfolder/ltw_style.css" You may need the slashes the other way (mine's on a windows system)and include further subfolders if there are any. And if you renamed the css file cahnge 'ltw_style.css' to 'yourname.css' The non working links are probably for the same reason. Check those paths, particularly if you changed any file names. Hope that helps |
|
#4
|
|||
|
|||
|
RE: okay im an *IDIOT*
I feel like I messed something up when I added my own javascript - I think I deleted something that was supposed to be there, and certainly the "There is an error on this page" message indicates that has some validity.
I haven't changed any file names, but I'll double check on that. |
|
#5
|
|||
|
|||
|
RE: okay im an *IDIOT*
Do you think that is my problem as well?
I am trying to interface the calendar in this page: http://www.myyarnshop.com/schedule.php Here is the normal calendar page: http://www.myyarnshop.com/calendar/calendar.php I put this calendar on before the upgrade and don't want to change it yet, so can you help me with the 4.0 version? Thanks, Pat |
|
#6
|
|||
|
|||
|
RE: okay im an *IDIOT*
You've both got the same problem it seems.
Replace the original Java script or even reistall the original scripts is all I can suggest (That was what cured my original problems), sorry. prrk47002 will probably have the answer, I can vouch for his helpfullness. As for v4, I've only just started looking at it but its probably worth upgrading if you have to start from scratch. The updated code should help reduce errors when indstalling in different directories. And the new features look great. |
|
#7
|
|||
|
|||
|
RE: okay im an *IDIOT*
where is the original javascript? I looked for it... can't find it. I'm sure i accidentally deleted it when i added my own javascript.
|
|
#8
|
|||
|
|||
|
RE: okay im an *IDIOT*
I kept the orginial before I made changes:
echo "<SCRIPT LANGUAGE="JavaScript" type="text/javascript">n"; echo "<!--n"; echo "function launchsmall(url) {n"; echo "window.name = 'opener';n"; echo "remote = open(url, "", "resizable,status,scrollbars,width=" . $ltw_config['popup_small_width'] . ",height=" . $ltw_config['popup_small_height'] . ",left=" . $ltw_config['popup_small_left'] . ",top=" . $ltw_config['popup_small_top'] . "");n"; echo "}n"; echo "function launchbig(url) {n"; echo "self.name = "opener";n"; echo "remote = open(url, "", "resizable,scrollbars,width=" . $ltw_config['popup_big_width'] . ",height=" . $ltw_config['popup_big_height'] . ",left=" . $ltw_config['popup_big_left'] . ",top=" . $ltw_config['popup_big_top'] . "");n"; echo "}n"; echo "// -->n"; echo "</SCRIPT>n"; This didn't work for me either though. Pat |
|
#9
|
|||
|
|||
|
RE: okay im an *IDIOT*
Hello, there I got my to work! It was a directory issue. I had all my calendar files in the calendar directory and copied them to the main directory where my Schedule page is:
http://www.myyarnshop.com/schedule.php One other thing, for the Java script to open correctly I had to change it to this: <SCRIPT LANGUAGE="JavaScript" type="text/javascript"> instead of this: <SCRIPT LANGUAGE="JavaScript" type="text/javascript"> Take a look at my code on my schedule page. Hope you can get it to work! Pat |
|
#10
|
|||
|
|||
|
RE: okay im an *IDIOT*
The difference between having this:
<SCRIPT LANGUAGE="JavaScript" type="text/javascript"> and this: <SCRIPT LANGUAGE="JavaScript" type="text/javascript"> is where you place it in the file. When echoing a string in a PHP block, you must escape the quotes or echo thinks the string is done. So if your header file is: <html> <head> <SCRIPT LANGUAGE="JavaScript" type="text/javascript"> <!-- some code here --> </SCRIPT> </head> <body> <?php echo "body is here"; ?> </body> </html> You would NOT escape the quotes. But if it is set up like this: <?php echo " <html> <head> <SCRIPT LANGUAGE="JavaScript" type="text/javascript"> <!-- some code here --> </SCRIPT> </head> <body> body is here </body> </html> "; ?> Then you must escape the quotes... Does that help? |
|
#11
|
|||
|
|||
|
RE: okay im an *IDIOT*
Thanks for your help. 2 things were wrong: the javascript and the css
I copy and pasted the javascript you provided, but i couldnt figure out what was wrong with the css... so I just copy and pasted it into my general page-wide CSS, and it looks fine. I still get an error, although nothing appears to be wrong. I say problem solved... but it still looks bad to have it say javascript error at the bottom Again, www.washujsu.com if you feel like looking. Thanks for your help chums. |
|
#12
|
|||
|
|||
|
RE: okay im an *IDIOT*
Hello. I took a look at your page and you have two Java Scripts running on your page. I recently had a problem using more than one Java Script per page, and I would get java script errors. So what I did was put one into an SSI, and then everything was worked fine. Maybe you can experiment and put your slide show into an include and see if it clears up your calendar js error.
Just a thought - maybe someone will tell you I am wrong. Pat |
![]() |
| Viewing: Codewalkers Forums > Projects > ltwCalendar > okay im an *IDIOT* |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|