1
JamesSAEP
code help- Custom Block with table
  • 2005/6/23 22:08

  • JamesSAEP

  • Just can't stay away

  • Posts: 732

  • Since: 2005/2/28


I want to add a new block (Administration -> blocks -> Add a new block) in the Center-center section. Below is my code for the structure but when it is displayed, the text is about 1.5 inches down from the title.

Is there a way to change my code so that the text is closer to the title?
<table width="100%"  border="0" cellspacing="0" cellpadding="0">
  <
tr>
    <
td>Center Block Center Left Side of Table td>
    <
td>Center Block Center Right side of Table td>
  tr>
table>


Thanks.

2
JamesSAEP
Re: code help- Custom Block with table
  • 2005/6/23 22:40

  • JamesSAEP

  • Just can't stay away

  • Posts: 732

  • Since: 2005/2/28


Well never mind. After playing around and compairing the code from built in blocks, it turns out that it has to be in one long string:

<table><tr><td>Center Block Center Left Side of Table td> <td>Center Block Center Right side of Table td>tr>table>

3
frankblack
Re: code help- Custom Block with table
  • 2005/6/23 23:28

  • frankblack

  • Just can't stay away

  • Posts: 830

  • Since: 2005/6/13


Other solution: rewrite the code in this way that you can use a wysiwyg-editor.

4
JamesSAEP
Re: code help- Custom Block with table
  • 2005/6/24 0:02

  • JamesSAEP

  • Just can't stay away

  • Posts: 732

  • Since: 2005/2/28


I used the original code from DW.

5
frankblack
Re: code help- Custom Block with table
  • 2005/6/24 0:18

  • frankblack

  • Just can't stay away

  • Posts: 830

  • Since: 2005/6/13


I think I have to write complete sentences!

What I meant was: Turn the xoops-editor area into a wysiwyg-editor area.

You have to look at modules / system / admin / blockadmin / blockform.php.

You have to adapt this line
$textarea = new XoopsFormDhtmlTextArea(_AM_CONTENT'bcontent'$block['content'], 1570);


The xKoivi-editor has a good documentation on how to make this dhtml-area wysiwyg.

6
Antoine
Re: code help- Custom Block with table
  • 2005/6/24 11:48

  • Antoine

  • Friend of XOOPS

  • Posts: 112

  • Since: 2004/11/14


Quote:

Jamescne wrote:
Well never mind. After playing around and compairing the code from built in blocks, it turns out that it has to be in one long string:

<table><tr><td>Center Block Center Left Side of Table td> <td>Center Block Center Right side of Table td>tr>table>


Typing your html with or without newlines is of no influence to the end result except human readability. Not setting the callspacing, and cellpadding to 0 DOES.

7
rcjohnson
Re: code help- Custom Block with table
  • 2005/6/24 15:00

  • rcjohnson

  • Not too shy to talk

  • Posts: 187

  • Since: 2004/7/23


If the amount of white space you are seeing is directly proportional to the the amount of html code, than you need to enabel the html tag option. This is one of the check boxes you see in most modules.

Some of the modules do not have teh "html" tag option, so I use somethign called html compress to string out the code and remove white space.
- XOOPS 4 THE WIN!

Login

Who's Online

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


Members: 0


Guests: 728


more...

Donat-O-Meter

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

Latest GitHub Commits