2013-12-10, 04:00 PM
hey
iam trying to add a tourist plugin to mymbb forum
heres the website of the plugin
http://easelinc.github.io/tourist/
i got the Tourist.js
i put this code in the headlerinclude
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/tourist.js"></script>
i dont know were to put that code
var steps = [{
content: '<p>First look at this thing</p>',
highlightTarget: true,
nextButton: true,
target: $('#thing1'),
my: 'bottom center',
at: 'top center'
}, {
content: '<p>And then at this thing</p>',
highlightTarget: true,
nextButton: true,
target: $('#thing2'),
my: 'bottom center',
at: 'top center'
}]
var tour = new Tourist.Tour({
steps: steps,
tipClass: 'Bootstrap',
tipOptions:{ showEffect: 'slidein' }
});
tour.start();
anyone can help me were to put this code in wich templte
i want to show this only to members
please help me and sory for bad english
iam trying to add a tourist plugin to mymbb forum
heres the website of the plugin
http://easelinc.github.io/tourist/
i got the Tourist.js
i put this code in the headlerinclude
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/tourist.js"></script>
i dont know were to put that code
var steps = [{
content: '<p>First look at this thing</p>',
highlightTarget: true,
nextButton: true,
target: $('#thing1'),
my: 'bottom center',
at: 'top center'
}, {
content: '<p>And then at this thing</p>',
highlightTarget: true,
nextButton: true,
target: $('#thing2'),
my: 'bottom center',
at: 'top center'
}]
var tour = new Tourist.Tour({
steps: steps,
tipClass: 'Bootstrap',
tipOptions:{ showEffect: 'slidein' }
});
tour.start();
anyone can help me were to put this code in wich templte
i want to show this only to members
please help me and sory for bad english