11
libervis
Re: Center blocks and module content.
  • 2004/9/19 4:13

  • libervis

  • Not too shy to talk

  • Posts: 183

  • Since: 2004/7/4 1


I uploaded the changes i made.. firstly i obviously made some mistakes because everything was wrong, the left column was wider and the right was moved to top.. but ok, i checked and did it again so now it's with changes you talked me through till now.

However, now when i upload those changes i get the empty center column in forums.

I guess it's because we didn't finished the process you had in mind for this.

I'll wait for your reply..

Thank you
Daniel

12
JackJ
Re: Center blocks and module content.
  • 2004/9/19 4:14

  • JackJ

  • Community Support Member

  • Posts: 747

  • Since: 2003/8/31


I thought you were going to put the absense code in a center-center block?

all blocks you create will now appear below the page modules

Just create a custom block and make it visible in the forum module etc

paste the adsense html into your custom block

Custom blocks are created in the system admin -> blocks section.

remember to make the block visible to groups in system admin ->groups

13
libervis
Re: Center blocks and module content.
  • 2004/9/19 4:18

  • libervis

  • Not too shy to talk

  • Posts: 183

  • Since: 2004/7/4 1


I see, that's great. I did want to put it in the center-center block, it makes it much more controlable..

However, i get the empty column instead of forums now..
Here's the whole theme.html if i did something wrong.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<
html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<{$xoops_langcode}>" lang="<{$xoops_langcode}>">
<
head>
<
meta http-equiv="content-type" content="text/html; charset=<{$xoops_charset}>" />
<
meta http-equiv="content-language" content="<{$xoops_langcode}>" />
<
meta name="robots" content="<{$xoops_meta_robots}>" />
<
meta name="keywords" content="<{$xoops_meta_keywords}>" />
<
meta name="description" content="<{$xoops_meta_description}>" />
<
meta name="rating" content="<{$xoops_meta_rating}>" />
<
meta name="author" content="<{$xoops_meta_author}>" />
<
meta name="copyright" content="<{$xoops_meta_copyright}>" />
<
meta name="generator" content="XOOPS" />
<
title><{$xoops_sitename}> - <{$xoops_pagetitle}></title>
<
link href="<{$xoops_url}>/favicon.ico" rel="SHORTCUT ICON" />
<
link rel="stylesheet" type="text/css" media="all" href="<{$xoops_url}>/xoops.css" />
<
link rel="stylesheet" type="text/css" media="all" href="<{$xoops_themecss}>" />
<
link rel="P3Pv1" href="/w3c/p3p.xml"></link>
<!-- 
RMVadded module header -->
<{
$xoops_module_header}>
<
script type="text/javascript">
<!--
<{
$xoops_js}>
//-->
</script>
</
head>
<
body>
<
table width="100%" border="0" cellpadding="0" cellspacing="0" id="okvir">
  <
tr>
    <
td>
      <
table width="100%" cellspacing="0">
        <
tr id="header">
          <
td id="headerlogo"><a href="<{$xoops_url}>/register.php"><img src="<{$xoops_imageurl}>images/logo.jpg" alt="Libervis.com - free software community node" border="0" /></a>
<
td id="banner"><{$xoops_banner}>&nbsp;
</
td></tr>
<
tr><td colspan="2"><table align="center" cellspacing="0" cellpadding="0" width="100%" border="0">
                <
tr align="center" width="100%">
                  <
td width="100%" bgcolor="#3773BB"></td>
                  <
td id="headmenu"><class="menuHead" 
                  
href="<{$xoops_url}>/index.php">HOME</a></td>
                  
                  <
td width="1" bgcolor="#3773BB"></td>
                  <
td id="headmenu"><class="menuHead" 
                  
href="<{$xoops_url}>/modules/newbb/">FORUMS</a></td>

                  <
td width="1" bgcolor="#3773BB"></td>
                  <
td id="headmenu"><class="menuHead" 
                  
href="<{$xoops_url}>/modules/weblog/">BLOGS</a></td>

                  <
td width="1" bgcolor="#3773BB"></td>
                  <
td id="headmenu"><class="menuHead" 
                  
href="<{$xoops_url}>/modules/wfsection/">ARTICLES</a></td>

                  <
td width="1" bgcolor="#3773BB"></td>
                  <
