Hello all, 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.
Need advise in PHP
4
Hello all,
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 ( 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 {
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
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 ( 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 {
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
- frenchsquared
- motley
Next Topics on Trending Feed
-
4