smacavelly
Forum Replies Created
-
Forum: Plugins
In reply to: [NGS SAM Integrator] DedicationsMarking this topic as resolved. Sorry meant to do that on my last post.
Forum: Plugins
In reply to: [NGS SAM Integrator] DedicationsThank you for your response, I would also like to tall you this in an amazing plugin for WordPress. I have seen others. You are the first in my opinion to do it right. Very well done & thank you for your time & effort on this project.
Regards,
Smacavelly,Same issue as above any help would be great. I don’t know if this creator is still supporting this plugin or not but I posted on his website located here it looks like we are not the only people having this issue.
http://forum.robfelty.com/topic/error-when-trying-to-post-images-via-postie
Forum: Fixing WordPress
In reply to: MySQL query to search posts and change categories?AndrewKantor, Did you make this a plug-in yet? I can see where it would very helpful. I added hostname for easy copy & paste use.
I set this up using a cron job because I wanted post that I post with pictures to place into a separate cat then posts without pictures. This works like a charm thanks again…<?php $username="MY_MYSQL_USERNAME"; $password="MY_MYSQL_PASSWORD"; $hostname="MY_DATABASE_HOSTNAME"; //Your Database hostname usually $database="MY_DATABASE_NAME"; $my_text = "/images"; // What I'm searching for $my_category = '8'; // The category to change it to // Connect to MySQL and the database and verify: mysql_connect($hostname,$username,$password) or die(mysql_error()); echo "<p>Connected to MySQL."; mysql_select_db($database) or die(mysql_error()); echo "<br />Connected to " . $database . "</p>"; // Verify what we're looking for, for troubleshooting: echo "<p><b>Looking for " . $my_text . "</b></p>"; // Get the ID field (which is WordPress's post // number) from any posts that have your text: $query = "SELECT ID FROM wp_posts WHERE post_content LIKE '%$my_text%'"; // Take those results and go through them: $result = mysql_query($query) or die(mysql_error()); // While there are results... while($row = mysql_fetch_array($result)) { // Verify what we're doing -- changing post // number such-and-such... $thisPostHasIt = $row['ID']; echo "<p>Row " . $row['ID'] . " contains it, so...<br />"; // In the wp_term_relationships table, // update the category number ("term_taxonomy_id") // with the category number you specified -- but only // in one of the "result" rows. // We look for "object_id" to equal one of those // rows. (The object_id field refers to the WordPress // post number, just as the ID field did. Why two // different names? Who knows?) mysql_query("UPDATE wp_term_relationships SET term_taxonomy_id='$my_category' WHERE object_id = '$thisPostHasIt'"); // And tell us about it: echo "Changing post number " . $thisPostHasIt . " to category number ". $my_category . "</p>"; } echo "<p><b>All done!</b></p>"; ?>Forum: Fixing WordPress
In reply to: MySQL query to search posts and change categories?AndrewKantor,
How has this effected permalinks? Do you have to regenerate them after you update the categories? I have found your post very useful & thank you for your efforts.Forum: Plugins
In reply to: Plugin Request send Post to email with attachments.wp-email now or has supported this. It’s working fine now with no problems.
Excellent.