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>

<{
$xoops_module_header}>
<
script type="text/javascript">

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">HOMEa>td>
                  
                  <
td width="1" bgcolor="#3773BB">td>
                  <
td id="headmenu"><class="menuHead" 
                  
href="<{$xoops_url}>/modules/newbb/">FORUMSa>td>

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

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

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

                  <
td width="1" bgcolor="#3773BB">td>
                  <
td id="headmenu"><class="menuHead" 
                  
href="<{$xoops_url}>/modules/news/">NEWSa>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 usa><{/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"
          
          <{foreach 
item=block from=$xoops_lblocks}> <div class="<{cycle values="blockTitle"}>"><{$block.title}>div>
          <
div class="blockContent"><{$block.content}>div>
          <{/foreach}> 
          
          <
br /> 
          <
br />
          <
img src="<{$xoops_imageurl}>images/160.gif" width="170" height="1" alt="" />
          td>
        <
td id="centercolumn">
          
          <{if 
$xoops_showcblock == 1}> <table class="sadrzaj" cellspacing="0">
            <
tr
              <
td id="centerCcolumn" colspan="2">
              <
div id="content"> <{$xoops_contents}> div>
              br
                
                <{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}> 
                
              td>
            tr>
            <
tr
              <
td id="centerLcolumn" 
<{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}> 
                
              td>
 <
td id="centerRcolumn" 
<{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}> 
                
              td>
            tr>
          table>
          <{/if}> 
          
          <
br /> <br /> <br /> td>
        <{if 
$xoops_showrblock == 1}> 
        <
td id="rightcolumn"
          
          <{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}> 
          
          <
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"> 
  


  

790" align="center" border="0" cellpadding="2" cellspacing="2" class="dole">
  
    privatnost">http://www.libervis.com/privacy.php" target="_blank">Privacy Policy | Mission Statement | About Us | Contact Us | Site Map


Copyright © <a href="http://www.libervis.com" target="_blank">libervis.coma2004 Icons by <a href="http://www.everaldo.com" target="_blank">Everaldoa>

<{
$xoops_footer}> &nbsp;|&nbsp;

Design by <a href="http://www.7dana.com" target="_blank">7dana.coma>

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

<{$xoops_contents}>


I tried this on mine, works ok:

Code:





<{foreach item=block from=$xoops_lblocks}>
"><{$block.title}>

<{$block.content}>

<{/foreach}>






height="1" alt="" />

<{$xoops_contents}>


<{if $xoops_showcblock == 1}>

cellspacing="0">


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

425 user(s) are online (61 user(s) are browsing Support Forums)


Members: 0


Guests: 425


more...

Donat-O-Meter



<{foreach item=block from=$xoops_ccblocks}>
align="center" cellpadding="0" cellspacing="2">



<{$block.title}>

<{$block.content}>

<{/foreach}>

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

Latest GitHub Commits