Advertisement:

Author Topic: New Posts Marked  (Read 39950 times)

Offline corvettecrew

  • Newbie
  • *
  • Posts: 5
  • Gender: Male
  • Doh!
    • Corvette Crew
New Posts Marked
« on: August 21, 2003, 12:26:40 AM »
If someone else already requested this I am sorry.  I looked and didn't see it.

I would like the new posts in a thread to be marked.  I have added that mod to my yabbse forum and I like it alot.

Here is an example of what I am talking about.


Offline [Unknown]

  • SMF Friend
  • SMF Master
  • *
  • Posts: 36,102
  • Gender: Male
Re:New Posts Marked
« Reply #1 on: August 21, 2003, 12:32:25 AM »
Why?  All posts after the last you read are new... and if you click the new icon, it takes you right there...

Of course... and here's the dreaded statement... I'm pretty sure this could easily be done with the theme system.

-[Unknown]

Offline corvettecrew

  • Newbie
  • *
  • Posts: 5
  • Gender: Male
  • Doh!
    • Corvette Crew
Re:New Posts Marked
« Reply #2 on: August 21, 2003, 12:37:00 AM »
Are you talking about the icon outside of the thread subject?

Man, I never knew about that. 

I am going to go bang my head on a wall now.
« Last Edit: August 21, 2003, 12:41:08 AM by corvettecrew »

Offline [Unknown]

  • SMF Friend
  • SMF Master
  • *
  • Posts: 36,102
  • Gender: Male
Re:New Posts Marked
« Reply #3 on: August 21, 2003, 12:40:28 AM »
The MessageIndex, next to the title of any post you have not read yet.

-[Unknown]

Offline klumy

  • SMF Hero
  • ******
  • Posts: 2,483
Re:New Posts Marked
« Reply #4 on: August 21, 2003, 12:51:59 PM »
I like this idea.
If new replies are marked with a new icon. So the user keeps the overview about the replies, which are new and which not. I already see this on some other forums, and it's a very handy function.

Offline Jedi~

  • Semi-Newbie
  • *
  • Posts: 24
  • Gender: Male
Re:New Posts Marked
« Reply #5 on: August 21, 2003, 02:11:00 PM »
I like this idea.
If new replies are marked with a new icon. So the user keeps the overview about the replies, which are new and which not. I already see this on some other forums, and it's a very handy function.

I agree, the clicking of the new icon is a little known feature. Plus some people naturally scroll skimming a page before reading it, losing the place of the new posts, a visual indicator would be great.

Offline bananaman

  • Semi-Newbie
  • *
  • Posts: 66
  • Gender: Male
  • No ordinary superhero
    • Wolfenstein Resource
Re:New Posts Marked
« Reply #6 on: August 22, 2003, 05:08:59 AM »
My forum members always found clicking on the 'new' icon in the message index a little fiddly. If you forget and click on the thread text link it ends up displaying page 1 and you lose track of where the new posts are (and on which page of the thread the new posts start on). I think this is why this request has been raised.

I modded the entire thread link on the message index so that you can click on the thread text link OR the 'new' icon - both will jump to the first unread post in the thread. If a user actually wants to re-read the first post in a thread they can easily scroll up or click page 1, but 99% you want to go to first unread post and it makes much more sense (to me) to make the thread text link and the 'new' icon go to first unread post.

Hope you can follow this!  8)
Visit my website Wolfenstein Resource for Wolfenstein and Enemy Territory Hints and Tips!

Offline Ben_S

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 11,702
  • xxx
Re:New Posts Marked
« Reply #7 on: August 22, 2003, 07:37:30 AM »
If you forget and click on the thread text link it ends up displaying page 1 and you lose track of where the new posts are (and on which page of the thread the new posts start on). I think this is why this request has been raised.

Not a problem in SMF, the next/previous links now take you to the first new post ;)
Liverpool FC Forum with 14 million+ posts.

Offline JMorris

  • Semi-Newbie
  • *
  • Posts: 12
  • Gender: Male
    • InfernalWorlds.com
Re: New Posts Marked
« Reply #8 on: July 23, 2004, 11:56:30 AM »
Would it be possible to expand on this? I know the NEW button brings you into the thread and at the newest post, but sometimes that's not enough. For instance if I were running a very high resolution and click the new and there was only 1 post that was new in the thread, I'd see the last 5 posts and have to spend time finding which was the NEW post. Would it be possible to color the table slightly different for the rows of any new replies?

Here's an example:


If it's a stupid idea, then disregard. I like the usability of it all.

Offline [Unknown]

  • SMF Friend
  • SMF Master
  • *
  • Posts: 36,102
  • Gender: Male
