Blocks problem

Roych

Great!!

Keep on the good work, and thanx for help!!!  :wink:


Roych

Waldschwein

Hello!

Ok, that's good.  8-)
If you like it - well, just keep there.

But anyway, I will begin to rework some of the templates (if my time allows), and I think starting with that one is a good idea.

Yours Michael

Roych

Hey

got it!
Pastin a picture of what I needed!

I just created a new table!!! I don't have the time to rewrite the whole template, it's cool as it is now!

Thx anyway!

Roych

[gelöscht durch Administrator]

Waldschwein

Hello,

first: No, I'm not finished.
There are two ways as far as I have seen to get that what you want to achieve:
1.) The quick & really dirty: Use a <td> Table for the content.
2.) The long & good: Rewrite the template.

In fact, I think 2.) is much better - the yet template is at the first glance not that bad (well, it uses tables, but tables aren't always directly bad), but... On the second view there are so many things, I wonder why nobody yet has seen it.

You can't just use the different colour.css - because many of the colors / images are defined in the index.php in the table, some in css... It just doesn't meet quite anything from the template-guideline. There's code I just don't know where it comes from and what's about it... So I think it's time to recode the template - also when it takes some time (I hope I will get it finished today, if not it should be finished tomorrow).

And I want to test my new CSS / XHTML editor software really! It has found about 20 errors in every CSS file...

Yours Michael

Roych

Oh, ok it I would be really gratefull!


Thank you!

Roych

Waldschwein

Hello!

Ok, thanks, now I understand it.

The template itself has quite clumsy code (I don't mean the tables, but meeting template guidelines etc.).

I will try to recode it the next hours. Because we have to do it anyway some times.

PS: Anybody has seen it has 7 different color schemes?  :wink:

Yours Michael

Roych

I dont quite understand what you mean so I created another image in photoshop to show you what I want!

I would like to be able to to assign my content to those blocks!

[gelöscht durch Administrator]

Waldschwein

Hello!

Ok, I see. The block at very right (the third one) you want to display in the header, or you want to display that block in a new site ("pop-up"), or just display that block above the "integrated" in the menu?

If I know what you mean I can have a look and try to update that template.

Yours Michael



Roych

Thanks for help!

This is the original code, I just duplicated it for another block!
Each blocks should have the name on top.

I'm pasting the image so you couls see what I mean!

[gelöscht durch Administrator]

Waldschwein

#2
Hello!

Uhm... That code looks _very_ clumsy for me... Why do you have that much echos in there?
That's not necessary for another block.
Just look there: http://help.websitebaker.org/pages/en/advanced-docu/designer-guide/content-blocks.php

You need to define in info.php that there are some blocks, and after that just use <?php page_content(XX); ?> for your block.

Yours Michael

Edit: Ok... That's inside the mamboportal template... HRM... Perhaps somebody could look there.

Roych

Hi

I'm having problems with Content blocks in mamboportal template!
I added a new block but I woul like blocks to be shown one on top of another not side by side how do I do that?

My code is:
Quote<?php ob_start();     // start output buffer
page_content(2);   // call menu
$foo=ob_get_contents();    // put outputbuffer in $foo
ob_end_clean();             // clear outputbuffer
if ($foo<>"") {  // some code to execute cause there is some block
  echo '<td valign="top" style="background-repeat: repeat -y; "background="'.TEMPLATE_DIR.'/images/rb.gif">';
  echo '<div class="rightrow">';
  echo '<table cellpadding="0" cellspacing="0" class="moduletable">';
  echo '<tr>';
  echo '<th valign="top">';
  echo 'Info</th>';
  echo '</tr>';
  echo '<tr>';
  echo '<td>';
  echo '<table width="100%" cellspacing="5" cellpadding="0" border="0" align="top">';
  echo '<tr>';
  echo '<td>';
  echo $foo; // show the block (as saved in $foo)
  echo '</td>';
  echo '</tr>';
  echo '</table>';
  echo '</td>';                             
  echo '</tr>';
  echo '</table>';
  echo '</div>';
  echo '</td>';
 
    } else { // some code for no info
}
?>    
<br>
             <?php ob_start();     // start output buffer
page_content(8);   // call menu
$foo=ob_get_contents();    // put outputbuffer in $foo
ob_end_clean();             // clear outputbuffer
if ($foo<>"") {  // some code to execute cause there is some block
  echo '<td valign="top" style="background-repeat: repeat -y; "background="'.TEMPLATE_DIR.'/images/rb.gif">';
  echo '<div class="rightrow">';
  echo '<table cellpadding="0" cellspacing="0" class="moduletable">';
  echo '<tr>';
  echo '<th valign="bottom">';
  echo 'zanimivosti</th>';
  echo '</tr>';
  echo '<tr>';
  echo '<td>';
  echo '<table width="100%" cellspacing="5" cellpadding="0" border="0" align="bottom">';
  echo '<tr>';
  echo '<td>';
  echo $foo; // show the block (as saved in $foo)
  echo '</td>';
  echo '</tr>';
  echo '</table>';
  echo '</td>';                             
  echo '</tr>';
  echo '</table>';
  echo '</div>';
  echo '</td>';
 
    } else { // some code for no info
}
?>

Thank you!

R.