Welcome to Geeklog, Anonymous Sunday, January 05 2025 @ 02:01 am EST

Geeklog Forums

HTML formatting not working in stories


Status: offline

Rick78

Forum User
Regular Poster
Registered: 10/20/03
Posts: 98
Hi All,
I have two installations of Geeklog sites running on the same server. One works without problems, but the other one fails to use HTML formatting in the stories. It works fin in the static pages.
If I add a new story and then choose html formating in the drop down, it allows it. However, when I go into the story after editing, it has removed my tags and only the text is remaining. Another thing, the allowed tags underneath the drop down, is showing nothing.

Please help.
Thank you,
Rick
 Quote

Status: offline

Turias

Forum User
Full Member
Registered: 10/20/03
Posts: 807
Did you change the allowable HTML for that server in its config.php?
 Quote

Status: offline

Rick78

Forum User
Regular Poster
Registered: 10/20/03
Posts: 98
Thanks for the reply. No not that I know of. What is the parameter I should check?
Regards,
Rick
 Quote

Status: offline

Turias

Forum User
Full Member
Registered: 10/20/03
Posts: 807

Status: offline

Rick78

Forum User
Regular Poster
Registered: 10/20/03
Posts: 98
Hi again,

These parameters are in default, all set to 1. It must be somewhere else. Everytime I paste html code in the box and the come back to the edit, all html is gone and only the actual text remains. All html is removed.

thanks again,
Rick
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Which (exact) version are you running?

The config options for the allowable HTML changed when we integrated the kses filter in one of the recent security releases. If you're running kses with the old options or the new options without kses, all HTML would be stripped from HTML posts.

bye, Dirk
 Quote

Status: offline

Rick78

Forum User
Regular Poster
Registered: 10/20/03
Posts: 98
Hi Dirk,

I am using version 1.3.8-1sr3.

I do not know anything about 'kses' filters. It must be this, because I can see on the other instance of Geeklog (where it works) I have version 1.3.8-1sr2.

Please explain where I can fix this so the users can again use HTML in the stories.

Thanks
Rick
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
The kses filter was introduced in 1.3.8-1sr1. If you upgraded from some older version, you may have missed the change in config.php, though.

Make sure you have both a $_CONF['user_html'] and a $_CONF['admin_html'] array in your config.php.

Also make sure you have the same version of lib-common.php on both sites. It should have this line right below the copyright header:

// $Id: lib-common.php,v 1.243.2.3 2003/10/13 07:33:30 dhaun Exp $

(it's the same file for all 1.3.8-1sr1/2/3 releases).

bye, Dirk
 Quote

Status: offline

Rick78

Forum User
Regular Poster
Registered: 10/20/03
Posts: 98
Ok, now we I am getting closer. I copied my lib.common and my config.php from an older version. That must be the problem.
Is it good enough to copy the arrays in to the config.php and copy the lib.common in?

regards,
Rick
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by Rick78: Is it good enough to copy the arrays in to the config.php and copy the lib.common in?

Yes.

Or, since you seem to be unsure about which version you're actually running now, you may want to download the various upgrade archives and upload those files instead.

bye, Dirk
 Quote

Status: offline

Rick78

Forum User
Regular Poster
Registered: 10/20/03
Posts: 98
Here is what I needed to do:
I had 3 Geeklog instances running on a Mandrake 8.x server.
I made a new Suse 9 installation and installed 3 fresh instances of Geeklog.
Then I moved the public html directories (hence lib.common) and the config.php over (hence the missing parameters.
What would be the best way in the future to move the content from one server to another, so as not to run into these problems?

Thanks again for you time.
Rick
 Quote

Status: offline

Rick78

Forum User
Regular Poster
Registered: 10/20/03
Posts: 98
Also, you mention that I could attempt to run an upgrade, but I do not see anything about lib.common or config.php in the upgrade. I only see submit.php, comment.php, and profile.php.
Can you tell me what upgrade patch would update the config.php and the lib.common?

Thanks
Rick
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
If I were to move servers, I wouldn't bother copying the file over but would start with a fresh set of files from a current tarball.

The upgrade I was talking about was the 1.3.8-1sr1 upgrade tarball, which should include the lib-common.php. If you apply all the upgrades in their proper order (1.3.8-1, 1.3.8-1sr1, 1.3.8-1sr2, 1.3.8-1sr3), you should arrive at the current version. Or you could simply remove all the files and start with a fresh (and complete) 1.3.8-1sr3 tarball.

Since all 1.3.8 version use the same database layout, there's no need to run the install script again, btw.

bye, Dirk
 Quote

Status: offline

Rick78

Forum User
Regular Poster
Registered: 10/20/03
Posts: 98
Thank you very much for the help. It is working after I put a new lib-common.php in.

This was a new installation, but I copied the config.php and the public-html from the old server. I will not do that again.

regards,
Rick
 Quote

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