Re: New Posts Marked
« Reply #9 on: July 23, 2004, 10:15:41 PM »
It is possible; the information is available to the templates.

However, I keep saying over and over that there are no plans to do this to the default theme.  No concrete argument has ever been given that explains why it is needed, and no large amount of support for it has been shown except from just its group of supporters. (which is not at all what I'm meaning.)

If you really can't tell which posts are new, perhaps you need to read the previous posts again?

-[Unknown]

Offline Anguz

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,430
  • Gender: Male
    • cristianlavaque.com
Re: New Posts Marked
« Reply #10 on: July 24, 2004, 12:03:56 AM »
in reply #7 of this topic made by bostast, the quote text doesn't show the special chars correctly
http://www.simplemachines.org/community/index.php?topic=914.msg11460#msg11460

« Last Edit: July 24, 2004, 12:05:57 AM by Anguz »
Cristián Lávaque http://cristianlavaque.com

Offline Burpee

  • SMF Friend
  • Sophist Member
  • *
  • Posts: 1,298
  • Gender: Male
    • Mafan.nl
Re: New Posts Marked
« Reply #11 on: July 27, 2004, 10:27:11 AM »
I like the idea... but have no idea how to do it
I'm thinking it should probably be something that has to do with the following two lines in display.template.php
  • <a name="msg', $context['first_message'], '"></a>', $context['first_new_message'] ? '<a name="new"></a>' : '';
  •                            <span class="smalltext">&#171; <b>', !empty($message['counter']) ? $txt[146] . ' #' . $message['counter'] : '', ' ', $txt[30], ':</b> ', $message['time'], ' &#187;</span></td>

Like...
if ($context['first message'] >  $message)['id'])
echo '
<img src="new.gif" border="0' alt="new message">';


or w/e... I'm too noob at coding (but at least I'm trying to learn lol)
« Last Edit: July 27, 2004, 08:35:49 PM by [Unknown] »

Offline Homer_J_S

  • Semi-Newbie
  • *
  • Posts: 48
  • Gender: Male
Re: New Posts Marked
« Reply #12 on: March 05, 2005, 07:29:40 PM »
I know its been 7 months since this thread had an update in it. I just wanted to put down what I did to get this functionality. If this has been covered or you think this is useless then please delete andI won't bring it up again. Its just that I searched forever on this site and this was the closest thread to having actual instructions on what to do to get this functionality.
Anyway here is what I did (With ALOT of help from BLOC)  :D

Go to  display.template.php and find this code:
Code: [Select]
// Done with the information about the poster... on to the post itself.
echo '
</div>
</td>
<td valign="top" width="85%" height="100%">
<table width="100%" border="0"><tr>
<td align="left" valign="middle"><a href="', $message['href'], '"><img src="', $settings['images_url'], '/post/' . $message['icon'] . '.gif" alt="" border="0" /></a></td>
<td align="left" valign="middle">
<b><a href="', $message['href'], '">', $message['subject'], '</a></b>';
   

then replace it with this:
Code: [Select]
//Done with the information about the poster... on to the post itself.
                echo '
                                                        </div>
                                                </td>
                                                <td valign="top" width="85%" height="100%">
                                                        <table width="100%" border="0"><tr>
                                                                <td align="left" valign="middle"><a href="', $message['href'], '"><img src="', $settings['images_url'], '/post/' . $message['icon'] . '.gif" alt="" border="0" /></a></td>
                                                                <td align="left" valign="middle">
                                                                 ' , !$message['new'] ? '<img src="'.$settings['images_url'].'/'.$context['user']['language'].'/new.gif" align="middle" border="0" />' : '' , '
                                                                        <b><a href="', $message['href'], '">', $message['subject'], '</a></b>';


Again I know this isn't a feature request and I don't want to make the Moderators mad by bringing up such an old thread. But just for those who wanted this functionality for their forum,  this worked for me.
Thanks.

Offline crowd

  • Newbie
  • *
  • Posts: 7
Re: New Posts Marked
« Reply #13 on: March 11, 2005, 01:55:58 AM »
Go to  display.template.php and find this code:


Tested on Helios, all the Aquamarina Dark Themes, Classic, Default, and a few homemade themes.

Works like a charm.


Thank you


Offline Lamer

  • Newbie
  • *
  • Posts: 5
Re: New Posts Marked
« Reply #14 on: March 14, 2005, 11:17:46 PM »
I would like to see this as a mod (package), if it's not going to be built in. I just installed SMF and was wondering about this. It really helps when there are pictures that push everything down after the window loads, or if you just want to easily find a certain post you would be replying to (if it's the new post, and if you had to search back and forth through replies).

I'll try what that dude posted, though.
« Last Edit: March 14, 2005, 11:24:10 PM by Lamer »

