Need advise in PHP
There is a discussion in one tread with a script developer who says that it's difficult to do what a few customers and I ask.
His script embeds videos and has a filtering feature. If a video is filtered (should not to appear on the page) the script shows an image with "Disallowed" text on it. We suggest to not show this image instead of filtered video, but skip this video and check the next one. Developer (seller) says it's too difficult.
I'm not a coder but it seems to me it isn't so difficult. Here is a peace of code below with my notes in blue:
-------------
if ( is_filtered == 0 ) { <-- IF VIDEO ISN'N FILTERED THE FUNCTION DOES NEXT CODE:
if ( nr == 1 )
{ //imname.src = "http://img.youtube.com/vi/"+id+"/"+nr+".jpg"; imname.src = "http://i.ytimg.com/vi/"+id+"/"+nr+".jpg"; }
else { //imname.src = "http://img.youtube.com/vi/"+id+"/"+nr+".jpg"; imname.src = "http://i"+nr+".ytimg.com/vi/"+id+"/"+nr+".jpg"; } nr++; if(nr > 3) nr = 1; THUMB_PREVIEW_TIMER = setTimeout("mousOverImage(false,'"+id+"',"+nr+", '"+bSize+"', '"+bColor+"', "+is_filtered+");",600); }
else { <-- IF ELSE (FILTERED) THE FUNCTION SHOWS "DISALLOWED" THUMBNAIL:
imname.src = "/images/disallowed_thumbnail.gif"; }
-------------
Isn't it easy to modify the last lines to not show "Disallowed" image, but skip this video and go to check the next one? I'd like you to confirm that it's possible and not difficult.
Thanks
-
Don Art -
Thanks
{{ DiscussionBoard.errors[5533287].message }} -
-
frenchsquared -
Thanks
{{ DiscussionBoard.errors[5533577].message }} -
-
motley -
Thanks
{{ DiscussionBoard.errors[5533790].message }} -