Welcome to Geeklog, Anonymous Thursday, March 28 2024 @ 01:24 pm EDT

Geeklog Forums

Adding allowable html to config.php


Status: offline

jlhughes

Forum User
Full Member
Registered: 04/25/02
Posts: 154
confused
The config.php definitiions of allowable html have changed.

Earlier versions used:

Text Formatted Code


$_CONF['adminhtml'] = $_CONF['allowablehtml'] . ',
   <div>,<table>,<tr>,<td>,<th>,<img>,<strong>,
   <font>,<u>,<blockquote>';



 


The current config.php uses:

Text Formatted Code


$_CONF['admin_html'] = array (
    'p'     => array('class' => 1, 'id' => 1, 'align' => 1),
    'div'   => array('class' => 1, 'id' => 1),
    'span'  => array('class' => 1, 'id' => 1),
    'table' => array('class' => 1, 'id' => 1, '
           width' => 1, 'border' => 1, 'cellspacing' =>
          1, 'cellpadding' => 1),
    'tr'    => array('class' => 1, 'id' => 1, 'align' => 1,
          'valign' => 1),
    'th'    => array('class' => 1, 'id' => 1, 'align' => 1,
          'valign' => 1, 'colspan' => 1, 'rowspan' => 1),
    'td'    => array('class' => 1, 'id' => 1, 'align' => 1,
          'valign' => 1,  'colspan' => 1, 'rowspan' => 1)
);


 


I need to add IMG, FONT, STRONG and U

Can someone show me an example of code for those?

Do I need to include every possible variable for IMG and FONT?

John Hughes
 Quote

Status: offline

amckay

Forum User
Full Member
Registered: 03/23/02
Posts: 180
See my upages help file for details on how to add img. Note that you have to add allowed subtags too or they will be stripped.

http://www.bodensatz.com/upage/?page=help

Go right to the bottom of the page.
 Quote

All times are EDT. The time is now 01:24 pm.

  • 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