PHP Web Host - Quality Web Hosting For All PHP Applications $35/month $250/year (Unlimited) - $25/month - 200,000 impressions - Your Ad Could be Here - Click For Details
  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
Stylee
New Member
New Member


Joined: Aug 15, 2003
Posts: 18

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

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: 16987
Location: Kansas

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

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 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