The MU forums have moved to WordPress.org

mu wordpress embedding jscript (5 posts)

  1. mark_f_edwards
    Member
    Posted 14 years ago #

    hello all -

    i am trying to migrate an existing wp site to mu-2.86. here is the trouble i am running into.

    i have a line from a page in the ORIGINAL non-mu site that looks like this:

    <script type="text/javascript">// <![CDATA[

    however, when i PUBLISH this particular page in mu, the line changes to this:

    // <![CDATA[

    notice it completely looses the <script> tags and converts the left-arrow to the http equivalent ampersand-l-t-semicolon.

    ideas?

    please forgive me if this is completely covered somewhere.... its late at night and i am tired and was unable to find it.

    thank you

  2. SteveAtty
    Member
    Posted 14 years ago #

    WMPU strips out lots of code by default as a security measure. There are some plugins / modifications you can make which allow javascript to be used in posts.

  3. mark_f_edwards
    Member
    Posted 14 years ago #

    thanks for the reply.

    is there one particular solution, if security is not an issue here?

    perhaps a setting in wp-config, or even a favorite plug-in?

    reason i ask: i suspected this was the case, and i tried one, but all it did was to embed php code! mu did not execute the code, it just displayed the code, so i was using a php eval() statement.

    i was really hoping for a better solution than that!

  4. mark_f_edwards
    Member
    Posted 14 years ago #

    i have used EmbedIt before......

    http://www.matteoionescu.com/wordpress/embed-html/

    but i was wondering if there are better options?

  5. andrea_r
    Moderator
    Posted 14 years ago #

    "is there one particular solution, if security is not an issue here?"

    Yes. http://wordpress.org/extend/plugins/unfiltered-mu/

About this Topic

  • Started 14 years ago by mark_f_edwards
  • Latest reply from andrea_r