Support » Fixing WordPress » Problem with WordPress editing code

  • I’m having a problem getting a page to work, and it is apparently the result of WordPress changing things.

    Oddly, I must have found some way around this before, because this used to work, but after a recent server and theme change, now it doesn’t.

    At any rate, I need a page to have this code-

    <!– SPRINGBOARD TEASER PLAYER –>
    <div id=”sb_video_player”></div>
    <script language=”javascript” type=”text/javascript” src=”http://publishers.springboard.gorillanation.com/js/swfobject.js”></script>
    <script language=”javascript”>
    function get_url_param(name){
    name = name.replace(/[\[]/,”\\\[“).replace(/[\]]/,”\\\]”);
    var regexS = “[\\?&]”+name+”=([^&#]*)”;
    var regex = new RegExp( regexS );
    var results = regex.exec( window.location.href );
    if( results == null )
    return “sb_error_code”;
    else
    return results[1];
    }
    function getVideo() {
    var so = new SWFObject(“http://cdn.springboard.gorillanation.com/storage/xplayer/yo033.swf”, “mplayer”, “520”, “400”, “8”, “#000000”);
    so.addParam(“swliveconnect”, “true”);
    so.addParam(“allowfullscreen”, “true”);
    so.addVariable(“pid”, “arey012”);
    so.addVariable(“siteId”, “379”);
    so.addVariable(“autostart”, “true”);
    so.addVariable(“file”, “http://publishers.springboard.gorillanation.com/xml_feeds_advanced/index/”+get_url_param(‘sb_partner_id’)+”/3/”+get_url_param(‘sb_video_id’)+”/0/0/0/0/0/0/0”);
    so.addVariable(“pageUrl”, escape(document.location));
    so.write(“sb_video_player”);
    }
    function sb_play_video(){
    if(get_url_param(‘sb_video_id’)!= ‘sb_error_code’ && get_url_param(‘sb_partner_id’)!= ‘sb_error_code’){
    getVideo();
    }else{
    //alert(‘error’);
    }
    }
    </script>
    <script language=”javascript”>sb_play_video();</script>
    <!– SPRINGBOARD TEASER PLAYER –>

    But by the time WordPress is done it looks like this-

    <p><!– SPRINGBOARD TEASER PLAYER –></p>
    <div id=”sb_video_player”></div>
    <p><script language=”javascript” type=”text/javascript” src=”http://publishers.springboard.gorillanation.com/js/swfobject.js”></script>
    <script language=”javascript”></p>
    <p>function get_url_param(name){
    name = name.replace(/[\[]/,”\\\[“).replace(/[\]]/,”\\\]”);
    var regexS = “[\\?&]”+name+”=([^&#]*)”;
    var regex = new RegExp( regexS );
    var results = regex.exec( window.location.href );
    if( results == null )
    return “sb_error_code”;
    else
    return results[1];
    }</p>
    <p>function getVideo() {
    var so = new SWFObject(“http://cdn.springboard.gorillanation.com/storage/xplayer/yo033.swf”, “mplayer”, “520”, “400”, “8”, “#000000”);
    so.addParam(“swliveconnect”, “true”);
    so.addParam(“allowfullscreen”, “true”);
    so.addVariable(“pid”, “arey012”);
    so.addVariable(“siteId”, “379”);
    so.addVariable(“autostart”, “true”);
    so.addVariable(“file”, “http://publishers.springboard.gorillanation.com/xml_feeds_advanced/index/”+get_url_param(‘sb_partner_id’)+”/3/”+get_url_param(‘sb_video_id’)+”/0/0/0/0/0/0/0”);
    so.addVariable(“pageUrl”, escape(document.location));
    so.write(“sb_video_player”);
    }
    function sb_play_video(){
    if(get_url_param(‘sb_video_id’)!= ‘sb_error_code’ && get_url_param(‘sb_partner_id’)!= ‘sb_error_code’){
    getVideo();
    }else{
    //alert(‘error’);
    }
    }
    </script>
    <script language=”javascript”>sb_play_video();</script>
    <!– SPRINGBOARD TEASER PLAYER –></p>

    Any ideas how I can get WordPress to stop adding and changing things.

    Thanks very much.

Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Problem with WordPress editing code’ is closed to new replies.