Forum Replies Created

Viewing 15 replies - 16 through 30 (of 30 total)
  • Forum: Plugins
    In reply to: xml-rpc question
    Thread Starter TBotNik

    (@tbotnik)

    Joseph,

    Found you have a solution of sorts at:

    http://wordpress.org/extend/plugins/libxml2-fix/

    Also another fix suggested is at:

    http://www.w3schools.com/xml/xml_cdata.asp

    using the CDATA encoding.

    Now just need a nice clean function(s) to test both and see which is best.

    Thanks!

    TBNK

    Forum: Plugins
    In reply to: xml-rpc question
    Thread Starter TBotNik

    (@tbotnik)

    All,

    OK! After trying several more things it is appearant that XML requires all HTML character to be converted to character reps of the same and WordPress must contain something in the XML-RPC that converts the encoded HTML characters back to regular HTML, as Scribefire works fine dumping an HTML page into WordPress.

    It must be some option that I need in my upload string, so the decoding is enabled. But what is that code. I’m not finding it in my searches of the manuals. Guess I do not have right keyword sequence.

    TBNK

    Forum: Plugins
    In reply to: xml-rpc question
    Thread Starter TBotNik

    (@tbotnik)

    OK,

    Tried this

    function fix_xml ($text, $charset = 'Windows-1252'){
          $text = urlencode($text); // Encode html chars
          //$text = htmlentities($text, ENT_COMPAT, $charset, false); // Encode html chars
          //$text = htmlspecialchars($text, ENT_COMPAT, $charset, false); // Encode html chars
          return $text;
       }  // end function

    and got worse.

    So what I’m thinking is comment out my first line in the first funtion of:
    $text = htmlentities($text, ENT_COMPAT, $charset, false); // Encode html chars
    and work at tweaking the REGEX so this goes through correctly, especially since the “&pound” is not found in the existing REGEX string and this seems to be the main source of contention.

    All feedback on this appreciated.

    Thanks!

    TBNK

    Forum: Plugins
    In reply to: xml-rpc question
    Thread Starter TBotNik

    (@tbotnik)

    All,

    Appears this is a “Correct Formatting” issue.

    Ah but what I found is this code resolves, when I feed my source to this function:

    function xml_entities($text, $charset = 'Windows-1252'){
          $text = htmlentities($text, ENT_COMPAT, $charset, false); // Encode html chars
          $arr_xml_special_char = array (""","&","'",
          				     "<",">");
          $arr_xml_special_char_regex = "(?";                       // Build the regex
          foreach($arr_xml_special_char as $key => $value){
             $arr_xml_special_char_regex .= "(?!$value)";
          }
          $arr_xml_special_char_regex .= ")";
          $pattern = "/$arr_xml_special_char_regex&(".
          		 "[a-zA-Z0-9]+;)/";                             // Scan for non XML
          $replacement = '&${1}';                               // Replace non XML
          return preg_replace($pattern, $replacement, $text);
       }  // end function

    and I can even fix with this abbreviated function of:

    function fix_xml ($text, $charset = 'Windows-1252'){
          $text = htmlentities($text, ENT_COMPAT, $charset, false); // Encode html chars
          //$text = htmlspecialchars($text, ENT_COMPAT, $charset, false); // Encode html chars
          return $text;
       }  // end function

    I tried fixing it with just the “htmlspecialchars” but still get the errors and when the code/context from this is submitted to WordPress all the html formatting is lost, and it must be maintained.

    Appears I am looking only to convert specific HTML codes to their “&xxx;” equivalents. Any ideas on which codes actually need converting to meet the XML formatting rules, especially for WP?

    Thanks!

    TBNK

    Thread Starter TBotNik

    (@tbotnik)

    All,

    Finally got Firebug installed and started working the “z-index” settings.

    Suggestion, from online sources, was to separate values by at least “10”, so did that. Nothing changes. Noticed my CSS for the active template has many negative numbers, and thinking maybe that is source of the problem? Does MSIE handle the negative or does it change them to absolutes?

    Anyway the changes are not having any effect, but did have a couple changes that I had to go back to and clear.

    Where I think the problem is, is in the two blocks of:

    body
    {
    	z-index: 0;
    	margin: 0 auto;
    	padding: 0;
    	background-color: #FFFFFF;
    	background-image: url('images/Page-BgTexture.jpg');
    	background-repeat: no-repeat;
    	background-attachment: fixed;
    	background-position: bottom center;
    }

    and

    .art-contentLayout
    {
    	z-index: 300;
    	position: relative;
    	margin-bottom: 6px;
    	width: 786px;
    }
    
    .art-Block
    {
    	position:relative;
    	z-index: 200;
    	margin:0 auto;
    	min-width:1px;
    	min-height:1px;
    }
    
    .art-Block-body
    {
    	position: relative;
    	z-index: 110;
    	padding: 0px;
    }

    Where “body” contains the background image and the other contains the text that is showing in FF and not in MSIE.

    Let me know what you think!

    Thanks!

    TBNK

    Thread Starter TBotNik

    (@tbotnik)

    Joseph,

    Is the IE7 z-index CSS specific?

    I would assume so as probably assigned to the translucient background image, which appears to be not taking right “layer” assigment in IE and thus overwriting the text layer for IE.

    Thanks for the hint!! Working Google for a fix!!

    Thanks again!

    OMR

    Thread Starter TBotNik

    (@tbotnik)

    J,

    Well it is effecting 50+ sites, whatever it is. I figure it is another one of those “MicroSoft knows best” upgrades, but here is a sight you can look at:

    http://ebmseo.com/

    Compare in all 3 Browsers, FF, Safari, MSIE and see that only IE has the problem.

    Could also be a CSS thing, since IE handles CSS different. The sites I have with darker backgrounds do not have the same issues, such as:

    http://abcdcorp.com/

    I was going to debug with Firebug, but for some reason it is refusing to load on my browser, since I had to reset it about a month back due to errors on the newest FF release.

    TBNK

    Forum: Plugins
    In reply to: xml-rpc question
    Thread Starter TBotNik

    (@tbotnik)

    All,

    On some of my commands I keep getting this error:

    An error occurred – -32700:parse error. not well formed

    Any ideas what is wrong?

    TBNK

    Forum: Plugins
    In reply to: xml-rpc question
    Thread Starter TBotNik

    (@tbotnik)

    J,

    Well first, since it is my first rodeo, I don’t know what you are referring to, so links and resources would be helpful?

    Second how does one trap the “raw XML”?

    Thanks!

    TBNK

    Forum: Plugins
    In reply to: xml-rpc question
    Thread Starter TBotNik

    (@tbotnik)

    All,

    Well found and downloaded the IXR_Library.php from:

    http://scripts.incutio.com/xmlrpc/

    Using that and the following got the upload working:

    [Code moderated as per the Forum Rules. Please use the pastebin]

    But the upload is still going up as a parent page, not as subpage.

    Could use help with understanding and correcting this.

    TBNK

    Thread Starter TBotNik

    (@tbotnik)

    All,

    I always get a redirect to my ISP cpanel. You may just get an error.

    TBNK

    Thread Starter TBotNik

    (@tbotnik)

    All,

    I have additionally added new page with sub-pages using ScribeFire for some pages I generated.

    None of this relieves the problem, but since some others fix, suspect a possible DB indexing problem. One site will not even show the new page created and ScribeFire always writes under “home” page, so in editing the page, I can not move it as subpage under the new page.

    TBNK

    Thread Starter TBotNik

    (@tbotnik)

    All,

    Some more info:

    All were copied from original site.

    Had to do the following:

    1. change DB entries for “Site A” to new site (www.oldsite.com to http://www.newsite.com – implies download/export of DB before, edit, then upload/import of DB),
    2. Create Initial Post on new site,
    3. Re-init Theme.

    On some sites, this brings up the site, on others they are still re-directing.

    Do not know what to look for next.

    Original site I was working on is first post is now working, fixed with steps above, so look at:

    http://www.ebmmc.com

    Thanks!

    TBNK

    Thread Starter TBotNik

    (@tbotnik)

    Some help here please!

    TBNK

    Forum: Themes and Templates
    In reply to: Arthemia Title
    Thread Starter TBotNik

    (@tbotnik)

    PS

    The site showing the wrong title is at:

    http://dc-technologies.info/dctwp/

    TBN

Viewing 15 replies - 16 through 30 (of 30 total)