Testimonial Basics Plugin - Documentation

Thanks for downloading Testimonial Basics.

Index


 About Testimonial Basics

Testimonial Basics facilitates easy management of customer testimonials. The user can set up an input form in a page or in a widget, and display all or selected testimonials in a page or a widget. The plugin is very easy to use and modify:

  1. Testimonials are saved in a database table integrated into WordPress.
  2. Users access their testimonials through and Administration Panel where it is very easy to add new testimonials, or modify existing ones.
  3. Testimonials are displayed in a pages content
    1. The user can display all testimonials or a selected number.
    2. Testimonials can be displayed by most recent date, or by a user selected order.
    3. A single selected testimonial can be displayed, or a single testimonial can be randomly displayed every time the page is loaded.
  4. A single selected or single random testimonial can be displayed in a widget.
  5. A visitor input form is easily set up in the content of a page, allowing visitors to submit testimonials.
  6. A visitor input form is also available in widget form.
  7. The user can include a captcha on input forms to reduce spam.
  8. User can use a display native to the theme or select a customizable display option.
  9. The user now has a full set of option features
    1. Including the Website link is an option
    2. Including the Date is an option
    3. Including the Location is an option
    4. User can select a customizable display
    5. Select one of nine fonts from a drop down list
    6. Select text colors using a color wheel
    7. Select background colors using a color wheel
  10. Display options for post or page content are separate from widget content

 Requirements

Testimonial Basics has been validated using the W3C validator for HTML5, and has had the css validated. It has been tested in all the major browsers:

  1. Internet Explorer 7,8,9, Firefox, Chrome, Opera, Safari
  2. Wordpress 3.4.2
  3. HTML5
  4. Basic HTML and Wordpress Experience

 License and Credits

License: GNU General Public License V3
License URI: see the license.txt file for license details.

Testimonial Basics is a WordPress Plugin
Copyright (C) 2012 Kevin Archibald
Version : 2.0.0 Released 20121020

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

 Installation

Upload Testimonial Basics to the plugin directory (wp-content/plugins/testimonial-basics) of your wordpress setup. Ensure all sub directories are maintained. Activate the plugin through the Wordpress Admin panel under "Plugins".


Your opening screen will look like this :


Opening Screen

Click the Activate link and the plugin will activate. The screen changes to :



Activated Screen

If you want to remove the plugin you must first Deactivate it then Delete it. When you Deacivate the plugin is not loaded into WordPress, but it is still there. When you Delete it all files,options and database table are removed.

 Administration Panel - Testimonial Basics

Click on Testimonial Basics and the Administration Panel for the plugin will load, as shown below :


Admin Panel 1

The first thing to note is that there are three administration pages for Testimonial Basics. The first page is a quick summary of how to set up your input form and how to display testimonials. The second section is the Options that you have for your input forms, and for displaying your testimonials. The third page is where you go to manage your testimonials.


So when you can't quite remember the scripts for setting up input forms or displaying your testimonials, save your page come over here and copy them, that's what I do.


 Administration Panel - Edit Testimonials

I think it's best to start with "Edit Testimonials" so click that panel and you will see:


Edit Testimonial Panel

This is where as an administrator you will manage your testimonials. You can can add or edit testimonials here.

Help

There is a drop down help section that provides a quick summary of how to use the "Edit Testimonials" Panel :


Help Section

Enter or Update a Testimonial

To add a testimonial, simply fill in the form and click Save Testimonial :


  1. ID - every testimonial has a unique id. You can't edit this field.
  2. Order - When you display testimonials you can use Order as a way to ensure certain testimonials are displayed first. Simply enter a number. Ordered displays are shown in descending order so your more favorite testimonials should have the highest number.
  3. Approved - must be checked or the testimonial will not be displayed.
  4. Author - Required, the name of the person who wrote the testimonial.
  5. Website - Optional, input the Author Website and a link will be included in the display. Make sure you test the link...you don't want broken links on your site, it's bad for SEO.
  6. Location - Optional, the location of the person who wrote the testimonial.
  7. Date - If left blank on new testimonials the current date and time will be used.
  8. Time - If left blank with a date set, the time is set to 00:00:00.
  9. Testimonial - Required, enter the testimonial here.

Once the Save Testimonial is clicked the testimonial is checked for validation, and then it is saved in the database. The form refreshes to include the saved testimonial. If you want to change something you can do it now, or later if you want. Below is the screen with a couple of testimonials added.


Testimonials Added

To edit a testimonial click the button under the ID column for the testimonial you want to edit and it will come up in the edit screen. Make your changes and Save Testimonial. It is that simple.


Note: If you have a cache plugin installed such as WP Super Cache, the page you use to display your testimonials may be cached. What this means is that if you add and approve a testimonial it may not immediately display. Simply edit the page and update it or wait and the cached files will eventually be deleted and refreshed.


 Visitor Input Form

You can set up a visitor input form very easily. Simply include <!-- katb_input_form --> or <p><!-- katb_input_form --></p> in your page content.
Note : 1) Make sure you include a space between - k and m - or it won't work, 2) Make sure you are in HTML edit mode or it won't work.
Below is an example of a page set-up.


Set Up Vistor Input Form

You can also use a widget as a user input form. Go to Appearance and then Widgets and drag the widget to the widgetized area. You can also enter a different title for the Widget if you want.


Input Widget

The image below shows the forms as the Visitor would see them. Both the main content form and the widget form are shown. In reality you probably should use one or the other. Visitors are required to enter an e-mail address, which is not saved. The Blog Administrator for your site are sent an e-mail about the testimonial. Once validation is OK, the testimonial is saved in the database. However it is saved as not approved so it is not displayed until you have a chance to log-in, edit if appropriate, and approve.


Also note the captcha. This is an option in Testimonial Basics. There are a few other options for the input forms. I'll discuss them later.



Input Widget

 Displaying Testimonials

You can display testimonials in the content of a page using a shortcode and you can also use a widget to display single testimonials.

Shortcode

To display testimonials create a new page and enter the following shortcode :

[katb_testimonial by="date" number="all" id=""]


  1. Options for "by" : "order" - display highest to lowest,"date"- display most recent first
  2. Options for "number" : "all" - displays all testimonials, or put in the number of testimonials you want to display
  3. Options for "id" : "" - leave blank for multiple testimonials, "ID" - put in testimonial ID, "random" - single random testimonial

Note that if you put id="3" for example or id="random", then the by and number attributes are ignored. The image below shows the set up.


Display Testimonial Page Setup

An example of the display is shown below. The testimonials are displayed in a simple format, allowing your themes colors and fonts to be used. You can also select a formatted option that can be customized, see the "Administration Panel-Options" section below.


Display Testimonial Example

When you have quite a few testimonials the display options can help you out. In particular displaying by="order" gives you great flexibility. Just remember that the highest order number is displayed first. Another thing to remember is that if you display more testimonials than you have numbered, that's OK. The remaining testimonials will be un-ordered testimonials, displayed by most recent date.


One final note : There is no pagination in Testimonial Basics, you can display all your testimonials or a selection on one page. I did not feel there was a need to put in pagination as visitors will likely not want to read more than one page of testimonials. So put the best ones first, and I'd recommend displaying no more that 10 on a page. However you can display them all if you want. If there is demand I can include pagination an a future release.

Testimonial Display Widget

You can also us a widget to display a testimonial. The widget will display a selected testimonial or can randomly pick a testimonial to display when a page reloads. You can input a title and the ID number of the testimonial you want to display or random to display a random testimonial from the approved list.


Display Widget Setup

The image below shows the page with both the regular display and the widget display:


Display Widget

The color scheme has been changed to show that the displays use the native colors and fonts.

 Administration Panel - Options

In the initial release of Testimonial Basics I showed the user how to go into the css file and change background colors, font colors and fonts. One of the problems with that method is that the edits are lost after an update. This is not too big a deal as there are not a lot of edits, but never the less they are a pain. Also the user must be quite careful when doing CSS edits or problems can occur. Now all these changes can be made in the options panel, where data entry is much easier.


Start by clicking on "Testimonial Basics" => "Options". The Testimonial Basics Options panel will appear. The screen shot below shows the panel with the "Help" button clicked. A quick summary of using the Options panel is presented.


Options Panel Help

The next screenshot shows the options panel. It is divided up into three sections :


  1. Input Form Options
  2. Testimonial Display Options
  3. Widget Testimonial Display Options

Testimonial Basics Options Panel

Input Form Options

The options for this section are :



The screenshot below shows the input forms with these options enabled :


Example Input Form Options Enabled

Display Options

The "Testimonial Display Options" and "Widget Testimonial Display Options" sections are very similar so I'll address them together. The first part allows the user to select what is displayed in the testimonial author strip :



In a display Widget, you may only want to display the Author, and leave these options un-checked. Play around and decide what's best for your site.


Below is a screenshot with all three boxes checked for both the content and the widget displays. I've also checked the "Use formatted display" box for each display, as an introduction to the next section.


Testimonial Basics Display 1

When you initially select a custom formatted display a default set of colors and fonts is loaded. The displays are pretty cool but if your theme has different colors like this one, some adjustments are necessary. With the new theme options panel, it is very easy to do.


Changing Fonts

Select a font from the drop down list and click "Save Options".


They look like :

Web Fonts

To illustrate I'll change to Cambria for the main display and Trebuchet for the widget display.

Changing Colors - Using the Color Wheel


You could also enter a hex color number :



Make sure you save your options by clicking the "Save Options" button.


I've gone ahead and put in the colors for the new theme. The edited panel is shown below. Note that normally you would put a Testimoial Display Widget in one spot or the other making it easier to custon design the colors. I have attempted to pick colors that fit in both areas


Options Example

The results of the edit are shown below :


Testimonial Basics Display 2

 Advanced Function

I have developed a function that can be used in the coding of templates for displaying testimonials. It can come in handy when you want to display testimonials from within the code and not in the content of the page. An example of such an application would be in a preformatted page where there is a section you want to replace. Such was the case with one of the websites I look after, which was why I developed the function. Below is an example of how to use the function :

<div class="testimonialstext">
    <?php echo katb_testimonial_basics_display_in_code('date','20','random'); ?>
</div>


The first element must be "date" or "order", the second must be "all" or the number of testimonials you want to display and the third element can be "random" or "id" where id is the id number of the testimonial, or "" blank if you want to display multiple testimonials.

A string is returned for each testimonial to be displayed that will look as follows :

<p class="katb_p_test">Your Testimonial</p>
<p class="katb_p_authorstrip"><b>Author</b>date(optional),location(optional),website(optional)</p>


The only formatting applied is to bold the author. You can apply your own custom formatting using the classes I have included in the return string. Such a thing would best be done by creating a child theme (WordPress Child Themes)

 Summary

I hope you enjoy using the plugin, if you have any suggestions or comments, contact me through my website. If you really like the plugin, buy me a coffee, a beer, or even a bottle of wine.



Index