Status: offline

garfy

Forum User
Full Member
Registered: 01/02/05
Posts: 437
Hi

I just do not know why geeklog filters this code div align="justify"

, because dreamweaver makes this code and i copy it in story window and then it just filters it out

but why it accepts p align="justify" and why dremaweaver makes sometimes this and sometiems with div so the geeklog wont filter it out anymore

what should i add in html allowed in config.php file

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
It's all explained here: Why does Geeklog remove certain HTML tags?

bye, Dirk

Status: offline

garfy

Forum User
Full Member
Registered: 01/02/05
Posts: 437
thx Dirk

But i have div already in admin html and it still ignores it

and also align

what is wrong

here is the list prom config

This is a list of HTML tags that Admins (site admin and story admins) can
* use in their posts. It will be merged with the above list of user-allowable
* tags ($_CONF['user_html']). You can also add tags that have already been
* listed for the user-allowed HTML, so as to allow admins to use more
* attributes (see 'p' for an example).
*/
$_CONF['admin_html'] = array (
'p' => array('class' => 1, 'id' => 1, 'align' => 1),
'div' => array('class' => 1, 'id' => 1),
'align' => 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)

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Quote by garfy:
'p' => array('class' => 1, 'id' => 1, 'align' => 1),
'div' => array('class' => 1, 'id' => 1),
'align' => array('class' => 1, 'id' => 1),

Look at this closely. See the difference between the 'p' and the 'div'?

On the left side of the '=>', you list the tag ('p', 'div', ...) and on the right side, you list the tag's attributes ('align', etc.).

"align" is an attribute, not a tag, so it's in the wrong place.

bye, Dirk

Status: offline

garfy

Forum User
Full Member
Registered: 01/02/05
Posts: 437
$_CONF['admin_html'] = array (
'p' => array('class' => 1, 'id' => 1, 'align' => 1),
'div' => array('class' => 1, 'id' => 1, 'align' => 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)


thank you Dirk, as always you are genious
i think div is working good now

i just want to align text on top how to do that?