Print Page | Close Window

minor bug found

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=23725
Printed Date: 07 April 2026 at 9:39am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: minor bug found
Posted By: johnnyjcorp
Subject: minor bug found
Date Posted: 11 July 2007 at 8:03pm
 
When you update a post that is an announcement. Accouncement is not preselected and so if you don't reslect it, it looses it annoucement status.
 
Sometimes you are just updating something minor after you post an annoucment, and if you forget to reselect the type as an annoucement, it goes back to the default selected which is a normal post.  minor, but annoying.
 
JohnnyJ



Replies:
Posted By: WebWiz-Bruce
Date Posted: 11 July 2007 at 8:16pm
Not managed to replicate this bug as it should keep this selected.

Could you please post the version you are using and the steps required to replicate this?


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: johnnyjcorp
Date Posted: 11 July 2007 at 8:26pm

Hey Borg,

Thanks for your response.  I'm using the latest version.  The last few upgrades I have done manually file by file though instead of full upgrades.

Steps to replicate:

1) Create a new post as an Annoucment (this forum).
2) Then when viewing the post, click the "Edit" button below the post.

Notice that it will Say "Sticky Topic: [Normal Topic]" instead of "Annoucement (this forum)"  So if you forget to reselect it as an annoucment, it resaves as a normal topic, and you may not even realize it at first.
 
JohnnyJ


Posted By: WebWiz-Bruce
Date Posted: 11 July 2007 at 9:17pm
This shouldn't happen and can not replicate this problkem, so sounds like you have a corrupted file or you haven't upgraded the forum correctly.

Download the latest version and install it and see if that solves the issue.


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: johnnyjcorp
Date Posted: 11 July 2007 at 10:11pm
I found the problem.  It seems that the problem doesn't affect all browsers since it's an html syntax problem.  I'm using IE 7.0.
 
file: includes/message_form_inc.asp
 
=== start original code ===
 
 If (blnAdmin OR blnPriority) AND (strMode = "new" or strMode="editTopic" OR strMode = "editPoll" OR strMode = "poll" or strMode = "editPoll") Then
  Response.Write(" " & strTxtPriority & ":" & _
  vbCrLf & "    <select name=""priority"" id=""priority"">" & _
  vbCrLf & "     <option value=""0""")
  If intTopicPriority = 0 Then Response.Write(" selected")
  Response.Write(">" & strTxtNormal & "</option>" & _
  vbCrLf & "     <option value=""1""")
  If intTopicPriority = 1 Then Response.Write(" selected")
  Response.Write(">" & strTxtPinnedTopic & "</option>")
          'If this is the forum admin or moderator let them post an annoucment to this forum
          If blnAdmin = True OR blnModerator Then
   Response.Write(vbCrLf & "     <option value=""2""")
   If intTopicPriority = 2 Then Response.Write(" selected")
   Response.Write(""">" & strTopThisForum & "</option>")
         End If
          'If this is the forum admin let them post a priority post to all forums
          If blnAdmin = True Then
   Response.Write(vbCrLf & "     <option value=""3""")
   If intTopicPriority = 3 Then Response.Write(" selected")
   Response.Write(""">" & strTxtTopAllForums & "</option>")
  End If
 
=== end original code ===
 
The problem is an extra pair of double quotes that is being produced.
 
By changing the BOTH of two lines that read:
 
Response.Write(""">" & strTxtTopAllForums & "</option>")
 
to:
 
Response.Write(">" & strTxtTopAllForums & "</option>")
 
The problem has been resolved.  Can you acknowledge that your source looks like that as well?
 
If you view source on the Edit post page and search for "annoucment" you should see the extra double quotes.
 
Thanks!
 
JohnnyJ


Posted By: WebWiz-Bruce
Date Posted: 12 July 2007 at 7:34am
Yes looks like you are correct the problem has been fixed for the next version.

-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: johnnyjcorp
Date Posted: 12 July 2007 at 2:58pm
thanks Borg!
 
JohnnyJ



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