Print Page | Close Window

Bug on default.asp?

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=29780
Printed Date: 01 April 2026 at 4:23am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Bug on default.asp?
Posted By: Gullanian
Subject: Bug on default.asp?
Date Posted: 17 September 2011 at 3:55pm
This one took me ages to figure out.  On my forum front page if an admin posts their name is highlighted in red:

'Who last post is by
Response.Write(strTxtBy & "&nbsp;<a href=""../users/" & lcase(strLastEntryUser) & """ class=""smLink"" ")
if intAdminGroupID = sarryForums(19,intCurrentRecord) then
    response.write(" style=""color:" & strAdminColour & ";font-weight:bold;"" ")
elseif intModGroupID = sarryForums(19,intCurrentRecord) then
    response.write(" style=""color:" & strModColour & ";font-weight:bold;"" ")
end if

Admin group ID = 1.  Now on our front page, we have a forum "General" with a subforum "Subforum".  If an admin user (group 1) posts in General forum and then a normal user (group 4) posts in subforum, it correctly links to the subforum as the last post and the normal user as the latest post, but it makes their name red because it seems to be taking the group ID from the General forum and not the subforum.

I'm not sure if this strictly qualifies as a bug?  sarryForums when I ran it shows the correct group ID for the user as 4, but somewhere between that and printing the users name out the group ID changes to 1.



Replies:
Posted By: WebWiz-Bruce
Date Posted: 19 September 2011 at 11:43am
This is not part of the orginal code for Web Wiz Forums. It appears to be a modification to the code to change the colours.

-------------
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



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