Title: swfobj  plugin src attr  bug
Last modified: August 19, 2016

---

# swfobj plugin src attr bug

 *  Resolved [saintist](https://wordpress.org/support/users/saintist/)
 * (@saintist)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/swfobj-plugin-src-attr-bug/)
 * I am using swfobj plugin
 * shortcode from page content
 * [swfobj src=”[http://integra-london.com/integra/wp-content/uploads/2011/01/gen11.swf&#8221](http://integra-london.com/integra/wp-content/uploads/2011/01/gen11.swf&#8221);
   width=”300″ height=”266″ class=”alignleft” allowfullscreen=”false”]
 * gen11.swf file exists
 * in home page code
    <? $args=array( ‘page_id’=>12 );
 * query_posts($args);?>
    <?php if (have_posts()) : while (have_posts()) : the_post();?
   > <h1><?php the_title(); ?></h1> <div class=”posttext”> <?php the_content(”);?
   > </div> <?php endwhile; endif; ?>
 * plugin replace shortcode
 * <object classid=”clsid:D27CDB6E-AE6D-11cf-96B8-444553540000″ id=”swfobj_0″ width
   =”300″ height=”266″ class=”alignleft”>
    <param name=”movie” value=”” /> <param
   name=”wmode” value=”opaque” /> <!–[if !IE]>–> <object type=”application/x-shockwave-
   flash” data=”” width=”300″ height=”266″ wmode=”opaque”> <!–<![endif]–></p> <p
   > <!–[if !IE]>–> </object> <!–<![endif]–>
 *  </object>
 * what gen11.swf link ?

Viewing 10 replies - 1 through 10 (of 10 total)

 *  [splotch](https://wordpress.org/support/users/splotch/)
 * (@splotch)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/swfobj-plugin-src-attr-bug/#post-1885023)
 * The gen11.swf should have shown up twice. Once in this line and once in the second
   object tag.
    `<param name="movie" value="" />`
 * Very strange that the value there is empty and that it isn’t in the other line,
   but that all of the other attributes are set correctly. I have never seen the
   plugin do this before.
 * Can you list the other plugins that you have installed on your site as well?
 *  Thread Starter [saintist](https://wordpress.org/support/users/saintist/)
 * (@saintist)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/swfobj-plugin-src-attr-bug/#post-1885024)
 * list plugins:
 * AddThis Social Bookmarking Widget
    All in One SEO Pack Breadcrumb Navigation 
   XT Contact Form 7 SEO Friendly Images Text Replace WPML Multilingual CMS & SwfObj
 *  Thread Starter [saintist](https://wordpress.org/support/users/saintist/)
 * (@saintist)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/swfobj-plugin-src-attr-bug/#post-1885025)
 * I deactivate all plugins ans step to step activate all list
 * 1. WPML Multilingual CMS – result: normal view swf
    2. AddThis Social Bookmarking
   Widget – result: normal view swf 3. Breadcrumb Navigation XT – result: normal
   view swf 4. All in One SEO Pack – result: bug view swf
 * html code:
 * <object width=”300″ height=”266″ class=”alignleft” id=”swfobj_0″ classid=”clsid:
   D27CDB6E-AE6D-11cf-96B8-444553540000″ style=”visibility: visible;”><param value
   =”/wp-content/uploads/2011/01/gen11.swf” name=”movie”><param value=”opaque” name
   =”wmode”><!–[if !IE]>–>
    <object type=”application/x-shockwave-flash” data=”wp-
   content/uploads/2011/01/gen11.swf” width=”300″ height=”266″ wmode=”opaque”> <!–
   <![endif]–><**/p>** **<p>** <!–>**–>** </object>
 * **–>** – view in page
 * why 
    & <p> tag?
 * 5. Contact Form 7 – The situation has not changed
    6. Activate SEO Friendly Images–
   The situation has not changed
 * 7. Activate Text Replace – result:ups!!!!
 * html code:
 * <object width=”300″ height=”266″ class=”alignleft” id=”swfobj_0″ classid=”clsid:
   D27CDB6E-AE6D-11cf-96B8-444553540000″><param value=”” name=”movie”><param value
   =”opaque” name=”wmode”><!–[if !IE]>–>
    <object type=”application/x-shockwave-
   flash” data=”” width=”300″ height=”266″ wmode=”opaque”> <!–<![endif]–></p> <p
   > <!–>–> </object>
 * in Text Replace configuration changes are no other matches with disappearing 
   piece of code insertion swf
 * 🙁
 *  Thread Starter [saintist](https://wordpress.org/support/users/saintist/)
 * (@saintist)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/swfobj-plugin-src-attr-bug/#post-1885026)
 * i deactivate Text Replace
 *  Thread Starter [saintist](https://wordpress.org/support/users/saintist/)
 * (@saintist)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/swfobj-plugin-src-attr-bug/#post-1885033)
 * splotch i am sorry 🙂
 * i usage this code in finctions.php
 *     ```
       function my_formatter($content) {
       $new_content = '';
       $pattern_full = '{(\[raw\].*?\[/raw\])}is';
       $pattern_contents = '{\[raw\](.*?)\[/raw\]}is';
       $pieces = preg_split($pattern_full, $content, -1, PREG_SPLIT_DELIM_CAPTURE);
   
       foreach ($pieces as $piece) {
       if (preg_match($pattern_contents, $piece, $matches)) {
       $new_content .= $matches[1];
   
       } else {
       $new_content .= wptexturize(wpautop($piece));
       }
       }
   
       return $new_content;
       }
   
       remove_filter('the_content', 'wpautop');
       remove_filter('the_content', 'wptexturize');
   
       add_filter('the_content', 'my_formatter', 99);
       ```
   
 * because of it not working properly plugun swfobj
 *  [splotch](https://wordpress.org/support/users/splotch/)
 * (@splotch)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/swfobj-plugin-src-attr-bug/#post-1885035)
 * Hi saintist,
 * Nice work in tracking down what is going on here. Unfortunately I can only control
   what my plugin does, not what others do to the content afterwards. I have no 
   idea why that SEO pack would be adding in <p> tags randomly. Nor why text replace
   would be deleting all of your swf links.
 * Did the my_formatter function you added in your functions.php file resolve the
   issue, or are things still getting mangled by the other plugins?
 * Again, nice work in figuring out which plugins were breaking the functionality.
   I’m glad to know it wasn’t a bug in SwfObj.
 *  Thread Starter [saintist](https://wordpress.org/support/users/saintist/)
 * (@saintist)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/swfobj-plugin-src-attr-bug/#post-1885036)
 * Hi splotch
    no, its my function was already in functions.php I remove it and 
   the bug was gone, my function calls bug for some reason,
 *  Thread Starter [saintist](https://wordpress.org/support/users/saintist/)
 * (@saintist)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/swfobj-plugin-src-attr-bug/#post-1885037)
 * Sorry my English is very bad
 *  [splotch](https://wordpress.org/support/users/splotch/)
 * (@splotch)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/swfobj-plugin-src-attr-bug/#post-1885043)
 * Hi saintist,
 * I understand now. Very glad you were able to track down the problem. And don’t
   worry about your English. You’ll only get better the more you use it. I can only
   speak English and Romanian, and my Romanian is not that great.
 *  [splotch](https://wordpress.org/support/users/splotch/)
 * (@splotch)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/swfobj-plugin-src-attr-bug/#post-1885044)
 * By the way, since you have figured out the problem, make sure to mark the thread
   as “Resolved”. Thanks.

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘swfobj plugin src attr bug’ is closed to new replies.

 * 10 replies
 * 2 participants
 * Last reply from: [splotch](https://wordpress.org/support/users/splotch/)
 * Last activity: [15 years, 2 months ago](https://wordpress.org/support/topic/swfobj-plugin-src-attr-bug/#post-1885044)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
