1
phoethein
Putting module for start page above 2 blocks for center(r-l)
  • 2004/9/30 20:40

  • phoethein

  • Just popping in

  • Posts: 24

  • Since: 2004/9/25


Okie...First of all, please take a look at my site www.traffic-cafe.com!
As you can see, my 2 blocks(New images and Top Links) are located above my module(news) for my start page.
What I want is to place my 2blocks(New images and Top Links) under my module(news) for my start page.
What I have tried so far is,I tried with weight system by putting 1-100. But, it didn't work out.
I tried to look for a solution in this forums..But, after reading for 1 hr, I still couldn't find yet.

Please help me with it.

Regards

2
JackJ
Re: Putting module for start page above 2 blocks for center(r-l)
  • 2004/9/30 21:58

  • JackJ

  • Community Support Member

  • Posts: 747

  • Since: 2003/8/31


See this thread here

https://xoops.org/modules/newbb/viewtopic.php?topic_id=22516&forum=7#forumpost107755

If you need more help with your specific theme post again..

3
phoethein
Re: Putting module for start page above 2 blocks for center(r-l)
  • 2004/10/1 9:45

  • phoethein

  • Just popping in

  • Posts: 24

  • Since: 2004/9/25


Yes..I may need help from you for further assistant of my themes. Sorry to trouble you. I well understand about the thread you refer to. But, since the themes are different(I think mine is more complicated.) I'm not able to locate the exact code. I know where they are (center-left and center-right code). But, I'm afraid I could do something terrible mistake. So, here is my code for theme.html and Please guide me which part of code should be moved to which part of code exactly. Thanks...

Helps are really appreciated!!!

<body><table width="900" align="center" class="table_block">
  <
tr><td>
<
table width="892"  border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" class="head_table">
  <
tr>
    <
td><table width="100%"  border="0" cellspacing="6" cellpadding="0">
      <
tr>
        <
td class="head_logo"><a href="<{$xoops_url}>/"><img src="<{$xoops_imageurl}>images/logo.gif" border="0" /></a></td>
        <
td class="head_banner"><{$xoops_banner}></td>
      </
tr>
    </
table></td>
  </
tr>
  <
tr>
    <
td><table width="100%"  border="0" cellspacing="0" cellpadding="0">
      <
tr>
        <
td width="6">&nbsp;</td>
        <
td width="197" height="26" bgcolor="#CCCCCC">&nbsp;&nbsp;<a href="<{$xoops_url}>">home</a></td>
        <
td width="6"></td>
        <
td bgcolor="#9CCFCE">&nbsp;</td>
        <
td width="6"></td>
      </
tr>
    </
table></td>
  </
tr>
  <
tr>
    <
td><table width="100%"  border="0" cellspacing="6" cellpadding="0">
      <
tr><{if $xoops_lblocks}>
        <
td width="197" height="26" valign="top" bgcolor="#9CCFCE" class="head_logo"><!-- Start left blocks loop -->
            <{foreach 
item=block from=$xoops_lblocks}>
            <
table width="100%" cellpadding="2" cellspacing="0">
              <
tr>
                <
td class="L_blockTitle"><img src="<{$xoops_imageurl}>images/title_icon.gif" align="absmiddle" />&nbsp;<{$block.title}></td>
              </
tr>
              <
tr>
                <
td class="L_blockContent"><{$block.content}></td>
              </
tr>
              <
tr>
                <
td height="6"></td>
              </
tr>
            </
table>
            <{/foreach}>
          <!-- 
End left blocks loop --></td>
        <{/if}>
        <
td valign="top" bgcolor="#FFFFFF"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
          <
tr><td valign="top" bgcolor="#639A9C"></td>
          </
tr>
          <
tr>
            <
td height="6"></td>
          </
tr> <{if $xoops_showcblock == 1}>
          <
tr>
            <
td><!-- Start center-center blocks loop -->
                  <{foreach 
item=block from=$xoops_ccblocks}>
                  <
table width="100%" cellpadding="0" cellspacing="0">
                    <
tr
                      <
td class="blockTitle"><img src="<{$xoops_imageurl}>images/title_icon.gif"  align="absmiddle" />&nbsp;<{$block.title}></td>
                    </
tr>
                    <
tr>
                      <
td class="blockContent"><{$block.content}></td>
                    </
tr>
                    <
tr>
                      <
td height="6" ></td>
                    </
tr>
                  </
table>
                  <{/foreach}>
                <!-- 
End center-center blocks loop --></td>
          </
tr>
          <
tr>
            <
td><table width="100%"  border="0" cellspacing="0" cellpadding="0">
              <
tr>
                <
td width="49%" valign="top"><!-- Start center-left blocks loop -->
                  <{foreach 
item=block from=$xoops_clblocks}>
                  <
table width="100%" border="0" cellpadding="0" cellspacing="0">
                    <
tr
                      <
td class="blockTitle"><img src="<{$xoops_imageurl}>images/title_icon.gif" align="absmiddle" />&nbsp;<{$block.title}></td>
                    </
tr>
                    <
tr>
                      <
td class="blockContent"><{$block.content}></td>
                    </
tr>
                    <
tr>
                      <
td height="6" ></td>
                    </
tr>
                        </
table>                                    
                  <{/foreach}>
                <!-- 
End center-left blocks loop --></td>
                <
td width="1%">&nbsp;</td>
                <
td width="50%" valign="top">
                <!-- 
Start center-right blocks loop -->
                  <{foreach 
item=block from=$xoops_crblocks}>
                  <
