Support » Plugins » [Plugin: JS Banner Rotate] Update

  • An updated hotfix for the JS Banner Rotate plug-in is now available. This version uses the most up-to-date YUI javascript libraries and fixes a previous CSS issue that was causing image alignment problems for some users.

    Other notable fixes include:

    • The addition of screenshots
    • A more in-depth explanation of shortcode parameters

    If there’s anything else you’d like to see change in the next release, please let me know.

    http://wordpress.org/extend/plugins/js-banner-rotate/

Viewing 15 replies - 16 through 30 (of 34 total)
  • Thread Starter Eric Mann

    (@ericmann)

    @dglend – I just walked through your entire site and couldn’t find where you’re using the plug-in. Which page are you trying to use it on?

    Hey Eric, what a great plugin! thank you! I looked all over for a nice, simple banner rotate that didn’t require adding a bunch of extraneous posts and such. Well done! I am having a similar problem as dglend above. When I implement the banner rotate on my home page, it goes in front of my header nav dropdown menus. I’ve got a demo set up at http://www.design-concepts.com/home/hometest
    if you look at http://www.design-concepts.com you’ll see how the nav should have dropdown choices for some of the items, but on hometest, they’re hidden behind the banner rotate… Not sure where in the css I should be looking for a z-index or what the best solution is.

    Thread Starter Eric Mann

    (@ericmann)

    @dcimarkh – I just checked your site in Chrome, Firefox, and IE and I don’t see any problems with the nav dropdown. Have you already fixed the issue?

    acatom

    (@acatom)

    I’m sure there is something simple I’m overlooking, but how do I implement additional arguments when using in a template? Specifically, how do I add arguments like height, width, imgdisp, and imgfade?

    Can you please show me an example of adding those arguments to the base code?
    <?php jsbrotate('images=image1|image2'); ?>

    Thank you!

    readme123456

    (@readme123456)

    <?php jsbrotate('width=666 height=300 imgdisp=4 imgfade=2 images=image1|image2'); ?>

    I have another question:
    I’m using a custom theme with two files for headers – header.php and contentheader.php. The wp_head() is called in header.php. I’ve tried putting the php code for the rotating banner in both files, but it doesn’t show on the blog.
    But the snippet works inside posts perfectly.
    Could you help me understand how to make the php work? I can also send you the link to my blog.

    Thanks!

    readme123456

    (@readme123456)

    I’ve also tried the php on another wordpress blog with a simple template like this

    <?php wp_head(); ?>
    </head>
    <body>
    	<div id="header">
    		<?php jsbrotate('...'); ?>

    But it still doesn’t show anything.
    Please direct me where to look for the cause of this.

    Thanks!

    readme123456

    (@readme123456)

    My post about arguments in jsbrotate function was wrong.
    I don’t know how to correctly define width, height, imgdisp, imgfade inside the function.
    Instead, I’ve hard-coded these values in the plugin’s .php as a temporary measure

    function jsbrotate($options) {
    	$atts = array();
    	parse_str($options, $atts);
    	global $jsbrotate;
    	if($atts['height'] == '')
    		$atts['height'] = '350'; /* my custom value */
    	if($atts['width'] == '')
    		$atts['width'] = '875'; /* my custom value */

    So, how can I change the default values properly when calling the function?

    Another thing is, there seems to be a typo in jsbrotate.css – “margin-botton”

    .banner-container {
    	border: 1px solid #4B4B4B;
    	margin-botton:20px;
    	position:relative;
    	clear:both;
    	width:100%;
    }

    readme123456

    (@readme123456)

    One more thing, when images overlay each other, you can see edges of the previous image coming out, like here http://i43.tinypic.com/25qskdz.png , even if all images are of exactly the same size.
    I’ve noticed it on other blogs using this plugin, too.
    Why is this happening?

    Thread Starter Eric Mann

    (@ericmann)

    I have to apologize for the lack of documentation on the PHP function for the plug-in. Not many people were using it and somehow the actual documentation was overlooked. To call the function with multiple arguments, place a & character between each argument:
    <?php jsbrotate('width=666&height=300&imgdisp=4&imgfade=2&images=image1|image2'); ?>

    The function basically runs the parameter string through the default shortcode function manually, so it should have the same behavior as when used inline in a post.

    Thanks for the catch on the CSS typo. That shouldn’t really affect anything, but I’ll fix it in the next version.

    @readme123456 Can you send me the link to your site so I can see how the images are overlaying on one another? I haven’t come across this problem on any other installation and it worries me.

    Is it possible to disable the link as I just want the banner rotation without having it link to anywhere. By default it is linking to my blog’s home page. I want this removed. Thanks

    Also I’m getting this error when I call the plugin from within the template code or using the shortcode:

    Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, ‘jsb_add_foot’ was given in /home/mysite/public_html/wp-includes/plugin.php on line 339

    Any idea why?

    I have an array of images that I am rotating (and that part is working fine, by the way). I’d like to have each image link to a different location. What code can I add to the following to enable that?

    <?php jsbrotate('height=315&width=925&imgdisp=4&imgfade=2&images=/wp-content/uploads/image_1.png|/wp-content/uploads/image_2.png|/wp-content/uploads/image_3.png|/wp-content/uploads/image_4.png|/wp-content/uploads/image_5.png'); ?>

    I’m using the template tag in my header.php AFTER the wp_head call but it still won’t rotate. Anything wrong with the code here? It only recognizes the 1st image and doesn’t rotate…although it resizes no problem…any thoughts?

    <?php jsbrotate(‘images=http://www.stpetersrc.ca/wp-content/plugins/banner-rotator-fx/component/images/bg_branding1.jpg|http://www.stpetersrc.ca/wp-content/plugins/banner-rotator-fx/component/images/bg_branding2.jpg|http://www.stpetersrc.ca/wp-content/plugins/banner-rotator-fx/component/images/bg_branding3.jpg&height=105&width=625’); ?>

    I like the simplicity of this plugin, but I’m having an odd problem…

    When I view the banner in either Safari or Firefox, a sliver of the background image appears above the rotating images. You can view this issue at http://epixdesign.ca/GolfPlus

    The modifiers I’m using are “titlevis-false height=399 width=600 imgdisp=3 imgfade=1”

    It seems to be shifting the rotating images down about 20 pixels. Otherwise it’s doing exactly what I wanted.

    Neil

    Also I’m getting this error when I call the plugin from within the template code or using the shortcode:

    Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, ‘jsb_add_foot’ was given in /home/mysite/public_html/wp-includes/plugin.php on line 339

    Any idea why?

    I am also getting this problem, please help me.

Viewing 15 replies - 16 through 30 (of 34 total)
  • The topic ‘[Plugin: JS Banner Rotate] Update’ is closed to new replies.