Jump to content


Corporate Sponsors


Latest News: (loading..)

- - - - -

jQuery Banner Rotator


126 replies to this topic

#81 LondonTown

  • Community Member
  • 198 posts
  • Real Name:London Boi
  • Gender:Male

Posted 12 January 2011, 00:53

Yes, I think so..

I done the following.

- Admin>Tools>Banner Manager

- Banner Lang -English / Banner Group - Rotator / Image - Uploaded from my computer / Saved

Then just doesn't show :huh:

#82 kymation

  • Community Sponsor
  • 5,662 posts
  • Real Name:Jim Keebaugh
  • Gender:Male
  • Location:Aberdeen WA USA

Posted 12 January 2011, 03:32

You need at least two banners to rotate or it won't work.

Regards
Jim
My Addons

Banners Box 2.3.1 Support
Categories Accordion Box 2.3.1 Support
Categories Images Box 2.2x 2.3.1 Support
Closest Shipper 2.2x Support
Document Manager 2.2x Support
Generic Box 2.3.1 Support
Get 1 Free 2.2x Support
Include HTML and Text Boxes 2.2x
jQuery Banner Rotator 2.2x 2.3.1 Support
Modular Front Page 2.3.1 Support
Modular SEO Header Tags 2.3.1 Support
More Pics 2.2x Support
MVS 2.2x Support
osC Catalog 2.2x Support
PDF Datasheet 2.3.1 Support
Price Updater 2.2x
Products Specifications 2.2x 2.3.1 Development Version Support Bugs/Suggestions
Request a Review 2.2x - 2.3.1 Support
Similar Products Box 2.2x
Theme Switcher 2.3.1 Support

#83 LondonTown

  • Community Member
  • 198 posts
  • Real Name:London Boi
  • Gender:Male

Posted 12 January 2011, 03:55

- Admin>Tools>Banner Manager

- Banner Lang -English / Banner Group - Rotator / Image - Uploaded from my computer / Saved

I done this procedure twice^^^

#84 LondonTown

  • Community Member
  • 198 posts
  • Real Name:London Boi
  • Gender:Male

Posted 12 January 2011, 03:56

I uploaded both to the rotator group. Or am I supposed to setupo rotator & rotator 2 Groups?

#85 LondonTown

  • Community Member
  • 198 posts
  • Real Name:London Boi
  • Gender:Male

Posted 13 January 2011, 02:59

Is this not right?

#86 kymation

  • Community Sponsor
  • 5,662 posts
  • Real Name:Jim Keebaugh
  • Gender:Male
  • Location:Aberdeen WA USA

Posted 13 January 2011, 03:39

That's right. You said before that you had this working. If uploading two banners made it stop working, then there is a problem with one or both of those images.

Regards
Jim
My Addons

Banners Box 2.3.1 Support
Categories Accordion Box 2.3.1 Support
Categories Images Box 2.2x 2.3.1 Support
Closest Shipper 2.2x Support
Document Manager 2.2x Support
Generic Box 2.3.1 Support
Get 1 Free 2.2x Support
Include HTML and Text Boxes 2.2x
jQuery Banner Rotator 2.2x 2.3.1 Support
Modular Front Page 2.3.1 Support
Modular SEO Header Tags 2.3.1 Support
More Pics 2.2x Support
MVS 2.2x Support
osC Catalog 2.2x Support
PDF Datasheet 2.3.1 Support
Price Updater 2.2x
Products Specifications 2.2x 2.3.1 Development Version Support Bugs/Suggestions
Request a Review 2.2x - 2.3.1 Support
Similar Products Box 2.2x
Theme Switcher 2.3.1 Support

#87 aftabn10

  • Community Member
  • 186 posts
  • Real Name:Aftab
  • Gender:Male
  • Location:Manchester

Posted 27 January 2011, 00:41

hi, first of all thank you for this contribution, was looking for something like this. ok here goes, i have managed to add the banner group and the banner shows up on my homepage and as i have only added one it changes within itself.

I have now added another banner within banner manager, with the same title, group but just a different image and now the second banner shows up underneath the first one and this has also stopped playing. i have removed this one but the first one doesnt play anymore?

can any1 help me understand where i have gone wrong? any help would be really appreciated.

thanks in advance.

#88 aftabn10

  • Community Member
  • 186 posts
  • Real Name:Aftab
  • Gender:Male
  • Location:Manchester

Posted 27 January 2011, 01:11

View Postaftabn10, on 27 January 2011, 00:41, said:

