Title: norbit's Replies | WordPress.org

---

# norbit

  [  ](https://wordpress.org/support/users/norbit/)

 *   [Profile](https://wordpress.org/support/users/norbit/)
 *   [Topics Started](https://wordpress.org/support/users/norbit/topics/)
 *   [Replies Created](https://wordpress.org/support/users/norbit/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/norbit/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/norbit/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/norbit/engagements/)
 *   [Favorites](https://wordpress.org/support/users/norbit/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Unclosed CDATA Section… grr](https://wordpress.org/support/topic/unclosed-cdata-section-grr/)
 *  [norbit](https://wordpress.org/support/users/norbit/)
 * (@norbit)
 * [19 years, 10 months ago](https://wordpress.org/support/topic/unclosed-cdata-section-grr/#post-296501)
 * [http://wordpress.org/support/topic/77660](http://wordpress.org/support/topic/77660)
 * I found this issue that changes the closing cdata to ]]> I have no idea why they
   do this in WP…
 * You might want to try commenting the line in the function in wp-includes/template-
   functions-post.php file line 57 –
 * `// $content = str_replace(']]>', ']]>', $content);`
 * That might fix your problem…
 * Why this exists in there i dont know as ‘if’ you wantted that kind of function
   it should be applied as a content filter!
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [XHTML script blocks help required](https://wordpress.org/support/topic/xhtml-script-blocks-help-required/)
 *  Thread Starter [norbit](https://wordpress.org/support/users/norbit/)
 * (@norbit)
 * [19 years, 10 months ago](https://wordpress.org/support/topic/xhtml-script-blocks-help-required/#post-411352)
 * [http://wphooks.flatearth.org/hooks/the_content/](http://wphooks.flatearth.org/hooks/the_content/)
 * my problem is caused by these function that are searching for the XHTML comment
   end markers and remplacing part of it with the HTML entitiy for the greater than
   symbol.
 * the_content is the hook i am using to inject script as above, i need to know 
   how to get WP to stop this behaviour – do i have to edit the core files or is
   there a more correct method.
 * This looks like a bit on an unfortunate oversight in that these functions are
   inadvertantly replacing what can be a valid structural piece of code in XHTML
   for what looks like the sake of making a more link look like “]]>”.
 * This is the kind of thing i am trying to do in the plugin –
 * `function embedSomeScript($text) {
    $text = eregi_replace('SOME REGEX PATTERN','
   <script type="text/javascript">'.chr(10).'// <![CDATA['.chr(10).'SOME JAVASCRIPT;'.
   chr(10).'// ]]>'.chr(10).'</script>',$text);
 * #Add filter
 * add_filter('the_content', 'embedSomeScript');
 * The guts of the functions i have left out as its not their function and what 
   the plugin does that I am woried about – what i am worried about is specifically
   the injection of XHTML fiendly Javascript into the content of a WP page or post.
 * Any pointers would be apreciated.
    Thanks in advance.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [XHTML script blocks help required](https://wordpress.org/support/topic/xhtml-script-blocks-help-required/)
 *  Thread Starter [norbit](https://wordpress.org/support/users/norbit/)
 * (@norbit)
 * [19 years, 10 months ago](https://wordpress.org/support/topic/xhtml-script-blocks-help-required/#post-411313)
 * This is not for processing a form submission – these are script blocks i am inserting
   into the content area of a wordpress page. Using –
    `add_filter('the_content','
   myfiltername');`
 * the function in template-functions-post.php file line 57 –
 * `$content = str_replace(']]>', ']]>', $content);`
 * would still alter your sugessted replacement as the terminating part of the CDATA
   node will be changed.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [XHTML script blocks help required](https://wordpress.org/support/topic/xhtml-script-blocks-help-required/)
 *  Thread Starter [norbit](https://wordpress.org/support/users/norbit/)
 * (@norbit)
 * [19 years, 10 months ago](https://wordpress.org/support/topic/xhtml-script-blocks-help-required/#post-411299)
 * that wont work as this is a content filter that needs to call a function that
   has already been included as an external script…
 * i.e. this needs to happen several times within the same page with different args.
   the function itself was externaly loaded in the head portion.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Adding Flash to pages](https://wordpress.org/support/topic/adding-flash-to-pages/)
 *  [norbit](https://wordpress.org/support/users/norbit/)
 * (@norbit)
 * [19 years, 10 months ago](https://wordpress.org/support/topic/adding-flash-to-pages/#post-409101)
 * the php should be fine – problem is most likely where the flash file is looking
   to read the data from.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Adding Flash to pages](https://wordpress.org/support/topic/adding-flash-to-pages/)
 *  [norbit](https://wordpress.org/support/users/norbit/)
 * (@norbit)
 * [19 years, 10 months ago](https://wordpress.org/support/topic/adding-flash-to-pages/#post-409084)
 * If you can right click on the movie then check to see if the menu says – “movie
   not loaded” if this is the case then you probably have a mistake in your URL.
 * If it doenst say this then eiher – your flash movie is broken, your showing it
   at the wrong scale or your attempting to load a movie cross domain.
 * Have you got a URL to look at?
 * RE Pages – I am relatively new to WP so i’ll read up on that feature tonight 
   and see if i need to update this feature…
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Line breaks dissapearing in TinyMCE](https://wordpress.org/support/topic/line-breaks-dissapearing-in-tinymce/)
 *  Thread Starter [norbit](https://wordpress.org/support/users/norbit/)
 * (@norbit)
 * [19 years, 10 months ago](https://wordpress.org/support/topic/line-breaks-dissapearing-in-tinymce/#post-410366)
 * This is a tag issue not formatting since linebreaks need to be described in HTML
   not just chr(10), tag filtering – sounds promicing – will have a search about…
 * Re – dont use the WYSIWYG – thats all very well for me, however if we want to
   use a wordpress based solution for someone less fluent in HTML to use then it
   will at least need to work properly with the basics…
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Adding Flash to pages](https://wordpress.org/support/topic/adding-flash-to-pages/)
 *  [norbit](https://wordpress.org/support/users/norbit/)
 * (@norbit)
 * [19 years, 10 months ago](https://wordpress.org/support/topic/adding-flash-to-pages/#post-409080)
 * Myabey i need to elaborate on the ActiveX issue with IE –
 * [http://news.zdnet.co.uk/software/applications/0,39020384,39254968,00.htm](http://news.zdnet.co.uk/software/applications/0,39020384,39254968,00.htm)
 * Gives the low down – basically IE will now ask you to activate a control before
   you can use it… This happens with any active X control not just flash.
 * By using a scripted technique the conrol is injected into the page and gets around
   the patent issue – see the plugin demo to get the idea…
 * Also – as the code is injected to the page this should keep the validators happy…
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Line breaks dissapearing in TinyMCE](https://wordpress.org/support/topic/line-breaks-dissapearing-in-tinymce/)
 *  Thread Starter [norbit](https://wordpress.org/support/users/norbit/)
 * (@norbit)
 * [19 years, 10 months ago](https://wordpress.org/support/topic/line-breaks-dissapearing-in-tinymce/#post-410356)
 * For example in my posts end up like –
 * `<strong>Flash develop</strong>
    IDE for AS </a>
 * When opened in the TinyMCE editor i get –
 * `<strong>Flash develop</strong><br />
    IDE for AS<br /> </a><br />
 * When published they disappear, i have had to put them in manually from the database
   for now using myadmin…
 * What could be causing this?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Adding Flash to pages](https://wordpress.org/support/topic/adding-flash-to-pages/)
 *  [norbit](https://wordpress.org/support/users/norbit/)
 * (@norbit)
 * [19 years, 10 months ago](https://wordpress.org/support/topic/adding-flash-to-pages/#post-409073)
 * Actually – a plugin may help, we modded an existing one to solve the IE Active
   X issue that makes flash movies appear with a border and require activating…
 * [http://www.web-engineer.co.uk/codex/?p=43](http://www.web-engineer.co.uk/codex/?p=43)
 * To download the plugin – you can then embed flash with a ubb style tag.

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