Sponsors Carousel Patch – WordPress Plugins

Sponsors Carousel

This plugin stopped working after updating to WordPress 3.5, and now there is a patch. The developer doesn’t seem to have the time to update the plugin or has lost interest in it. There for to help all of you out, I have included the code for the patch, the individual file with the patched code and the full plugin with the patch as a zip.

Sponsors Carousel Settings

1. Sponsors Carousel Manual Patch

1
2
3
4
5
6
7
8
9
<!--?php _e("New (select *full size* before insert): ", 'sponsors-carousel'); ?-->
<!-- <input type="text" name="scwp_link_image" id="scwp_link_image" size="50" value="" style="width: 80%" /> -->
<!-- if input box is too wide, change width to max-width as in the next line, and comment out the original line, as shown here -->
<input id="scwp_link_image" style="max-width: 80%;" type="text" name="scwp_link_image" size="50" value="" />
 
<!--?php if (get_bloginfo ( 'version' )-->="3.5")
echo media_buttons(__('Add an Image'), 'images/media-button-image.gif?ver=20100531', 'image',$scwp_plugin_name); // for v3.5
else{ //for earlier WP versions
if (get_bloginfo ( 'version' )<"3.3") echo _media_button(__('Add an Image'), 'images/media-button-image.gif?ver=20100531', 'image'); else echo _media_button(__('Add an Image'), 'images/media-button-image.gif?ver=20100531', 'image',$scwp_plugin_name); } ?>

 

Instructions:

  • If installed, open /wp-content/plugins/sponsors-carousel/sponsors-carousel.php
  • Locate line 364 highlight from line 364 to 372.
  • Paste the above code over those lines.
  • Save

2.Sponsors Carousel Pre Patched File

Download Pre Patched File

Instructions:

  • If installed, locate /wp-content/plugins/sponsors-carousel
  • Unzip file to computer
  • Upload pre patched file to sponsors-carousel directory.
  • If you don’t have ftp access open the pre patched file and copy the code and paste it into the sponsors-carousel.php file located: /wp-content/plugins/sponsors-carousel/sponsors-carousel.php

3. Install Sponsors Carousel Patched Plugin

Download Sponsors Carousel Patched Plugin

Instructions:

  • Upload via ftp to /wp-content/plugins
  • Activate plugin

Alternate Instructions

Wordperss Upload Plugin Zip

  • Login to your website WordPress Admin
  • Click Plugins from the left navigation
  • Click “Add New” at the top on the Plugins page
  • Click the “upload” link
  • Locate the  Sponsors Carousel Patched plugin zip
  • Click “Install Now”

 

I hope this helps all of you get the Sponsors Carousel plugin working again. Please let me know if you have any questions.

 

Source: WordPress Support

Toby Brommerich About Toby Brommerich

By Toby Brommerich

Tech Squawkers Founder/Editor by night. Senior Web Developer by day.

Google+

  • alex

    Thanks! However, in 3.5.1 I don’t see a “gallery” after I choose the media I want.

    • http://www.tech-squawkers.com/ Toby Brommerich

      Hi Alex,

      I just updated to 3.5.1 today and was able to recreate the problem I think your describing. When I clicked the “Add Media” and picked my image and clicked “Insert into Post” it did not fill in the media field like it should. Normally it should fill in the media field and clicking save should add the image below.

      Possible Solution:
      I disabled the plugin and cleared my browsers cache and re-enabled the plugin and tried again which seemed to get the plugin working properly again.

      I hope the above helps you.

      Toby

  • Canewood

    Do you know how to make the background transparent?

    • http://www.tech-squawkers.com/ Toby Brommerich

      Hi Canewood,

      Add the following CSS Rule to your themes style sheet (Common:style.css) This should cause the background of the Sponsor Carousel to be transparent.

      .jcarousel-skin-tango .jcarousel-container{
      background-color:transparent !important;
      }

      Toby

  • Andy

    Hi, thanks for the useful patch, I was looking for it. My problem now is, when I’m loading the page some images are “placeholders”, after a couple of rounds they are correctly loaded and displayed. Is there a fix for it? Seems it happens when wrong number of pictures is passed as a jcarousel parameters. Thanks

    • http://www.tech-squawkers.com/ Toby Brommerich

      Hi Andy,

      Jcarousel script doesn’t actually take into account the number of images that are uploaded. The documentation actually shows that the Jcarousel Container width needs to be modified to control how many images are visible.

      http://sorgalla.com/jcarousel/docs/reference/usage.html#defining-the-number-of-visible-items

      I do understand that it appears to fill in the extra space after you cycle through the loop, but I believe the creation of the extra spaces has more to do with the “wrap” option of the script.

      I plan on creating a plugin that will work very similar to Sponsors Carousel, but will use a more refined script. However I’m afraid that might not be released for a couple months as the time I currently have available is limited.

      Hope this information will help you.

  • Theo Potouroglou

    Hi, do you know how can i add title to each pic? I am having titles and have already selected YES, but it doesn’t work!!!