post

Limit one blog per user in a wordpress multisite

In a wordpress multisite, an user can create as many blog as he wants. If you Pro Sites you can control this. Pro Sites is a giant plugin that will help you to have control over the whole network.

But if you just want to limit one blog per user in a wordpress multisite and don’t want to use a huge plugin like Pro Sites, then this small snippet should help you.

You can add those codes in your functions.php in the theme, if you think your theme won’t be changed. Otherwise mu-plugins is the best solution. To use mu-plugins, go to /wp-content/ and find the folder with name ‘mu-plugins’. If there is no folder in that name, then create a folder, name it ‘mu-plugins’, create a file inside that, give any name you like and paste the code in there. You don’t need to activate that plugin. Mu-plugins means must use plugins, so it will be activated automatically always. If you use mu-plugins then add a php start tag at the beginning of the code.

Enjoy!

post

WordPress admin user search by name

When we search user from wordpress dashboard (Users > All Users) we can search with username and email address. But we can’t search with first name or last name or both. So, what if we want to use search by name? You can use the following code snippet for that.

You can add those codes in your functions.php in the theme, if you think your theme won’t be changed. Otherwise mu-plugins is the best solution.

[php]
add_action(‘pre_user_query’,’alter_pre_user_query’);
function alter_pre_user_query($user_search) {
global $wpdb;
$vars = $user_search->query_vars;
if (!is_null($vars[‘search’])) {
$search = preg_replace(‘/^*/’,”,$vars[‘search’]);
$search = preg_replace(‘/*$/’,”,$search);
$user_search->query_from .= ” INNER JOIN {$wpdb->usermeta} m1 ON ” .
“{$wpdb->users}.ID=m1.user_id AND (m1.meta_key=’first_name’)”;
$user_search->query_from .= ” INNER JOIN {$wpdb->usermeta} m2 ON ” .
“{$wpdb->users}.ID=m2.user_id AND (m2.meta_key=’last_name’)”;
if (preg_match(‘/^byname:/’,$search)) {
$search = preg_replace(‘/^byname:/’,”,$search);
$user_search->query_orderby = ‘ ORDER BY UPPER(m2.meta_value), UPPER(m1.meta_value) ‘;
$user_search->query_vars[‘search’] = $search;
$user_search->query_where = str_replace(‘byname:’,”,$user_search->query_where);
}
$names = explode(‘ ‘,$search,2);
if(count($names) > 1){
$first_name = $names[0];
$last_name = $names[1];
$names_where = $wpdb->prepare(“m1.meta_value LIKE ‘%s’ OR m2.meta_value LIKE ‘%s’ OR (m1.meta_value LIKE ‘%s’ AND m2.meta_value LIKE ‘%s’)”, “%{$search}%”,”%$search%”,”%$first_name%”,”%$last_name%”);
}else{
$names_where = $wpdb->prepare(“m1.meta_value LIKE ‘%s’ OR m2.meta_value LIKE ‘%s’”, “%{$search}%”,”%$search%”);
}
$user_search->query_where = str_replace(‘WHERE 1=1 AND (‘,
“WHERE 1=1 AND ({$names_where} OR “,$user_search->query_where);
}
}
[/php]

So, take your user search option in the next level. You can use this in your theme to give users more flexibility or develop a tiny plugin too :)

FAQ Plugin – The best cheap – WordPress Plugin

This is the best and cheapest FAQ Plugin for WordPress.

This plugin provides nice Frequently Asked Questions Page with answers hidden until the question is clicked then the desired answer fades smoothly into view, like accordion. User will have options to add categories, and questions based on those categories. Users can show question from a single category using ShortCodes. They will have control to change theme (among 9 themes), animation speed and custom CSS.

How to use: To use this plugin you need to use simple shortcode. To show all FAQ in one page with categories, you will just write [show_faq]. To show questions from a specific category you need to write [show_faq id=10]; here 10 is category ID.

You have also widget to show questions from a FAQ category.

You will have a very user-friendly interface. I believe you’ll love it!

Demo: dev.bappi-d-great.com/faq-all/
Demo 2: dev.bappi-d-great.com/faq-single/
Demo Video: www.youtube.com/watch?v=trGjX7Fjqf4

See how it works:

I am always eager to support. If you have any problem, any type of problem, please feel free hit me in @ aknath.707@gmail.com with your purchase ID.

Enjoy your days.

Buy it here: [purchase_link id=”438″ text=”Add to Cart” style=”button” color=”green”]

post

Team Bio – Meet the Team – WordPress Plugin

Team Bio/Meet the Team is a WordPress plugin that allows you to easily create and manage your team. You can display single teams as multiple columns, you can also showcase all teams as a filterable isotope gallery including easy social links management.

The purpose of this plugin is to allow you to create a “Meet the Team/Partners/Team Bio” page for a website. This plugin makes it easy to create a Team Page to showcase your most important assets.

It’s very cheap and easy to use. You can check the “demo” and “how to use” in following video.

There are two versions of this plugin. Version 1.0 is cheaper than version 2.0. If you have content for all members of similar length, then version 1.0 is good for you. But in version 1.0 if you have large content for one or two members, then the design may break. In that case, version 2.0 is perfect for you. Check the difference of two versions below: (assuming you have long content for one/two members in the team than the others)

In version 1:
Screen Shot 2013-07-31 at 11.18.24 PM

But in version 2:
Screen Shot 2013-07-31 at 11.18.42 PM

Click on the image to see larger

So, version 2.0 looks perfect.

Choose your one from below:

[purchase_link id=”363″ text=”Add to Cart Version 1.0″ style=”button” color=”green”]

[purchase_link id=”386″ text=”Add to Cart Version 2.0″ style=”button” color=”green”]

Check Screenshots: (Click on the image to see larger)

Screen Shot 2013-08-02 at 4.22.05 AM

Meet the team

Meet the team

80X80

8

7

6

5

4

3

2

1

[purchase_link id=”363″ text=”Add to Cart Version 1.0″ style=”button” color=”green”]

[purchase_link id=”386″ text=”Add to Cart Version 2.0″ style=”button” color=”green”]

Meet the team – WordPress Plugin Version 2.0

This is Version 2.0

Meet the Team is a WordPress plugin that allows you to easily create and manage teams. You can display single teams as multiple columns, you can also showcase all teams as a filterable isotope gallery, easy social links management included.

The purpose of this plugin is to allow you to create a “Meet the Team/Partners” page for a website. This plugin makes it easy to create a Team Page to showcase your most important assets.

It’s very cheap and easy to use. You can check the “demo” and “how to use” in following video.

How to use?

Check the difference between two versions:

If team member bio are not same long, it will be like the following:

In version 1:
Screen Shot 2013-07-31 at 11.18.24 PM

But in version 2:
Screen Shot 2013-07-31 at 11.18.42 PM

So, version 2 looks good, if you have different length of team bio. But if you have similar content for each team bio, you can choose version 1.0, it’s cheaper ;)

You can check version 1.0 here.

Otherwise download version 2.0 for better looks.

[purchase_link id=”386″ text=”Add to Cart Version 2.0″ style=”button” color=”green”]

Check Screenshots:

Screen Shot 2013-08-02 at 4.22.05 AM

Meet the team

Meet the team

80X80

8

7

6

5

4

3

2

1

[purchase_link id=”386″ text=”Add to Cart Version 2.0″ style=”button” color=”green”]

An awesome plugin – Meet the team – WordPress Plugin

Meet the Team is a WordPress plugin that allows you to easily create and manage teams. You can display single teams as multiple columns, you can also showcase all teams as a filterable isotope gallery, easy social links management included.

The purpose of this plugin is to allow you to create a “Meet the Team/Partners” page for a website. This plugin makes it easy to create a Team Page to showcase your most important assets.

It’s very cheap and easy to use. You can check the “demo” and “how to use” in following video.

Special thanks to MixItUp.

How to use?

If ANY question, please feel free to drop an email with your purchase code at aknath.707@gmail.com

Also, version 2.0 is released.

Check the difference between two versions:

If team member bio are not same long, it will be like the following:

In version 1:
Screen Shot 2013-07-31 at 11.18.24 PM

But in version 2:
Screen Shot 2013-07-31 at 11.18.42 PM

So, version 2 looks good, if you have different length of team bio. But if you have similar content for each team bio, you can choose version 1.0, it’s cheaper ;)

You can check version 2.0 here.

Total Sales: 108

[purchase_link id=”363″ text=”Add to Cart Version 1.0″ style=”button” color=”green”]

[purchase_link id=”386″ text=”Add to Cart Version 2.0″ style=”button” color=”green”]

Check Screenshots:

Screen Shot 2013-08-02 at 4.22.05 AM

Meet the team

Meet the team

80X80

8

7

6

5

4

3

2

1

[purchase_link id=”363″ text=”Add to Cart Version 1.0″ style=”button” color=”green”]

[purchase_link id=”386″ text=”Add to Cart Version 2.0″ style=”button” color=”green”]