hi, first of all thank you for this contribution, was looking for something like this. ok here goes, i have managed to add the banner group and the banner shows up on my homepage and as i have only added one it changes within itself.

I have now added another banner within banner manager, with the same title, group but just a different image and now the second banner shows up underneath the first one and this has also stopped playing. i have removed this one but the first one doesnt play anymore?

can any1 help me understand where i have gone wrong? any help would be really appreciated.

thanks in advance.

apologies, i have sorted it. reuploaded the stylesheet and it started working again! btw how can i control the alignment of the banner as it appears on the right side of the page whereas my website through sts is aligned to the centre of the page, any ideas?

#89 kymation

  • Community Sponsor
  • 5,662 posts
  • Real Name:Jim Keebaugh
  • Gender:Male
  • Location:Aberdeen WA USA

Posted 27 January 2011, 03:15

The banner alignment is designed to work with stock osCommerce, not STS. You can probably fix this by playing with the CSS for the Banner Rotator. Try changing the top and left settings under #bannerRotator ul li. You may have to add a container and align that instead.

Regards
Jim

regards
Jim
My Addons

Banners Box 2.3.1 Support
Categories Accordion Box 2.3.1 Support
Categories Images Box 2.2x 2.3.1 Support
Closest Shipper 2.2x Support
Document Manager 2.2x Support
Generic Box 2.3.1 Support
Get 1 Free 2.2x Support
Include HTML and Text Boxes 2.2x
jQuery Banner Rotator 2.2x 2.3.1 Support
Modular Front Page 2.3.1 Support
Modular SEO Header Tags 2.3.1 Support
More Pics 2.2x Support
MVS 2.2x Support
osC Catalog 2.2x Support
PDF Datasheet 2.3.1 Support
Price Updater 2.2x
Products Specifications 2.2x 2.3.1 Development Version Support Bugs/Suggestions
Request a Review 2.2x - 2.3.1 Support
Similar Products Box 2.2x
Theme Switcher 2.3.1 Support

#90 aftabn10

  • Community Member
  • 186 posts
  • Real Name:Aftab
  • Gender:Male
  • Location:Manchester

Posted 27 January 2011, 21:49

kymation, thanks for your response. i have added a container within the stylesheet, and applied this to the banner_rotator.php file using the following code but this doesnt change anything.

<!-- banner_rotator -->
  <div id="container">
  <div id="bannerRotator">
    <ul>
