Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Seeking applications ...
Author Message
sqzdog
Involved
Involved



Joined: Sep 22, 2003
Posts: 252

PostPosted: Tue May 25, 2004 7:12 pm Reply with quote

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?
 
View user's profile Send private message Send e-mail
GanjaUK
Life Cycles Becoming CPU Cycles



Joined: Feb 14, 2004
Posts: 633
Location: England

PostPosted: Tue May 25, 2004 7:23 pm Reply with quote

What is the URL to the site with the webcam on?

_________________
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
sqzdog







PostPosted: Tue May 25, 2004 7:41 pm Reply with quote

http://readthehook.com/webcamfast.html
 
GanjaUK







PostPosted: Tue May 25, 2004 8:19 pm Reply with quote

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







PostPosted: Tue May 25, 2004 9:13 pm Reply with quote

so, I just paste that into my_header.php and do that block and that's it?
 
GanjaUK







PostPosted: Wed May 26, 2004 5:51 am Reply with quote

Check the source code for the page, you will see the java that refreshes that image in the <head> of the page.
 
sqzdog







PostPosted: Wed May 26, 2004 6:08 pm Reply with quote

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 */
/* http://phpnuke.org */
/* */
/* 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 /


?>
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Seeking applications ...

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 ©