WordPress

WordPress – Solutions, Bugs, Modifications, Updates

Add User Register Date Column to WordPress 3.5.X

2013/05/14
By
Modified: 2013/05/06
WP-Users-with-Date-Column

This solution was tested on WordPress 3.1 running on IIS7 and IIS 7.5.  It will work on WordPress 3.1.1, on 3.2.1, and on 3.5.1. This solution adds a new column to your admin user page, and makes it sortable (optional).   Here are the steps. -01- Find wp-admin\includes\class-wp-users-list-table.php and make a backup copy of the file. Call it class-wp-users-list-tableORIG.php.   -02- Open wp-admin\includes\class-wp-users-list-table.php in your favorite editor.   -03- Find line function get_columns() {   -04- Add a new line of code ‘user_registered’ => __(‘Date’), after email field.     -05- Find a very last instance of $r .= “<td $attributes>”;   -06- Insert 3 new lines of code between words…

Read more »


Control WordPress 3.5.X Admin Bar Options for Subscribers

2013/05/10
By
Modified: 2013/05/06
WP-331-Admin-Bar-Removed

WordPress admin bar contains many interesting and convenient links for admins and editors. But it is totally useless, redundant and confusing for regular users. Here is how to hide it for subscribers while viewing the site. Open your theme functions.php file and add these  lines at the very end: if(current_user_can('subscriber')) add_filter( 'show_admin_bar', '__return_false' );   To hide Admin bar while users are in Control Panel, you need to add these lines at the end of your theme style.css file: #wpadminbar { display: none; visibility: hidden; }     The final questions to answer: -01- Can we do all these changes one file and -02- How to remove an ugly empty space at the top of…

Read more »

Block Remote Comments on a WordPress site

2013/05/06
By
Modified: 2013/04/18
Ban Remote Comments on a WordPress site

How to block remote comments on a WordPress site?   How indeed?   Here is a question for all of you – WordPress masters out there.   Right now I am a bit puzzled. Problem – Comments without Visits I am noticing that people are posting a spam comments in a very tricky way.  Somehow comments arrive with Site URL field populated, but I do not even have that field on the “Leave a Comment” form. It means that there is an automated way to send a comment without actually visiting the site.  Is it true?  I am searching all over the Internet right now. Looks like there is a product out there called CxxGxx. …

Read more »

New User Registration in WordPress 3.3.2

2013/05/02
By
Modified: 2013/04/18
WordPress-User-Registration

There is a certain magic in many well-constructed marvels.  This definitely applies to a WordPress.  Just recently I needed to fix something inside user registration procedure, and with very limited PHP knowledge, I was able to figure out, what was going on and fix the problem. On the way there, I couldn’t help but admire, how well everything is documented and linked-in to minimize code duplication.  There is an obvious truth in saying that “the best things in life are free”. When user clicks on a link to register, a wp_login.php page opens up.  This page is a conglomerate of  3 different page-forms: — login, — register and — recover a password. Proper…

Read more »

WordPress Contact Us form – Redirecting Back to Previous Page

2013/04/30
By
Modified: 2013/04/18
Contact Form - Use Messages to Redirect Back

How to implement a Contact Us form in WordPress?  This article describes how to add a very simple Contact from using WordPress 3.0.1 and two plug-in(s): - Contact Form 7 and - Really Simple CAPTCHA. Later, you can customize the contact form to your delight using HTML tags through provided user interface.  Very flexible solution and as far as I can see – it is a bug free solution. As you can see on the picture, this solution has a support for CAPTCHA image code.   CAPTCHA is an image with numbers and letters that appears above Submit button.  User is required to enter these numbers and letters into a text filed to…

Read more »

Make Contact Form 7 work again – change your FROM field

2013/04/26
By
Modified: 2013/04/18

I noticed that my Contact Form 7 started to fail tests without a slightest provocation. This article describes simple steps how to make it work reliable again.   Purpose Reliably receive messages generated by Contact Form 7 from any address.   Problem Many SMTP providers further restricted message relay policies.  They now only allow messages FROM validate addresses.    Solution  Modify your WP email setup -1- Open “Advanced Email Options” -2- Set “From Email” field the same as email account you authenticating  your SMTP login   Test your WP email setup Send several messages using “Send Test” on the bottom of “Advanced Email Options” page, and make sure you are getting…

Read more »

Work with MySQL – Basic WordPress Queries

2013/04/24
By
Modified: 2013/04/18

This article was born, as I was searching for ways to handle thousands of registered WordPress users, who never do anything, never return to the site, and never even change their default password.               Table of Topics -1030- List all registered users sorted by date -1060- Group registered users by email domain name -1090- Users who ever posted articles -1120- List of registered users who ever posted comments -1150- List of users, who posted messages in your bbPress Forum -1180- Group users by year and month of registration -1210- Count users in different roles -1240-  Users who never changed their default password -1270-  Users who changed their default password -1300-…

Read more »

What it Takes to Run Your Own Web Site (ever in progress)

2013/04/23
By
Modified: 2013/04/13
New-Web-Area

Joy of Web Publishing Very early on I noticed that Web content is a very special type of content, and Web development is a very special type of development.  Everything you say and everything you design is immediately available not just to millions, but to an entire Earth population with electricity and Internet.  And that is amazing.   And that is a true lure of running a Web site. Your thoughts and ideas are buried deep inside your head, but with Internet these ideas can find their customer, and your thoughts can find their reader.  Your site is your creation.  It is another dimension of you. Answer Fundamental Questions What is your Angle?…

Read more »

Moving a IIS WordPress Site to Amazon EC2 (New Prices!)

2013/04/20
By
Modified: 2013/04/13
RDP-Options

What is Wrong with Home Server? After a RAID drive hiccup on my local Windows 2008 Server, I was more inclined to consider an external hosting options.  And one of my friends already uses Amazon hosting for at least 4 years now.  So I decided to invest some time to explore this option.   What is Covered Here? - Terminology - Pricing - How to  extract your original ADMIN password - How to open a Custom Port on My Amazon Server - How to transfer files using RDP - How to launch an instance with Instance Store - What if I am Using SQL Express and need a regular D/B Backup…

Read more »

WordPress: Image Editor is not Loading in IE under Tight Security

2013/03/11
By
Modified: 2013/02/17
WordPress - Image Editor is not Loading

Let’s say you have a very thigh zone security setup in IE.   All Internet sites are set to High security level, and  Trusted sites set a Medium-High. In that case you might experience a painful WordPress problem – Image Editor is not loading in IE.  It is getting stuck on a dark loading image. Symptoms: when you click on Add an Image or Edit Image buttons, all you see is your screen is darkening and running image in the middle imitating loading is staying on, forever. To solve this problem without killing your security settings add site about:blank to you trusted site list and here we go – problem is solved!

Read more »