Welcome to Geeklog, Anonymous Sunday, December 22 2024 @ 09:31 pm EST

Geeklog Forums

How to convert text on comments to html


Status: offline

barrywong

Forum User
Regular Poster
Registered: 04/12/02
Posts: 95
Someone submitted a comment in html format but did not choose HTML format. Instead he left it as "Plain Old Text". My question is this. As administrator, how do I go and edit the comment to make it display as HTML instead of Text. My 2 options for comments are reply and delete. Where can I go to mod the flag? Thanks
 Quote

Status: offline

destr0yr

Forum User
Full Member
Registered: 07/06/02
Posts: 324
i think i had the same prob... open you config.php and change the postmode line to read the following: $_CONF[\'postmode\'] = \'html\'; // can be \'plaintext\' or \'html\' its ~ line # 293-294... that may fix it... Rolling Eyes
-- destr0yr
"I love deadlines. I like the whooshing sound they make as they fly by." -- Douglas Adams
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
I'm afraid there's no easy solution to this. If you post pieces of HTML code in plain text mode, the HTML tags are translated such that they are displayed verbatim rather than being interpreted. So if you have a look at your database, you'll find that the original HTML code isn't there any more. Instead, you will see things like
Text Formatted Code
<p>Some text&lt/p>
etc. It would require a lot of effort to translate that back and you can't do it in Geeklog. Which only stresses my point (Tony, do you read this?) that future versions of Geeklog (read: GL 2) should store all user input exactly like the user entered it. All necessary conversions should happen during the output. But don't expect this bevhaviour for the 1.3 code base ... bye, Dirk
 Quote

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