Techies

WordPress Private Message System Plugin

 

While looking for plugins to implement ‘Private message system’ between users in wordpress, i found a not so-famous but awesome plugin called ‘Cartpauj PM’. The plugin has a very neat code, interface and functionality. The code is based on OOP with nicely defined functions.

You can cal any function anywhere to have a part of functionality of the plugin. The plugin also has a skin/mod available, which has some css, images and nice layouts for plugin’s frontend pages. The cartpauj website has a number of other plugins as well and also a support forum for their plugins.

 

 

 

Author Page – All Comments by an Author

You can create a complete and nice Author’s page which will be displayed whenever someone clicks on an Author’s name link. The trick here is to create an author.php, this page will be displayed whenever you click on an author’s name link.
The Author page for an author can have all posts and comments by an author. To list all comments by an author you can use the code below.

Frontend Posting With Image Uploader

Recently i had to implement frontend posting for the sidebar. I chose Quick Post Widget for this purpose. This plugin has a very flexible UI with a lot of options. The only problem i had was, it used a tab in the visual editor for image attachments, which my client did not like much. He wanted an image uploading field upfront.

So i decided to add a front end image uploader to Quick Post Widget. The file i edited was ‘quick-post-widget.php’. Here are the steps i followed

1- I modified the opening form tag and added enctype to it (this is the form that will displayed on frontend).

2- In the form, before the submit button, added a field of type ‘file’ for images.

3- Added the image upload function to my functions.php so i can also call it later wherever i need.

4- Now i called the above function for quick post widget ‘mypostimage’ field. Added this code just after wp_insert_post was called in the quick-post-widget.php. This code would insert the image as an attachment image for the post.

Below is the screenshot, how the […]

Check Valid Email Using PHP

You can check if the email is valid or not by using regular experessions. Just copy and use the function below

function is_valid_email($email)
{
if( preg_match(“/+@+.+/”, $email) > 0)
return true;
else
return false;
}

Web Design Trends 2012!

Developers its high time you should grasp the floor and get ready for the web design actions in 2012! In 2012, we see that smarter interfaces are coming up, and the interfaces are emerging in a new way.
RESPONSIVE DESIGN

A design is successful if it’s a responsive one. Most of the successful web designers follow this trend. As we see that smartphones are gradually occupying the whole market as well as the human minds, the number of mobile internet users is increasing day by day, so the main focus will be to make such designs through which the navigation will be facilitated on different screen sizes. This is actually the main theme behind the ‘responsive design’. How to get it? Make flexible layouts, insert flexible images!
Check www.earthhour.fr as its example.

FLASH

Flash has always been in and will still be in. Yes, flash is again here this time. If you intend to create an entertainment site, you do have to use flash.
ANIMATIONS

Animations have been a part of web designs since the beginning. Animations of HTMLL5 and CSS3 have always been in picture, and have […]