Blog

Lobot Slider Administrator Released Today

Posted in: Blog, Lobot Slider Administrator by chris on January 6, 2011

We just launched a new WordPress plugin today, Lobot Slider Administrator.

This plugin creates a user-friendly slide management interface in the WordPress backend as well as provides template tags that can be used in any theme to load the slides’ information into a jQuery slider of your choice.

This plugin is ideal for theme developers who need to provide their clients an easy-to-use interface for managing slider content.

IMPORTANT: This plugin is not intended to be plug and play and is intended for theme developers with at least some basic WordPress and JavaScript/jQuery experience.

Installing the plugin

  1. Download the plugin via your WordPress admin interface or from the WordPress.org plugin directory here
  2. Upload “slider_admin.php” to the “/wp-content/plugins/” directory
  3. Activate the plugin through the “Plugins” menu in WordPress
  4. Configure the plugin in the “Settings” menu.
  5. Setup your slider by editting the page specified in in the plugin settings.
  6. Implement the template tags. See example below.

Adding a slider to your theme

<?php

$the_slides = fourty_slider_get_slides(); //returns an array of arrays filled with each slide's info.

$slide_n=0;

//loop through each slide and echo it's info
foreach($the_slides as $cur_slide){

	//get the slide's image
	echo '<img src="' . $cur_slide['image'] . '" />';

	//get the slide's title
	echo $cur_slide['title'];

	//get the slide's caption
	echo $cur_slide['caption'];

	//get the slide's link
	echo $cur_slide['link'];

	//this echoes the indicators onto each slide with a class for the current slide's indicator
	for($n=0; $n<count($the_slides); $n++){

		if($n==$slide_n){
			echo '<div class="indicator-on"></div>';
		} else {
			echo '<div class="indicator-off"></div>';
		}

	}

	$slide_n++;

}
?>

Where did Lobot come from?

We are admitted Star Wars fans. Lobot appeared in Episode V — Check him out.

“Lobot’s not the chatty type, but he sure is loyal. And great with computers!” ―Lando Calrissian

Tags: , , ,

Comments

4 Comments
  1. Pat Vandesompele

    I was interested in using your Slider Adminstrator, but when I try to activate it I get the following error:

    Parse error: syntax error, unexpected ‘}’ in …\wp-content\plugins\lobot-slider-administrator\lobot-slider-administrator.php on line 47

    I am using the latest version of WP.

    Any suggestons?

    Pat

    Comment by Pat Vandesompele on March 17, 2011 at 3:35 pm

  2. Pat,

    In our tests, everything works fine. Are you sure you have the newest version (0.4.3)? Also, it may could be that your PHP is configured to not allow short opening PHP tags (i.e. ‘<?’ vs. ‘<?php’). We will fix this in the next release. In the mean time, can in check your PHP settings for the value of your ‘short_open_tag’ variable?

    Comment by charlie on March 17, 2011 at 4:01 pm

  3. Pat Vandesompele

    I checked the PHP settings and short_open_tag is turned off. I will see if I have access to the php config file to see if I can turn it on. Thanks.

    Comment by Pat Vandesompele on March 17, 2011 at 4:24 pm

  4. Shawn

    This is killing my custom field values… each time I update a page with slider administration my custom fields are blanked. Any help?

    Comment by Shawn on April 29, 2011 at 11:32 am