xoops forums

Zap_English

Quite a regular
Posted on: 2016/5/25 12:37
Zap_English
Zap_English (Show more)
Quite a regular
Posts: 384
Since: 2016/5/24
#1

Unorthodox problem with xBootstrap

So, I'm setting up a new site using xBootstrap

I tried various modules for the main page, and assigned them as the start module in the preferences.

Unfortunately, assigning a start module gets rid of the slider and the box under it.

I wanted a smooth look without any headers, breadcrumb, etc

After looking at the code in xBootstrap

theme.html calls to tpl/content-zone.html and tpl/content-zone.html calls to tpl/content.html

So, as a little bit of an unorthodox fix, I created the info I wanted in html format and pasted it into tpl/content.html like so

<HTML>
<!--
DUMMY HTML CONTENT-->
<
BR><BR>
<!-- 
BEGINSAUTO-GENERATED MUSES RADIO PLAYER CODE -->
<
script type="text/javascript" src="https://hosted.muses.org/mrp.js"></script>
<
script type="text/javascript">
MRP.insert({
'url':'http://master.shoutcast.com:8000/722504/;',
'codec':'mp3',
'volume':50,
'autoplay':true,
'buffering':5,
'title':'Radio Free Ukraine',
'welcome':'WELCOME TO...',
'bgcolor':'#FFFFFF',
'skin':'blueberry',
'width':338,
'height':102
});
</
script>
<!-- 
ENDSAUTO-GENERATED MUSES RADIO PLAYER CODE -->
<
BR><BR>
<
h1><b>Proud to be Ukrainian…</b></h1><BR>
<
BR>
Radio Free Ukraine broadcasts to to the world from Ukrainefocusing on newsa familiar brand of “hits and memories”friendly presentersUkrainian news and most importantlycommunity involvement.<BR>
<
BR>
<
h1><b>We are Radio Free Ukraine</b></h1><BR>
<
BR>
We are Radio Free Ukraine and our mission is to tell Ukrainian residents about what’s happening in their towns and surrounding villagesHow?<BR>
<
BR>
As 
your Ukrainian community radio we keep you informed week by week about the events in and around your town with our ‘Take Notice’ feature, and local employment opportunities in our daily ‘Job Spot’ programmeThe ‘Over to You’ show demonstrates what local charities clubs are achieving.<BR>
<
BR>
Drive Time keeps you up to date with the latest newsweather and sports and gets you home safelywhilst our Saturday Sports team inform you how our local national players are doing in all kinds of sportsSpotlightour specialist arts and music programmekeeps you updated with all the local gigsintroduces new musiciansplays and drama productions. <BR>
<
BR>
We do all this while we bring to you the best of music from the 60’s through to the present day – 24 hours a day – and all achieved by dedicated volunteers.<BR>
<
BR>
</
HTML>
<{if 
$xoops_contents}>
    <{
$xoops_contents}>
<{/if}>



it looks great. Lines up nicely against the main menu.

Here's the problem...

It appears twice. It also appears at the end of the main menu and is paginated to the left.

I searched the xBootstrap files and there is only one instance of tpl/content-zone.html and tpl/content.html being called, and that's from theme.html as I explained above.

And deleting
<{if $xoops_contents}>
<{
$xoops_contents}>
<{/if}>


doesn't make any difference. The content is still twice

So, can someone tell me why it's appearing twice and how I can stop it?

Zap_English

Quite a regular
Posted on: 2016/5/25 16:18
Zap_English
Zap_English (Show more)
Quite a regular
Posts: 384
Since: 2016/5/24
#2

Re: Unorthodox problem with xBootstrap

Well that fix was not good

I found out it shows that content on the top of every page on the site

ryuaka

Just popping in
Posted on: 2016/5/27 16:36
ryuaka
ryuaka (Show more)
Just popping in
Posts: 32
Since: 2011/9/24
#3

Re: Unorthodox problem with xBootstrap

I think that happens because you put that code in themes.html and at the same time, in content.html

I guess you have two solutions fo this:

Fist, configure your module or your block for showing only in main page.
Second, delete the code only in content.html if you only want to show that info in main page.

After that if you can't see the changes, try to delete everything (except the index.html) from xoops_data/caches/smarty_compile.

I hope this solve your problem.