• Resolved johanna2patricia

    (@johanna2patricia)


    Hi Denzel,
    Great widget! Thanks.
    I try to validate my site and I am nearly there, but I can’t get rid of this error:
    “Element object is missing one or more of the following attributes: data, type.”
    I looked into the helper-functions.php but don’t know what to change.
    There was also an errot, that there is an /embed too much. I deleted that and I got rid of that error.
    But how can I change the object code?
    This is the code:

    // echo video on blog
    		echo "\n<object width=\"$v_width2\" height=\"$v_height2\">\n";
    		echo $flashvar;
    		echo "<param name=\"allowfullscreen\" value=\"true\" />\n";
    		echo "<param name=\"allowscriptaccess\" value=\"always\" />\n";
    		echo "<param name=\"movie\" value=\"$value\" />\n";
    		echo "<param name=\"wmode\" value=\"transparent\">\n";
    		echo "<embed src=\"$value\" type=\"application/x-shockwave-flash\" wmode=\"transparent\" ";
    		echo "allowfullscreen=\"true\" allowscriptaccess=\"always\" ";
    		echo $flashvar2;
    		echo "width=\"$v_width2\" height=\"$v_height2\">\n";
    
    		echo "</object>\n\n";

    Johanna

    https://www.ads-software.com/extend/plugins/video-sidebar-widgets/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Denzel Chia

    (@denzel_chia)

    Hi Johanna,

    My plugin uses old object code, it cannot be html valid.

    If you are using YouTube video, we can modify some codes to use the iframe embed code, but this modification will not work with other video provider’s embeds.

    In helper-functions.php go to line 36 and change to the following codes.

    $value = "https://www.youtube.com/embed/$v_id2";

    Then go to line 175 and change to the following codes.

    // echo video on blog
    echo "<iframe width='$v_width2' height='$v_height2' src='$value' frameborder='0' allowfullscreen></iframe>";

    Video autoplay and loop does not work with this modification.

    Hope this helps!

    Thanks!
    Denzel

    Thread Starter johanna2patricia

    (@johanna2patricia)

    Hi Denzel,
    Thanks so much! I removed the frameborder=’0′ allowfullscreen and then it validates.
    It is fine for me like this. I can only use Youtube and a full screen isn’t needed.
    Thanks again!

    Johanna ??

    Plugin Author Denzel Chia

    (@denzel_chia)

    Thanks! Johanna.
    Glad to help!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Validation error: "Element object is missing one or more of the following attrib’ is closed to new replies.