Removing the WordPress 3.1 Admin Bar

In the upcoming version 3.1 of WordPress you will notice the BuddyPress style admin bar that appears when you’re logged in. Personally I kind of like it but there may be some folks out there who don’t care for it so much. So I’ll show you how to remove it with a simple line of code in your theme’s functions.php file. You ready to see how easy it is?

remove_action( 'init', 'wp_admin_bar_init' );

Yup, that’s it! Want to only show it on the front end?

if( is_admin() ){ remove_action( 'init', 'wp_admin_bar_init' ); }

Maybe it’ll come in handy, who knows.

-Travis

Adding a testimonial to your WordPress post

I have had a few people contact me and say that they have not been able to locate the button in the editor. It should be visible in the first row of the Visual Editor so even if you are not showing the Kitchen Sink you should still be able to use it. Earlier, my sister had an issue with her computer. Her daughter moved her Windows task bar to the side of the screen and she needed help moving it back. I decided to do a screen-cast to show her how to get it back where it belongs and in the process, helped persuade me to make this to hopefully show people how to add a testimonial to their WordPress post using the TBTestimonials plugin

-Travis

TB Testimonials

Testimonial Management done right with Custom Post Types. Supports a testimonial.php template file for single testimonial pages. Testimonial Shortcode to insert testimonials in any post or page. Animated Sidebar Widget, Built in documentation and code examples. Customize output and tons of other options!

That description isn't too helpful for the non-WordPress geek, so let me translate. This plugin lets you manage testimonials as a separate type of information in your WordPress blog, which makes it easier to include them in other blog posts and pages.

Less geeky description by Jacob Share :)

Version Information:

Version: 1.5.9
Requires WordPress Version: 3.0
Compatible up to: 3.3.1
Last updated: October 19, 2011

Installation

This section describes how to install the plugin and get it working.

  1. Upload the plugin folder tb-testimonials to the /wp-content/plugins/ directory
  2. Activate the plugin through the 'Plugins' menu in WordPress
  3. Click Testimonials menu item and add a testimonial. It's below the Posts menu item. The post title is where you put the testimonial author's name.
  4. Use the shortcode generator button ( 2 speach bubbles ) in the visual editor to add a shortcode for testimonials to any post or page on your site.
  5. Activate widget if you want to use it.
  6. Create a custom testimonial.php if you want to display permalinks differently from single.php.

Change Log

1.5.8

  • Fixed script and style enqueue issues with WordPress 3.3
  • Fixed issue with default_loader.gif when FORCE_SSL was set to true.

1.5.7

  • Added option to load Javascript in the footer or the header. Default loading in the footer caused some JavaScipt conflicts with other plugins.

1.5.6

  • Fixed "Call to undefined function get_post_thumbnail_id()" bug in image uploader due to init process.
  • Added syntax highliting to template tags in output settings
  • Fixed to show menu item in WordPress 3.1, Testimonials menu item was MIA

1.5.5

  • Fixed bug where array chunk value was less than or equal to 0
  • Changed .hidden and .clear CSS class names as to be not-so-generic so unwanted rules do not get added.
  • Escape user input in widget for added security.
  • Removed whitespace at end of inc/tinymce3/tinymce.php
  • Removed widget-options.php

1.5.4

  • Merry Christmas
  • Fixed bug where company information was not being saved. Nonce was MIA.
  • Added option to disable the loading of jquery cycle so if users already utilize it in their themes it doesn't get reloaded

1.5.3

  • Fixed a bug in template tags where tags were showing in output. Forgot to change $ret to $return during last updates

1.5.2

  • Documentation UI/UX overhaul
  • Bug in %permalink% template tag fixed

1.5.1

  • bug in testimonial listing ( admin area and using 'all' in the shortcode ) where has_post_thumbnail was undefined. fixed by including post-thumbnail-teplate.php when undefined.

1.5

  • switch categories over to custom taxonomies
  • remove filters from excerpt
  • new preloader api to keep preloaders in-tact after upgrading
  • sorting options built into widget
  • use the built in editor to edit the plugin css
  • rewritten widget. default transition is a true crossfade now. there's also a bunch of new transitions thanks to jquery cycle.
  • featured image will now replace gravatars
  • documentation page

1.4.5.

  • Added random testimonial functionality. to display a random testimonial just pass the fucntion or shortcode with no args. tbtestimonial(), [testimonial]

1.4.4

  • forgot to remove references to ba-dotimeout javascript in widget thus causing error logs to report it as missing. Thanks to Bob @ Aquanauts for catching this :)

1.4.3

  • Bug Fix - Removed ba-dotimeout.js in leau of setTimeout. Was causing issues on a user's site, it's not needed anyway.

1.4.2

  • Fixed notice in widget settings about undefined index
  • Added a couple new filters to make extending easier. tbtestimonials_template_tags, tbtestimonials_template_tag_replacements, tbtestimonials_widget_syntax, tbtestimonials_single_syntax, tbtestimonials_listing_syntax
  • Fixed conflict with NextGen Gallery
  • Fixed conflict with MultiSite

1.4.1

  • Automatically fix double quote bug if present
  • Function to insert testimonial programatically into theme

1.4

  • Added syntax highliting to Output Setting page.
  • Fixed bug in output code where there was an extra " in <div class="testimonial-data"> - Users with this already installed will have to fix it manually.
  • Added new template tag for %testimonail_excerpt% to Output Settings.
  • Fixed bug causing admin javascript to not work correctly.
  • Added if/else conditionals to output syntax

1.3.2

  • Run the_content filters on testimonial content. Now renders shortcodes in testimonials.
  • Made testimonial custom post type be hierarchical so now you can use the menu order to order the output of the testimonials when displaying all of them.

1.3.1

  • Fixed sprintf bug when using categories

1.3

  • Moved settings page to Testimonials sub-menu
  • Added Output Syntax Options
  • Added shortcode to output all testimonials. button added in TinyMCE popup as well.

1.2

  • Fixed bug in widget when showing all testimonials using -1 as the display count. Widget still looped unless option was set to not loop.
  • Added categories to testimonials
  • Added a plugin settings page where you can change the author prefix, select to use the included stylesheet or not, change your loading graphic, disable the loading graphic, change loading text / position.
  • Removed menu position. now falls wherever it wants in menu.
  • Laid groundwork for Company Name & Company URL meta box that is coming in 1.3

1.1

  • fixed typo
  • changed h2 in widget to use theme defined before_title and after_title.

1.0

  • Initial Import of plugin

Download

Downloaded: 9,310 times

TBTestimonials version 1.5.9
Archived and Development Versions

Please contact me with any support requests or bug reports. Thank you!

-Travis