HTML5 Banner Rotator

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Craig
    Senior Member
    • Jan 2008
    • 984

    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.
  • Mark.B
    vBulletin Support
    • Feb 2004
    • 24275
    • 6.0.X

    #2
    Originally posted by NumNum
    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
    ------------
    My Unofficial vBulletin 6.0.0 Demo: https://www.talknewsuk.com
    My Unofficial vBulletin Cloud Demo: https://www.adminammo.com

    Comment

    • Replicant
      Senior Member
      • Sep 2014
      • 527

      #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

      • glennrocksvb
        Former vBulletin Developer
        • Mar 2011
        • 3955
        • 5.7.X

        #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.

        Flag Icon Postbit Insert GIPHY Impersonate User INITIALS AVATAR Better Name Card Quote Selected Text Collapsed PM Post Footer Translate Stop Links in Posts +MORE!

        Comment

        widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
        Working...
        😀
        😂
        🥰
        😘
        🤢
        😎
        😞
        😡
        👍
        👎