td id="headmenu"><class="menuHead" 
                  
href="<{$xoops_url}>/modules/xoopsfaq/">FAQ</a></td>

                  <
td width="1" bgcolor="#3773BB"></td>
                  <
td id="headmenu"><class="menuHead" 
                  
href="<{$xoops_url}>/modules/news/">NEWS</a></td>
                </
tr>
            </
table></td>
</
table>
       <
table width="100%" border="0" cellspacing="0" cellpadding="0">
        <
tr>
          <
td><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <
tr
                <
td class="pozdrav"> &nbsp;&nbsp;<{if $xoops_isuser}> Welcome back <a href="<{$xoops_url}>/user.php"><{$xoops_uname}></a>&nbsp;&nbsp;&nbsp;<a href="<{$xoops_url}>/user.php">your 
                  account 
</a>&nbsp; <{else}> <a href="<{$xoops_url}>/register.php">Join us</a><{/if}><span class="right"><{if $xoops_isuser}> 
                  <
a href="<{$xoops_url}>/user.php?op=logout"></a><{else}>&nbsp;&nbsp;&nbsp;|  <a href="<{$xoops_url}>/benefits.php"Why join?</a>
                  <{/if}> </
span></td>
                <
td align="right" class="vrijeme"><span id="clock"></span><{$smarty.now|date_format:"%A, %B %e, %Y"}>&nbsp;</td>
              </
tr>
            </
table></td>
        </
tr>
      </
table>
      <
table border="0" cellpadding="0" cellspacing="0">
        <
td id="leftcolumn"
          <!-- 
Start left blocks loop -->
          <{foreach 
item=block from=$xoops_lblocks}> <div class="<{cycle values="blockTitle"}>"><{$block.title}></div>
          <
div class="blockContent"><{$block.content}></div>
          <{/foreach}> 
          <!-- 
End left blocks loop -->
          <
br /> 
          <
br />
          <
img src="<{$xoops_imageurl}>images/160.gif" width="170" height="1" alt="" />
          </
td>
        <
td id="centercolumn">
          <!-- 
Display center blocks if any -->
          <{if 
$xoops_showcblock == 1}> <table class="sadrzaj" cellspacing="0">
            <
tr
              <
td id="centerCcolumn" colspan="2">
              <
div id="content"> <{$xoops_contents}> </div>
              </
br
                <!-- 
Start center-center blocks loop -->
                <{foreach 
item=block from=$xoops_ccblocks}> <table align="center" cellpadding="0" cellspacing="2">
                  <
tr>
                    <
td> <div class="blockTitle"><{$block.title}></div>
                      <
div class="blockContent"><{$block.content}></div></td>
                  </
tr>
                </
table>
                <{/foreach}> 
                <!-- 
End center-center blocks loop -->
              </
td>
            </
tr>
            <
tr
              <
td id="centerLcolumn"> <!-- Start center-left blocks loop --> 
<{foreach 
item=block from=$xoops_clblocks}> 
                  <
table class="blok" align="center" cellpadding="3" cellspacing="2"
                    <
tr
                      <
td> <div class="item_col"><div class="blockTitle"><{$block.title}></div
                        <
div class="blockContent"><{$block.content}></div>
                        <
div class="itemFoot">&nbsp;</div></div>
                      </
td
                  </
tr>
                </
table>
                <{/foreach}> 
                <!-- 
End center-left blocks loop -->
              </
td>
 <
td id="centerRcolumn"> <!-- Start center-right blocks loop --> 
<{foreach 
item=block from=$xoops_crblocks}> 
                  <
table class="blok" align="center" cellpadding="3" cellspacing="2"
                    <
tr
                      <
td> <div class="item_col"><div class="blockTitle"><{$block.title}></div
                        <
div class="blockContent"><{$block.content}></div>
                        <
div class="itemFoot">&nbsp;</div></div></td
                  </
tr>
                </
table>
                <{/foreach}> 
                <!-- 
End center-right blocks loop -->
              </
td>
            </
tr>
          </
table>
          <{/if}> 
          <!-- 
End display center blocks -->
          <
br /> <br /> <br /> </td>
        <{if 
$xoops_showrblock == 1}> 
        <
td id="rightcolumn"
          <!-- 
