4images Forum & Community

4images Modifications / Modifikationen => Mods & Plugins (Requests & Discussions) => Topic started by: callme on May 21, 2006, 09:40:01 AM

Title: webcam Mod
Post by: callme 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>
Title: Re: webcam Mod
Post by: callme on May 21, 2006, 08:57:16 PM
please help me how i have to correct this template
thanks
Title: Re: webcam Mod
Post by: V@no on May 21, 2006, 09:05:35 PM
not knowing the problem makes it very difficult to help...
Title: Re: webcam Mod
Post by: callme on May 21, 2006, 09:14:52 PM
the is an erreure in the template  synthaxe
please can you help me thanks
Title: Re: webcam Mod
Post by: V@no 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)
Title: Re: webcam Mod
Post by: callme 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
Title: Re: webcam Mod
Post by: callme on May 23, 2006, 12:11:21 PM
hello
please can some one help me
thanks