Welcome to Geeklog, Anonymous Saturday, December 21 2024 @ 08:21 pm EST

Geeklog Forums

Allowed tags ignored in HTML mode


Aryana

Anonymous
When I try to use the allowed HTML tags in my stories, they do not work. Geeklog simply ignores them. I tried using simple links and P tags but they are left out and the final story is just plain text. This happens when I create the story with "HTML Formatted" selected. And also on my create story page, where it says "Allowed HTML Tags:", nothing is listed.

I have never edited the config file concerning allowed HTML tags.

So, what should I do to fix this?
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by Aryana: And also on my create story page, where it says "Allowed HTML Tags:", nothing is listed.

Looks like something's wrong with your config.php then.

Check that you have the $_CONF['user_html'] and $_CONF['admin_html'] in your config.php.

bye, Dirk
 Quote

Aryana

Anonymous
Yup, I do:

[CODE
/* This is a list of HTML tags that users are allowed to use in their posts.
* Each tag can have a list of allowed attributes (see 'a' for an example).
* Any attributes not listed will be filtered, i.e. removed.
*/
$_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()
);

/* 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),
'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)
);[/CODE]

Could it maybe be some kind of CHMOD error? Er... I'm actually running version 1.3.8 and I installed it about 2 years ago, so my mind isn't really sharp about Geeklog right now.
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by Aryana: Er... I'm actually running version 1.3.8 and I installed it about 2 years ago, so my mind isn't really sharp about Geeklog right now.

Is it possible that you're running such an old version that it doesn't even support those? The two arrays were introduced in 1.3.8-1sr1.

In that case, I would strongly suggest an upgrade ASAP ...

bye, Dirk
 Quote

Aryana

Anonymous
I'm running Geeklog 1.3.8-1

I guess I should upgrade anyway, and perhaps doing so would fix this problem. I'm kind of worried about my templates getting messed up though, because I put a lot of time into them -- a proper upgrade would leave my templates intact, right? And I wouldn't have to restore them or anything?
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
You will have to update your templates, of course.

bye, Dirk
 Quote

All times are EST. The time is now 08:21 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