Smarty – A clean, minimalistic and responsive WordPress theme

Smarty - A Dynamic WordPress theme

I was busy last month trying to create a new WordPress theme. I named it smarty, as it’s a theme with very clean and minimalistic design.

It’s a clean theme with some awesome features. The most good part of this theme is it comes with a lots of color skin, to be more exact, it’s 336 color skin :D . The theme is built on top of Bootstrap (v2.2.1) from twitter. It has a simple to use admin panel, built on top of options framework plugin. You can easily customize the fonts for every aspect of the theme, you have the ability to choose your own color combination for the site.  Any type of website – corporate, portfolio, blog, etc. with can be built with smarty. It looks very good with every size of devices. The theme is well coded and made with care, give it a shot, take it to the next level :D

Purchase Theme ($49) Theme Demo

Coupon Code

I am happy to inform you, we decided to give you $10 discount coupon code for Smarty. Only for first 10 Customers.
Coupon Code: wedevs

New Plugin: Advanced Search Widget

I created another plugin few days back, it’s called Advanced Search Widget. I’ve created many customized search form for many clients, they were same kind of tasks. Searching through taxonomies and custom fields.

So I built this plugin, you can build your search form as you want with custom fields and taxonomies. Drag-n-drop, well, not pure drag and drop form builder, but similar. You can define your search field type and comparison type and can build the search form on the fly.

This is a premium plugin this time, see the details with screenshot.

Advanced Search Widget - Form Builder

Advanced Search Widget – Form Builder

Buy Now ($19).

Working on something: Project Management within WordPress

For some days, I’ve working on a new project. Basically a WordPress plugin for easy project management between client and co-workers. Something like basecamp, but within WordPress. It’s not complete yet, still working on it. Here is some screenshot -

Features:

  • Create new project, set co-workers, clients, budget
  • Messaging system on project.
    • Message can be public/private.
    • Comments can be made
    • Attach files
    • Email notification
  • Tasklist
    • Add tasks on a task list
    • Assign someone and also date
    • Comment can be added on tasks and also attachments
  • Milestone
    • Create milestones
    • Assign tasklists and messages on milestone
    • Assign due date
  • Invoice system
    • Send invoice to the client
    • Hourly or itemized billing
    • Tax and discount system
    • Payment gateways are included

Where does it fits?

Anywhere. It doesn’t mean that this plugin is only applicable for developers. Where needs collaboration, it fits there. Whether you are a freelancer, designer or  whatever, collaborators needs this plugin. You don’t need to go to another site for project management or to discuss with your team. It’s just built within the awesome WordPress, in your site.

Any suggestion or thoughts? Please let me know :)

Log WordPress outgoing mails for debugging

May be 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 track the outgoing mails.

Utility function for logging:

/**
 * Logs error to file
 * 
 * @uses `error_log` function to log on file
 * 
 * @param string $error message of the error
 * @param string $type type of the error message
 */
function log_error( $error, $type = 'error' ) {
    $path = dirname( __FILE__ ) . '/log.txt';
    $msg = sprintf( "[%s][%s] %s\n", date( 'd.m.Y h:i:s' ), $type, $error );
    error_log( $msg, 3, $path );
}

This function is a helper function that takes any data as input and log the data/error in a text file “log.txt” in the current directory.

Main logger function:

/**
 * Log the mail to text file
 * 
 * @uses `wp_mail` filter
 * @param array $mail
 */
function wedevs_mail_log( $mail ) {

    $message = "to: {$mail['to']} \nsub: {$mail['subject']}, \nmsg:{$mail['message']}";
    log_error( 'mail', $message );

    return $mail;
}

add_filter( 'wp_mail', 'wedevs_mail_log', 10 );

This function adds a filter in the `wp_mail` filter and logs the mail through our logging utility function in the log.txt file. Quite handy, isn’t it?

New plugin: WP User Frontend

Today I am coming with a new WordPress plugin, named “WordPress User Frontend“. Some of us want something like that the subscriber/contributor will not be able to go in the WordPress backend and everything these user can control will be done from WordPress frontend.

