1
Zap_English
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>

<
BR><BR>

<
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>

<
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 Ukraineb>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?

2
Zap_English
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

3
ryuaka
Re: Unorthodox problem with xBootstrap
  • 2016/5/27 16:36

  • ryuaka

  • Just popping in

  • Posts: 32

  • Since: 2011/9/24


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.

Login

Who's Online

222 user(s) are online (107 user(s) are browsing Support Forums)


Members: 0


Guests: 222


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits