1
dean_collins
multiple webcams

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 http://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



# 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 "\n\n$title\n\n\n\n\n\n\n";
?>





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

2
gestroud
Re: multiple webcams
  • 2005/9/23 0:51

  • gestroud

  • Home away from home

  • Posts: 1538

  • Since: 2004/12/22


Since the web cam images seem to all be jpg or gif files, another alternative would be to forego using the webcam module and use the cjaycontent module.

What you would do is create a simple HTML page that links to the web camera image using tags. You would do that for each camera.

Next upload the pages you created to cjaycontent's content subfolder. You can even use cjaycontent to upload your pages directly to the module.

Once that's accomplished, go into the module's admin section to set your web cam pages up. They'll be added to a submenu on the Main Menu block. It will also create a block containing whatever content you want to have visible.

It should take about half an hour to do at the most. I just tried it with the links you used on a local site & it worked great!

3
dean_collins
Re: multiple webcams

Hi I did a search on cjaycontent but nothing is coming up, can you post a little more information?

Cheers,
Dean

4
gestroud
Re: multiple webcams
  • 2005/9/23 2:15

  • gestroud

  • Home away from home

  • Posts: 1538

  • Since: 2004/12/22



5
dean_collins
Re: multiple webcams

whats the difference between that and the chtml module?

6
gestroud
Re: multiple webcams
  • 2005/9/23 3:12

  • gestroud

  • Home away from home

  • Posts: 1538

  • Since: 2004/12/22


I don't know; I don't remember trying the other one, or if I did, it didn't work for me.

7
dean_collins
Re: multiple webcams

no probs, I've installed cjay content and playing around with it now.

Not sure how this helps me with the selection drop down box though.

I'm assuming from what I've read that you build this else where using frontpage or similar then import it into cjay is that correct?

also is there a faq somewhere? apart from the cjay website which says it's no longer support and only has about 20 posts on it I cant find anything in the module itself.

BTW chtml works fine for me, this is what i display my google ads in.

8
gestroud
Re: multiple webcams
  • 2005/9/23 3:34

  • gestroud

  • Home away from home

  • Posts: 1538

  • Since: 2004/12/22


Yes, you'll probably need Frontpage or something for the dropdown menu. I can do that for you if you need, no problem.

For the HTML pages, you can use any text editor to create the page.

9
Bassman
Re: multiple webcams
  • 2005/9/23 3:41

  • Bassman

  • Friend of XOOPS

  • Posts: 1272

  • Since: 2003/5/23


have a look here for info on drop-down menus

10
dean_collins
Re: multiple webcams

cool, I might try the java option first with the view to making it available to other webcam users.

thanks also for the cjay info though and no probs re frontpage I can fudge my way ever so non artistically there as well.

will go back that way if this java selection doesn't work.

lol - better go make a coffee might be a long but fun night.


Cheers,
Dean

Login

Who's Online

368 user(s) are online (294 user(s) are browsing Support Forums)


Members: 0


Guests: 368


more...

Donat-O-Meter

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

Latest GitHub Commits