Offline rpmilius

  • Semi-Newbie
  • *
  • Posts: 17
Re: New Posts Marked
« Reply #15 on: October 23, 2005, 11:03:29 PM »
I know its been 7 months since this thread had an update in it. I just wanted to put down what I did to get this functionality. If this has been covered or you think this is useless then please delete andI won't bring it up again. Its just that I searched forever on this site and this was the closest thread to having actual instructions on what to do to get this functionality.
Anyway here is what I did (With ALOT of help from BLOC)  :D

Go to  display.template.php and find this code:
Code: [Select]
// Done with the information about the poster... on to the post itself.
echo '
</div>
</td>
<td valign="top" width="85%" height="100%">
<table width="100%" border="0"><tr>
<td align="left" valign="middle"><a href="', $message['href'], '"><img src="', $settings['images_url'], '/post/' . $message['icon'] . '.gif" alt="" border="0" /></a></td>
<td align="left" valign="middle">
<b><a href="', $message['href'], '">', $message['subject'], '</a></b>';
   

then replace it with this:
Code: [Select]
//Done with the information about the poster... on to the post itself.
                echo '
                                                        </div>
                                                </td>
                                                <td valign="top" width="85%" height="100%">
                                                        <table width="100%" border="0"><tr>
                                                                <td align="left" valign="middle"><a href="', $message['href'], '"><img src="', $settings['images_url'], '/post/' . $message['icon'] . '.gif" alt="" border="0" /></a></td>
                                                                <td align="left" valign="middle">
                                                                 ' , !$message['new'] ? '<img src="'.$settings['images_url'].'/'.$context['user']['language'].'/new.gif" align="middle" border="0" />' : '' , '
                                                                        <b><a href="', $message['href'], '">', $message['subject'], '</a></b>';


Again I know this isn't a feature request and I don't want to make the Moderators mad by bringing up such an old thread. But just for those who wanted this functionality for their forum,  this worked for me.
Thanks.

excellent!! works very nice, tho I had to remove the ! from !$message['new'] in your code to get it work correctly for me. (??)

-bob
SMF 1.1 RC1


-bob

Offline Rasyr

  • Jr. Member
  • **
  • Posts: 172
Re: New Posts Marked
« Reply #16 on: December 10, 2005, 07:29:01 AM »
I used a variation of the above suggested code. This put the word "NEW!!" in bod red letters after the subject of the post rather than an image before it. Here is how I did it.

Code: [Select]
//Done with the information about the poster... on to the post itself.
                echo '
                                                        </div>
                                                </td>
                                                <td valign="top" width="85%" height="100%">
                                                        <table width="100%" border="0"><tr>
                                                                <td align="left" valign="middle"><a href="', $message['href'], '"><img src="', $settings['images_url'], '/post/' . $message['icon'] . '.gif" alt="" border="0" /></a></td>
                                                                <td align="left" valign="middle">
                                                                 <b><a href="', $message['href'], '">', $message['subject'], '</a></b>' , $message['new'] ? '<b><font color="#FF0000">&nbsp;&nbsp;&nbsp;&nbsp;NEW!!!</font></b>' : '' , '';

I am still having a bit of a problem though. It seems as if sometimes, it will mark everything with the "New!!!" indicator, not just the new posts. But it only happens sporadically.

Any ideas what might be causing that?

Offline xxx

  • Semi-Newbie
  • *
  • Posts: 54
  • Gender: Male
    • xxxforum
Re: New Posts Marked
« Reply #17 on: January 14, 2006, 02:37:21 AM »
Will this work with only ONE thread???
I have a thread (ex. thread: 23604) and i want just to call up that thread.

Offline Harvest

  • Semi-Newbie
  • *
  • Posts: 39
    • Sevenstring.pl
Re: New Posts Marked
« Reply #18 on: January 30, 2008, 03:59:00 PM »
I tried using, this method, it works great, but only one thing. Now i get all the posts by default marked as new. When I 'read' a thread it marks the msges as old, but i have to enter every single thread by hand, because this 'mod' ignores the 'mark all as read' function. Maybe there is a better handler then $message['new'] ?
Regards
Harvest
« Last Edit: January 30, 2008, 04:16:16 PM by Harvest »

Offline jdizine

  • Semi-Newbie
  • *
  • Posts: 99
  • Gender: Female
    • GFX Unleashed
Re: New Posts Marked
« Reply #19 on: May 05, 2008, 07:31:50 PM »
Well, I am having a similar problem too. I d/led the Blood-n-Roses theme and the new is there put is seen as the box with a red x in it. I just want to find the .gif image so I can change the image being shown. Does anyone know what I mean? I will still try to find it. It says new so maybe I am looking in the wrong place? I have been looking in the images folder.