Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - minor bug found
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

minor bug found

 Post Reply Post Reply
Author
johnnyjcorp View Drop Down
Newbie
Newbie


Joined: 01 May 2007
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote johnnyjcorp Quote  Post ReplyReply Direct Link To This Post Topic: minor bug found
    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
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post 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?
Back to Top
johnnyjcorp View Drop Down
Newbie
Newbie


Joined: 01 May 2007
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote johnnyjcorp Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
johnnyjcorp View Drop Down
Newbie
Newbie


Joined: 01 May 2007
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote johnnyjcorp Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 12 July 2007 at 7:34am
Yes looks like you are correct the problem has been fixed for the next version.
Back to Top
johnnyjcorp View Drop Down
Newbie
Newbie


Joined: 01 May 2007
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote johnnyjcorp Quote  Post ReplyReply Direct Link To This Post Posted: 12 July 2007 at 2:58pm
thanks Borg!
 
JohnnyJ
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.