Skip to content
Tareq Hasan

Year2012

WordPress Settings API PHP Class - It has never been easier

Yesterday I was thinking to migrate my "WP User Frontend" plugin's option panel to settings API which is using a manual option currently. So I thought why not write a PHP class that will solve my problems for every plugin or theme I'll be writing? There are many existing frameworks like "Options Framework" and other …

Facebook comment for WordPress: Email notification on new comment

Recently I built a lyrics site in Bangla, that contains only Bangla songs. I love music and haven't found that much lyrics site that's truly for Bangla songs and in Bangla localization, so I decided to build one. It got very popular in a few days. The songs are added by users and seems like …

Fixing phpmyadmin not found problem and AllowNoPassword in ubuntu

Every time I installed phpmyadmin in my ubuntu desktop, navigating to http://localhost/phpmyadmin simply displays a 404 message. This is how I fix every time - Fixing AllowNoPassword I don't use any password for mysql in my development environment. But by default phpmyadmin doesn't allow you to login without a password. You can overcome it by editing …

Changing apache document root in ubuntu

In my development machine I always like to move the default /var/www directory to my home directory, e.g. /home/tareq/www . It's very simple to do. Open the /etc/apache2/sites-available/default file with administrator privilege and change the document root as you want Now change the file like this: Now restart your apache Update According to Nasim vai, …

Deploying PHP apps with git and git submodule

I used to work in my projects like editing a file and uploading the changed files back to the server every time when it feels like those changes are OK. But when the number of files gets bigger, I lose track which files I've edited. In that case I had to upload all the files …

How to extend WP User Frontend

WP User Frontend plugin supports some actions and filters by itself. That means you can extend this plugin without touching its code. Let's see how to do that. Adding an input field You can add your custom input fields in 5 areas in the post add form, they are: Top area: wpuf_add_post_form_top Before the post …

Log WordPress outgoing mails for debugging

Maybe you are working in a server or in local machine, you may have situations where you want to track if mail is sending as you want. I find it very useful in my local server, because I don't have any MTP installed in my local machine. So I use this following method to …

WordPress plugin: User Login Statistics

It's a tiny plugin that logs the user login count. I made this about two months ago for a client. Now I am making it open source. You can view how many registered users logged in in your site every day. There are no other options for this plugin. Just install and it'll log the …