Need assistence adapting Rotator Plugin
-
Hello! My name is Erik I am new here. This is my First Post I am building a WordPress Site for a client. She’d like a Plugin that rotates images from her portfolio and sends the viewer to the website the image depicts when the image is clicked on. I am trying to adapt the program located here. A Better Image Rotator by Dan Biegerman. This php script uses an external file to call pictures from an external folder. I also modified this script so that it will Display a quote beside the picture. When I activate this in WordPress everything works correctly except that the picture doesn’t showup. I get the standard little red X to see what I am talking about you can click here. Rise WebD esign The plugin is at the footer of the page. (The Footer)The funny thing is I don’t recieve any error message from word Press when I activate this. I’ve made sure e verything is in the plugin Directory. I’d appreciate it if someon with experience with PHP and plugins coud help me fiqure out why the picture isn’t showing up while everything else seems to work as it should. If it helps I’ve included the code at the in this post.
<?php /* Plugin Name: Rotate Plugin Description: An Attempt To Adapt Dan Beigerman's Plugin For WordPress Version:1.0 */ #this file contains the descriptons and alt tags for the rotator. $IMG_CONFIG_FILE = 'images.ini'; # You shouldn't need to change anything below this point function showImage( $ini=null ) { global $IMG_CONFIG_FILE; # if no custom ini file has been specified, use the default $ini_file = $ini ? $ini : $IMG_CONFIG_FILE; # read the config file into an array or die trying $images = @parse_ini_file($ini_file,true); if (! $images) { die('Unable to read ini file.'); } add_action('wp_footer' , 'showImage'); ?>
Thanks so much for the Help!
Sincerly,
Erik
- The topic ‘Need assistence adapting Rotator Plugin’ is closed to new replies.