WordPress

WordPress – Solutions, Bugs, Modifications, Updates

Make Contact Form 7 work again – change your FROM field

2017/07/20
By
Modified: 2017/06/25

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 »


WordPress Contact Us form – Redirecting Back to Previous Page

2017/07/14
By
Modified: 2017/06/25
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 »

Adding a new WordPress site to an Existing Installation

2017/07/12
By
Modified: 2017/06/25

Task You already have a working WordPress (WP) site.  Now, you need to add one more site with a new MySQL database.  This document describes how to add one more database and install a new WP site on the same server. Download Download latest WordPress ZIP package (3.X) and unzip it to your future site location. Open IIS Admin Create a new virtual directory pointing to that location Side Notes – Change root password You need to know existing root user password. Login into MySQL Command Line Client. Select database: use mysql; Reset user password: update user set password=PASSWORD(“NewPassword”) where User=’root'; Allpy new password: flush privileges;   Create a New Database…

Read more »

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

2017/07/08
By
Modified: 2017/06/25
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 »

Set up bbPress as WP Plugin: Convert from bbPress standalone

2017/07/04
By
Modified: 2017/06/25

We went live with new bbPress plugin on January 28, 2013.   bbPress as a plugin for WordPress I started preparing for series of upgrades to the latest WP version (3.5), and Theme and all the plugings.  It was immediately obvious that among other things, I would have to look into migrating from integrated bbPress to a bbPress as a WP plugin. So far my experience was pretty intense.  I will try to log my progress here as I am moving forward preparing a production roll-out on my test site. Migrate your bbPress data from “bb_” tables into your “wp_” database I was able to migrate all the content from old…

Read more »

Adding Selectable Styles to the WordPress Editor

2017/06/22
By
Modified: 2017/04/30
TinyMCE Advanced - Styles are Listed

How to add Code style and more into Style drop down box inside WordPress editor? If you don’t mind one more plug-in – download and install TinyMCE Advanced Plug-in. According to my tests, this plug-in works on WordPress 3.0.1.  This plug-in allows you to customize your buttons in your WordPress editor and add a number of new features: – Complete control of  your buttons in WordPress editor; – GUI for tables operations; – Insert an image from outside through a  URL; – Fixes IE spell check problem for 64-bit browser; – GUI dialog box to edit CSS element style; – Font drop-down box; – Font size drop-down box; – Font color and…

Read more »

New User Registration in WordPress 3.X

2017/06/10
By
Modified: 2017/04/30
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: different header images for different categories

2017/06/05
By
Modified: 2017/04/30

If your theme has a header image, this article is for you.   It turns out, it is relatively easy to display different site header images for different post categories. To do that, you need to add an IF statement to header.php file.  This IF statement will control, what header image is loaded depending on (in this example) current category. First, upload a new header image using new article and add new media functionality. Note the path, where your new header image landed in the Upload directory structure. Here is how header image code looked before the change in header.php:   <?php if(pbt_theme_option('logo_header')) { ?> <a href="<?php echo home_url(); ?>/" class="headerimage"> <img src="<?php…

Read more »

Control WordPress 3.X.X Admin Bar Options for Subscribers

2017/06/01
By
Modified: 2017/04/30
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 »

WordPress Error 500 – Internal server error on Empty Comment

2017/05/17
By
Modified: 2017/04/30
WordPress Error 500 – Internal server error on Empty Comment

Problem – Embarrassing Error 500 I am running latest Word Press 3.0.1 on IIS 7.0.  If visitor tries to leave an empty comment or forgets to enter name or email, an ugly 500 – Internal server error will appear on the screen.  This is extremely embarrassing for the host and for the site. I approximately know that I have three ways to approach this problem: – Disable error 500 on IIS side to allow WordPress to handle it; – Lower level of error generated in WordPress code (IIS will not catch it then) or – Write a local JavaScript to prevent user from posting with empty fields. Solution – One click in…

Read more »