Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Suggestion: More Thread Image Icons
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Suggestion: More Thread Image Icons

 Post Reply Post Reply
Author
Dr Moocowz View Drop Down
Newbie
Newbie


Joined: 26 January 2004
Location: United States
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote Dr Moocowz Quote  Post ReplyReply Direct Link To This Post Topic: Suggestion: More Thread Image Icons
    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.

Back to Top
ljamal View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 16 April 2003
Status: Offline
Points: 888
Post Options Post Options   Thanks (0) Thanks(0)   Quote ljamal Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
Dr Moocowz View Drop Down
Newbie
Newbie


Joined: 26 January 2004
Location: United States
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote Dr Moocowz Quote  Post ReplyReply Direct Link To This Post 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.



Edited by Dr Moocowz
Back to Top
ljamal View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 16 April 2003
Status: Offline
Points: 888
Post Options Post Options   Thanks (0) Thanks(0)   Quote ljamal Quote  Post ReplyReply Direct Link To This Post 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 & """>")
Back to Top
Dr Moocowz View Drop Down
Newbie
Newbie


Joined: 26 January 2004
Location: United States
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote Dr Moocowz Quote  Post ReplyReply Direct Link To This Post 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.

Back to Top
Dr Moocowz View Drop Down
Newbie
Newbie


Joined: 26 January 2004
Location: United States
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote Dr Moocowz Quote  Post ReplyReply Direct Link To This Post 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.

Back to Top
weppos View Drop Down
Groupie
Groupie


Joined: 23 May 2003
Status: Offline
Points: 173
Post Options Post Options   Thanks (0) Thanks(0)   Quote weppos Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
Dr Moocowz View Drop Down
Newbie
Newbie


Joined: 26 January 2004
Location: United States
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote Dr Moocowz Quote  Post ReplyReply Direct Link To This Post 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

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.