Print Page | Close Window

edit a post

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=16109
Printed Date: 13 April 2026 at 7:31pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: edit a post
Posted By: e-bart
Subject: edit a post
Date Posted: 05 August 2005 at 5:08pm
Hi dudes (and dudettes) Wink,
 
I have a problem. I build this kind of portal around my webwiz forums. It all works perfectly, except for the next issue, wich is a follows:
 
There is content shown on my portal wich comes out of the database of webwiz forums. I post the content through the web wiz forums. My question: What to do with the code like beneath the post? Becase in the post it is like:
 
Last edited by Bart at ......
 
But in the database (and also in my portal) it is like this:
 
Bart38569.9543634259
 
Wich actions do i have to do to make it just like in the forum?
 
And what about [code]-tags?
 
tnx,
Bart



Replies:
Posted By: dj air
Date Posted: 05 August 2005 at 5:51pm
you need to include the file functions/functions_format_post.asp within any page that shows any data regarding posts.

and run the entry received by the query though the following functions.




        'If the post contains a quote or code block then format it
        If InStr(1, strMessage, "[ QUOTE=", 1) > 0 AND InStr(1, strMessage, "[/QUOTE]", 1) > 0 Then strMessage = formatUserQuote(strMessage)
        If InStr(1, strMessage, "[ QUOTE]", 1) > 0 AND InStr(1, strMessage, "[/QUOTE]", 1) > 0 Then strMessage = formatQuote(strMessage)
        If InStr(1, strMessage, "[ CODE]", 1) > 0 AND InStr(1, strMessage, "[/CODE]", 1) > 0 Then strMessage = formatCode(strMessage)
       



        'If the post contains a flash link then format it
        If blnFlashFiles Then
            If InStr(1, strMessage, "[FLASH", 1) > 0 AND InStr(1, strMessage, "[/FLASH]", 1) > 0 Then strMessage = formatFlash(strMessage)
            If InStr(1, strAuthorSignature, "[FLASH", 1) > 0 AND InStr(1, strAuthorSignature, "[/FLASH]", 1) > 0 Then strAuthorSignature = formatFlash(strAuthorSignature)
        End If
       
       
        'If the message has been edited parse the 'edited by' XML into HTML for the post
        If InStr(1, strMessage, "<edited>", 1) Then strMessage = editedXMLParser(strMessage)


        'Call the function to highlight search words if coming froma search page
        If strSearchKeywords <> "" Then strMessage = searchHighlighter(strMessage, sarySearchWord)


        'If the user wants there signature shown then attach it to the message
        If rsPost("Show_signature") AND strAuthorSignature <> "" Then strMessage = strMessage & "<!-- Signature --><br /><br />__________________<br />" & strAuthorSignature & "<!-- Signature -->"

       

please note an extra space has been but between the first lines (code, quote etc)



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net