pkchrisjohnson
Forum Replies Created
-
Forum: Hacks
In reply to: Increment a Counter after Comment is publishedI have determined the issue. The array uses capital letters for the user ID, so your code should read this:
global $commentdata; $the_user_id = $commentdata['user_ID'];//NOTE THE CAPITAL LETTERS HERE // $the_user_id now holds the ID of the appropriate user
So now everything works and I am able to update my counter for a user. Thanks!
Forum: Hacks
In reply to: Increment a Counter after Comment is publishedHey Mark, thanks for the help. I am having an issue with code that you sent me here. Whenever I try to use $the_user_id, it is always a NULL value using the code above. Is there something I am missing here? When I do a var_dump of $commentdata, all of the proper values are present, so that part of the puzzle is fine, just not the other. Thanks.
Forum: Plugins
In reply to: Best Practice for speed, using $wpdb for every post displayedThanks for the information. These suggestions should help a lot!
Forum: Fixing WordPress
In reply to: Have I been hacked? Username: “amin”After going back through our weekly backups on a WordPress site I maintain, I found that the Amin user was present as far back as May. Our backup that went through on the 17th was the first that did not contain that user account.
After calling Rackspace, they seemed to think that it was a plugin vulnerability but I didn’t have that many plugins. Here is what I had installed, though (btw, these plugin names come from the folder name on the server, and may differ from the “actual” plugin name):
Akismet (disabled)
Calendar
Disqus Comment System
Google Analyticator
Google Sitemap generator
Optimize-db
Share-This
WP-Db-Backup
WP-no-category-base
WP-Print
WP-Security Scan
wptuner
hello dolly (disabled)I did not see any bad code on the site but the “amin” user has been present for about a month.