| Author |
Message |
sqzdog Involved


Joined: Sep 22, 2003 Posts: 252
|
Posted:
Tue May 25, 2004 7:12 pm |
|
There is a website that has a "downtown view" webcam on it. The end of their is url is: /webcamfast.html How can I incorporate this webcam into a block on my site? |
|
|
|
 |
GanjaUK Life Cycles Becoming CPU Cycles

Joined: Feb 14, 2004 Posts: 633 Location: England
|
Posted:
Tue May 25, 2004 7:23 pm |
|
What is the URL to the site with the webcam on? |
|
|
|
 |
sqzdog Involved


Joined: Sep 22, 2003 Posts: 252
|
Posted:
Tue May 25, 2004 7:41 pm |
|
|
|
 |
GanjaUK Life Cycles Becoming CPU Cycles

Joined: Feb 14, 2004 Posts: 633 Location: England
|
Posted:
Tue May 25, 2004 8:19 pm |
|
If you dont mine having the image reload when you refresh the page, then you can just make a center block like this:
| Code: |
<?php
if (eregi("block-Webcam.php",$_SERVER['PHP_SELF'])) {
Header("Location: index.php");
die();
}
$content .= "<center><img src=\"http://readthehook.com/webshotbig.jpg\" WIDTH=512 HEIGHT=384 BORDER=0 ALIGN=bottom name=campicture reload=30></center>";
?>
|
If you want the java to refresh it, you can add it in my_header.php |
|
|
|
 |
sqzdog Involved


Joined: Sep 22, 2003 Posts: 252
|
Posted:
Tue May 25, 2004 9:13 pm |
|
so, I just paste that into my_header.php and do that block and that's it? |
|
|
|
 |
GanjaUK Life Cycles Becoming CPU Cycles

Joined: Feb 14, 2004 Posts: 633 Location: England
|
Posted:
Wed May 26, 2004 5:51 am |
|
Check the source code for the page, you will see the java that refreshes that image in the <head> of the page. |
|
|
|
 |
sqzdog Involved


Joined: Sep 22, 2003 Posts: 252
|
Posted:
Wed May 26, 2004 6:08 pm |
|
I don't follow you since I'm new to this. Here is the code in the my_header.php file:
| Quote: |
<?php
/************************************************************************/
/* PHP-NUKE: Web Portal System */
/* =========================== */
/* */
/* Copyright (c) 2002 by Francisco Burzi */
/* */
/* */
/* 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 file is to customize whatever stuff you need to include in your site
when the header loads. This can be used for third party banners, custom
javascript, popup windows, etc. With this file you don't need to edit
system code each time you upgrade to a new version. Just remember, in case
you add code here to not overwrite this file when updating!
Whatever you put here will be between <head> and </head> tags.
*/
// Start Last Visit Code V.1.4/
global $user, $user_prefix, $cookie, $db;
cookiedecode($user);
$username = $cookie[1];
$user_lastlogindate = date("M d, Y");
$user_lastlogin = time();
$user_flag = "0";
$ip = $_SERVER["REMOTE_ADDR"];
$sql = ("UPDATE ".$user_prefix."_users SET user_lastlogin='$user_lastlogin', user_lastlogindate='$user_lastlogindate', user_hits=user_hits+1, user_ip='$ip', user_flag='$user_flag' WHERE username='$username'");
$db->sql_query($sql);
// End Last Visit Code /
?>
|
|
|
|
|
 |
|
|
|
|