Support » Plugins » embed-rss v1.4 Broken Code – Here’s a fix

  • Embed RSS
    Plugin URI:
    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.4

    This is what i did to fix it..

    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>&nbsp;&nbsp;<em>{$date}</em>{$summary}&nbsp;&nbsp;<em>{$author}</em></li><br />";

Viewing 7 replies - 1 through 7 (of 7 total)
  • Yes, this plugin was not working for me before at all.
    after this fix is good now

    caribwave and sfedona,

    I’m kinda new to wordpress. I am using it as CM for my website. I hope you don’t mind my asking questions on two topics involving RSS feeds.

    Before I install (and modify, apparently) this particular plugin, cets_EmbedRSS, I’d first like to make sure it does what I think I want to do:

    On one of my static pages I would like to include a few feeds from various sources (regarding entertainment happenings in our city.) Does this allow one to add multiple feeds?

    Another option I am considering is a way to add posts to my blog page (I have several static pages and one blog page) manually, but to put them into a category (“city happenings” for example) which I can then hide from this blog page. I would then like to insert an RSS feed containing posts in this (hidden) category into the “happenings” static page. (I have searched these forums and I think I’ve found a way to hide certain categories, but I need to display those posts on the “happenings” page.)

    Thanks in advance for your help.

    The pathing issue has been fixed in version 1.4.1. (We have 2 repos – the internal one and the plugins one. I’ve made them match now.)

    I did not implement the changes to the dialog box size. It’s an accordian-type box. If you click on “Additional Settings” the box will open. All of those settings can be set as defaults in the blogs settings -> Embed RSS panel.

    I also didn’t change the styling, as that’s not how we want our stuff styled internally.

    @jacknorth – yes you can include as many RSS feeds via this plugin as you would like. You will have a shortcode for each one. It won’t aggregate feeds together. But you could probably use another service that does aggregate feeds and then use the feed from that service if you want aggregated feeds.

    Deanna, could I ask for a bit more help?
    I’ve installed the plugin and when I edit a page and click on the RSS icon I get the popup (which, by the way, is a bit hard to read because the underlying text on the page shows through) and I get the prompt in the rectangular box. Is this where I past the url for the feed? I’ve tried that, but nothing shows up when I preview changes. I am obviously missing something. As I said earlier, I’m kinda new to WordPress, RSS, etc.
    Thanks in advance.

    Oops. Never mind. I was forgetting to put “http” at the beginning of the url. Works like a charm now!

    I’d like to point out that 1.4.1 is broken in 2.9.2. Using wp_enqueue_style( 'cets-jquery-ui', plugins_url('/embed-rss/lib/jquery-ui/cets-jquery-ui.css'), array(), $this->version, 'screen' ); fixes the problem. I’m guessing adding the , array() on line 89 did the trick.

    Is there any update on this? I just added the most current version in WP 3.0 and the editor is all jacked up and doesn’t display properly.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘embed-rss v1.4 Broken Code – Here’s a fix’ is closed to new replies.