table width="100%" border="0" cellpadding="0" cellspacing="0">
                    <
tr
                      <
td class="blockTitle"><img src="<{$xoops_imageurl}>images/title_icon.gif"  align="absmiddle" />&nbsp;<{$block.title}></td>
                    </
tr>
                    <
tr>
                      <
td class="blockContent"><{$block.content}></td>
                    </
tr>
                    <
tr>
                      <
td height="6" ></td>
                    </
tr>
                  </
table>
                  <{/foreach}>
                <!-- 
End center-right blocks loop --></td>
              </
tr>
            </
table></td>
          </
tr> <{/if}>
          <
tr>
            <
td class="content_block"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
              <
tr>
                <
td valign="top"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
  <
tr>
    <
td  class="content">
              <{
$xoops_contents}>
            </
td>
  </
tr>
</
table>                </td>
                <{if 
$xoops_showrblock == 1}>
                <
td width="6">&nbsp;</td>
                <
td width="175" valign="top"><!-- Start right blocks loop -->
            <{foreach 
item=block from=$xoops_rblocks}>
            <
table width="100%" cellpadding="2" cellspacing="0">
              <
tr>
                <
td class="blockTitle"><img src="<{$xoops_imageurl}>images/title_icon.gif"  align="absmiddle" />&nbsp;<{$block.title}></td>
              </
tr>
              <
tr>
                <
td class="blockContent"><{$block.content}></td>
              </
tr>
              <
tr>
                <
td height="6" ></td>
              </
tr>
            </
table>
        
            <{/foreach}>
          <!-- 
End right blocks loop --></td><{/if}>
              </
tr>
            </
table></td>
          </
tr>
        </
table></td>
      </
tr>
    </
table></td>
  </
tr>
  <
tr>
    <
td><div align="center">
      <
table width="100%"  border="0" cellspacing="0" cellpadding="0">
        <
tr>
          <
td><table width="100%"  border="0" cellspacing="0" cellpadding="0">
            <
tr>
              <
td width="6"></td>
              <
td height="30" bgcolor="#9CCFCE"><div align="center"><{$xoops_footer}></div></td>
              <
td width="6"></td>
            </
tr>
            <
tr>
              <
td height="6" colspan="3"></td>
              </
tr>
            <
tr>
              <
td height="6"></td>
              <
td class="design">THEME DESIGN: <a href="http://www.imagocn.net/theme/">IMAGO:THEMES</a> &nbsp;&nbsp;THEME
                NAME
: <strong>imago08</strong> </td>
              <
td height="6"></td>
            </
tr>
            <
tr>
              <
td height="16"></td>
              <
td height="16">&nbsp;</td>
              <
td height="16"></td>
            </
tr>
          </
table></td>
        </
tr>

      </
table>
    </
div></td>
  </
tr>
</
table>

</
td></tr></table>

</
body>

4
stefan88
Re: Putting module for start page above 2 blocks for center(r-l)
  • 2004/10/1 10:52

  • stefan88

  • Community Support Member

  • Posts: 1086

  • Since: 2004/9/20


Hi:)
You also have a center-center block (your welcome message), so how you want it? Something like:
center-center (welcome)
content (news)
center-left(picture)+center-right(links)

In that case you should move here:

Quote:

<!-- End center-center blocks loop --></td>
</tr>

--- NEED YOUR CONTENT HERE ---

<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">


Here I'm litle confused with your content block:(
but if you move this
Quote:

<td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="content">
<{$xoops_contents}>
</td>
</tr>
</table> </td>

and add '<tr>' in the begining and </tr> at the end of it, I think it should work.
Or you may move only this part, without any changes
Quote:

<tr>
<td class="content">
<{$xoops_contents}>
</td>
</tr>

However, don't forget to backup before making experiments! Better copy the theme with a new name and experiment on the copy.

BTW this is the part I'm confused about:
Quote:

<td class="content_block"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="content">
<{$xoops_contents}>
</td>
</tr>
</table> </td>
<{if $xoops_showrblock == 1}>
<td width="6">&nbsp;</td>
<td width="175" valign="top"><!-- Start right blocks loop -->


I don't see this

<td class="content_block"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>

closed before starting right block loop. Any comments?
Stefan

5
phoethein
Re: Putting module for start page above 2 blocks for center(r-l)
  • 2004/10/1 11:54

  • phoethein

  • Just popping in

  • Posts: 24

  • Since: 2004/9/25


Hi,stefan88,
Thanx indeed. The thing works fine now. You can review it @ Traffic Cafe.

Umm..The last code u mentioned!! Honestly, I have no idea at all since I'm not well educated in web programming! I'll look into it later on. But, I'm not too sure what you said with the last code.
Quote:
closed before starting right block loop.

Were you asking me to put </tr></td> before starting right block loop?

If so, I haven't tried it out yet. I'm waiting for your reply. If u confirm me to try out as I mentioned above, I'll test it out.

Again Again!! Thanks a lot.

6
phoethein
Re: Putting module for start page above 2 blocks for center(r-l)
  • 2004/10/1 12:42

  • phoethein

  • Just popping in

  • Posts: 24

  • Since: 2004/9/25


UPDATE: The attempt was failed! I just noticed that I could only see "news" module which is my top page. The rest of the page has encountered problems. I can't see the rest of the content like gallery and etc. Please help me again. I put </tr></td> before starting right block loop. But, it didn't work out either.

Login

Who's Online

180 user(s) are online (75 user(s) are browsing Support Forums)


Members: 0


Guests: 180


more...

Donat-O-Meter

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

Latest GitHub Commits