1
st00dent
Confused-Making a Theme
  • 2005/5/20 13:23

  • st00dent

  • Just popping in

  • Posts: 47

  • Since: 2005/5/3 2


I have started following this guide but I am confused.

It says open your theme.html file and edit it so that

<{include file="default/theme_blockleft.html"}>

becomes

<{include file="yourtheme/theme_blockleft.html"}>

but i cannot find this line in the theme.html file

am I missing something obvious?

2
bluenova
Re: Confused-Making a Theme

About 50 lines down:

<!-- Start left blocks loop -->
        <{foreach 
item=block from=$xoops_lblocks}>
          <{include 
file="default/theme_blockleft.html"}>
        <{/foreach}>
        <!-- 
End left blocks loop -->

3
st00dent
Re: Confused-Making a Theme
  • 2005/5/20 14:43

  • st00dent

  • Just popping in

  • Posts: 47

  • Since: 2005/5/3 2


I've got this

<!-- Start center-center blocks loop -->
<{foreach item=block from=$xoops_ccblocks}>
<table cellspacing="1" cellpadding="5">
<tr>
<td class="blockTitle">&nbsp;<{$block.title}></td>
</tr>
<tr>
<td class="blockContent"><{$block.content}></td>
</tr>
</table>
<{/foreach}>
<!-- End center-center blocks loop -->

4
bluenova
Re: Confused-Making a Theme

It should be before that

I'd suggest downloading XOOPS again if you can't find it.

5
st00dent
Re: Confused-Making a Theme
  • 2005/5/20 15:35

  • st00dent

  • Just popping in

  • Posts: 47

  • Since: 2005/5/3 2


I can't do that, I've already got the site up and running I don't want to reinstall everything again:(
Any other ideas?

6
bluenova
Re: Confused-Making a Theme

You only need to replace the theme.html file

7
pod
Re: Confused-Making a Theme
  • 2005/5/20 15:41

  • pod

  • Quite a regular

  • Posts: 301

  • Since: 2003/4/19


Not all themes use external HTML files for their blocks. The external files are in fact completely unnecessary, & I'm guessing your theme is one without em.
Simply, where you see <{$block.title}> is where your block title is going to display, & <{$block.content}> is where your content is going to display. Those are the only necessary tags to display a block, edit the rest as much as you like.

So basically you can do this...
<!-- Start center-center blocks loop -->
<{foreach 
item=block from=$xoops_ccblocks}>
<
table cellspacing="1" cellpadding="5">
<
tr>
<
td class="blockTitle">&nbsp;<{$block.title}></td>
</
tr>
<
tr>
<
td class="blockContent"><{$block.content}></td>
</
tr>
</
table>
<{/foreach}>
<!-- 
End center-center blocks loop -->

Or this...
<{foreach item=block from=$xoops_ccblocks}> 
<
div class="blockTitle"><{$block.title}></div>
<
div class="blockContent"><{$block.content}></div>
<{/foreach}>

Or even this...
<{foreach item=block from=$xoops_ccblocks}> 
<{
$block.title}>
<
br />
<{
$block.content}>
<{/foreach}>

Hope this helps.