Web Wiz - Green Windows Web Hosting - Celebrating 25 Years!

  New Posts New Posts RSS Feed - edit a post
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

edit a post

 Post Reply Post Reply
Author
e-bart View Drop Down
Newbie
Newbie


Joined: 05 August 2005
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote e-bart Quote  Post ReplyReply Direct Link To This Post Topic: edit a post
    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
Back to Top
dj air View Drop Down
Senior Member
Senior Member
Avatar

Joined: 05 April 2002
Location: United Kingdom
Status: Offline
Points: 3627
Post Options Post Options   Thanks (0) Thanks(0)   Quote dj air Quote  Post ReplyReply Direct Link To This Post 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)


Edited by dj air - 05 August 2005 at 5:53pm
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.