Welcome to Geeklog, Anonymous Sunday, January 12 2025 @ 04:42 am EST

Geeklog Forums

Help adding HTML tags to Gl config


Status: offline

jordydme

Forum User
Full Member
Registered: 11/03/05
Posts: 135
Hi,

I have been learning how to use some of the HTML formating with my Geeklog strories. I would like to know if it's possible to use inline styles in the story editor?

I see that yo can add more HTML tags to the Gl config. I have added the following tags in my config. You can see they are th last ones starting with stlyes.

Text Formatted Code
$_CONF['user_html'] = array (
    'p'    => array(),
    'b'    => array(),
    'i'    => array(),
    'a'    => array('href' => 1, 'title' => 1),
    'em'   => array(),
    'br'   => array(),
    'tt'   => array(),
    'hr'   => array(),
    'li'   => array(),
    'ol'   => array(),
    'ul'   => array(),
    'code' => array(),
    'pre'  => array(),
    'style'=> array('table width' => 1, 'border' => 1, 'cellspacing' => 1, 'cellpadding' => 1, 'margin-right' =>1, 'margin-left' =>1)
);

 


I wanted to add this snippet of code to a story:

Text Formatted Code
<style type="text/css">
<!--
.text_margins {
        margin-right: 30px;
        margin-left: 30px;
}
-->
</style>
<table width="100%"  border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td valign="top"><p>my story  here</p>
    </td>
  </tr>
</table>

 


My question is:
Did I leave out anything in my edit of the config file? or is this even not possible what I am trying to do?

Perhaps there is another way to do what I need.

Bascally i wanted to add some padding of about 30 pixels to the left and right margins of a paragraph that sits to the right of an image. I tried using cell padding of the table but that gave me the same amount of padding on the top of the cell, which I don't want.


Thanks for lending a hand,

Jordy
 Quote

Status: offline

ByteEnable

Forum User
Full Member
Registered: 10/20/03
Posts: 138
I would do it this way:

Text Formatted Code

'table' => array('width' => 1, 'border' => 1,'cellspacing' => 1, 'cellpadding' => 1,
                           'align' => 1),
'style' => arrary(),

 


Byte
 Quote

Status: offline

jordydme

Forum User
Full Member
Registered: 11/03/05
Posts: 135
Thanks man...hey what about inline styles? An idea if that could work and hwo would that be setup?


Thanks for taking the time,
Jordy
 Quote

Status: offline

jordydme

Forum User
Full Member
Registered: 11/03/05
Posts: 135
Doh! - that was a mistake Oh I see you had already addressed the styles issue...sorry I jumped the gun.

Thanks for the help.
 Quote

All times are EST. The time is now 04:42 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content