Tag: plugin

Profisearchform 1.74 will come soon!

The next version of my plugin will be out soon. It will contain some bug fixes in the order-by-field but the most interesting changes will be for plugin developers, who want to extend the functionality of Profisearchform and deliver additional plugins:

Server side

As you already know, the plugin always delivers some filter hooks for you, where you can hook in with your own plugin. There will be some additional filter, to enable you to hook even better into the plugin. One of this hooks is for example sf-all-data. This filter is executed after a search is finished and just the moment before it will be delivered. This filter passes all data, which is usually send via JSON. So, you can alter this data using the sf-all-data filter. You will receive an array like this:

	"post" 		=> array(),
	"result" 	=> array(),
	"head"		=> "",
	"nav"		=> array()

The post array contains the information of the search filter. The result array contains the single list elements, with the results. The head string contains the string “XX posts out of YY posts were found” and the nav array will contain the navigation list elements.

Furthermore, the single result list element will contain an additional attribute data-postID, which contains the ID of the post.

Client Side

But action hooks are always on the server-side. To give you even more abilities to write more complex plugins, which work together with Profisearchform, we have now defined Javascript Events which will enable you to hook into our plugin on the server-side.

One example: The “sfLoadEvent”

If a search is executed and the results are displayed, this event will be triggered in Javascript. You will be able to add an event listener, which will enable you to act every time, the results are displayed. So, for example, lets say, you want to display Profisearchform in masonry style and you are using a Javascript framework in order to do so. With this event, you will be able to apply the masonry framework every time the new results are loaded.

A basic script using this event:

var element = document.getElementsByClassName( 'sf-wrapper' );
element = element[0];
	element.addEventListener('sfLoadEvent', function( event ){
		alert( 'Results loaded.' );
		console.log( event.data );
	}, false); 
} else if (element.attachEvent){
	element.attachEvent('sfLoadEvent', function( event ){
		alert( Results loaded.' );
		console.log( event.data );

As you can see, this event is attached to div.sf-wrapper. So to listen to this event, you have to add the EventListener to this element. the event itself will deliver you a data object, which contains the array, which is delivered by the plugin via Ajax as well as the field values, which are used.

console.log( event.data ); will result in

		"fields": 	{
		"data":		{
					//The array mentioned above

With these changes in 1.74 the plugin will enable you to fully customize and extend the plugins functionality to your needs. I hope, you like it.

Thanks to the academy: My plugin got an award!

WP-Super plugins, a WordPress plugin review site, has just reviewed my Search Filter Plugin. For everyone, who doesn’t know this site: WP superplugins is dedicated to WordPress plugins. They review free and premium plugins. By now, I know a lot of plugin reviews and pages, which are doing reviews. Superplugins is quite outstanding, since they are really into reviews and you can tell this from the quality of their reviews. So I’ve contacted them some weeks ago, to ask, whether they want to review my plugin. Carl, the author of the review agreed, although, as he wrote

I’ll be honest and say […] we thought “Not another search filter plugin”, most of them don’t work, require NASA experience to use and look just plain ugly.
Carl, WP Super Plugins

Not the best thoughts for a plugin review from my perspective and so I was more than happy, when I read the actual review today.

When I first installed the plugin I had my NASA research book at the ready and my geek cap on preparing myself for a couple of hours of research and testing. Honestly, five minutes later I was integrating search functions that I wasn’t really able to achieve on any other site. It was easy, simple and actually quite a bit of fun to set-up.
Carl, WP Super Plugins

WP Superplugins awarded my plugin with the Gold Standard Award.
WP Superplugins awarded my plugin with the Gold Standard Award.

But not only Carl wrote a very nice review about my plugin, the guys over at WP Super Plugins decided to award my plugin with their “Gold standard award” for “outstanding capabilities, development and support”! Well, what else can I see except for thanks to the academy.

So, for everyone, who wants to have a look, please read the WordPress custom search plugin review over at WP Super Plugins. Thanks again!

Advanced Search plugin review over at WPLift

Almost four years ago, Oliver Dale started his blog WPLift, where he writes about anything WordPress related. Since I started to work intensively with WordPress, developing plugins, themes and so on, WPLift became one of my main resources for news related to WP. And not just for me. Over 10,000 user subscribed to the newsletter and thousands of readers return to this page every day, to get the latest stuff.

Some days ago, Oliver told the story, how everything began:

One thing that concerned me when starting WPlift was whether I would have enough to write about just focusing on WordPress

An unnecessary worry, as it turned out since “you could write 10 posts a day and still not be covering everything “. Some time ago, I contacted Oliver (who overs reviews for premium plugins and themes for a small fee in order to support his blog), if he thought a review about my latest plugin would fit into his blog and he wrote a very nice blog post: Advanced WordPress Search

In this review he explains briefly the functionality of the plugin and how you can set it up. Since WordPress comes with quite a simple search field, its capabilities for a good search experience is limited. This search might be enough for a small blog like mine, but as soon as you run a complex website, like an online store, this search functionality turns out to be too simple. At this point, my plugin Profi Search Form comes into place. With a simple drag and drop interface you are able to create your own completely customized advanced search for your WordPress page.

Oliver demonstrates this with an example of his blog. He is writing quite a lot of WordPress theme reviews (till today there are more than 120!), which he saves in a Custom Post Type called “Themes”. He is using custom taxonomies for this post type like “Theme Company”, “Theme Colors” and so on and custom fields like “Price”. In his review he is using these attributes to create a search, where you can select, for example all white themes which cost between 10 and 50 USD.

His conclusion:

This is a powerful plugin for improving the search capabilities of sites which make use of meta data / taxonomies.

But, of course, there are also some critical remarks. Not without a reason, Oliver states that he has seen more beautiful plugins, which is quite true. Until now, the first thing I want to provide is the functionality as such. A powerful yet easy to configure advanced search. The CSS and styling is rather basically and the ideal customer in my mind is someone, who knows CSS and knows how to adjust the HTML elements to his theme. Since most of the customers are WordPress agencies, this works fine. But of course I am thinking about theming my plugin. Since I am more on the programmers side of WordPress development, maybe I should have a look, where to find a good WordPress designer, so I can outsource this task a bit. One of the problems I see with theming a plugin is the different environments, it will be working in. If you read the comments for different plugins, one of the constant problems are CSS problems, where a beautiful theme meets a beautiful plugin and one CSS definition destroys the other. I always wanted to write a blog post about good and solid plugin styling. Maybe now its time to explore this issue a bit more.

Anyway, if you are interested in a second opinion about my plugin, please have a look for Olivers review over at WPLift: Advanced WordPress Search + Filtering by Taxonomy and Post Meta.