<?php 
    while( $banner = tep_db_fetch_array( $banner_query ) ) {
      echo '      <li>';
      if( $banner['banners_url'] != '' ) {

The following is what i have added within the stylesheet:

#container {
position: relative;
width: 718px;
margin: auto;

thanks for all your help, really appreciate.

#91 kymation

  • Community Sponsor
  • 5,662 posts
  • Real Name:Jim Keebaugh
  • Gender:Male
  • Location:Aberdeen WA USA

Posted 27 January 2011, 22:03

I don't know how to fix problems with templates. That was just a general suggestion to get you started. I suggest that you ask for help in the STS support thread.

Regards
Jim
My Addons

Banners Box 2.3.1 Support
Categories Accordion Box 2.3.1 Support
Categories Images Box 2.2x 2.3.1 Support
Closest Shipper 2.2x Support
Document Manager 2.2x Support
Generic Box 2.3.1 Support
Get 1 Free 2.2x Support
Include HTML and Text Boxes 2.2x
jQuery Banner Rotator 2.2x 2.3.1 Support
Modular Front Page 2.3.1 Support
Modular SEO Header Tags 2.3.1 Support
More Pics 2.2x Support
MVS 2.2x Support
osC Catalog 2.2x Support
PDF Datasheet 2.3.1 Support
Price Updater 2.2x
Products Specifications 2.2x 2.3.1 Development Version Support Bugs/Suggestions
Request a Review 2.2x - 2.3.1 Support
Similar Products Box 2.2x
Theme Switcher 2.3.1 Support

#92 aftabn10

  • Community Member
  • 186 posts
  • Real Name:Aftab
  • Gender:Male
  • Location:Manchester

Posted 29 January 2011, 20:07

View Postkymation, on 27 January 2011, 22:03, said:

I don't know how to fix problems with templates. That was just a general suggestion to get you started. I suggest that you ask for help in the STS support thread.

Regards
Jim

kymation, i have managed to sort the issue as had a problem with my sts file. Btw another problem has popped up. The banner shows up on the Opera Browser in full, but when I check this on Internet Explorer only half the banner is shown. Any reason why this could be?

#93 kymation

  • Community Sponsor
  • 5,662 posts
  • Real Name:Jim Keebaugh
  • Gender:Male
  • Location:Aberdeen WA USA

Posted 29 January 2011, 21:00

I don't know. It works for me in Internet Explorer on a standard installation of osCommerce. I suspect that this is another conflict with STS.

Regards
Jim
My Addons

Banners Box 2.3.1 Support
Categories Accordion Box 2.3.1 Support
Categories Images Box 2.2x 2.3.1 Support
Closest Shipper 2.2x Support
Document Manager 2.2x Support
Generic Box 2.3.1 Support
Get 1 Free 2.2x Support
Include HTML and Text Boxes 2.2x
jQuery Banner Rotator 2.2x 2.3.1 Support
Modular Front Page 2.3.1 Support
Modular SEO Header Tags 2.3.1 Support
More Pics 2.2x Support
MVS 2.2x Support
osC Catalog 2.2x Support
PDF Datasheet 2.3.1 Support
Price Updater 2.2x
Products Specifications 2.2x 2.3.1 Development Version Support Bugs/Suggestions
Request a Review 2.2x - 2.3.1 Support
Similar Products Box 2.2x
Theme Switcher 2.3.1 Support

#94 warrenerjm

  • Community Member
  • 1,144 posts
  • Real Name:Julie
  • Gender:Female
  • Location:UK

Posted 09 February 2011, 15:03

Does this work with v2.3.1 please?

I'm wanting a rotator banner but not sure whether to go for this or the Modular front page contribution which has one in too. Trouble is I don't want all the modules so is this over kill?

I only have one column so can I adjust the size of the display so it is across the top of effectively grid_18 710px?
Is it determined by the image sizes or the css? What is the default with this?

Thanks

#95 kymation

  • Community Sponsor
  • 5,662 posts
  • Real Name:Jim Keebaugh
  • Gender:Male
  • Location:Aberdeen WA USA

Posted 09 February 2011, 17:59

This one is designed for 2.2RC2a, but could probably be made to work with 2.3.1 with a little modification. The one in the Modular Front Page addon is mostly the same code. I just built it into a module for ease of use with 2.3.1.

There's no need to shy away from Modular Front Page -- it's modular just so you can pick and choose the modules you want to use. If you only want the one, just install the one you want and leave the rest.

I'm currently using the modular version on a store design that only has the left column. You need to size the banner images accordingly, then make a couple of changes in the CSS to match your image sizes. I'm using images that are 790 pixels wide. The CSS properties that you need to change are marked in the files.

Regards
Jim
My Addons

Banners Box 2.3.1 Support
Categories Accordion Box 2.3.1 Support
Categories Images Box 2.2x 2.3.1 Support
Closest Shipper 2.2x Support
Document Manager 2.2x Support
Generic Box 2.3.1 Support
Get 1 Free 2.2x Support
Include HTML and Text Boxes 2.2x
jQuery Banner Rotator 2.2x 2.3.1 Support
Modular Front Page 2.3.1 Support
Modular SEO Header Tags 2.3.1 Support
More Pics 2.2x Support
MVS 2.2x Support
osC Catalog 2.2x Support
PDF Datasheet 2.3.1 Support
Price Updater 2.2x
Products Specifications 2.2x 2.3.1 Development Version Support Bugs/Suggestions
Request a Review 2.2x - 2.3.1 Support
Similar Products Box 2.2x
Theme Switcher 2.3.1 Support

#96 skhuu

  • Community Member
  • 36 posts
  • Real Name:Sipho

Posted 28 February 2011, 17:59

I installed the contribution, but it doesnt work for some reason. My banners appear the same as before it was installed. I have banners on the header. I followed all the steps many times over, but still nothing happens when I load my store.

I also saw somewhere in earlier posts that you must have this code, include( DIR_WS_MODULES . FILENAME_BANNER_ROTATOR );
Where do I put this because I tried on configure.php and it gae an error that the file doesnt exist.

I am using a template RC2a.

#97 kymation

  • Community Sponsor
  • 5,662 posts
  • Real Name:Jim Keebaugh
  • Gender:Male
  • Location:Aberdeen WA USA

Posted 28 February 2011, 18:21

Quote

I am using a template RC2a.
This is most likely your problem. Templates make changes to the core code of osCommerce that prevent standard Addons from functioning. You may need to change your template to make this work.

This Addon does not make any changes to your existing banners. It adds a new banner box with banners that change.

The code that you quoted adds the banner rotator to the location where you paste that code. This has to be a location that can display a banner. It's normally added to index.php but can be placed elsewhere. See the instructions for more information.

Regards
Jim
My Addons

Banners Box 2.3.1 Support
Categories Accordion Box 2.3.1 Support
Categories Images Box 2.2x 2.3.1 Support
Closest Shipper 2.2x Support
Document Manager 2.2x Support
Generic Box 2.3.1 Support
Get 1 Free 2.2x Support
Include HTML and Text Boxes 2.2x
jQuery Banner Rotator 2.2x 2.3.1 Support
Modular Front Page 2.3.1 Support
Modular SEO Header Tags 2.3.1 Support
More Pics 2.2x Support
MVS 2.2x Support
osC Catalog 2.2x Support
PDF Datasheet 2.3.1 Support
Price Updater 2.2x
Products Specifications 2.2x 2.3.1 Development Version Support Bugs/Suggestions
Request a Review 2.2x - 2.3.1 Support
Similar Products Box 2.2x
Theme Switcher 2.3.1 Support

#98 skhuu

  • Community Member
  • 36 posts
  • Real Name:Sipho

Posted 01 March 2011, 11:52

View Postkymation, on 28 February 2011, 18:21, said:

This is most likely your problem. Templates make changes to the core code of osCommerce that prevent standard Addons from functioning. You may need to change your template to make this work.

This Addon does not make any changes to your existing banners. It adds a new banner box with banners that change.

The code that you quoted adds the banner rotator to the location where you paste that code. This has to be a location that can display a banner. It's normally added to index.php but can be placed elsewhere. See the instructions for more information.

Regards
Jim

Thanks for your respond, thats probably the problem, eish would have loved to use the contribution. Will keep on trying it anyway.

#99 jfkafka

  • Community Member
  • 161 posts
  • Real Name:john kafka

Posted 11 March 2011, 00:24

Hi kymation,

Hope all is excellent with you and thanks for the snazzy mod

Re Post #11
Problem completely solved with:

jQuery.noConflict();

Having similar symptoms - seeing dots (well, one large black one)

Not sure how to implement the cure (jQuery.noConflict();)

This didn't work:

<?php // Start Banner Rotator 1.2.1 20100628 Kymation 7641 ?>
<script type="text/javascript" src="includes/functions/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="includes/functions/bannerRotator.js"></script>
<script type="text/javascript">

jQuery.noConflict();

$(document).ready(function(){
bannerRotator('#bannerRotator', 500, 1000);
});
</script>
<?php // End Banner Rotator 1.2.1 20100628 Kymation 7641 ?>

Tried several variations, including: (in index.php)
var $j = jQuery.noConflict();
// Use jQuery via $j(...)
$j(document).ready(function(){
bannerRotator('#bannerRotator', 500, 1000);
});

along with renaming all the $( instances in bannerRotator.js to $j(
(yes, the desperation is running thick and heavy)

This caused the page to stop loading and no dot
(with both the original bannerRotator.js $( and the modified $j( version)

There are 3 banners in the rotator group and I put breakpoints in the function/banners.php
to make sure the queries are populated, (which the black dot might be confirming?)

Could you please elaborate on how to use: jQuery.noConflict();

Thanks for your insight (and mercy)

jk

#100 kymation

  • Community Sponsor
  • 5,662 posts
  • Real Name:Jim Keebaugh
  • Gender:Male
  • Location:Aberdeen WA USA

Posted 11 March 2011, 00:34

Probably the best explanation is on the jquery API page.

Regards
Jim
My Addons

Banners Box 2.3.1 Support
Categories Accordion Box 2.3.1 Support
Categories Images Box 2.2x 2.3.1 Support
Closest Shipper 2.2x Support
Document Manager 2.2x Support
Generic Box 2.3.1 Support
Get 1 Free 2.2x Support
Include HTML and Text Boxes 2.2x
jQuery Banner Rotator 2.2x 2.3.1 Support
Modular Front Page 2.3.1 Support
Modular SEO Header Tags 2.3.1 Support
More Pics 2.2x Support
MVS 2.2x Support
osC Catalog 2.2x Support
PDF Datasheet 2.3.1 Support
Price Updater 2.2x
Products Specifications 2.2x 2.3.1 Development Version Support Bugs/Suggestions
Request a Review 2.2x - 2.3.1 Support
Similar Products Box 2.2x
Theme Switcher 2.3.1 Support