
dlo_itools
Staff

Oct 28, 2002, 10:51 AM
Post #6 of 6
(4418 views)
Shortcut
|
|
Re: [affi] Regarding my last post, now it works. And a read-question
[In reply to]
|
Can't Post
|
|
How do we remove the ***image1:right*** things? Could the script parse these text-values and clean them? To refine the article summary that is posted to the forum, edit the goforum.cgi file at around line 115. This is where the text for the forum subject and forum body is built. Look for the line that begins with:
my $forum_body = "SUMMARY: $rec{'summary'}... This lines puts the summary of the article as the forum body. After this line, you can add you customization code for massaging the text. For example, to remove all the ***image*** placeholders, add this line:
$forum_body =~ s/\*\*\*image[\d]+(:(left|right|center|url))?\*\*\*//gis; /Dave Lo
|