Start right blocks loop -->
          <{foreach 
item=block from=$xoops_rblocks}> <div class="<{cycle values="blockTitle,blockTitle"}>"><{$block.title}></div>
          <
div class="blockContent"><{$block.content}></div>
          <
img src="<{$xoops_imageurl}>images/160.gif" width="160" height="1" alt="" />
          <{/foreach}> 
          <!-- 
End right blocks loop -->
          <
br /> <br /> </td>
        <{/if}> </
tr>
    </
table>
    <
table width="100%"  border="0" cellspacing="0" cellpadding="0">
  <
tr>
 
                  <
td background="<{$xoops_imageurl}>images/back_line.jpg"" class="line">&nbsp;</td>
  </tr>
</table>
</td>
  </tr>
</table>
<table width="
790" align="center" border="0" cellpadding="2" cellspacing="2" class="dole">
  <tr>
    <td><div class="
privatnost"><a href="http://www.libervis.com/privacy.php" target="_blank">Privacy Policy</a> | <a href="http://www.libervis.com/mission.php" target="_blank">Mission Statement</a> | <a href="http://www.libervis.com/aboutus.php" target="_blank">About Us</a> | <a href="http://www.libervis.com/modules/contact/" target="_blank">Contact Us</a> | <a href="http://www.libervis.com/sitemap.php" target="_blank">Site Map</a><br><br/><br />
Copyright © <a href="http://www.libervis.com" target="_blank">libervis.com</a2004 Icons by <a href="http://www.everaldo.com" target="_blank">Everaldo</a>
<!-- 
Webmasterdont remove this textIt denied by license! -->
<{
$xoops_footer}> &nbsp;|&nbsp;
<!-- 
Webmasterdont remove this textIt denied by license! -->
Design by <a href="http://www.7dana.com" target="_blank">7dana.com</a>
<!--
End  "design by" text! -->
<
br />
</
div></td>
  </
tr>
</
table>

<
table width="790"  border="0" cellspacing="0" cellpadding="0">
  <
tr>
        </
tr>
        <
tr
<
br>
</
body>
</
html>


I very much appreciate your help
Thank you
Daniel

14
JackJ
Re: Center blocks and module content.
  • 2004/9/19 12:55

  • JackJ

  • Community Support Member

  • Posts: 747

  • Since: 2003/8/31


I think I was slightly out try this, look for:

<td id="centercolumn"> <div id="content"> <{$xoops_contents}>
<!-- Display center blocks if any -->

I tried this on mine, works ok:

Code:



<td id="leftcolumn">
<!-- Start left blocks loop -->
<{foreach item=block from=$xoops_lblocks}> <div class="<{cycle

values="blockTitle"}>"><{$block.title}></div>
<div class="blockContent"><{$block.content}></div>
<{/foreach}>
<!-- End left blocks loop -->
<br />
<br />
<img src="<{$xoops_imageurl}>images/160.gif" width="170"

height="1" alt="" />
</td>
<td id="centercolumn"> <div id="content"> <{$xoops_contents}>
<!-- Display center blocks if any -->

<{if $xoops_showcblock == 1}> </div> <table class="sadrzaj"

cellspacing="0">
<tr>
<td id="centerCcolumn" colspan="2">
<!-- Start center-center blocks loop -->
<{foreach item=block from=$xoops_ccblocks}> <table

align="center" cellpadding="0" cellspacing="2">
<tr>
<td> <div class="blockTitle"><{$block.title}></div>
<div class="blockContent"><{$block.content}></div></td>
</tr>
</table>
<{/foreach}>
<!-- End center-center blocks loop -->
</td>

15
libervis
Re: Center blocks and module content.
  • 2004/9/19 13:20

  • libervis

  • Not too shy to talk

  • Posts: 183

  • Since: 2004/7/4 1


Finally it works!

All blocks in modules are displayed below module content. i wanted it only for forums, but it's not a big deal. I'll remove the intros on FAQ, they probably don't read it anyway. For other blocks in other modules it's fine to be below instead of top.

The most important thing is that i'm gonna have a much effective adsense now with ads displaying below every post in forums which are the most populated part of a site.

Thank you very much Jack! Cheers to you!

Daniel

Login

Who's Online

183 user(s) are online (104 user(s) are browsing Support Forums)


Members: 0


Guests: 183


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