PHP Web Host - Quality Web Hosting For All PHP Applications Free RavenNuke(tm) Add Ons
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
andrej
Hangin' Around


Joined: Sep 10, 2005
Posts: 48

PostPosted: Sun Apr 30, 2006 3:52 am Reply with quote Back to top

Ok.

I modified a calender script, which i found on the net and i made something ,which is goinf to be a weekly calender preview...

The problem is how to put it into nuke ?

If i create a block (html +javascript ) it works in Firefox, but doesn't in IE..


I have counteudo module installed..
If i paste the code in there it again works in Firefox, but doesn't in IE.
IF i make the code in a normal HTML page works both in Firefox and IE...

Do you have any idea, what this could have been.


links..
Only registered users can see links on this board!
Get registered or login to the forums!


(works FF, not IE )
Only registered users can see links on this board!
Get registered or login to the forums!


( same script, working)..

the thing is IE reports an error in line 447 and 206..
but the source code in view code shows there inm those lines there are codes like </td>
So i thought this could mean something in my .js file, which is included..
However lines 206 and 447 don't make any sense there either..

On top of that this calendar works on some old test install of phpnuke 7.6...

can be seen here..
Only registered users can see links on this board!
Get registered or login to the forums!

(bottom right )

can anyone help me out, pls ?
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

PostPosted: Mon May 01, 2006 4:19 am Reply with quote Back to top

You're mising a closing table tag. See if this work s better in IE:

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <title>
      Zelnik
    </title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="EXPIRES" content="0" />
    <meta name="RESOURCE-TYPE" content="DOCUMENT" />
    <meta name="DISTRIBUTION" content="GLOBAL" />
    <meta name="AUTHOR" content="Zelnik" />

    <meta name="COPYRIGHT" content="Vse pravice pridr�ane Zelnik" />
    <meta name="KEYWORDS" content="videm,jaklicev dom,klub,kultura,zelnik,mladi,Novice,mladina,dobrepolje,drustvo,mdd,kino,zabava,veselje,izziv,aktivnosti" />
    <meta name="DESCRIPTION" content="Ve&amp;#232; glav ve&amp;#232; ve" />
    <meta name="ROBOTS" content="INDEX, FOLLOW" />
    <meta name="REVISIT-AFTER" content="1 DAYS" />
    <meta name="RATING" content="GENERAL" />
    <meta name="GENERATOR" content="PHP-Nuke" />
<script type="text/javascript">
//<![CDATA[
<!--
function openwindow(){
 window.open ("modules/Conteudo/copyright.php","Copyright","toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=no,copyhistory=no,width=400,height=200");
}
//-->
//]]>
</script>
    <link rel="alternate" type="application/rss+xml" title="RSS" href="backend.php" />

    <link rel="StyleSheet" href="themes/fisubgreen/style/style.css" type="text/css" />
<style type="text/css">
/*<![CDATA[*/
 body {
  background-color: #E0F8E2;
  color: #006638;
 }
 div.c3 {text-align: right}
 p.c2 {text-align: right}
 div.c1 {text-align: center}
/*]]>*/
</style>
  </head>
  <body leftmargin="10" topmargin="10" marginwidth="10" marginheight="10">
    <table class="bodyline" width="100%" cellspacing="0" cellpadding="0" border="0">
      <tr>
        <td align="center" valign="top">
          <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>

              <td width="50%" height="110" bgcolor="#E0F8E2" align="center" background="themes/fisubgreen/images/cellpic_bkg.jpg">
                <a href="index.php"><img src="themes/fisubgreen/images/logo.jpg" border="0" alt="Zelnik" /></a>
              </td>
              <td width="50%" height="110" bgcolor="#E0F8E2" align="center" background="themes/fisubgreen/images/cellpic_bkg.jpg">
                <a href="index.php">&nbsp;</a>
              </td>
            </tr>
          </table>
          <table width="100%" border="0" cellspacing="0" cellpadding="0">

            <tr>
              <td bgcolor="#E0F8E2">
                <table width="100%" border="0" cellspacing="0" cellpadding="4">
                  <tr>
                    <td width="150" nowrap="nowrap">
                      <span>&nbsp;&nbsp;<a href="modules.php?name=Your_Account">Vstop</a> ali <a href="modules.php?name=Your_Account&amp;op=new_user">Registriraj se</a></span>
                    </td>

                    <td nowrap="nowrap">
                      <div class="content c1">
                        <strong>:</strong>&nbsp; <a href="index.php">Domov</a> <strong>:</strong> <a href="modules.php?name=Kalender">Koledar</a> <strong>:</strong> <a href="modules.php?name=Conteudo&amp;pid=25">Kontakt</a> <strong>:</strong> <a href="modules.php?name=gallery2">Galerija</a> <strong>:</strong> <a href="forums.html">Forum</a> <strong>:</strong> <a href="modules.php?name=Conteudo&amp;cid=6">Kino spored</a> <strong>:</strong> <a href="modules.php?name=Your_Account">Tvoj račun</a> <strong>:</strong> <a href="modules.php?name=Private_Messages">Zasebna sporočila</a> <strong>:</strong> <a href="modules.php?name=Your_Account&amp;op=logout">Odjava</a> <strong>:</strong>

                      </div>
                    </td>
                    <td width="150" nowrap="nowrap">
                      <div class="content c1">
                        <script type="text/javascript">
//<![CDATA[

<!--   // Array ofmonth Names
var monthNames = new Array( "Januar","Februar","Marec","April","Maj","Junij","Julij","Avgust","September","Oktober","November","December");
var now = new Date();
thisYear = now.getYear();
if(thisYear < 1900) {thisYear += 1900}; // corrections if Y2K display problem
document.write( now.getDate() + " " + monthNames[now.getMonth()] + " " + thisYear);
// -->

//]]>
</script>
                      </div>
                    </td>
                  </tr>

                </table>
              </td>
            </tr>
          </table>
          <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td bgcolor="#E0F8E2">
                <img src="themes/fisubgreen/images/7px.gif" width="7" height="7" />
              </td>

            </tr>
          </table>
          <table width="100%" cellpadding="0" cellspacing="0" border="0" align="center">
            <tr valign="top">
              <td>
                <img src="themes/fisubgreen/images/pixel.gif" width="1" height="1" border="0" alt="" />
              </td>
            </tr>
          </table>

          <table width="100%" cellpadding="0" cellspacing="0" border="0" align="center">
            <tr valign="top">
              <td valign="top" width="1" background="themes/fisubgreen/images/7px.gif"></td>
              <td valign="top" width="100%">
                <table width="100%" border="0" cellspacing="0" cellpadding="5">
                  <tr>
                    <td>
                      <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>

                          <td bgcolor="#EBFAED">
                            <table width="100%" border="0" cellspacing="0" cellpadding="1">
                              <tr>
                                <td bgcolor="#339965">
                                  <table width="100%" border="0" cellspacing="0" cellpadding="1">
                                    <tr>
                                      <td bgcolor="#EBFAED">
                                        <table width="100%" border="0" cellspacing="0" cellpadding="4">
                                          <tr>

                                            <td>
                                              <script src="http://www.zelnik.net/koledar/prvastran5.js" type="text/javascript">
</script> <script src="http://www.zelnik.net/koledar/layerevents.js" type="text/javascript">
</script> <script src="http://www.zelnik.net/koledar/KdateRLP_print.js" type="text/javascript">
</script> <script src="http://www.zelnik.net/koledar/coffee.js" type="text/javascript">
</script> <script language="JavaScript" type="text/javascript">
//<![CDATA[

// Substitute non-English date names (weekdays start on Sunday and end on Saturday)

doAltNames = true;

alt_months = new arr("Januar", "Februar", "Marec", "April", "Maj", "Junij", "Julij", "Avgust", "September", "Oktober", "November", "December");

alt_weekdays = new arr("Ned", "Pon", "Tor", "Sre", "c(et", "Pet", "Sob","Ned", "Pon", "Tor", "Sre", "c(et", "Pet", "Sob");

alt_days = new arr("N", "P", "T", "S", "c(", "P", "S");

alt_words = new arr("", "Go to:","Shrani","printer");

startWeekday = 1;

FirstMonth = 200501;

Calendar( );

// -->

//]]>
</script>
                                              <p class="tiny c2">
                                                &nbsp;(8 Ogledi)
                                              </p>

                                            </td>
                                          </tr>
                                        </table>
                                      </td>
                                    </tr>
                                  </table>
                                </td>
                              </tr>
                            </table>

                          </td>
                        </tr>
                      </table>
                    </td>
                  </tr>
                </table>
                <div class="c3">
                  <a href="javascript:openwindow()">Conteudo �</a>

                </div>
              </td>
            </tr>
          </table>
          <table width="100%" border="0" cellspacing="0" cellpadding="4">
            <tr>
              <td>
                <table width="100%" border="0" cellspacing="0" cellpadding="4">
                  <tr>

                    <td>
                      <div class="c1"></div>
                    </td>
                  </tr>
                  <tr>
                    <td>
                      <div class="c1"></div>
                    </td>
                  </tr>

                </table>
              </td>
            </tr>
          </table>
          <div class="c1">
            <span class="footmsg">PHP-Nuke Copyright � 2004 by Francisco Burzi. This is free software, and you may redistribute it under the <a href="http://phpnuke.org/files/gpl.txt"><span>GPL</span></a>. PHP-Nuke comes with absolutely no warranty, for details, see the <a href="http://phpnuke.org/files/gpl.txt"><span>license</span></a>.<br />

            Generiranje strani: 0.04 Sekunde<br /></span>
          </div>
          <div class="c1">
            <br />
            <span>:: fisubgreen phpbb2 style by <a href="http://www.forumimages.com/">Daz</a> :: PHP-Nuke theme by <a href="http://www.nukemods.com">www.nukemods.com</a> ::</span>

          </div><br />
        </td>
      </tr>
    </table>
  </body>
</html>
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
andrej
Hangin' Around


Joined: Sep 10, 2005
Posts: 48

PostPosted: Mon May 01, 2006 5:02 am Reply with quote Back to top

Raven wrote:
You're mising a closing table tag. See if this work s better in IE:


I have put a </table> tag in the end of the block code, and now the footer message is aligned correctly.. However the calender script itself still refuses to funciton..
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

PostPosted: Mon May 01, 2006 12:37 pm Reply with quote Back to top

When I call that script up in my first post, in IE7. It displays perfectly. Have you tried doing a copy/paste of that code?
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
andrej
Hangin' Around


Joined: Sep 10, 2005
Posts: 48

PostPosted: Tue May 02, 2006 9:23 am Reply with quote Back to top

Where should i paste that code ?
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

PostPosted: Tue May 02, 2006 11:55 am Reply with quote Back to top

Wherever you copied it from.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
andrej
Hangin' Around


Joined: Sep 10, 2005
Posts: 48

PostPosted: Fri May 05, 2006 1:53 am Reply with quote Back to top

Whatever i do, it still refuses to work..

The thing is..

This site renders correctly in Firefox, but not in IE, regardless what i do..
Only registered users can see links on this board!
Get registered or login to the forums!


Open the page in firefox and you will see, how it's supposed to look like.
There is supposed to be a table with 7 rows and 2 coloumns, whereas in IE, there is only 1 row and 1 coloumn shown with no events.

Another fact is that this script doens't work regardless which theme is used.
Additionally the same scipt works in other phpnuke 7.6 installation.

I get this cannot modify header information errors, which i haven't manged to resolve yet, but i don't think it's connected with the calendar script, as these errors have appeared before i started using calendar script.
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

PostPosted: Fri May 05, 2006 2:30 am Reply with quote Back to top

IE is throwing javascript errors. Have you got a js debugger for IE?

Also, on your other issue, see
Only registered users can see links on this board!
Get registered or login to the forums!
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum