Unreplied Topics

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

Previous topic - Next topic

Anguz

Link to Mod

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
Cristián Lávaque http://cristianlavaque.com

JRSofty

Can't install this. I see it in my Package Manager listing but there is no install option only list files and delete.
Rebooting the SMF AI Bot see Project link below for details

http://jrsofty1.stinkbugonline.com
http://www.galahtech.org

SMF Bot Project

mytreo

It mustnt be updated yet for your version of smf.
Treo forum - Powered by SMF, of course
Treo news - powered by MovableType and integrated with SMF
Treo downloads - hacked from phpNuke and integrated with SMF
Treo knowledge base - powered by Wikka and integrated with SMF
Treo 650 | Treo 700w | Treo 700p

Anguz

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

DeadMetal

Is the download link broken?

Anguz

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

DeadMetal

Hmm, in IE it works, it doesn't in Firefox.

Anguz

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

mennou

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

Anguz

You didn't uninstall the previous version before installing this one and now you have template_unreplied() twice it seems. Remove one. :)
Cristián Lávaque http://cristianlavaque.com

cweb255

Is there anyway to get this to work in classic theme? Is it merely a matter of moving files or what? Thanks.

Chris

Anguz

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
Cristián Lávaque http://cristianlavaque.com

dracomiconia

I'm having  problems with ur mods....

Actions for instalation weren't defined!

(Traduced from Spanish)

But I have installed some more mods today....

Anguz

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. :)
Cristián Lávaque http://cristianlavaque.com

dracomiconia

No, I mean it doesnt install....

That's the error message is told to me....

Anguz

My mods aren't updated for SMF 1.0.3 yet, that may be the problem.
Cristián Lávaque http://cristianlavaque.com

dracomiconia

That is....

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

:D

I will work on the Theme while I wait...... ;D

drhamad

Not working on 1.0.5 either?
FMVperformance:  3.51m posts, 63k members, 11 boards, 1 database

Mazda3Forums - SmallVolvos - MazdaSpeeders Mazda Club - FordFusionClubMazda CX-7 Club - MyMazda6
Now introducing: MKSdrivers.com - FocusDrivers - TaurusDrivers

rojamaia


i'm hoping that this will work with 1.0.5 soon

thanks!

Anguz

Thanks for reminding me, I really am late with this update. :P
Cristián Lávaque http://cristianlavaque.com

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

ApplianceJunk

Would be nice for SMF 2.0.2 also, unless there is already something similar that I missed.

BaghdadGhost

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

littlenicki

Well, hopefullly someone can take this up
Fomer SMF user. Switched to Invision Power Board and VBulletin


littlenicki

Fomer SMF user. Switched to Invision Power Board and VBulletin

littlenicki

Hello, any working version for SMF 1.1.17 ?
Fomer SMF user. Switched to Invision Power Board and VBulletin

Advertisement: