News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

New Posts Marked

Started by corvettecrew, August 21, 2003, 12:26:40 AM

Previous topic - Next topic

corvettecrew

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.


[Unknown]

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]

corvettecrew

#2
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.

[Unknown]

The MessageIndex, next to the title of any post you have not read yet.

-[Unknown]

klumy

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.

Jedi~

Quote from: klumy 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.

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.

bananaman

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!

Ben_S

Quote from: bananaman on August 22, 2003, 05:08:59 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.

JMorris

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.

[Unknown]

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]

Anguz

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

Cristián Lávaque http://cristianlavaque.com

Burpee

#11
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)

Homer_J_S

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:
// 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:
//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.

crowd

Quote from: Homer_J_S on March 05, 2005, 07:29:40 PM
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


Lamer

#14
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.

rpmilius

Quote from: Homer_J_S 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:
// 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:
//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

Rasyr

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.

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

xxx

Will this work with only ONE thread???
I have a thread (ex. thread: 23604) and i want just to call up that thread.
http://www.xxxforum.be: 18+ forum!!!

Harvest

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

jdizine

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.



Advertisement: