Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff
Author Message
Stylee
New Member
New Member



Joined: Aug 15, 2003
Posts: 18

PostPosted: Mon Oct 27, 2003 3:40 pm Reply with quote

OKk guys, I have this block, it is the General block for PHPnuke. I liek everything about this block, but the clock function in it affects my scrolling forums block that I use on my site.
I was wondering if anyone can look at the code, and tell me what I need to do to get rid of the clock function there.

Thanx in Advance.

Code:
<?php


/************************************************************************/
/* PHP-NUKE: General Block                                              */
/* ===========================                                          */
/*                                                                      */
/* Copyright (c) 2003 by Dick Snel                                      */
/* http://dlclan.distanthost.com                                        */
/*                                                                      */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License.       */
/*                                                        */
/* This block contains: Add to Favourites link, Make Startpage Link,    */
/* Contact The Webmaster and the time. Just a simple block :)         */
/************************************************************************/

if (eregi("block-General.php",$PHP_SELF)) {
    Header("Location: index.php");
    die();
}

$content = "
<script Language=\"JavaScript1.2\">
<!--
var bookmarkurl = \"http://bloodrave.com\";
var bookmarktitle = \"Bloodrave\";
function addbookmark()
{
    if (document.all)
        window.external.AddFavorite(bookmarkurl, bookmarktitle);
}
// -->
</script>

<script language=\"JavaScript\">
function tS(){ x=new Date(); x.setTime(x.getTime()); return x; }
function lZ(x){ return (x>9)?x:'0'+x; }
function dT(){ window.status='Welcome to Bloodrave!'; if(fr==0){ fr=1; document.write('<font size=2 face=Arial><b><span id=\"tP\">'+eval(oT)+'</span></b></font>'); } tP.innerText=eval(oT); setTimeout('dT()',1000); }
var fr=0,oT=\"lZ(tS().getHours())+':'+lZ(tS().getMinutes())+':'+lZ(tS().getSeconds())+' '\";
</script>

<!--[if IE]>
<img src=\"/images/home.gif\"> <a href=\"#\" onClick=\"this.style.behavior='url(#default#homepage)'; this.setHomePage('http://bloodrave.com');\">Set As Start Page</A></font><br><![endif]-->
<img src=\"/images/favo.gif\"> <a href=\"javascript:addbookmark()\">Add To Favorites</a>
<br><img src=\"/images/mail.gif\"> <a href=\"mailto:dr3g@bloodrave.com\">Contact Webmaster</a>
<br><img src=\"/images/time.gif\"> <script language=\"JavaScript\">dT();</script>
";

?>
 
View user's profile Send private message
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Mon Oct 27, 2003 4:06 pm Reply with quote

Without testing it, try this
Code:
<?php 


/************************************************************************/
/* PHP-NUKE: General Block                                              */
/* ===========================                                          */
/*                                                                      */
/* Copyright (c) 2003 by Dick Snel                                      */
/* http://dlclan.distanthost.com                                        */
/*                                                                      */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License.       */
/*                                                        */
/* This block contains: Add to Favourites link, Make Startpage Link,    */
/* Contact The Webmaster and the time. Just a simple block :)         */
/************************************************************************/

if (eregi("block-General.php",$PHP_SELF)) {
    Header("Location: index.php");
    die();
}

$content = "
<script Language=\"JavaScript1.2\">
<!--
var bookmarkurl = \"http://bloodrave.com\";
var bookmarktitle = \"Bloodrave\";
function addbookmark()
{
    if (document.all)
        window.external.AddFavorite(bookmarkurl, bookmarktitle);
}
// -->
</script>
<!--[if IE]>
<img src=\"/images/home.gif\"> <a href=\"#\" onClick=\"this.style.behavior='url(#default#homepage)'; this.setHomePage('http://bloodrave.com');\">Set As Start Page</A></font><br><![endif]-->
<img src=\"/images/favo.gif\"> <a href=\"javascript:addbookmark()\">Add To Favorites</a>
<br><img src=\"/images/mail.gif\"> <a href=\"mailto:dr3g@bloodrave.com\">Contact Webmaster</a>";
?>
 
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff

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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©