Author Topic: webcam Mod  (Read 6940 times)

0 Members and 1 Guest are viewing this topic.

Offline callme

  • Newbie
  • *
  • Posts: 12
    • View Profile
webcam Mod
« on: May 21, 2006, 09:40:01 AM »
hello

i am traying to added webcams to my gallery

how it is possible please to change the Template file for JPG to when in the upload the option webcam in  cat_id = 48 

this template is correct


thanks for your help  the is an erreure in the template




Quote

<!-- Template file for JPG Files -->
<p align="center"><img src="{media_src}" name="myImageName" >

<input type="hidden" name="cat_id" value="{cat_id}" />

<script language="JavaScript">




if (cat_id=48)
{
time=10000
}
else
{
time=1000000
}

function reloadImage() {
if (document.images) {
document.images.myImageName.src = '{media_src}?' + (new Date()).getTime();
}
setTimeout('reloadImage()',time);
}
setTimeout('reloadImage()',time);
</script>
</p>
« Last Edit: May 21, 2006, 09:13:58 PM by callme »

Offline callme

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: webcam Mod
« Reply #1 on: May 21, 2006, 08:57:16 PM »
please help me how i have to correct this template
thanks

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: webcam Mod
« Reply #2 on: May 21, 2006, 09:05:35 PM »
not knowing the problem makes it very difficult to help...
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline callme

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: webcam Mod
« Reply #3 on: May 21, 2006, 09:14:52 PM »
the is an erreure in the template  synthaxe
please can you help me thanks

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: webcam Mod
« Reply #4 on: May 21, 2006, 09:38:12 PM »
maybe instead of
if (cat_id=48)


use:
var cat_id = {cat_id};
if (cat_id==48)
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline callme

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: webcam Mod
« Reply #5 on: May 22, 2006, 10:39:39 AM »
hello
i tray your proposition but i have no reloade of the image after the time

thanks for your help

Offline callme

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: webcam Mod
« Reply #6 on: May 23, 2006, 12:11:21 PM »
hello
please can some one help me
thanks