1
dean_collins
drop down box required for webcam module

Hi guys I've spoken with the module developer but he has said he doesn't know how to do this and I was hoping someone else on the list might be able to work out what to do.

I would like to display multiple webcams on mysite www.aussienymeetup.net/modules/webcam/

at the moment I have basically cloned the module multiple times to make each cam viewable but there are two other ways I would prefer to do this.

basically there are two ways to do this I could either randomise this urls in the webcam.php file

#$img = "http://mzsrv.zoo.org.au/webcams/butterflies.jpg"; /* Webcam image URL (e.g.http://www.domain.com/cam.jpg) */

with the following below



<?php
# SmoothWebcam PHP v1.0
# © 2004 Xeofox. All Rights Reserved
#http://www.xeofox.co.uk

#$img = "http://mzsrv.zoo.org.au/webcams/butterflies.jpg"; /* Webcam image URL (e.g.http://www.domain.com/cam.jpg) */
#$img = "http://insvr1.midcoastwater.com.au/mcwcam.jpg"; /* Webcam image URL (e.g.http://www.domain.com/cam.jpg) */
#$img = "http://webcam.omniconnect.com.au/OmniCam/Images/t02/7733FEDC0A/4/w.jpg"; /* Webcam image URL (e.g.http://www.domain.com/cam.jpg) */
#$img = "http://www.gorgecreekorchards.com.au/web.gif"; /* Webcam image URL (e.g.http://www.domain.com/cam.jpg) */
#$img = "http://www.thesurfclub.com.au/Webcam/image.jpg"; /* Webcam image URL (e.g.http://www.domain.com/cam.jpg) */
#$img = "http://www.abc.net.au/webcam/5ancam1.jpg"; /* Webcam image URL (e.g.http://www.domain.com/cam.jpg) */
#$img = "http://www.transport.sa.gov.au/data/citycam/adelaideview.jpg"; /* Webcam image URL (e.g.http://www.domain.com/cam.jpg) */
#$img = "http://www.rosebay.tased.edu.au/webcam/tiny.jpg"; /* Webcam image URL (e.g.http://www.domain.com/cam.jpg) */
#$img = "http://www.rta.nsw.gov.au/trafficreports/cameras/camera_images/180.jpg"; /* Webcam image URL (e.g.http://www.domain.com/cam.jpg) */
#
#
#
#
#
#
#
#$title = "Test Webcam"; /* Title that is used if page accidentally opened */
#$r = "20"; /* Image refresh rate (in seconds) */



$img = "http://www.thesurfclub.com.au/Webcam/image.jpg"; /* Webcam image URL (e.g.http://www.domain.com/cam.jpg) */
$title = "Test Webcam"; /* Title that is used if page accidentally opened */
$r = "20"; /* Image refresh rate (in seconds) */


header('refresh: '.$r.'; url=webcam.php');
echo "<html>\n<head>\n<title>$title</title>\n<meta http-equiv='refresh' content='$r; url=webcam.php'>\n<style>body {margin: 0px}</style>\n</head>\n<body>\n<img src='$img' border='0' alt=''>\n</body>\n</html>";
?>





or as an alternative what i could do is set up some type of drop down box with a single display which would then allow the visitor to choose which webcam they want to view.

basically the module developer has said we can do anything we like, as he's not sure how to do either option.

Any thoughts?

Cheers,
Dean
My Xoops site
www.aussienymeetup.net

Login

Who's Online

221 user(s) are online (126 user(s) are browsing Support Forums)


Members: 0


Guests: 221


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Mar 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits