MyBB Community Forums

Full Version: local installation of bootstrap - howto
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi, I need to use bootstrap local. In the moment it is called via bootstrap cdn. This can cause some privacy issues in europe.

I know howto install bootstrap local, but I don't know the right way to do it with mybb or I can't find the templates that fit for that purpose.

I am using mybb 1.8

This is part of the header and I am happy if someone can give me a hint which files I have to touch.

Thank you.


</script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">

<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script>
var jq1111 = jQuery.noConflict();
</script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.2/jquery-ui.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script>
First you need to create a copy of bootstrap.min.js from bootstrap CDN to your /jscripts folder.

Then,

ACP >> Templates & Styles >> Themes >> Your theme >> Add Stylesheet >>

  • File Name = bootstrap.css
  • Attached to = Globally
  • Select "Write my own content"
  • Then copy full code from here "https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" to that text area and click "Save Stylesheet".

Finally,

ACP >> Templates & Styles >> Templates >> You theme >> Ungrouped Templates >> headerinclude

add this code in bottom of template.

<script src="{$mybb->asset_url}/jscripts/bootstrap.min.js"></script>

Thank you!
Thank you very much, I will try as soon as possible. Maybe I need two days before I can start.

Katasun