Home
WP Smart Sort Premium User Manual
Contents
1. Sfilter input lt select name field gt id2 id field SLd2 15 gt Sfilter_input lt option value gt lt option gt foreach field gt values as txt gt value Sfilter_input lt option value Svalue gt txt lt option gt filter input lt select gt break case checkbox foreach field gt values as txt gt value Sfilter_input lt input type checkbox name S field gt id id field gt id value S value gt lt label for S field gt id gt txt lt label gt break Sfilter_ html lt div gt lt span style font weight bold gt field gt title lt span gt lt span gt filter_input lt span gt lt div gt Sfilter html lt input class type submit value __ Go gt lt input class type submit value _ Clear Filters onClick window location X Sfilter _fields gt clearfilterurl X return false gt lt div gt lt form gt echo filter_html 2 gt Search Form Function ss get placesearch Returns array of search fields title formname formaction formmethod hiddenfields mainsearchboxhtml mainsearchboxid submitid display fields array gt more info Example lt php search fields ssp get placesearch search html lt form name search fields gt formname action search fields gt formaction method search fields
2. gt formmethod gt Make this optional based on user choice search html lt label class hidden for search fields gt mainsearchboxid gt _ Search for lt label gt lt div gt Ssearch_fields gt mainsearchboxhtml lt div gt lt ul gt make this optional based on if advanced search is being used toggle js a document getElementById ssp advanced search style display block document getElementById ssp advanced toggle style display none return false Ssearch html lt div id ssp advanced toggle style Shide toggle gt lt a href onClick Stoggle js gt Show Detailed Search lt a gt lt div gt Shide_adv display none Ssearch_html lt div id ssp advanced search style Shide_adv gt toggle js a document getElementById ssp advanced search style display none document getElementById ssp advanced toggle style display block return false Ssearch html lt div gt lt a href onClick Stoggle js gt Hide Detailed Search lt a gt lt div gt foreach search fields gt fields as field search input switch field gt type case dropdown search input lt select name field gt id id field gt id gt Ssearch_input lt option value gt lt option gt foreach field gt values as txt gt value search input lt option value Svalue gt txt lt op
3. field Sta fon break Ssearch_html lt li gt lt a href gt Sfield gt title lt a gt lt br gt search input lt li gt make this optional based on if advanced search is being used search html lt div gt search_html lt ul gt Ssearch_fields gt hiddenfields lt input type submit id final_search_fields gt submitid value Search gt lt form gt echo search html gt Posts per Page Function ss get placesearch Example lt php limit values array 5 10 25 50 100 200 Sthelimitvar ssp get placelimit Shtml lt select id sshow name show gt foreach limit values as value Sselected if thelimitvar gt current value Sselected selected selected html lt option value S value onClick window location Sthelimitvar gt url Svalue Sselected gt value lt option gt Shtml lt select gt echo html 2 gt Support Visit http dyasonhat com support
4. WP Smart Sort Premium Ab User Manual V 2 0 2008 2009 Dyasohat Contents COMENTS Le a nee en a me E ias 2 TET sap cae ol 3 Fea KEM PR P o A es ane 3 A A KO PEP TOPY 4 Core CONCE anota A deu 45 had ae da dasnava da slodkac 4 Set Pratt 5 Ee TOR ee Ga cote Sro a ekk des 5 Posts Fable ur 5 M ta Table ua AAA us 5 A A A A 6 Categorie cia ce sss P P tP Re ee RE 6 SONT cditeaeidesnn anand ea necianeeanenideeaamunacnaaedseneecmavanenand fee canunniedtendieeeeaieswenes 6 PING PRE oh senna ete ela dua kan ned PE D ET 6 TS LE MR O 7 Theme TBE eo di mr a 8 Basic IMC HA ON zona soma n sonne ann iii nas 8 Se CA oo sec SO we Ag P a POP NOVE dinde O O 9 SOM ROM o rie aaah ati ooo iaa ice ans 10 A A E aa aa 11 o sin i dodat 14 POSES per PA06 ssipiiisiin dias 16 SUDDO zimni iio add 16 Introduction WP Smart Sort Premium is a WordPress plugin that provides options to users of your blog to customize the display of postings in a variety of ways WPSS Premium hugely enhances WordPress s capability as a CMS and allows regular blog readers the freedom to view exactly what they want out of your blog This plugin has been built around core WordPress hooks filters and actions and offers maximum compatibility with other plugins Features Sort Order your posts by any field you can think of Includes sorting by any field in the WP posts table e g Title Date Comment Count Etc as well as any custom fields found Filter Refin
5. e your view of posts Users can fill out form of options and display only what they want to see great for CMS implementation of WordPress Advanced Search form Allow you users to comprehensively search through posts and choose to limit to categories tags custom fields etc Fully compatible with WP Super Cache so database load is drastically reduced Uses WP Rewrite to create pretty permalinks Custom Index table means your index database only includes what you need and doesn t bloat your WP installation Index table automatically updates when posts are added deleted Custom Fields on steroids Assign your custom fields a data type and even allow array values Custom implementation of form fields so that it fits perfectly with your blog s look and feel Installation You should have already received a zip file containing all the WPSS Premium files when you purchased your copy If you did not or if you ever loose these files please login to your client services account and download a fresh copy Extract the wp smart sort folder and upload it into the plugins directory of your WordPress installation On WP 2 7 You can simply navigate to the Add new tab of the plugins menu and upload the zip file you received directly Activate the plugin you will now see a new menu WP Smart Sort you will find a licensing tab for the plugin under this menu Licensing You have two options 1 Upload the license lic file you rece
6. html lt select gt Sf_html lt select gt echo sorthtml 2 gt Filter Form Function ss get placefilter Returns array of filter fields title formname formaction formmethod hiddenfields clearfilterurl display fields array gt more info Example lt php Sfilter_fields ssp_get_placefilter if filter fields gt display CSS Dropdown Menu Sfilter_html lt form name filter fields gt formname action filter fields gt formaction method filter fields gt formmethod gt filter fields gt hiddenfields lt div style float left gt lt ul class dropdown dropdown horizontal gt lt li gt lt span class dir gt filter_fields gt title lt span gt lt ul gt foreach filter fields gt fields as field Sfilter_input switch field gt type case dropdown filter input lt select name field gt id id field gt id gt filter input lt option value gt lt option gt foreach field gt values as txt gt value Sfilter_input lt option value Svalue gt Stxt lt option gt Sfilter input lt select gt break case rangeuser filter input Between lt br gt filter input lt input style width 90 type text name Sfield gt id id field gt id gt filter input and filter input lt input style width 90 type text
7. it placelimit gt Plugin API There are several functions available that you can call to customize you implementation of WPSS Premium in the plugin API Sort Form Function ss get placesort Returns array of sort fields 2 title asc links e desc links display text Example lt php sort fields ssp_get_placesort if sort_fields display CSS Dropdown Menu Sf_html foreach Ssort_fields fields as field Sf_html lt li gt lt span class dir gt field gt field_title lt span gt lt ul gt lt li gt lt a href Sfield gt asclink gt Ascending lt a gt lt 1i gt lt li gt lt a href Sfield gt desclink gt Descending lt a gt lt 1i gt lt ul gt lt li gt Ssorthtml lt div gt lt ul class dropdown dropdown horizontal gt lt li gt lt span class dir gt Ssort_fields title lt span gt lt ul gt TSt html lt ul gt lt LI gt lt ul gt lt div gt else Sf_html foreach Ssort_fields fields as field f_html lt option value field gt asclink onClick window location Sfield gt asclink return false gt field gt field title __ ASC lt option gt f_html lt option value field gt desclink onClick window location field gt desclink return false gt Sfield gt field title _ DESC lt option gt Ssort
8. ium automatically generate a list of options for your chosen filter field or you can select from 2 manual options Semi Manual WPSS Premium will automatically generate a list of available options and you will be able to select with options you want included Fully Manual You are able to Type a display title and the hidden value for each option you wish to be included in the filter options Search Search form is very similar to the filter form except it s scope lies across all the blog posts on the blog where as the filter s scope lies only within the current view of category tag date archive etc Theme Implementation Basic Implementation Open your template file for editing WordPress has a built in editor under the design tab You will need to edit all the template files that you wish the form to display on Eg Category php index php archive php etc Most commonly you would find the section in the template where it says lt php if have posts gt Straight after this you would need to include one or all of the following For the Sort Drop down lt php if function exists placesort placesort gt For the Filter Form lt php if function exists placefilter placefilter gt For the Search Form lt php if function exists placesearch placesearch gt For the Post s Per Page Form lt php if function exists placelim
9. ived to the wp smart sort premium folder 2 Open the license lic file in a text editor like notepad and copy and paste the license code into the box provided on the plugin license page and Save License For setup and settings refer to that section in this manual Core Concepts WPSS Premium functions by creating an additional table in your MYSQL database the Index table This table s structure is flexible and includes an index of data for each post in your blog This index table is the core of the plugin and allows for rapid searching sorting and filtering of posts In order for a field to be available in the Sort Search Filter options pages in the admin that field first needs to be included in the Index table Example If you wanted to allow users to sort by the date a post was last modified you would need to Add the post modified field to the Index table first Once this is done this plugin automatically creates a new column in the index table containing post_modified dates You now can view this option in the Sort Search Filter options pages Setup Index Table The index table options pages allows you to choose which fields to include for use in the Sort Search Filter options pages of the plugin You will see 4 major sections on this page posts table meta table tags categories Posts Table This section pulls all the fields that are included in WordPress s MYSOL post table You will see the option
10. name field gt id2 id field gt id2 gt break case rangedropdown filter input Between lt br gt filter input lt select name field gt id id S field gt id gt filter input lt option value gt lt option gt foreach field gt values as txt gt value Sfilter_input lt option value S value gt txt lt option gt Sfilter_input lt select gt filter input lt br gt and lt br gt Sfilter input lt select name field gt id2 id field gt id2 gt Sfilter_input lt option value gt lt option gt foreach field gt values as txt gt value Sfilter_input lt option value Svalue gt Stxt lt option gt Sfilter_input lt select gt break case checkbox foreach field gt values as txt gt value Sfilter_input lt input type checkbox name Sfield gt id id field gt id value S value gt lt label for Sfield gt id gt Stxt lt label gt lt br gt break filter html lt li gt lt span class dir gt Sfield gt title lt span gt lt ul gt lt li gt lt span gt filter input lt span gt lt li gt lt ul gt lt li gt Sfilter_html lt ul gt lt li gt lt ul gt lt input class dropmenupushbutton type submit value Go gt lt input class dropmenupushbutton type submit value Clear filters onClick window location fil
11. st tags in the index table Categories Include your blog post categories in the index table Sort Displayed on this page is a list of available field from the index table which you can select to include in the users list of sort options You will note that Category Tag and Custom Fields that are arrays are not included in this list as it would make little sense to sort by an array of values unless the 1 value was the dominate value which this plugin does not provide for Default Sort Direction This option sets the default sort direction for your blog Title for Drop Down Menu This option sets the title that will be used when displaying the Drop Down Menu Filter The Filter options page provides several options for displaying filter fields to your users All the fields in the Index table are available for inclusion into your filter form Once you select the checkbox of a field you want a drop down menu will become available to select the type of field you want the user to utilize to make their selections Form Field Types Checkboxes Display options as a list of checkboxes user can select as many as they like Drop Down Drop down select box of options only one can be selected Range User Input This will display an output of 2 text boxes for the user to type in minimum and maximum values Range Drop Down This will display and output of 2 drop down select boxes Data Source Can choose to let WPSS Prem
12. ter fields gt clearfilterurl N return false gt lt div gt lt form gt else Sfilter_html lt form name filter fields gt formname action filter_fields gt formaction method filter fields gt formmethod gt Sfilter fields gt hiddenfields lt div gt lt span gt filter fields gt title lt span gt foreach filter fields gt fields as field Sfilter input switch field gt type case dropdown filter input lt select name field gt id id S field gt id gt filter input lt option value gt lt option gt foreach field gt values as txt gt value Sfilter_input lt option value Svalue gt txt lt option gt Sfilter input lt select gt break case rangeuser Sfilter input Between filter input lt input style width 90 type text name field gt id id field gt id gt Sfilter input and filter input lt input style width 90 type text name field gt id2 id Sfield gt id2 gt break case rangedropdown filter input Between filter input lt select name field gt id id Sfield gt id gt filter input lt option value gt lt option gt foreach field gt values as txt gt value Sfilter_input lt option value Svalue gt txt lt option gt filter input lt select gt Sfilter input and
13. tion gt search input lt select gt break case rangeuse search inpu search inpu Between lt br gt lt input type text name field gt id id field Coit gt id LENS search input and search input lt input type text name S field gt id2 id id2 gt break case rangedropdown search input Between lt br gt search input lt select name field gt id id S field gt id gt search input lt option value gt lt option gt foreach field gt values as txt gt value Ssearch_input lt option value Svalue gt txt lt option gt search input search input search input lt select gt lt br gt and lt br gt lt select name field gt id2 id Sfield gt id2 gt search input lt option value gt lt option gt foreach field gt values as txt gt value search input lt option value Svalue gt txt lt option gt search input lt select gt break case checkbox foreach field gt values as txt gt value Ssearch input lt input type checkbox name Sfield gt id id field gt id value S value gt lt label for Sfield gt id gt Stxt lt label gt lt br gt break case textbox search input lt label for field gt id gt Search lt label gt search input lt input type text name field gt id id
14. to enter in the display text this is text that the user will see on the blog front end to identify this field It is a good idea to change this text to something easily understandable and intuitive to the user Meta Table This section shows all the fields that are included in the custom fields of WordPress posts Besides the usually display text option there are 3 other options for custom fields 1 Field Type This feature allows you to specify what kind of data is found in the custom field By specifying this you allow MYSOL to better handle the information in this field For example if you have a field of ratings of 1 10 and the field is left as LONG TEXT and you sort the posts by field MYSQL will sort in alphabetical order 1 10 2 3 4 For this reason you can choose to specify if a field contains numbers that the type should be BIGINT It should be noted that if you specify a field type and a post has custom field and the value is not of that type that MYSQL may delete or modify that field to fit it to that data type 2 Field is Array This option allows you to specify that a single custom field includes a list array of information E g You may create a custom field with key Brands and values Nike Reebock Addidas 3 Array Separator This box allows you to type the characters that you use to separate the information in the array usually a person would use a comma Tags Include your blog po
Download Pdf Manuals
Related Search
Related Contents
KOHLER K-R780-VS Instructions / Assembly UPSilon 2000 取扱説明書等(1) - アイ・オー・データ機器 Guia do Usuário Appendix A. Default Settings ULTRABASS BX1800 COMPRESSORS 1 - Custom Service Hardware Copyright © All rights reserved.
Failed to retrieve file