embed-rss v1.4 Broken Code – Here’s a fix
-
Embed RSS
Plugin URI: http://wordpress.org/extend/plugins/embed-rss/
Description: This plugin adds an RSS icon to the tinymce editor that allows a user to embed an RSS feed into a post or page.
Version: 1.4This is what i did to fix it..
embed-rss/cets_EmbedRSS.php
The following code snips represent the changes I made…wp_enqueue_script( 'jquery-ui-draggable', plugins_url('/embed-rss/lib/jquery-ui/ui.draggable.js'), array('jquery-ui-core'), '1.5.2' ); wp_enqueue_script( 'jquery-ui-resizable', plugins_url('/embed-rss/lib/jquery-ui/ui.resizable.js'), array('jquery-ui-core'), '1.5.2' ); wp_enqueue_script( 'jquery-ui-dialog', plugins_url('/embed-rss/lib/jquery-ui/ui.dialog.js'), array('jquery-ui-core'), '1.5.2' ); wp_enqueue_style( 'cets-jquery-ui', plugins_url('/embed-rss/lib/jquery-ui/cets-jquery-ui.css'), array(), $this->version, 'screen' );
In page editor the RSS button – popup javascript, sorted the dialog box size issue, as it was not displaying all content..
var cets_RSSDialogDefaultHeight = 375; var cets_RSSDialogDefaultExtraHeight = 405; } else { var cets_RSSDialogDefaultHeight = 400; var cets_RSSDialogDefaultExtraHeight = 400;
The lower options in that dialog box…
<p>Include Content: <input type="checkbox" id="cets_RSS-dialog-itemcontent" class="cets_RSS-dialog-dim" value="1" <?php if (get_option('cets_embedRSS_itemcontent')) {echo ' checked="checked"';}?> /><br /> Include Author: <input type="checkbox" id="cets_RSS-dialog-itemauthor" class="cets_RSS-dialog-dim" value="1" <?php if (get_option('cets_embedRSS_itemauthor')) {echo ' checked="checked"';}?> /><br /> Include Date: <input type="checkbox" id="cets_RSS-dialog-itemdate" class="cets_RSS-dialog-dim" value="1" <?php if (get_option('cets_embedRSS_itemdate')) {echo ' checked="checked"';}?> /></p>
In embed-rss/lib/shortcodes.php
Adjusted the spacing between each listed topic on a generated feed, plus used bold for title, italic for date etc..$out .= "<li><strong><a class='post' href='$link' title='$desc'>$title</a></strong> <em>{$date}</em>{$summary} <em>{$author}</em></li><br />";
- The topic ‘embed-rss v1.4 Broken Code – Here’s a fix’ is closed to new replies.