How To Fix The LinkShare RSS Deal Feed WordPress Plugin
I haven’t tried using the coupon or widget functionality, so this only applies to the RSS functionality via the get_linkshareRSS() function.
After installing the plugin and setting it up, I noticed 2 problems. The first, the configuration panel didn’t seem to save all of my settings. The second, the get_linkshareRSS() function didn’t display anything but the Headline.
Problem 1: After a little investigation, I found out that the settings were getting saved, it’s just that the hard coded values in the option list of the “Choose an RSS feed” (display_type) select control are incorrect. They have “&” between the promoid & token, but the value retrieved from the database only has “&”. So you have to change the line of the feed you want to select.
For example, (in the file linksharerss-ads/LinkshareRSSCoupon.php)
line 1065:
(Original:)
<option <?php if(get_option(‘LinkshareRSS_display_type’) == ‘http://rss.linksynergy.com/promo.rss?promoid=2909&token=’) { echo ‘selected’; } ?> value=”http://rss.linksynergy.com/promo.rss?promoid=2909&token=”>A Matter of Fax – Deals of the Day</option>
(Change To:)
<option <?php if(get_option(‘LinkshareRSS_display_type’) == ‘http://rss.linksynergy.com/promo.rss?promoid=2909&token=’) { echo ‘selected’; } ?> value=”http://rss.linksynergy.com/promo.rss?promoid=2909&token=”>A Matter of Fax – Deals of the Day</option>
After saving the changes to the file, you should see the correct settings in the configuration panel.
Problem 2: After a little more investigation, I found that the token was not getting retrieved from the database in the get_linkshareRSS() function. After browsing through the code I noticed that in the get_linkshareRSS() function the token (linkshareid) is retrieved from the db as ‘linkshareRSS_linkshareid’, but every where else in the code it is retrieved as ‘linkCoupon_linkshareid’. So you have to change the line that retrieves the token to use the correct name.
(in the file linksharerss-ads/LinkshareRSSCoupon.php)
line 27:
(Original:)
if (!isset($args[6])) $id_number = stripslashes(get_option(‘linkshareRSS_linkshareid’)); else $id_number = $args[6];
(Change To:)
if (!isset($args[6])) $id_number = stripslashes(get_option(‘linkCoupon_linkshareid’)); else $id_number = $args[6];
After saving the changes to the file, you should see the deals show up on your page. After that you just have to change the styling & fields you want to display.
To see an example of mine in action check out the More Ragin’ Savin’s section of Ragin’ Savin’s.

















