Recently I posted an article about Fixing validation error for embedded flash movies on site.

One of my friends asked how to embed a transparent Flash Movie. The answer lies below:

First of all embed the flash movie as I have mentioned in my earlier article. See: Fix for Validation Error for Embedding Flash Movies on your Site using Dreamweaver.

After you have finished the above process, follow the following steps:

  1. Search for the code:
    <script type=”text/javascript”>
    AC_FL_RunContent( ‘codebase’,’http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0′,’width’,’400′,’height’,’250′,’src’,’banner’,’quality’,’high’,’pluginspage’,’http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash’,’movie’,’images/banner’ ); //end AC code
    </script>
  2. After ‘quality’,’high’, add ‘wmode’,’transparent’,
  3. Now search <object data=”c.swf?path=movie.swf” …>…</oject>
  4. Between this object tags insert <param name=”wmode” value=”transparent” />
  5. Save the file and upload it

You will get a transparent flash movie now.

Hope this helps those who are looking for it.

Fix WordPress search form (x)html validation errors

On September 14, 2010, in Web, by Bikas

A common problem with wordpress blogs or sites is that while validating the site we get validation error for the search form used in the site.

The error is for <form role=”search” method=”get” id=”searchform” action=”http://xadd..>..</form> where the validator does not validates role=”search”.

The step by step method to fix this issue is mentioned below:

  1. Login to your site through any ftp client where the wordpress site is installed.
  2. Search for the general-template.php file. It will be in the folder wp-includes.
  3. Open the file and search for the code $form = ‘<form role=”search” method=”get” id=”searchform” action=”‘ . home_url( ‘/’ ) . ‘” >
  4. Remove role=”search”, save the file and upload the file.

The search box will still work fine without any error. The positive thing is that you will not get any validation error due to your search form.