WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.6 is now available!


Will it continue with WB? It goes on! | Geht es mit WB weiter? Es geht weiter!
https://forum.websitebaker.org/index.php/topic,32340.msg226702.html#msg226702


The forum email address board@websitebaker.org is working again
https://forum.websitebaker.org/index.php/topic,32358.0.html


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • jQuery »
  • Installing JQuery Plugins
  • Print
Pages: [1]   Go Down

Author Topic: Installing JQuery Plugins  (Read 141537 times)

Offline contactjw

  • Posts: 121
Installing JQuery Plugins
« on: June 26, 2016, 07:27:41 PM »
Just wondering if I can install a jquery plugin by simply adding the code to the footer of my template using the usual formats?
Logged

Offline Ruud

  • Posts: 3671
  • Gender: Male
  • Do not use PM for help! Please use the forum!
    • Dev4Me - Professional WebsiteBaker Development
Re: Installing JQuery Plugins
« Reply #1 on: June 26, 2016, 11:26:33 PM »
Sure, no problem.
Logged
Dev4me - WebsiteBaker modules - WBhelp.org

Offline contactjw

  • Posts: 121
Re: Installing JQuery Plugins
« Reply #2 on: June 27, 2016, 08:44:25 PM »
Quote from: Ruud on June 26, 2016, 11:26:33 PM
Sure, no problem.

OK. Thanks. Got the plugin installed with a conditional statement so it loads only on one page. Works great!
Logged

Offline contactjw

  • Posts: 121
Re: Installing JQuery Plugins
« Reply #3 on: June 28, 2016, 06:34:12 PM »
Hi Ruud,

I was thinking about  loading the JQuery file myself instead of using the wb installed JQuery. Reason is I don't think I need the other three resources, insert.js, include.js, and theme.js, that seem to be packaged with the wb JQuery. As far as I can tell they just unnecessarily slow down the page loading. Any reason I shouldn't do that?
Logged

Offline jacobi22

  • Betatester
  • **
  • Posts: 5920
Re: Installing JQuery Plugins
« Reply #4 on: June 28, 2016, 07:12:04 PM »
deactivate this line (if in use in your template)
Code: [Select]
register_frontend_modfiles('jquery');
if you use SP6, go to AdminTools -> Frontend Output Filter and deactivate the Jquery, if its activated

at last step, add your favorite jquery file into your template folder and add the code to load it in your index.php from the used template. be sure, that you use the correct path (in example in a sub-directory of the template)

Code: [Select]
<!-- jQuery  -->
<script src="<?php echo TEMPLATE_DIR; ?>/js/jquery.min.js"></script>
Logged

Offline contactjw

  • Posts: 121
Re: Installing JQuery Plugins
« Reply #5 on: June 28, 2016, 11:08:48 PM »
Quote from: jacobi22 on June 28, 2016, 07:12:04 PM
deactivate this line (if in use in your template)
Code: [Select]
register_frontend_modfiles('jquery');
if you use SP6, go to AdminTools -> Frontend Output Filter and deactivate the Jquery, if its activated

at last step, add your favorite jquery file into your template folder and add the code to load it in your index.php from the used template. be sure, that you use the correct path (in example in a sub-directory of the template)

Code: [Select]
<!-- jQuery  -->
<script src="<?php echo TEMPLATE_DIR; ?>/js/jquery.min.js"></script>

OK, thanks. Will give it a try and see how it goes.
Logged

Offline contactjw

  • Posts: 121
Re: Installing JQuery Plugins
« Reply #6 on: July 13, 2016, 08:55:09 PM »
Quote from: contactjw on June 28, 2016, 11:08:48 PM
Quote from: jacobi22 on June 28, 2016, 07:12:04 PM
deactivate this line (if in use in your template)
Code: [Select]
register_frontend_modfiles('jquery');
if you use SP6, go to AdminTools -> Frontend Output Filter and deactivate the Jquery, if its activated

at last step, add your favorite jquery file into your template folder and add the code to load it in your index.php from the used template. be sure, that you use the correct path (in example in a sub-directory of the template)

Code: [Select]
<!-- jQuery  -->
<script src="<?php echo TEMPLATE_DIR; ?>/js/jquery.min.js"></script>

OK, thanks. Will give it a try and see how it goes.

FYI everything is working great. Pages are loading under 1.5 seconds. Thanks!
Logged

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • jQuery »
  • Installing JQuery Plugins
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2