Ron Fredericks
Forum Replies Created
-
Forum: Plugins
In reply to: [Wordpress Wiki] Missing argument 2 for wpdb::prepare()same problem in one more file: wiki_dashboard_widget.php
on line 12, add dummy 0 , as 2nd argument to $wpdb->prepare() like this:
$posts = $wpdb->get_results($wpdb->prepare("select * from $wpdb->posts where ID in (
select post_id from $wpdb->postmeta where
meta_key = 'wiki_page' and meta_value = 1)
or post_type in ('wiki') order by post_modified desc limit 5", 0)); // add dummy variable to satisfy argument 2 warning, RDF
Forum: Requests and Feedback
In reply to: Can the wordpress team fix my plugin stats page?Wow WP team responded to my email request, stats tab on wpmathpub plugin page now working. Thanks.
Forum: Fixing WordPress
In reply to: private posts corrupt category listGood point Keesiemeijer:
I am using the twentyten theme, I think that is the default.
Can you use a private post without it clobbering the category list display?
Best regards,
Ron
Forum: Fixing WordPress
In reply to: A website is trying to play my wordpress videos in an iframeThanks for the updates. I was hoping my simple hack posted here would point me to some other solutions.
Ron
Forum: Plugins
In reply to: [Plugin: ShareThis] Sharethis iframe badly formated below flash videoI discovered that my previous example of adding a paragraph tag around my ShareThis bookmark had a bad side effect… A new ShareThis button would show up above my page header making for a dumb looking blog.
I did come up with an improved way to solve this problem so I am sharing it here. Within the sharethis.php plugin file, make a simple modification like this:
if(!empty($widget)){ // <div>...</div> added to $sharethis string, RDF $sharethis = '<div><script type="text/javascript">SHARETHIS.addEntry({ title: "'.str_replace('"', '\"', strip_tags(get_the_title())).'", url: "'.get_permalink($post->ID).'" });</script></div>'; }Hi Steve:
Thanks for sharing this little code mod. I too had a problem. The iframe version of ShareThis was showing up under my flash swf images. The popup version would not work for me either.
So I used your code example to create a div block around my ShareThis script – which forced the ShareThis iframe to avoid my swf image:
if(!empty($widget)){ // <div>...</div> added to $sharethis string, RDF $sharethis = '<div><script type="text/javascript">SHARETHIS.addEntry({ title: "'.str_replace('"', '\"', strip_tags(get_the_title())).'", url: "'.get_permalink($post->ID).'" });</script></div>'; }Forum: Fixing WordPress
In reply to: All my page and comment links stopped working?OK,
I solved this problem myself after reading other forum posts found by searching “permalink reset”. To fix this type of problem, I went to my admin permalink panel and changed the permalink format to some other format. I found that the new permalink structure worked fine. So then I went back to the admin permalink settings page and reset my parmalink structure back to my original format.
Permalinks restored.
BTW: I discovered that my admin panel blocks me from entering my name and password when a particular plugin is activated, followed by logging out. To log back in I normally rename that particular plugin directory to deactivate it, or the entire plugin directory to deactive all plugins. This trick failed this time, so I took the more drastic measure of reinstalling all the wordpress blog code. Neat that wordpress.org’s code and database structure is so rugged.
I hope this helps others when the time comes,
Ron
Forum: Plugins
In reply to: [plugin: wpmathpub] Version 1.0.7 released todayI finally got around to updating my blog to WordPress version 2.6.2. After some testing, I am happy to report that wpmathpub version 1.0.7 is compatible with version 2.6.2.
Link to landing page: http://wordpress.org/extend/plugins/wpmathpub/
Best regards,
Ron
Forum: Fixing WordPress
In reply to: Disable Comments (Due To Spam)BTW: This nice plugin can solve the problem of not having enough control over comments too, but with a little more flexibility:
http://beingmrkenny.co.uk/wordpress/plugins/extended-comment-options/
Best regards,
Ron
Forum: Plugins
In reply to: [Plugin: wpmathpub] Version 1.0.5 released todayPS: Here is a link to the wpmathpub v:1.0.5 plug-in:
Forum: Fixing WordPress
In reply to: RSS Feeds Not WorkingI discovered that my comments (RSS) feed was comming back with an error and would not work. After studying the comments above, I had the tools I needed to solve my problem!
1) I used the feed validator at http://feedvalidator.org to detect the error and several warnings.
2) The error was created by my own text in a comment where I discussed HTML entities. The text I typed to break my RSS comments feed looked like this:
“& gt;”
where only the “ampersand” symbol itself was typed – to avoid breaking this comment here I typed “&” in the error string above instead.
3) Because I created my own problem with invalid text, deactivating my plugins did not solve the problem.
4) The error reported by IE and Firefox were different. IE reported the most misleading error. Here is the error IE reported which had nothing to do with the cause or the fix – and lead me to beleave I had an error during my upgrade from WP 2.0.4 to WP 2.5.1:
‘More information
Reference to undeclared namespace prefix: ‘atom’.
Line: 8 Character: 115<atom:link
href=”http://www.embeddedcomponents.com/blogs/comments/feed/” rel=”self” type=”application/rss+xml” />’5) If you start with the results from an RSS validation tool before making blind guessess, you too may be able to solve this type of problem too.
Best regards,
Ron
Forum: Plugins
In reply to: [Plugin: wpmathpub] How to display math symbols that are also HTML entitiesA new candidate version of wpmathpub is under review at this time to replace version 1.0.4.
This new version has a fix for html entities so they are correctly converted back to plain text. In this way, a visual editor will correctly display math equations with html entities like “& gt;”.
This new version now supports math equations in blog comments, not just blog posts themselves. You can see the new version in action and get the code changes to affect these changes before the new version is released from here:
http://www.embeddedcomponents.com/blogs/2008/03/wpmathpubsupport/#comment-26474
Best regards,
Ron
Forum: Fixing WordPress
In reply to: new upgrade to WP 2.5.1 but options-writing.php page is blankI have partially solved this problem – see post:
http://wordpress.org/support/topic/176358Forum: Fixing WordPress
In reply to: blank settings writing page: options-writing.phpAs an update:
When I pull this code out of my options-writing.php, the page works fine:
<p><?php printf(__(‘To post to WordPress by e-mail you must set up a secret e-mail account with POP3 access. Any mail received at this address will be posted, so it’s a good idea to keep this address very secret. Here are three random strings you could use:
%s,%s,%s.’), wp_generate_password(), wp_generate_password(), wp_generate_password()) ?></p>Any idea what would cause this block of code to break
Forum: Fixing WordPress
In reply to: Adding Comments to PagesThe comments above worked for me too. I am using wp v: 2.5.1 and the default theme: The default WordPress theme based on the famous Kubrick.
In the theme’s pages.php I added one line just before <?php endwhile; endif; ?> as shown here:
<?php if ((‘open’ == $post-> comment_status)) { comments_template(); } // add this for comments on static pages RDF 5/14/08?>
<?php endwhile; endif; ?>
Thanks again:
Ron Fredericks