Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Not Solved local installation of bootstrap - howto
#1
Not Solved
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.


Code:
</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>
Reply
#2
Not Solved
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.

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

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

Katasun
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)