News:

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

Main Menu

Unreplied Topics

Started by Anguz, November 07, 2004, 05:22:12 AM

Previous topic - Next topic

Nitro

any update for this? is it working now for SMF 1.1B3?

this could be a VERY handy tools, my board is getting crowded.

thanks man, please let us know the plan.
MPF Rocks!!!

Anguz

In 1.1 you can now sort the topics in the unread action, like this:

http://www.simplemachines.org/community/index.php?action=unread;sort=replies

so I won't be updating this mod for 1.1 since it's there really. :)
Cristián Lávaque http://cristianlavaque.com

McNeo2

Quote from: Anguz on September 11, 2005, 12:54:43 AMIn 1.1 you can now sort the topics in the unread action, like this:

http://www.simplemachines.org/community/index.php?action=unread;sort=replies

so I won't be updating this mod for 1.1 since it's there really. :)

But this is not the same actually! Many times I want to see topics, where my post was the last one.

Anguz

Well, this mod won't work for you, then, unless you created the topic and had no replies. It doesn't show topics with a reply or more, no matter who replied last. This just lists unreplied-to topics, that is, with 0 replies. HTH.
Cristián Lávaque http://cristianlavaque.com

McNeo2

Quote from: Anguz on January 14, 2006, 04:19:08 AMWell, this mod won't work for you, then, unless you created the topic and had no replies. It doesn't show topics with a reply or more, no matter who replied last. This just lists unreplied-to topics, that is, with 0 replies. HTH.

ok. now I got it. thnx for explaining.

Anguz

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

Freaki

Sorry for digging this tread out....


this mod shows all "my" unanswered topics ?

And not all unread treads since my last visit ? (i need that)


thanxi !

udeze

How about showing Unreplied posts in SMF 1.1 RC3, ie topics without any replies so that I or a forum member can go and update it.
I love Everything SMF does

waremock

Quote from: udeze on October 24, 2006, 04:07:10 PM
How about showing Unreplied posts in SMF 1.1 RC3, ie topics without any replies so that I or a forum member can go and update it.

Yes I can use something like this. I want to make sure that every topic has at least on reply. I know how it feels when you post something and no one bothers replying to it.

ldk

Has anyone been able to fix this mod for 1.1.1? There's some code that doesn't work anymore due to columns that no longer exist in the database (or exist but somewhere else).

see SMF put to the test at http://www.craftster.org/

rastarasta

I did look at the code but it was beyond me :'(

bassmadrigal

I hate to bring up old threads, but I would really enjoy having this mod ported to the current smf version.

The goal would be for any posts that have been unanswered (whether read or not) to show up in a search. In the search query you posted above, this will only show topics with 0 replies if you have not viewed them previously.

waremock

Could someone please help us out?

Hondo

Hi,
I Installed this Mod manually and see there is a problem with the query in the funktion UnrepliedTopics(). I changed the query to the following and then it worked.

