yearginsm
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Function fetch_rss() now removes ‘<‘ and ‘>’I am noticing this happens on the Dashboard too. After talking with the developer of FlickrRSS, he says it is a hosting issue. I have never come across this before 2.7, so is anyone aware of a change in the implementation of MagpieRSS or any of the content filters it uses?
Forum: Plugins
In reply to: [Plugin: flickrRSS] No images with 2.7This may end up being a hosting issue, as my test site on my Mac seems to work just fine with 2.7+flickrRSS. I am on Joyent’s Shared Accelerator. I’ll take a shot in the dark and say few other people on here use that service.
Forum: Plugins
In reply to: [Plugin: flickrRSS] No images with 2.7This isn’t the prettiest fix, but it will get your photos to show up again. Step through the plug-in file until you find this line.
Replace:
if(preg_match('<img src="([^"]*)" [^/]*/>', $item['description'],$imgUrlMatches)) {
With:
// Hack to switch regular expression based on WordPress Version if (get_bloginfo('version')=='2.7') { $pattern = '/img src=(.*) width/'; } else { $pattern = '<img src="([^"]*)" [^/]*/>'; } if(preg_match($pattern, $item['description'],$imgUrlMatches)) {
Forum: Plugins
In reply to: [Plugin: flickrRSS] No images with 2.7I have turned in a bug to the developer. Let’s see what happens.
Forum: Plugins
In reply to: Feed stopped working after upgrading to 2.7I wonder if you moved the FeedBurner redirects underneath the ‘WordPress’ declarations (after
# END WordPress
) if it would help at all.Forum: Plugins
In reply to: Feed stopped working after upgrading to 2.7Do you guys have something special in your configuration (like
.htaccess
) to send the request for the/wp-feed.php
file back to Feedburner? I see that there is a plug-in that can also handle it, so I wonder if the plug-in is not 2.7 compatible?I think the
HTTP 500
error stems from the site going in an endless loop. (Feedburner makes the request to your Web site, gets redirected back to Feedburner, which makes another request to your Web site, etc.) The way it should work is that the User-Agent string for Feedburner should be able to open up the wp-feed.php file without getting redirected, while other users would be redirected to Feedburner.Forum: Plugins
In reply to: [Plugin: flickrRSS] No images with 2.7Here is a comparison of the two outputs. It looks like the contents of the the
$items[$i]['description']
output from the MagpieRSS has changed to strip out all HTML tags.In 2.6
[description] => <p><a href="https://www.flickr.com/people/stephenyeargin/">yearginsm</a> posted a photo:</p> <p><a href="https://www.flickr.com/photos/stephenyeargin/3137553548/" title="Getting Into the Holiday Spirits"><img src="https://farm4.static.flickr.com/3225/3137553548_e60aacabee_m.jpg" width="240" height="180" alt="Getting Into the Holiday Spirits" /></a></p>
In 2.7
[description] => pa href=https://www.flickr.com/people/stephenyeargin/yearginsm/a posted a photo:/p pa href=https://www.flickr.com/photos/stephenyeargin/3137553548/ title=Getting Into the Holiday Spiritsimg src=https://farm4.static.flickr.com/3225/3137553548_e60aacabee_m.jpg width=240 height=180 alt=Getting Into the Holiday Spirits //a/p
Forum: Plugins
In reply to: Feed stopped working after upgrading to 2.7What is your site URL? There might be a whitespace issue with your RSS feed.
Forum: Plugins
In reply to: How to save plugin options as an array in 2.5?It allows an array to be stored as a string, particularly handy if you need to store data in a manner that does not require a set schema. Let’s say I had four options for a plugin:
Array ( [list_begin] => <ul> [list_end] => </ul> [list_item_begin] => <li> [list_item_end] => </li> )
If I really did not want to create four separate options in the
wp_options
table, I could serialize that array (it works for objects too) and write that as one long string to be stored as one option.a:4:{s:10:"list_begin";s:4:"<ul>";s:8:"list_end";s:5:"</ul>";s:15:"list_item_begin";s:4:"<li>";s:13:"list_item_end";s:5:"</li>";}
Once that is in the table, you can use the unserialize() function to return it to an array for use in your plugin. If you look at the
/wp-admin/options.php
page, you will see a good bit of the WordPress internals and some other plugins handle data in this way.Forum: Plugins
In reply to: jQuery and WordPress Theme/Plugin DevelopmentThat appears to be the fix. I suppose all is well in the interest of playing nice with other libraries.
https://docs.jquery.com/Using_jQuery_with_Other_Libraries
Thanks!
Forum: Plugins
In reply to: Anyone know how to Show/Hide Multiple Videos in a Single Post???The links to video use the
play()
javascript function. It is not part of the SWFObject package, and in this case is passing the initialization settings for SWFObject. It might be handy to have something to model your code after.When you get it up and running, be sure to share it with us!
Forum: Plugins
In reply to: Anyone know how to Show/Hide Multiple Videos in a Single Post???I wish I could be of more help, but I have never had to embed a lot of video a site. I think the solution will not have as much to do with WordPress (you can easily put Javascript into a post just like you could if you were creating static HTML pages) as it would with the video embedding scripts.
Here is the forum that the SWFObjects experts hang out at:
https://groups.google.com/group/swfobject
Sorry I could not be of more assistance.
Forum: Plugins
In reply to: Anyone know how to Show/Hide Multiple Videos in a Single Post???Ah. I thought you were looking to simply load a video file into a pop-up. The site you reference is using the SWFObject javascript library with an extra function tied onto the end of it.
Library: https://blog.deconcept.com/swfobject/
Controller:
function play(theFile, go) { var flvu; flvu = "https://www.dipvid.com/play.php?flv=" + theFile; var so1 = new SWFObject("flvplayer.swf", "flvplayer", "553", "440", "7", null, true); so1.addParam("allowFullScreen", "true"); so1.addParam("wmode", "transparent"); so1.addParam("allowSciptAccess", "always"); so1.addVariable("themes", "themes.xml"); so1.addVariable("flv", flvu); if (go) { so1.addVariable("autoplay","true"); } so1.write("flashcontent2"); }
I personally have never had a need to do this, but I think those sites and examples should be enough to get you started.
Forum: Plugins
In reply to: Anyone know how to Show/Hide Multiple Videos in a Single Post???It looks like Javascript will be your friend for this one. I do not think there is a comparable feature built-in to WordPress.
https://www.javascript-coder.com/window-popup/javascript-window-open.phtml
So, for each link, you could add an
onclick="window.open([...])"
attribute using examples from the link above. You would have to use the HTML view (non visual editor) to make these edits.Forum: Plugins
In reply to: [Plugin: WP-SpamFree] Small change to the Dashboard sectionHere is a Diff file for some other minor changes. I also ran the Javascript file through the WordPress wp_head() hooks to keep things nice and tidy.
1317d1316 < echo '<h3>WP-SpamFree</h3>'; 1320c1319 < echo '<p>No comment spam attempts have been detected yet.</p>'; --- > echo '<p>'.sprintf(__('<a href="%1$s" target="_blank">WP-SpamFree</a> has not yet blocked any spam comments.'), 'https://www.hybrid6.com/webgeek/plugins/wp-spamfree/' ).'</p>'; 1360c1359,1366 < add_action('wp_head', array(&$this, 'wp_head_intercept')); --- > > $wpSpamFreeVer=get_option('wp_spamfree_version'); > if ($wpSpamFreeVer!='') { > $wpSpamFreeVerJS=' v'.$wpSpamFreeVer; > } > > wp_enqueue_script('wp_spamfree', '/wp-content/plugins/wp-spamfree/js/wpSpamFreeJS.php', false, $wpSpamFreeVerJS); > 1526,1539d1531 < < function wp_head_intercept(){ < $wpSpamFreeVer=get_option('wp_spamfree_version'); < if ($wpSpamFreeVer!='') { < $wpSpamFreeVerJS=' v'.$wpSpamFreeVer; < } < echo "\n"; < echo '<!-- WP-SpamFree'.$wpSpamFreeVerJS.' JS Code :: BEGIN -->'."\n"; < echo '<script type="text/javascript" src="'.get_option('siteurl').'/wp-content/plugins/wp-spamfree/js/wpSpamFreeJS.php"></script> '."\n"; < echo '<!-- WP-SpamFree'.$wpSpamFreeVerJS.' JS Code :: END -->'."\n"; < echo "\n"; < // Modified following line in 1.6.3 < // update_option( 'ak_count_pre', get_option('akismet_spam_count') ); < }