Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Anguz on November 07, 2004, 05:22:12 AM

Title: Unreplied Topics
Post by: Anguz on November 07, 2004, 05:22:12 AM
Link to Mod (http://mods.simplemachines.org/index.php?mod=46)

Written by [Unknown], I only did minor changes.
http://www.simplemachines.org/community/index.php?topic=18253.0

This mod will add the action "unreplied" which displays the topics without a reply yet.
      
Copyright 2004 by Cristian Lavaque. http://anguz.net
Title: Re: Unreplied Topics
Post by: JRSofty on January 19, 2005, 05:47:06 AM
Can't install this. I see it in my Package Manager listing but there is no install option only list files and delete.
Title: Re: Unreplied Topics
Post by: mytreo on January 19, 2005, 01:26:40 PM
It mustnt be updated yet for your version of smf.
Title: Re: Unreplied Topics
Post by: Anguz on January 29, 2005, 08:36:49 AM
1.01

Title: Re: Unreplied Topics
Post by: DeadMetal on February 13, 2005, 02:57:18 PM
Is the download link broken?
Title: Re: Unreplied Topics
Post by: Anguz on February 13, 2005, 06:39:14 PM
Works for me.
Title: Re: Unreplied Topics
Post by: DeadMetal on February 14, 2005, 03:13:07 AM
Hmm, in IE it works, it doesn't in Firefox.
Title: Re: Unreplied Topics
Post by: Anguz on February 24, 2005, 07:48:15 AM
1.02

Title: Re: Unreplied Topics
Post by: mennou on February 25, 2005, 07:53:44 PM
everytime i click on unreplied   it gave me this error
Fatal error: Cannot redeclare template_unreplied() (previously declared in /usr/home/mixspot/public_html/community/Sources/Load.php(1103) : eval()'d code:177) in /usr/home/mixspot/public_html/community/Sources/Load.php(1103) : eval()'d code on line 294
what can i do to fix it??
Title: Re: Unreplied Topics
Post by: Anguz on February 25, 2005, 11:13:45 PM
You didn't uninstall the previous version before installing this one and now you have template_unreplied() twice it seems. Remove one. :)
Title: Re: Unreplied Topics
Post by: cweb255 on March 19, 2005, 04:32:40 PM
Is there anyway to get this to work in classic theme? Is it merely a matter of moving files or what? Thanks.

Chris
Title: Re: Unreplied Topics
Post by: Anguz on March 19, 2005, 10:38:43 PM
No need to move files. In your template add a link with the action unreplied, like:

http://www.example.com/smf/index.php?action=unreplied
Title: Re: Unreplied Topics
Post by: dracomiconia on April 01, 2005, 04:22:40 AM
I'm having  problems with ur mods....

Actions for instalation weren't defined!

(Traduced from Spanish)

But I have installed some more mods today....
Title: Re: Unreplied Topics
Post by: Anguz on April 01, 2005, 06:36:22 AM
The strings I only used the ones for english. If anyone feels like translating the strings in my mods to your language, go ahead, all I ask is that you post them in the mod's topic so others can use them too. :)
Title: Re: Unreplied Topics
Post by: dracomiconia on April 01, 2005, 07:37:58 AM
No, I mean it doesnt install....

That's the error message is told to me....
Title: Re: Unreplied Topics
Post by: Anguz on April 01, 2005, 07:58:05 AM
My mods aren't updated for SMF 1.0.3 yet, that may be the problem.
Title: Re: Unreplied Topics
Post by: dracomiconia on April 01, 2005, 08:01:41 AM
That is....

I'll have to wait..... Ur mods are usually great!

:D

I will work on the Theme while I wait...... ;D
Title: Re: Unreplied Topics
Post by: drhamad on June 24, 2005, 03:33:40 PM
Not working on 1.0.5 either?
Title: Re: Unreplied Topics
Post by: rojamaia on August 27, 2005, 11:56:42 AM

i'm hoping that this will work with 1.0.5 soon

thanks!
Title: Re: Unreplied Topics
Post by: Anguz on August 27, 2005, 04:18:13 PM
Thanks for reminding me, I really am late with this update. :P
Title: Re: Unreplied Topics
Post by: Nitro on September 10, 2005, 11:42:01 PM
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.
Title: Re: Unreplied Topics
Post by: Anguz on September 11, 2005, 12:54:43 AM
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. :)
Title: Re: Unreplied Topics
Post by: McNeo2 on January 13, 2006, 06:04:29 PM
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.
Title: Re: Unreplied Topics
Post by: Anguz on January 14, 2006, 04:19:08 AM
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.
Title: Re: Unreplied Topics
Post by: McNeo2 on January 14, 2006, 10:32:26 AM
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.
Title: Re: Unreplied Topics
Post by: Anguz on January 14, 2006, 03:08:48 PM
NP.
Title: Re: Unreplied Topics
Post by: Freaki on October 17, 2006, 03:33:39 PM
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 !
Title: Re: Unreplied Topics
Post by: 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.
Title: Re: Unreplied Topics
Post by: waremock on November 04, 2006, 06:38:10 PM
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.
Title: Re: Unreplied Topics
Post by: ldk on March 07, 2007, 11:44:26 PM
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).

Title: Re: Unreplied Topics
Post by: rastarasta on March 28, 2007, 07:38:30 AM
I did look at the code but it was beyond me :'(
Title: Re: Unreplied Topics
Post by: bassmadrigal on May 01, 2007, 06:12:40 AM
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.
Title: Re: Unreplied Topics
Post by: waremock on May 24, 2007, 04:53:46 PM
Could someone please help us out?
Title: Re: Unreplied Topics
Post by: Hondo on July 06, 2007, 04:17:26 AM
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.
Title: Re: Unreplied Topics
Post by: waremock on July 06, 2007, 01:38:31 PM
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.
Title: Re: Unreplied Topics
Post by: Hondo on July 06, 2007, 02:39:44 PM
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'),
Title: Re: Unreplied Topics
Post by: Rudolf on July 29, 2007, 12:39:39 PM
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)
Title: Re: Unreplied Topics
Post by: hhy89 on December 24, 2008, 12:24:48 PM
1.1.7 ???
Title: Re: Unreplied Topics
Post by: bjraines on January 13, 2010, 04:07:39 PM
anyone have any luck updating this
Title: Re: Unreplied Topics
Post by: littlenicki on November 05, 2012, 01:56:28 PM
Hello, could this mod be updated for SMF 1.1.16 please?
Title: Re: Unreplied Topics
Post by: ApplianceJunk on November 05, 2012, 02:01:37 PM
Would be nice for SMF 2.0.2 also, unless there is already something similar that I missed.
Title: Re: Unreplied Topics
Post by: BaghdadGhost on November 06, 2012, 02:22:27 AM
Quote from: ApplianceJunk on November 05, 2012, 02:01:37 PM
Would be nice for SMF 2.0.2 also, unless there is already something similar that I missed.

+1
Title: Re: Unreplied Topics
Post by: littlenicki on November 06, 2012, 03:13:13 AM
Well, hopefullly someone can take this up
Title: Re: Unreplied Topics
Post by: available on November 06, 2012, 03:35:49 AM
great mod.
Title: Re: Unreplied Topics
Post by: littlenicki on November 07, 2012, 06:35:56 AM
Bump
Title: Re: Unreplied Topics
Post by: littlenicki on December 17, 2012, 05:15:18 PM
Hello, any working version for SMF 1.1.17 ?