WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: JS Banner Rotate] Update (35 posts)

  1. Eric Mann
    Member
    Posted 5 years ago #

    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/

  2. garethooper
    Member
    Posted 5 years ago #

    Magic, will update first and review the paramters first.

  3. garethooper
    Member
    Posted 5 years ago #

    Can I recommend that the Title be an option in future releases. It just does not have any purpose if it is used on the Homepage which is were I intend using this plugin. With this forced at the moment, it will not be used.

  4. Eric Mann
    Member
    Posted 5 years ago #

    Absolutely.

  5. Eric Mann
    Member
    Posted 5 years ago #

    garethooper - I just submitted version 1.0.3 to the svn repository. It includes the option to disable the Title. Just place "titlevis=false" in the shortcode to turn it off.

  6. jimm4444
    Member
    Posted 4 years ago #

    I just loaded JS Banner Rotate version 1.1.1 and it is great! I am trying to position the baanner on my home page and I wanted to put our team logo just to the right along side of the banner. Regardless of the size I make the banner, I am not able to add my logo along side. (It always drops below it.) I also tried putting the banner inside a table and it did not work. I also wanted to add a space above the banner so it was not so close to the top of the page. There must be a way of doing this.

    Any ideas?

    Thanks.

  7. multicolormedia
    Member
    Posted 4 years ago #

    try putting your logo within a <span>Logo.jpg</span>. You might need to float it.

  8. jimm4444
    Member
    Posted 4 years ago #

    That didn't work either. My biggest problems are:
    1. Being able to move this banner down 3 or 4 lines AND
    2. Being able to center the banner on the webpage OR
    3. Being able to put our logo to the right of the banner.

    Thanks.

  9. Eric Mann
    Member
    Posted 4 years ago #

    jimm4444 - Any chance you can give us a link to your site so we can see what's going on? I might be able to recommend a few specific CSS changes to fix this ...

  10. reedjholmes
    Member
    Posted 4 years ago #

    Hi Eric,

    Thanks for a great plugin.

    I’m trying to use the template tag on a site I'm making for a client (www.nutritioncoachedie.com), but I’m getting an error.

    Here is the code I’m using:

    <?php jsbrotate(images=http://www.nutritioncoachedie.com/wp-content/themes/titan/images/sidebar/sidebox.jpg|http://www.nutritioncoachedie.com/images/biker.png); ?>

    This is the error message I’m getting:

    Parse error: syntax error, unexpected '=' in /home/edie/public_html/wp-content/themes/titan/sidebar.php on line 8

    Did I make a mistake in the syntax?

    Your help you be greatly appreciated.

    Reed

  11. Eric Mann
    Member
    Posted 4 years ago #

    @reedjholmes - I know we've already fixed your problem, but I wanted to post here to make sure others can fix it, too.

    Remember always that your parameters must be inside single quotes or it breaks the function. For example change this:

    <?php jsbrotate(images=http://www.nutritioncoachedie.com/wp-content/themes/titan/images/sidebar/sidebox.jpg|http://www.nutritioncoachedie.com/images/biker.png); ?>

    To this:

    <?php jsbrotate('images=http://www.nutritioncoachedie.com/wp-content/themes/titan/images/sidebar/sidebox.jpg|http://www.nutritioncoachedie.com/images/biker.png'); ?>

  12. drtanz
    Member
    Posted 4 years ago #

    thanks for a great plugin eric, i suggest you put this example in the instructions as i guess many people will try the parameters without the quotes, it almost got me too before i checked here.

  13. drtanz
    Member
    Posted 4 years ago #

    I'm finding it hard to implement this in my template, maybe someone could help me out :)

    I have two images:
    http://inter.it/7117/scudetto14.jpg
    http://inter.it/7117/scudetto15.jpg

    I also want to limit their size to 300 by 400. Also is there a way of linking each image to a specific URL?

    Thanks!

  14. Eric Mann
    Member
    Posted 4 years ago #

    @drtanz Right now there's not a way to link the image to a specific URL (as in a click-able link). However I will work on adding that feature to the next version of the plug-in.

    Email me (eric[at]eamann[dot]com) if you have any other questions.

  15. drtanz
    Member
    Posted 4 years ago #

    thanks eric looking forward to that

  16. dglend
    Member
    Posted 4 years ago #

    Have installed it on a site and it works great in Firefox.

    Have the rotating images appearing at the top of the page content.

    I have a drop down menu and with Internet explorer the menu goes behind the rotating images.

    You can view the page here

    Can anyone suggest a css fix?

  17. Eric Mann
    Member
    Posted 4 years ago #

    @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?

  18. dcimarkh
    Member
    Posted 4 years ago #

    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.

  19. Eric Mann
    Member
    Posted 4 years ago #

    @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?

  20. acatom
    Member
    Posted 4 years ago #

    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!

  21. readme123456
    Member
    Posted 4 years ago #

    <?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!

  22. readme123456
    Member
    Posted 4 years ago #

    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!

  23. readme123456
    Member
    Posted 4 years ago #

    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%;
    }
  24. readme123456
    Member
    Posted 4 years ago #

    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?

  25. Eric Mann
    Member
    Posted 4 years ago #

    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.

  26. drtanz
    Member
    Posted 4 years ago #

    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

  27. drtanz
    Member
    Posted 4 years ago #

    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?

  28. rocket-dash
    Member
    Posted 4 years ago #

    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'); ?>

  29. duban
    Member
    Posted 4 years ago #

    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'); ?>

  30. neilpet
    Member
    Posted 4 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic