Print Page | Close Window

Suggestion: More Thread Image Icons

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums Suggestions
Forum Description: Do you have any ideas for applications or content on Web Wiz? Then leave your suggestions here.
URL: https://forums.webwiz.net/forum_posts.asp?TID=10604
Printed Date: 29 March 2026 at 5:00pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Suggestion: More Thread Image Icons
Posted By: Dr Moocowz
Subject: Suggestion: More Thread Image Icons
Date Posted: 25 May 2004 at 6:52pm

I have a request that I've gotten a few complaints about...

at the bottom of the pages when you're viewing the topics in the forum where it has, "Top [no new posts]", "Sticky Topic", etc.

I would like to see 2 more conditions added...

1) Sticky Topic [new post]
2) Announcement [new post]

Complaint I've gotten is someone will be browsing the forums and they will miss new posts in sticky topics or announcements because the icon is always the same.  So I guess that would entail creating 2 new images and modifying the forum code to cover 2 additional conditions.

My site isn't very high traffic, so stickies and announcements can get overlooked easily.

Let me know if you think this is a doable suggestion.  I very much like the Web Wiz Forum software!!

Thanks.




Replies:
Posted By: ljamal
Date Posted: 25 May 2004 at 9:54pm
It's just a matter of creating the icons and modifying the code to check it the post is new since the last visit. There is code that currently does this for the other icons so it would just be a matter of adjusting that code.

-------------
L. Jamal Walton

http://www.ljamal.com/" rel="nofollow - L. Jamal Inc : Web/ Print Design and ASP Programming


Posted By: Dr Moocowz
Date Posted: 07 June 2004 at 12:04pm

maybe someone can tell me what's wrong with this code... granted I did try to do it in a sleep deprived state, but I don't have time to work on this stuff any other time

In the forum_topics.asp... roughly line 469...

between...

'If the topic is top priorty and locked then display top priporty locked icon
        ElseIf blnTopicLocked = True AND intPriority > 0 Then
          Response.Write("<img src=""" & strImagePath & "priority_post_locked_icon.gif"" border=""0"" alt=""" & strTxtHighPriorityPostLocked & """>")

and

'If the topic is top priorty then display top priporty icon
        ElseIf intPriority > 0 Then
        Response.Write("<img src=""" & strImagePath & "priority_post_icon.gif"" border=""0"" alt=""" & strTxtHighPriorityPost & """>")

I tried the following and variations there of for an Announcement with new replies...

ElseIf intPriority > 0 AND blnNewPost = True Then
          Response.Write("<img src=""" & strImagePath & "test.gif"" border=""0"" alt=""" & strTxtHighPriorityPost & """>")

I tried variations with parenthesis, but nothing seemed to make it work... still comes up with the plain Announcement icon.

Any help is appreciated.



Posted By: ljamal
Date Posted: 07 June 2004 at 12:17pm
If you altering the announcement icon then you need to do it BEFORE the line :
ElseIf intPriority > 0 Then
otherwise it will always be show the announcment icon.

Use:

ElseIf intPriority > 0 AND blnNewPost = True Then
           Response.Write("<img src=""" & strImagePath & "test.gif"" border=""0"" alt=""" & strTxtHighPriorityPost & """>")

and then

ElseIf intPriority > 0 Then
        Response.Write("<img src=""" & strImagePath & "priority_post_icon.gif"" border=""0"" alt=""" & strTxtHighPriorityPost & """>")


-------------
L. Jamal Walton

http://www.ljamal.com/" rel="nofollow - L. Jamal Inc : Web/ Print Design and ASP Programming


Posted By: Dr Moocowz
Date Posted: 07 June 2004 at 2:55pm

What you stated was exactly what I did... I should've put my prior post together better I suppose.

It still basically ignores that line and displays the normal Announcement icon...

I'm still not sure what the problem is... I don't think its my order... I'm thinking there's something wrong with my conditions it checks... though I wouldn't think an announcement post would have different properties than a normal post other than it has a 1 instead of a 0 in the database.



Posted By: Dr Moocowz
Date Posted: 08 June 2004 at 1:10am

ahh just found out my problem... I was getting burned by some cache issues in my browser... I deleted the cache and closed the browser and it behaved as I intended... I HATE problems like that, because its never the first thing to look for...

Anyways, for those who are interested in 2 new states...

1) Sticky and New posts
2) Announcement and New posts

Add the following to your forum_topics.asp... line 467 to me

                 ' START MOD
                 'If the topic is pinned and has new posts then display the pinned/new posts icon
        If intPriority = 1 AND blnNewPost = True Then
         Response.Write("<img src=""" & strImagePath & "pinned_topic_new_posts_icon.gif"" border=""0"" alt=""" & strTxtPinnedTopic & """>")

        'If the topic is pinned then display the pinned icon
        ElseIf intPriority = 1 Then
         Response.Write("<img src=""" & strImagePath & "pinned_topic_icon.gif"" border=""0"" alt=""" & strTxtPinnedTopic & """>")
        
        'If the topic is top priorty then display top priorty icon
        ElseIf intPriority > 0 AND blnNewPost = True Then
                         Response.Write("<img src=""" & strImagePath & "priority_new_post_icon.gif"" border=""0"" alt=""" & strTxtHighPriorityPost & """>")
                 ' END MOD

That should take care of the tougher code, then of course it would be a good idea to add the new icons at the bottom in the legend.



Posted By: weppos
Date Posted: 08 June 2004 at 4:49am
Remember that you need to change also search.asp and active_topics.asp pages to show the feature.


Posted By: Dr Moocowz
Date Posted: 08 June 2004 at 2:40pm

Originally posted by weppos weppos wrote:

Remember that you need to change also search.asp and active_topics.asp pages to show the feature.

yes, good point... thank you




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