Announcement

Collapse
No announcement yet.

HTML5 Banner Rotator

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • HTML5 Banner Rotator

    I'm adding a photo banner to my site. The problem is it is using a lesser version of jquery than vB does. Is there a work around for this, so it uses vB's jquery?
    adktramping ~ my happy place.

    "Whoever said practice makes perfect was an idiot. Humans can't be perfect because we're not machines." ~ Sam Gardner.

    Vote for your favorite feature requests and the bugs you want to see fixed.

  • #2
    Originally posted by NumNum View Post
    I'm adding a photo banner to my site. The problem is it is using a lesser version of jquery than vB does. Is there a work around for this, so it uses vB's jquery?
    It would need the code for the add-on tweaking to make it do that.
    MARK.B | vBULLETIN SUPPORT

    TalkNewsUK - My vBulletin 5.6.2 Demo
    AdminAmmo - My Cloud Demo

    Comment


    • #3
      Update the code in the banner rotator. Remove the link for the old jQuery, then use the console in the dev environment to see where the problems are. It usually requires little effort to update the code. If there is a function jquery is complaining about, do a search for the function on the jquery site and it usually shows the code as deprecated and gives a link for the replacement. If there are too many issues, you can probably find another rotator that uses current code.


      Comment


      • #4
        I've helped the OP personally and duplicate jQuery wasn't the issue. The banner rotator script is using the same jQuery version that vB5 is using. The issue was it was loading jQuery twice. I had to include the banner script separately from the HTML module. I had to create a template hook to be able to include the banner plugin at the bottom of the page after jQuery is included.

        There should be an AdminCP option to include jQuery in the <head> so that modules that have jQuery plugin and require jQuery library immediately would be able to initialize the plugin right away.

        GIPHY for vB5 AutoLinker Auto-Create Flag Report Topic Social Icons in Postbit Clear Cache Cron DragDrop Upload Topic AJAX AutoUpdate Custom Avatars Selector Stop Links in Posts...and more!

        Comment

        widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
        Working...
        X