Features:

So here is my plugin that solves your problem. This features of this plugin in it’s version 0.6 are follows:

  • User can create a new post and edit from frontend
  • They can view their page in the custom dashboard
  • Users can edit their profile
  • Administrator can restrict any user level to access the WordPress backend (/wp-admin)
  • New posts status, submitted by users are configurable via admin panel. i.e. Published, Draft, Pending
  • Admin can configure to receive notification mail when the users creates a new post.
  • Configurable options if the user can edit or delete their posts.
  • Users can upload attachments from the frontend
  • Admins can manage their users from frontend
  • Pay per post or subscription on posting is possible

Continue reading

Translate or convert WordPress date/time/comment number to Bangla digit

Today I worked with a WordPress site Bangladesh Linux Users Alliance, which is a complete Bangla language based site. You can translate with the Bangla language pack, but you can’t convert the English digits to it’s corresponding Bangla digit. So I visited the WordPress codex and found some filters that can do that job very easily.

Here is your function that will convert the digit

/**
 * This function converts all english number's to bangla number
 */
function make_bangla_number( $str ) {
    $engNumber = array(1,2,3,4,5,6,7,8,9,0);
    $bangNumber = array('১','২','৩','৪','৫','৬','৭','৮','৯','০');
    $converted = str_replace($engNumber, $bangNumber, $str);

    return $converted;
}

Now we need to add some filters that will hook to this places and convert the digit’s to Bangla.

add_filter( 'get_the_time', 'make_bangla_number' );
add_filter( 'the_date', 'make_bangla_number' );
add_filter( 'get_the_date', 'make_bangla_number' );
add_filter( 'comments_number', 'make_bangla_number' );
add_filter( 'get_comment_date', 'make_bangla_number' );
add_filter( 'get_comment_time', 'make_bangla_number' );

Continue reading

WordPress Plugin: GAF affiliate widget

Hello there, another wp plugin from me ;) . I was thinking to be a Freelancer.com affiliate (previous GetAFreelancer) and  looking for some wordpress widget as I want to show the links in my blog sidebar. I found a plugin built by Masnun bro, but it gets related projects from freelancer.com according to your post and shows below of your post . So i thought, why i don’t I built one before anyone creates before me? :P . So here is the plugin screenshot:

gaf_widget

Widget setting screenshot

So i don’t need to describe what to do after installing the plugin, right? It’ll show the selected links to your sidebar like this:

Displaying links from freelancer.com

So why don’t you add this plugin to your blog and make some money? :D

Google Transliteration plugin for WordPress & punBB

What is Google Transliterate?

Google offers an automatic transliteration option that converts Roman characters to the characters used in Arabic, Bengali, Gujarati, Hindi, Kannada, Malayalam, Marathi, Nepali, Punjabi, Tamil, Telugu and Urdu. This feature lets you type these languages phonetically in English letters, but they’ll appear in their correct alphabet. Keep in mind that transliteration is different from translation; the sound of the words is converted from one alphabet to the other, not the meaning.

What I did?
I did a integration of Google Transliterate with WordPress & punBB. My plugin allows you to write phonetically with the help of Google Transliteration in the WordPress post editor and also in punBB post box. This will not work in rich text editor mode in wordpress, you need to switch on HTML mode.

How does it work?
The bellow images tells you everything

  • You can select your desired language from the list
  • transliterate

  • After Selecting the language, active the google transliteration option by clicking the text.
  • transliterate1

  • Type the words phonetically. Once you type a space or a punctuation mark, the letters will be converted to corresponding language characters, like this:
  • transliterate2transliterate3

  • If you need to correct a transliterated word, click the word; you’ll see a menu of alternate spellings, in addition to an option to switch back to the Roman characters you typed. If you type the same word again, it will then be transliterated correctly based on your saved preference. transliterate4

Download Google Tranliteration for Wordpress (433)
Download Google Tranliteration for punBB (323)