$request = db_query("
SELECT
ms.subject AS firstSubject, ms.posterTime AS firstPosterTime, ms.ID_TOPIC, t.ID_BOARD, b.name AS bname,
t.numReplies, t.numViews, ms.ID_MEMBER AS ID_FIRST_MEMBER, ml.ID_MEMBER AS ID_LAST_MEMBER,
ml.posterTime AS lastPosterTime, ml.modifiedTime AS lastModifiedTime, ms.posterName AS firstPosterName,
ml.posterName AS lastPosterName, ml.subject AS lastSubject,
ml.icon AS lastIcon, ms.icon AS firstIcon, t.ID_POLL, t.isSticky, t.locked, ml.modifiedTime AS lastModifiedTime,
0 AS isRead, LEFT(ml.body, 384) AS lastBody, LEFT(ms.body, 384) AS firstBody,
ml.smileysEnabled AS lastSmileys, ms.smileysEnabled AS firstSmileys, t.ID_FIRST_MSG, t.ID_LAST_MSG
FROM {$db_prefix}messages AS ms, {$db_prefix}messages AS ml, {$db_prefix}topics AS t, {$db_prefix}boards AS b
WHERE b.ID_BOARD = t.ID_BOARD
AND $query_this_board
AND t.ID_FIRST_MSG = t.ID_LAST_MSG
AND ms.ID_MSG = t.ID_FIRST_MSG
AND ml.ID_MSG = t.ID_LAST_MSG
ORDER BY ml.ID_MSG DESC
LIMIT $_REQUEST[start], $modSettings[defaultMaxTopics]", __FILE__, __LINE__);


I also changed the position of the link in the boardindex_template.php in default Theme. At the place where the Button for markasread was, I placed this code:
// Build the normal button array.
$normal_buttons = array(
'unreplied' => array('text' => 4520, 'image' => 'markread.gif', 'lang' => true, 'url' => $scripturl . '?action=unreplied'),
'markread' => array('text' => 452, 'image' => 'markread.gif', 'lang' => true, 'url' => $scripturl . '?action=markasread;sa=all;sesc=' . $context['session_id']),
);
echo '
<table cellpadding="0" cellspacing="0" border="0" style="position: relative; top: -5px;">
<tr>
', template_button_strip($normal_buttons, 'top'), '
</tr>
</table>';


See attachment for details.

waremock

I'm not exactly sure if I have to insert this code or replace on the boardindex.template.php file. Could you please explain what exactly I need to do with the code. I'm no SMF expert.

Hondo

#35
Only for default theme!

Open boardindex_template.php
Search (Line about 204):
// Mark read button.
$mark_read_button = array('markread' => array('text' => 452, 'image' => 'markread.gif', 'lang' => true, 'url' => $scripturl . '?action=markasread;sa=all;sesc=' . $context['session_id']));

// Show the mark all as read button?
if ($settings['show_mark_read'] && !empty($context['categories']))
echo '
<table cellpadding="0" cellspacing="0" border="0" style="position: relative; top: -5px;">
<tr>
', template_button_strip($mark_read_button, 'top'), '
</tr>
</table>';


Replace:
// Build the normal button array.
$normal_buttons = array(
'unreplied' => array('text' => 4520, 'image' => 'markread.gif', 'lang' => true, 'url' => $scripturl . '?action=unreplied'),
'markread' => array('text' => 452, 'image' => 'markread.gif', 'lang' => true, 'url' => $scripturl . '?action=markasread;sa=all;sesc=' . $context['session_id']),
);
echo '
<table cellpadding="0" cellspacing="0" border="0" style="position: relative; top: -5px;">
<tr>
', template_button_strip($normal_buttons, 'top'), '
</tr>
</table>';


Open index.german.php or index.english.php in folder languages and add somewhere (maybe at the end before ?> following:
$txt[4520] = 'Unreplied Topics;

What is missing in the mod is the modification at index.php so that the function can be called:
Insert inside the big array following line:
'unreadreplies' => array('Recent.php', 'UnreadTopics'),

Rudolf

The above query, apart from using a field that doesn't exists (logTime), it doesn't works with MySQL 5.
Replace the line
FROM {$db_prefix}messages AS ms, {$db_prefix}messages AS ml, {$db_prefix}topics AS t, {$db_prefix}boards AS b

with
FROM ({$db_prefix}messages AS ms, {$db_prefix}messages AS ml, {$db_prefix}topics AS t, {$db_prefix}boards AS b)
I will update all my mods in the next few weeks. Thanks for your patience.

SVG-Collapse (you need an SVG compliant browser)

hhy89

Seo4Smf 2.0 - Full Top10 Stats(full top10) - Aligned and Bilateral Child Boards(2li 3lü alt bölümler)
http://www.smfmod.com
http://destek.smfmod.com

bjraines

anyone have any luck updating this

littlenicki

Hello, could this mod be updated for SMF 1.1.16 please?
Fomer SMF user. Switched to Invision Power Board and VBulletin

Advertisement: