Web Applications & Online Software

How to replace a string in all posts in WordPress database?

We had some anomalies in our WordPress sites that some of them old posts have the wrong interpretation of single quotes and double quotes so we had to manually replace all the wrong strings to the correct quotes. In cpanel, you can open up phpmyadmin to run the following MySQL queries, but first, you need …

How to replace a string in all posts in WordPress database? Read More »

Office365 SMTP Send Emails as Shared Mailbox via smtp.office365.com

Go to Office.com admin center > Users > Active users. Create a standalone user for the purpose of SMTP authentication, e.g. [email protected] with password XXYYZZ112233, as you don’t want to give the password of your existing users to apps (e.g. WordPress) that need to access your SMTP. Edit the created account enabling SMTP authentication by …

Office365 SMTP Send Emails as Shared Mailbox via smtp.office365.com Read More »

Office.com Office 365 Creating Shared Mailboxes by the Same Name under Different Domains

When you have multiple domains under the same Office 365 admin account, e.g. domain1.com, domain2.com, etc., you can’t directly create these emails: [email protected] [email protected] Which would give this error when you try to create emails by the same name already used by another domain: Now you can have a little circumvention to get around this …

Office.com Office 365 Creating Shared Mailboxes by the Same Name under Different Domains Read More »

Add SSL / HTTPS for WordPress Network sub-site as cPanel Alias Domain

Site Address (URL) We first change the Site Address (URL) of the sub-site. Go to WordPress Multi-site: “My Sites” => “Network Admin” => “Sites” => Click “Edit” of the sub-site, and change the Site Address (URL) to the top level domain URL like this: https://www.example.com/ Click “Save Changes“. Domain Mapping (plugin) A top-level domain is …

Add SSL / HTTPS for WordPress Network sub-site as cPanel Alias Domain Read More »

You don’t need a Google Apps alternative for email hosting

Now that Google Apps closed sign-up for free plans, lots of people are looking for alternatives to Gmail for their own domains. Actually they don’t need to. You can simply add other domains to your existing Google Apps account as separate domains to set up emails such as [email protected] The separate domain emails perform exactly …

You don’t need a Google Apps alternative for email hosting Read More »

Customize WordPress Admin Styles from Your Theme Directory

It’s better to style the /wp-admin of WordPress from your theme because it’s portable and upgrade-proof. Keeping all customizations  in ONE place is always a good idea in web development. How to style WordPress admin backend /wp-admin from your theme? Add this hook to the functions.php of your theme: function customAdmin() { ?><link rel="stylesheet" type="text/css" href="<?php bloginfo(‘stylesheet_directory’); ?>/wp-admin.css" …

Customize WordPress Admin Styles from Your Theme Directory Read More »

Make WordPress Hooked Function to Run Only Once

Consider this hook to add something before your WordPress blog’s sidebar: function before_siderbar() { ?> <!– Something goes here, such as an AdSense links unit –> <?php } add_action( ‘get_sidebar’, ‘before_siderbar’ ); It’s usual to add an AdSense links unit there but the problem with some themes is that they run get_sidebar more than once, …

Make WordPress Hooked Function to Run Only Once Read More »

vBulletin: Paid Subscription Not Showing Up

I was trying to start a premium membership for Kavoir Backyard and after I have created a Paid Subscription profile, nothing shows up in user control panel nor at /backyard/payments.php. As you can see from the thread I started in the official vBulletin forum for help, I have done everything necessary to create the subscription …

vBulletin: Paid Subscription Not Showing Up Read More »

Make Firefox to Not Send HTTP Referer (or On a Per-Site Basis)

By default browsers such as Firefox sends the Referer information to the target URL in the HTTP header, as defined by HTTP protocol, so the destination URL / website knows where you have come from. For instance, when you click this link to one of my friends’ sites, it would know you have arrived at …

Make Firefox to Not Send HTTP Referer (or On a Per-Site Basis) Read More »

How to Create WordPress Widget Areas (Before and After Single Post)

Most WordPress themes such as those released by WooThemes come with ready to use widget areas only in sidebar and footer. They are missing out the most important areas of a blog for readership attention and actionable conversions. They are the areas immediately before single post content and immediately after it. For example, a paragraph …

How to Create WordPress Widget Areas (Before and After Single Post) Read More »

PHP preg_match() First Letter of a WordPress Post for Drop Cap Styling

While CSS3 can target the first letter of text inside an element, it’s still not universally supported across major browsers AND it doesn’t work well for elements that have child elements inside. The bullet proof way to target the first letter of a WordPress post would be to capture the content of the post in …

PHP preg_match() First Letter of a WordPress Post for Drop Cap Styling Read More »

WordPress: Programmatically Add Items to a Menu (Dynamically)

Menus are created and edited from in the WordPress backend and then called in frontend theme to be displayed by the wp_nav_menu() function. On some occasions, we may want to programmatically add one or two menu items to a menu because those menu items change frequently and it would be a chore to have to …

WordPress: Programmatically Add Items to a Menu (Dynamically) Read More »

Customize WordPress Login Header and Link, Upgrade-proof without Plugin

The default image header and link on the login / register page of WordPress is a WordPress one, apparently, but when you are enabling registration / login to general users, you would want to use your own logo and website URL as the header rather than the default -  so people don’t get confused and …

Customize WordPress Login Header and Link, Upgrade-proof without Plugin Read More »

Avalanche Coupon Code (Magento Theme)

Jake (fastdivision.com) was kind enough to offer me a coupon code so that my readers can enjoy the Avalanche Magento theme at 15% discount. In case you haven’t read my review of the Avalanche theme, it is the current sensation going on in the Magento-sphere. In the shortest words, I think it’s the best Magento …

Avalanche Coupon Code (Magento Theme) Read More »

WordPress: Display Ads in Post Content and Only Display Ads in Old Posts

The title pretty much says it all. It’s 2 of the most useful AdSense ads tips for bloggers in my opinion. Obtrusive ads have the unnecessary effect of driving away readers after they have found what they needed. Unless you have amazingly great content, the chance of them becoming a loyal reader is rather low …

WordPress: Display Ads in Post Content and Only Display Ads in Old Posts Read More »

Premium Magento Theme – Avalanche (Review)

Avalanche 15% Off Promo: Click here to get 15% discount off, then enter code KAVOIR in the box to claim the 15% discount off the Avalanche theme. After digging into Magento for a few months and trying to start my own tangible business (I only deal with digital goods as of now), I failed in …

Premium Magento Theme – Avalanche (Review) Read More »