Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • The idea behind making the file an xml file is that godaddy does not (as I understand it) inject its junk into xml files. I’m guessing that something else is at play here.

    I’d try turning off all your other plugins and recreating the xml files.

    Maybe its in the static feed settings, I have all the feed boxes checked and used the example URL and Local File Paths for each. Then
    under additional settings I have the Permalinks checkbox unchecked and the Manually update .htaccess unchecked.

    Also, I doubt it’ll help anything, but I put a .htaccess file in my blogs top level directory.

    Hope this helps.

    Here are lines 1275 to 1308 of my staticfeed.php file.

    function staticfeed_save_feed_content($local_file, $content)
    
    {
    	$content = ltrim($content);
    	$content = rtrim($content);
    	$content = rtrim($content,"<script language='javascript' src='https://a12.alphagodaddy.com/hosting_ads/gd01.js'></script>");
    	$content = rtrim($content);
    	$content = rtrim($content,"</iframe></noscript></object></layer></span></div></table></body></html><!-- adsok -->");
    
    	if( !file_exists($local_file) )
    
    	{
    
    		if( !@touch($local_file) )
    
    			return array('success'=>false, 'message'=>__('Unable to create file.') );
    
    		chmod($local_file, 0666);
    
    	}
    
    	if( !is_writable($local_file) )
    
    		return array('success'=>false, 'message'=>__('Unable to write to file.') );
    
    	$fp = fopen($local_file, 'w');
    
    	if( $fp === false )
    
    		return array('success'=>false, 'message'=>__('Unable to open to file.') );

    Did you try deleting the RSS xml feed file and having the plug-in recreate it? Publishing a post might accomplish the recreation as well.

    You may also have slightly different garbage injected by godaddy at the bottom of your xml feed file, so you may need to customize the code above for your file.

    Hi all,

    This is quite far from a sexy fix for the broken RSS feed, but here is how I accomplished it:

    I installed the plugin Static Feed/, and set the static feeds to rss2.xml, rdf.xml, rss.xml, and atom.xml

    Then edited /wp-content/plugins/staticfeed/staticfeed.php inserted the following code at the beginning of the staticfeed_save_feed_content function at line 1278:

    $content = ltrim($content);
    $content = rtrim($content);
    $content = rtrim($content,"<script language='javascript' src='https://a12.alphagodaddy.com/hosting_ads/gd01.js'></script>");
    $content = rtrim($content);
    $content = rtrim($content,"</iframe></noscript></object></layer></span></div></table></body></html><!-- adsok -->");

    I pointed my feedburner to the static xml link and it seems to work fine now, hope it works for you as well.

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