Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: davidhs on October 01, 2013, 02:37:41 PM

Title: Enhancements to recent posts
Post by: davidhs on October 01, 2013, 02:37:41 PM
Link to Mod (https://custom.simplemachines.org/mods/index.php?mod=3782)

Enhancements to recent posts

ABOUT...

Enhancements to recent posts, 2.0.10
© 2013-2021 by davidhs
© French language 2014 by audioforall
© German and German informal languages (no help) 2014 by fondlyPiranha
© Italian language 2013 by lmerega
© Portuguese for Brazil and Portugal language 2015-2019 by Americano

(https://i.creativecommons.org/l/by/3.0/88x31.png) (https://creativecommons.org/licenses/by/3.0/)
This work is licensed under a Creative Commons Attribution 3.0 Unported License (https://creativecommons.org/licenses/by/3.0/).

DESCRIPTION

Allows showing or hiding links to unread posts, new replies and recent posts, located in the forum header, in the forum menu and in the categories.

Also allows to show on a single line the links of the forum header and the links of the categories, and, on series SMF 2.0.x and 2.1.x, to show on a single button the links of the forum menu.

Without this MOD the forum shows only these links:

(https://lh3.googleusercontent.com/Hj6wvVnupE478vgViIxfmVT5VddNXVGo8C2uJo05GQAJkaroj9AT1ZAZtXB3rZvYDD6eJ_cGYUDimmf--rgqt7Nco2RoyX2v0R0CZ-fZucOsUUC3d85OxLSShGT6IjnhbGwO8IhBzQ=w2400)

EXAMPLES

Show all links in the forum header, in the forum menu and in the categories:
QuoteHide link "Show unread posts since last visit." in the forum header: [ ]
Hide link "Show all unread posts." in the forum header: [ ]
Hide link "Show new replies to your posts." in the forum header: [ ]
Hide link "Show the most recent posts." in the forum header: [ ]
Show on a single line the links of the forum header: [ ]


Hide link "Recent Unread Topics" in the forum menu: [ ]
Hide link "All Unread Topics" in the forum menu: [ ]
Hide link "Updated Topics" in the forum menu: [ ]
Hide link "Recent Posts" in the forum menu: [ ]
Show on a single button the links of the forum menu: [ ]


Hide link "Recent Unread Topics" in the categories: [ ]
Hide link "All Unread Topics" in the categories: [ ]
Hide link "Updated Topics" in the categories: [ ]
Hide link "Recent Posts" in the categories: [ ]
Show on a single line the links of the categories: [ ]
(https://lh3.googleusercontent.com/2U-lMDbBdcEECi7bmHB2LiP1TT2JHnck_4y9h6f74zA9wLdWAaBTf1lHIuU-d5PBS5tj6A5RmKmU0UxtwBIjZRGDnDTdgOS1grRmBtV-x1eMYjTDwGCpYWm2TglBmJzFQwrDYnvn0Q=w2400)

Show on a single line all links in the forum header and in the categories and on a single button all links in the forum menu:
QuoteHide link "Show unread posts since last visit." in the forum header: [ ]
Hide link "Show all unread posts." in the forum header: [ ]
Hide link "Show new replies to your posts." in the forum header: [ ]
Hide link "Show the most recent posts." in the forum header: [ ]
Show on a single line the links of the forum header: [X]


Hide link "Recent Unread Topics" in the forum menu: [ ]
Hide link "All Unread Topics" in the forum menu: [ ]
Hide link "Updated Topics" in the forum menu: [ ]
Hide link "Recent Posts" in the forum menu: [ ]
Show on a single button the links of the forum menu: [X]


Hide link "Recent Unread Topics" in the categories: [ ]
Hide link "All Unread Topics" in the categories: [ ]
Hide link "Updated Topics" in the categories: [ ]
Hide link "Recent Posts" in the categories: [ ]
Show on a single line the links of the categories: [X]
(https://lh3.googleusercontent.com/fCaKFu_C2kSjWbhpdfiMuMHyjkwD6FhPtXwW9ARaA_FIKwkmu4g0rGITEHk-BXoi3_UVYdTngxE4O_eIFTvKa6BLe_arb4giCLLqLaI8L7cbDLzb_iYmIlvqE__7VXr33Tg_h_cVhw=w2400)

Show link "Show all unread posts." in the forum header, link "Recent posts" in the forum menu and on a single line link "New unread posts" in the categories:
QuoteHide link "Show unread posts since last visit." in the forum header: [X]
Hide link "Show all unread posts." in the forum header: [ ]
Hide link "Show new replies to your posts." in the forum header: [X]
Hide link "Show the most recent posts." in the forum header: [X]
Show on a single line the links of the forum header: [ ]


Hide link "Recent Unread Topics" in the forum menu: [X]
Hide link "All Unread Topics" in the forum menu: [X]
Hide link "Updated Topics" in the forum menu: [X]
Hide link "Recent Posts" in the forum menu: [ ]
Show on a single button the links of the forum menu: [ ]


Hide link "Recent Unread Topics" in the categories: [ ]
Hide link "All Unread Topics" in the categories: [X]
Hide link "Updated Topics" in the categories: [X]
Hide link "Recent Posts" in the categories: [X]
Show on a single line the links of the categories: [X]
(https://lh3.googleusercontent.com/sv7yd_H1E_Mwdr_zyOrh7ml0FkxNbtfjes87iKzaR2rCdDg-XQlA77Jv_JwwuTWGv8GnP74wkbqTFh2EJWIdcGfsjXD1VO8rBAizp3rV2dN5gfRC8yK_Ksel6Lnzy_hLSboa93t7YQ=w2400)

Hide all links in the forum header, in the forum menu and the categories:
QuoteHide link "Show unread posts since last visit." in the forum header: [X]
Hide link "Show all unread posts." in the forum header: [X]
Hide link "Show new replies to your posts." in the forum header: [X]
Hide link "Show the most recent posts." in the forum header: [X]
Show on a single line the links of the forum header: [ ]


Hide link "Recent Unread Topics" in the forum menu: [X]
Hide link "All Unread Topics" in the forum menu: [X]
Hide link "Updated Topics" in the forum menu: [X]
Hide link "Recent Posts" in the forum menu: [X]
Show on a single button the links of the forum menu: [ ]


Hide link "Recent Unread Topics" in the categories: [X]
Hide link "All Unread Topics" in the categories: [X]
Hide link "Updated Topics" in the categories: [X]
Hide link "Recent Posts" in the categories: [X]
Show on a single line the links of the categories: [ ]
(https://lh3.googleusercontent.com/DFYxRX-h7iEe18PiTo3sd6W2nWv-4CQXrj3cHPurHku4SJD6pPDeRuX8bbD95nGVy60LwzvUEZJiDRy9SVwfMGybD9E8NIoW9QzVZYv4weUc-8Smy0pD_iJvK0D5VLeKIj0sp6qjYw=w2400)

SMF COMPATIBILITY


LANGUAGES


DOWNLOAD

Link to MOD (https://custom.simplemachines.org/mods/index.php?mod=3782)

MANUAL INSTALLATION

See https://wiki.simplemachines.org/smf/Manual_installation_of_mods

COLLABORATE WITH THIS MOD

This work is licensed under a Creative Commons Attribution 3.0 Unported License (https://creativecommons.org/licenses/by/3.0/).

You are free to share and adapt this MOD. Also you can collaborate in different ways:

CHANGE LOG

Legend:   ! Fixed   + Added   - Removed   * Changed   @ Note

2.0.10  2021-02-15
------------------
! SMF 1.1.x: Use HTML entities in UTF-8 languages.
! SMF 2.0.x: Do not use HTML entities in ISO-8859-1 languages.
! SMF 2.x: The Quick Search of the Administration Center look for in settings variables of MOD.
+ SMF compatibility: 2.0.16-2.0.18 and 2.1 RC3.

2.0.9   2019-05-02
------------------
! SMF 2.x: The Quick Search of the Administration Center look for in settings variables of MOD.

2.0.8   2019-04-12
------------------
! SMF 2.1 Beta 3: Links were not displayed when user was a guest.
+ Actions of Administration panel are logged to Administration log.
@ Administration log does not exists in SMF 1.1.x.
+ SMF compatibility: 2.1 RC1 to RC2.
+ Languages: New language string in portuguese_brazilian, portuguese_brazilian-utf8, portuguese_pt, portuguese_pt-utf8, thanks to Americano.

2.0.7   2018-07-29
------------------
@ SMF 2.1 Beta 3: Links are not displayed when user is a guest.
+ SMF 2.1.x: Uninstallation code to the configuration variables.
! SMF 2.0.x: Error in HTML code.
+ SMF 2.1 Beta 3: Links in the categories.
+ SMF compatibility: 2.0.12 to 2.0.15 and 2.1 Beta 3.
* SMF 1.1.x and 2.0.x: Languages: Title of each list is used in links.

2.0.6   2015-09-24
------------------
+ SMF compatibility: 1.1.20 to 1.1.21 and 2.0.9 to 2.0.11.
+ Languages: portuguese_brazilian, portuguese_brazilian-utf8, brazilian (SMF 1.1.x), brazilian-utf8 (SMF 1.1.x), portuguese_pt, portuguese_pt-utf8, thanks to Americano.
- SMF 2.0.x: Languages: spanish, spanish-utf8 (these are not used).

2.0.5   2014-06-23
------------------
! Use HTML entities in ISO-8859-1 languages.
+ Languages: german, german-utf8, german_informal, german_informal-utf8 (no help), thanks to fondlyPiranha.
+ SMF compatibility: 2.0.8.

2.0.4   2014-01-30
------------------
+ Languages: french, french-utf8, thanks to audioforall.

2.0.3   2014-01-24
------------------
! SMF 2.0.x: The last item of a submenu should be marked as such.
+ SMF compatibility: 2.0.7.

2.0.2   2013-10-25
------------------
+ Languages: italian, italian-utf8, thanks to lmerega.
+ SMF compatibility: 1.1.19 and 2.0.6.

2.0.1   2013-10-09
------------------
! SMF 2.0.x: Menu button "Post" must be selected if current action is "unread", "unreadreplies" or "recent".
! SMF 2.0.x: Menu button "All unread posts" must be selected if page "All unread posts" is visited.

2.0     2013-08-28
------------------
@ Renames this MOD as "Enhancements to recent posts".
! SMF 2.0.x: Integration hooks functions parameters must be passed by reference.
+ Upgrade code to rename the configuration variables from version 1.0 to 2.0.
+ Links "Recent posts" in the forum header and in the categories.
+ Links "New unread posts", "All unread posts", "New replies" and "Recent posts" in the forum menu.
+ Options to showing or hiding links to recent posts, located in the forum header and in the categories.
+ Options to showing or hiding links to unread posts, new replies and recent posts, located in the forum menu.
+ SMF 2.0.x: Option to show on a single button the links of the forum menu.
+ SMF compatibility: 2.0.5.

1.0     2013-05-03
------------------
@ This work is licensed under a Creative Commons Attribution 3.0 Unported License https://creativecommons.org/licenses/by/3.0/
+ Link "Show all unread posts" in the forum header.
+ Links "All unread posts" and "New replies" in the categories.
+ SMF 1.1.x: Link "New unread posts" in the categories.
+ Options to showing or hiding links to unread posts and new replies, located in the forum header and in the categories.
+ Options to show on a single line the links of the forum header and the links of the categories.
+ Administration panel.
+ SMF compatibility: 1.1 to 1.1.18.
+ SMF compatibility: 2.0 to 2.0.4.
+ Languages: english, english-utf8, spanish_es, spanish_es-utf8, spanish_latin, spanish_latin-utf8.
Title: Re: Enhancements to recent posts
Post by: impreza on October 01, 2013, 04:34:58 PM
Very cool and useful modification, thank you for it
Title: Re: Enhancements to recent posts
Post by: Matthew K. on October 01, 2013, 04:44:14 PM
Looks like a pretty cool mod, for one reason or another I quickly looked at the edits.

Here are a few things that I noticed if you are interested in some constructive feedback.
// BEGIN MOD RecentPostsEnhancement
if (!empty($category['rpe_links']) && !empty($category['show_unread']))
if (empty($modSettings['rpe_category_one_line']))
echo '
<span class="floatright">', implode(' | ', $category['rpe_links']), '</span>';
else
echo '
<span class="floatright">', $txt['posts'], ': ', implode(' / ', $category['rpe_links']), '</span>';
// END MOD RecentPostsEnhancement

As per SMF's coding style, you should really probably utilize { and } at the very least around the wrapping if condition, the second if-else would be debatable, but my guess is quite a few people in SMF would do so. So that's more of a "here's how you can follow the SMF standards better", however, you really should be clearing that floating element which is more of an issue than a matter of style.

I'm not sure what $rpe_links = rpe_links('header'); does, although to me, it kind of seems like a source function, which since you're calling it in a template, completely breaks SMF's MVC model...another kind of break in the logic is that you load $rpe_links even if the mod could be disabled...why not check the $modSettings var first, and THEN if it is enabled and exists, proceed to generate $rpe_links (source side) and then check if it's not empty and go through each one populating the list items.

Once again, quite a few places seem to lack braces that are good practices within SMF to utilize braces.

Best Regards!



Title: Re: Enhancements to recent posts, 2.0 (SMF 1.1-1.1.18, 2.0-2.0.5)
Post by: davidhs on October 05, 2013, 07:37:04 AM
Quote from: Labradoodle-360 on October 01, 2013, 04:44:14 PM
Here are a few things that I noticed if you are interested in some constructive feedback. [...]
Thank you for your comments.

I thought guideline was
QuoteThere is no need to use braces (curly brackets) for a single control structure after a control structure.
but really is
QuoteThere is no need to use braces (curly brackets) for one line of code after a control structure.

I will review source code in next update.
Title: Re: Enhancements to recent posts, 2.0 (SMF 1.1-1.1.18, 2.0-2.0.5)
Post by: Matthew K. on October 05, 2013, 12:10:44 PM
The guidelines have definitely changed from what they used to be. But if I'm correct, that would mean that

if ($condition === 1)
$someBool = true;

Would be acceptable. While more nested conditions and so forth should include braces.
Title: Re: Enhancements to recent posts, 2.0 (SMF 1.1-1.1.18, 2.0-2.0.5)
Post by: Arantor on October 05, 2013, 12:58:56 PM
Guidelines are simply that: guidelines. Means it is nice if they are followed but it's not necessarily a problem if they are not.
Title: Re: Enhancements to recent posts, 2.0 (SMF 1.1-1.1.18, 2.0-2.0.5)
Post by: Matthew K. on October 05, 2013, 01:13:37 PM
Never said it was a problem, actually. Just ways to follow closer to SMF's coding style.
Title: Re: Enhancements to recent posts, 2.0 (SMF 1.1-1.1.18, 2.0-2.0.5)
Post by: Arantor on October 05, 2013, 01:14:19 PM
Which as stated is in itself inconsistent.
Title: Re: Enhancements to recent posts, 2.0 (SMF 1.1-1.1.18, 2.0-2.0.5)
Post by: Matthew K. on October 05, 2013, 01:48:52 PM
Well then you might as well not even try huh?
Title: Re: Enhancements to recent posts, 2.0 (SMF 1.1-1.1.18, 2.0-2.0.5)
Post by: Arantor on October 05, 2013, 01:51:01 PM
No... following the guidelines is a good thing. Just saying that SMF does not follow the guidelines but over the course of future versions we will try to bring them all consistently under the same guidelines.
Title: Re: Enhancements to recent posts, 2.0.1 (SMF 1.1-1.1.18, 2.0-2.0.5)
Post by: davidhs on October 13, 2013, 08:51:23 AM
New version:
2.0.1   2013-10-09
------------------
! SMF 2.0.x: Menu button "Post" must be selected if current action is "unread", "unreadreplies" or "recent".
! SMF 2.0.x: Menu button "All unread posts" must be selected if page "All unread posts" is visited.
Title: Re: Enhancements to recent posts, 2.0.1 (SMF 1.1-1.1.18, 2.0-2.0.5)
Post by: lmerega on October 24, 2013, 01:27:47 AM
EDIT:
I am translating in Italian.
I have a little problem.
In Italy we use the ' char very often.
For example "L'angolo del forum".
This is the same char in the XML file for begin/end string.
How can I use it?

I mean:
'Since last visit'
Should become
'Dall'ultima visita'
I have to replace it in wich way?

Thx

.luca
Title: Re: Enhancements to recent posts, 2.0.1 (SMF 1.1-1.1.18, 2.0-2.0.5)
Post by: davidhs on October 24, 2013, 05:55:39 AM
Quote from: lmerega on October 24, 2013, 01:27:47 AM
EDIT:
I am translating in Italian.
I have a little problem.
In Italy we use the ' char very often.
For example "L'angolo del forum".
This is the same char in the XML file for begin/end string.
How can I use it?

I mean:
'Since last visit'
Should become
'Dall'ultima visita'
I have to replace it in wich way?

Thx

.luca
You must escape the quote character.
Example:
'Dall\'ultima visita'

I will update soon this MOD for SMF 1.1.19 & 2.0.6. When you translate my MOD, attach here your translation and I will add it. :)
Title: Re: Enhancements to recent posts, 2.0.1 (SMF 1.1-1.1.18, 2.0-2.0.5)
Post by: lmerega on October 24, 2013, 12:49:38 PM
Ok, in attachment Italian and Italian UTF8.

Just my 2 cents :)

.luca
Title: Re: Enhancements to recent posts, 2.0.1 (SMF 1.1-1.1.18, 2.0-2.0.5)
Post by: davidhs on October 24, 2013, 04:08:41 PM
Quote from: lmerega on October 24, 2013, 12:49:38 PM
Ok, in attachment Italian and Italian UTF8.

Just my 2 cents :)

.luca
Thanks!

Only one question: How do you say (write) in Italian the name of MOD? Enhancements to recent posts

This is the title of tab of setting area and usually I write in user language.
Title: Re: Enhancements to recent posts, 2.0.1 (SMF 1.1-1.1.18, 2.0-2.0.5)
Post by: lmerega on October 25, 2013, 01:30:20 AM
I thought you prefered the original name.  ;D
In italian it is:
"Miglioramenti ai post recenti"

.luca
Title: Re: Enhancements to recent posts, 2.0.2 (SMF 1.1-1.1.19, 2.0-2.0.6)
Post by: davidhs on October 25, 2013, 04:40:47 PM
New version:
2.0.2   2013-10-25
------------------
+ SMF compatibility: 1.1.19 and 2.0.6.
+ Languages: italian, italian-utf8, thanks to lmerega.
Title: Re: Enhancements to recent posts, 2.0.3 (SMF 1.1-1.1.19, 2.0-2.0.7)
Post by: davidhs on January 25, 2014, 12:09:39 PM
New version:
2.0.3   2014-01-24
------------------
! SMF 2.0.x: The last item of a submenu should be marked as such.
+ SMF compatibility: 2.0.7.
Title: Re: Enhancements to recent posts, 2.0.3 (SMF 1.1-1.1.19, 2.0-2.0.7)
Post by: audioforall on January 26, 2014, 12:12:34 PM
Hello,
I have tried to translate in French France, please see files attached
Title: Re: Enhancements to recent posts, 2.0.3 (SMF 1.1-1.1.19, 2.0-2.0.7)
Post by: davidhs on January 26, 2014, 12:41:34 PM
Quote from: audioforall on January 26, 2014, 12:12:34 PM
Hello,
I have tried to translate in French France, please see files attached
Thank you :) I will add on next update.
Title: Re: Enhancements to recent posts, 2.0.3 (SMF 1.1-1.1.19, 2.0-2.0.7)
Post by: audioforall on January 26, 2014, 12:43:36 PM
Quote from: davidhs on January 26, 2014, 12:41:34 PM
Quote from: audioforall on January 26, 2014, 12:12:34 PM
Hello,
I have tried to translate in French France, please see files attached
Thank you :) I will add on next update.
You're welcome ! Nice job  8)
Title: Re: Enhancements to recent posts, 2.0.4 (SMF 1.1-1.1.19, 2.0-2.0.7)
Post by: davidhs on January 30, 2014, 02:52:54 PM
New version:
2.0.4   2014-01-30
------------------
+ Languages: french, french-utf8, thanks to audioforall.
Title: Re: Enhancements to recent posts, 2.0.4 (SMF 1.1-1.1.19, 2.0-2.0.7)
Post by: audioforall on January 30, 2014, 03:12:10 PM
Be carrefull, problem with french_utf8, DO NOT USE !!!!!!!
I have forgot "\" before ' in text, i'm so sorry !
Good one is :

// BEGIN MOD RecentPostsEnhancement
$txt['rpe'] = 'Améliorations apportées à messages récents';
$txt['rpe_desc'] = 'Panneau d\'administration pour les MOD "Enhancements to recent posts"';
$txt['rpe_hide_unread_new'] = 'Masquer le lien "Afficher les messages non lus depuis la dernière visite" de l\'en-tête du forum';
$txt['rpe_hide_unread_all'] = 'Masquer le lien "Afficher les messages non lus" de l\'en-tête du forum';
$txt['rpe_hide_unread_replies'] = 'Masquer le lien "Afficher les nouvelles réponses à vos messages" de l\'en-tête du forum';
$txt['rpe_hide_recent'] = 'Masquer le lien "Afficher le plus récent message" de l\'entête du forum';
$txt['rpe_one_line'] = 'Afficher sur une seule ligne les liens de l\'en-tête du forum';
$txt['rpe_menu_hide_unread_new'] = 'Masquer le lien "Nouveaux messages non lus" dans le menu du forum';
$txt['rpe_menu_hide_unread_all'] = 'Masquer le lien "Tous les messages non lus" dans le menu du forum';
$txt['rpe_menu_hide_unread_replies'] = 'Masquer le lien "Nouvelles réponses" dans le menu du forum';
$txt['rpe_menu_hide_recent'] = 'Masquer le lien "Messages récents" dans le menu du forum';
$txt['rpe_menu_one_button'] = 'Afficher sur un seul bouton sur le lien du menu du forum';
$txt['rpe_category_hide_unread_new'] = 'Masquer le lien "Nouveaux messages non lus" dans les catégories';
$txt['rpe_category_hide_unread_all'] = 'Masquer le lien "Tous les messages non lus" dans les catégories';
$txt['rpe_category_hide_unread_replies'] = 'Masquer le lien "Nouvelles réponses" dans les catégories';
$txt['rpe_category_hide_recent'] = 'Masquer le lien "Messages récents" dans les catégories';
$txt['rpe_category_one_line'] = 'Afficher sur une même ligne les liens des catégories';
$txt['rpe_show'] = 'Voir le message';
$txt['rpe_show_unread_all'] = 'Voir les messages non lus.';
$txt['rpe_show_recent'] = 'Voir les messages les plus récents.';
$txt['rpe_posts_unread_new'] = 'Nouveaux messages non lus';
$txt['rpe_posts_unread_all'] = 'Tous les messages non lus';
$txt['rpe_posts_unread_replies'] = 'Nouvelles réponses';
$txt['rpe_posts_recent'] = 'Messages récents';
$txt['rpe_unread_new'] = 'Nouveaux non lus';
$txt['rpe_unread_all'] = 'Tous les non lus';
$txt['rpe_unread_replies'] = 'Nouvelles réponses';
$txt['rpe_recent'] = 'Récents';
Title: Re: Enhancements to recent posts, 2.0.4 (SMF 1.1-1.1.19, 2.0-2.0.7)
Post by: davidhs on January 30, 2014, 04:04:54 PM
Quote from: audioforall on January 30, 2014, 03:12:10 PM
Be carrefull, problem with french_utf8, DO NOT USE !!!!!!!
I have forgot "\" before ' in text, i'm so sorry !
Good one is :

// BEGIN MOD RecentPostsEnhancement
$txt['rpe'] = 'Améliorations apportées à messages récents';
$txt['rpe_desc'] = 'Panneau d\'administration pour les MOD "Enhancements to recent posts"';
$txt['rpe_hide_unread_new'] = 'Masquer le lien "Afficher les messages non lus depuis la dernière visite" de l\'en-tête du forum';
$txt['rpe_hide_unread_all'] = 'Masquer le lien "Afficher les messages non lus" de l\'en-tête du forum';
$txt['rpe_hide_unread_replies'] = 'Masquer le lien "Afficher les nouvelles réponses à vos messages" de l\'en-tête du forum';
$txt['rpe_hide_recent'] = 'Masquer le lien "Afficher le plus récent message" de l\'entête du forum';
$txt['rpe_one_line'] = 'Afficher sur une seule ligne les liens de l\'en-tête du forum';
$txt['rpe_menu_hide_unread_new'] = 'Masquer le lien "Nouveaux messages non lus" dans le menu du forum';
$txt['rpe_menu_hide_unread_all'] = 'Masquer le lien "Tous les messages non lus" dans le menu du forum';
$txt['rpe_menu_hide_unread_replies'] = 'Masquer le lien "Nouvelles réponses" dans le menu du forum';
$txt['rpe_menu_hide_recent'] = 'Masquer le lien "Messages récents" dans le menu du forum';
$txt['rpe_menu_one_button'] = 'Afficher sur un seul bouton sur le lien du menu du forum';
$txt['rpe_category_hide_unread_new'] = 'Masquer le lien "Nouveaux messages non lus" dans les catégories';
$txt['rpe_category_hide_unread_all'] = 'Masquer le lien "Tous les messages non lus" dans les catégories';
$txt['rpe_category_hide_unread_replies'] = 'Masquer le lien "Nouvelles réponses" dans les catégories';
$txt['rpe_category_hide_recent'] = 'Masquer le lien "Messages récents" dans les catégories';
$txt['rpe_category_one_line'] = 'Afficher sur une même ligne les liens des catégories';
$txt['rpe_show'] = 'Voir le message';
$txt['rpe_show_unread_all'] = 'Voir les messages non lus.';
$txt['rpe_show_recent'] = 'Voir les messages les plus récents.';
$txt['rpe_posts_unread_new'] = 'Nouveaux messages non lus';
$txt['rpe_posts_unread_all'] = 'Tous les messages non lus';
$txt['rpe_posts_unread_replies'] = 'Nouvelles réponses';
$txt['rpe_posts_recent'] = 'Messages récents';
$txt['rpe_unread_new'] = 'Nouveaux non lus';
$txt['rpe_unread_all'] = 'Tous les non lus';
$txt['rpe_unread_replies'] = 'Nouvelles réponses';
$txt['rpe_recent'] = 'Récents';
Yes, and I did not realize :(

I update my MOD on Mods download

How correct this? Do these steps:

1. Open YOUR_FORUM/Themes/default/languages/Modifications.french.php or YOUR_FORUM/Themes/default/languages/Modifications.french-utf8.php (the file of your language)

2. Delete lines
// BEGIN MOD RecentPostsEnhancement
...
// END MOD RecentPostsEnhancement


3. Uninstall the MOD. You do not worry about parse error on Modifications.frenchxxx.php

4. Remove the MOD.

5. Upload the MOD 2.0.4 again from SMF site (this is correct version).

6. Finally, install again.
Title: Re: Enhancements to recent posts, 2.0.4 (SMF 1.1-1.1.19, 2.0-2.0.7)
Post by: audioforall on January 30, 2014, 04:17:29 PM
Thanks for your help but I have an error : syntax error, unexpected ']'
It works again, ouf !!!!
Title: Re: Enhancements to recent posts, 2.0.4 (SMF 1.1-1.1.19, 2.0-2.0.7)
Post by: audioforall on January 30, 2014, 04:33:09 PM
It works now, new menus are ok !
I'm so sorry for my mistakes and hope not create problems on others fora.
Than k you for your help  :)
Title: Re: Enhancements to recent posts, 2.0.4 (SMF 1.1-1.1.19, 2.0-2.0.7)
Post by: davidhs on January 30, 2014, 05:06:29 PM
Quote from: audioforall on January 30, 2014, 04:33:09 PMI'm so sorry for my mistakes and hope not create problems on others fora.
Fortunately there was only one download, yours.
Title: Re: Enhancements to recent posts, 2.0.4 (SMF 1.1-1.1.19, 2.0-2.0.7)
Post by: fondlyPiranha on May 15, 2014, 12:45:12 PM


here my german translation - thanks for that nice mod  8)


$txt['rpe'] = 'Erweiterung "neueste Beiträge"';
$txt['rpe_desc'] = 'Einstellungen für Erweiterung "neueste Beiträge"';
$txt['rpe_hide_unread_new'] = 'Link "Ungelesene Beiträge seit dem letzten Besuch" im Kopfbereich verbergen';
$txt['rpe_hide_unread_all'] = 'Link "alle ungelesenen Beiträge anzeigen" im Kopfbereich verbergen';
$txt['rpe_hide_unread_replies'] = 'Link "neue Antworten auf deine Beiträge anzeigen" im Kopfbereich verbergen';
$txt['rpe_hide_recent'] = 'Link "aktuellste Beiträge anzeigen" im Kopfbereich verbergen';
$txt['rpe_one_line'] = 'Links im Kopfbereich in einer Ebene anzeigen';
$txt['rpe_menu_hide_unread_new'] = 'Link "neue ungelesene Beiträge" im Hauptmenü verbergen';
$txt['rpe_menu_hide_unread_all'] = 'Link "alle ungelesenen Beiträge" im Hauptmenü verbergen';
$txt['rpe_menu_hide_unread_replies'] = 'Link "neue Antworten" im Hauptmenü verbergen';
$txt['rpe_menu_hide_recent'] = 'Link "aktuelle Beiträge" im Hauptmenü verbergen';
$txt['rpe_menu_one_button'] = 'Als einzelnen Menüpunkt im Hauptmenü anzeigen';
$txt['rpe_category_hide_unread_new'] = 'Link "neue ungelesene Beiträge" im Kategorien-Header verbergen';
$txt['rpe_category_hide_unread_all'] = 'Link "alle ungelesenen Beiträge" im Kategorien-Header verbergen';
$txt['rpe_category_hide_unread_replies'] = 'Link "neue Antworten" im Kategorien-Header verbergen';
$txt['rpe_category_hide_recent'] = 'Link "aktuelle Beiträge" im Kategorien-Header verbergen';
$txt['rpe_category_one_line'] = 'Links im Kategorien-Header in einer Ebene anzeigen';
$txt['rpe_show'] = 'Beiträge anzeigen';
$txt['rpe_show_unread_all'] = 'alle ungelesenen Beiträge anzeigen.';
$txt['rpe_show_recent'] = 'aktuellste Beiträge anzeigen.';
$txt['rpe_posts_unread_new'] = 'neue ungelesene Beiträge';
$txt['rpe_posts_unread_all'] = 'alle ungelesenen Beiträge';
$txt['rpe_posts_unread_replies'] = 'neue Antworten';
$txt['rpe_posts_recent'] = 'aktuelle Beiträge';
$txt['rpe_unread_new'] = 'ungelesen (neu)';
$txt['rpe_unread_all'] = 'ungelesen (alle)';
$txt['rpe_unread_replies'] = 'neue Antworten';
$txt['rpe_recent'] = 'aktuellste';

Title: Re: Enhancements to recent posts, 2.0.4 (SMF 1.1-1.1.19, 2.0-2.0.7)
Post by: davidhs on May 16, 2014, 08:15:42 AM
Quote from: fondlyPiranha on May 15, 2014, 12:45:12 PM


here my german translation - thanks for that nice mod  8)


$txt['rpe'] = 'Erweiterung "neueste Beiträge"';
$txt['rpe_desc'] = 'Einstellungen für Erweiterung "neueste Beiträge"';
$txt['rpe_hide_unread_new'] = 'Link "Ungelesene Beiträge seit dem letzten Besuch" im Kopfbereich verbergen';
$txt['rpe_hide_unread_all'] = 'Link "alle ungelesenen Beiträge anzeigen" im Kopfbereich verbergen';
$txt['rpe_hide_unread_replies'] = 'Link "neue Antworten auf deine Beiträge anzeigen" im Kopfbereich verbergen';
$txt['rpe_hide_recent'] = 'Link "aktuellste Beiträge anzeigen" im Kopfbereich verbergen';
$txt['rpe_one_line'] = 'Links im Kopfbereich in einer Ebene anzeigen';
$txt['rpe_menu_hide_unread_new'] = 'Link "neue ungelesene Beiträge" im Hauptmenü verbergen';
$txt['rpe_menu_hide_unread_all'] = 'Link "alle ungelesenen Beiträge" im Hauptmenü verbergen';
$txt['rpe_menu_hide_unread_replies'] = 'Link "neue Antworten" im Hauptmenü verbergen';
$txt['rpe_menu_hide_recent'] = 'Link "aktuelle Beiträge" im Hauptmenü verbergen';
$txt['rpe_menu_one_button'] = 'Als einzelnen Menüpunkt im Hauptmenü anzeigen';
$txt['rpe_category_hide_unread_new'] = 'Link "neue ungelesene Beiträge" im Kategorien-Header verbergen';
$txt['rpe_category_hide_unread_all'] = 'Link "alle ungelesenen Beiträge" im Kategorien-Header verbergen';
$txt['rpe_category_hide_unread_replies'] = 'Link "neue Antworten" im Kategorien-Header verbergen';
$txt['rpe_category_hide_recent'] = 'Link "aktuelle Beiträge" im Kategorien-Header verbergen';
$txt['rpe_category_one_line'] = 'Links im Kategorien-Header in einer Ebene anzeigen';
$txt['rpe_show'] = 'Beiträge anzeigen';
$txt['rpe_show_unread_all'] = 'alle ungelesenen Beiträge anzeigen.';
$txt['rpe_show_recent'] = 'aktuellste Beiträge anzeigen.';
$txt['rpe_posts_unread_new'] = 'neue ungelesene Beiträge';
$txt['rpe_posts_unread_all'] = 'alle ungelesenen Beiträge';
$txt['rpe_posts_unread_replies'] = 'neue Antworten';
$txt['rpe_posts_recent'] = 'aktuelle Beiträge';
$txt['rpe_unread_new'] = 'ungelesen (neu)';
$txt['rpe_unread_all'] = 'ungelesen (alle)';
$txt['rpe_unread_replies'] = 'neue Antworten';
$txt['rpe_recent'] = 'aktuellste';


Thanks!!! :) On next update I wil add your translation to German!

Can I use this translation for German informal?
Title: Re: Enhancements to recent posts, 2.0.4 (SMF 1.1-1.1.19, 2.0-2.0.7)
Post by: fondlyPiranha on May 21, 2014, 04:14:07 AM
Quote from: davidhs on May 16, 2014, 08:15:42 AM
Thanks!!! :) On next update I wil add your translation to German!

Can I use this translation for German informal?

ohh yes, i think because there is any "you" included it can also be used in the German informal version
Title: Re: Enhancements to recent posts, 2.0.5 (SMF 1.1-1.1.19, 2.0-2.0.8)
Post by: davidhs on June 23, 2014, 08:45:24 AM
New version:
2.0.5   2014-06-23
------------------
! Use HTML entities in ISO-8859-1 languages.
+ Languages: german, german-utf8, german_informal, german_informal-utf8 (no help), thanks to fondlyPiranha.
+ SMF compatibility: 2.0.8.
Title: Re: Enhancements to recent posts, 2.0.5 (SMF 1.1-1.1.19, 2.0-2.0.8)
Post by: FemR on August 09, 2014, 09:40:18 AM
Thank you very much for your work, cool mod, I like it  ;)
Title: Re: Enhancements to recent posts, 2.0.5 (SMF 1.1-1.1.20, 2.0-2.0.9)
Post by: davidhs on October 07, 2014, 08:49:27 AM
Compatible with SMF 1.1.20 and 2.0.9.
Title: Re: Enhancements to recent posts, 2.0.5 (SMF 1.1-1.1.20, 2.0-2.0.9)
Post by: peterwaalker on December 26, 2014, 05:06:04 PM
Please, How do i make thread owners recent post.
Descrption:
    After making post the viewers will be able  to check on recent posts by the post author.

See shots
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.upload.ee%2Fimage%2F4430827%2Fshot1.PNG&hash=d9b6afc195ef502c0c0c28a646cc20cdaf56eccb)
Thanks
Title: Re: Enhancements to recent posts, 2.0.5 (SMF 1.1-1.1.20, 2.0-2.0.9)
Post by: davidhs on December 26, 2014, 06:04:19 PM
Quote from: peterwaalker on December 26, 2014, 05:06:04 PM
Please, How do i make thread owners recent post.
Descrption:
    After making post the viewers will be able  to check on recent posts by the post author.
I do not know. This has nothing related to my mod.
Title: Re: Enhancements to recent posts, 2.0.5 (SMF 1.1-1.1.20, 2.0-2.0.9)
Post by: davidhs on May 23, 2015, 01:30:51 PM
To moderators: Text to move to first post
QuoteSubject:
QuoteEnhancements to recent posts, 2.0.5 (SMF 1.1-1.1.21, 2.0-2.0.10)
Body:
Quote
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=3782)




Enhancements to recent posts

ABOUT...

Enhancements to recent posts, 2.0.5
© 2013-2015 by davidhs
© French language 2014 by audioforall
© German and German informal languages (no help) 2014 by fondlyPiranha
© Italian language 2013 by lmerega

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi.creativecommons.org%2Fl%2Fby%2F3.0%2F88x31.png&hash=6869b11ca4885b4a0dee1abc3a01f82aa14fe6a2) (http://creativecommons.org/licenses/by/3.0/)
This work is licensed under a Creative Commons Attribution 3.0 Unported License (http://creativecommons.org/licenses/by/3.0/).

DESCRIPTION

Allows showing or hiding links to unread posts, new replies and recent posts, located in the forum header, in the forum menu and in the categories.

Also allows to show on a single line the links of the forum header and the links of the categories, and, on series SMF 2.0.x, to show on a single button the links of the forum menu.

Without this MOD the forum shows only these links:

  • In the forum header: "Show unread posts since last visit" and "Show new replies to your posts", each on one line.
  • In the categories: "Unread Posts" (series SMF 2.0.x).

(https://googledrive.com/host/0B7M1e_-FeoeENTZFeGd4Y1lrZjQ/rpe_settings.png)

EXAMPLES

Show all links in the forum header, in the forum menu and in the categories:
QuoteHide link "Show unread posts since last visit" in the forum header: [ ]
Hide link "Show all unread posts" in the forum header: [ ]
Hide link "Show new replies to your posts" in the forum header: [ ]
Hide link "Show the most recent posts" in the forum header: [ ]
Show on a single line the links of the forum header: [ ]


Hide link "New unread posts" in the forum menu: [ ]
Hide link "All unread posts" in the forum menu: [ ]
Hide link "New replies" in the forum menu: [ ]
Hide link "Recent posts" in the forum menu: [ ]
Show on a single button the links of the forum menu: [ ]


Hide link "New unread posts" in the categories: [ ]
Hide link "All unread posts" in the categories: [ ]
Hide link "New replies" in the categories: [ ]
Hide link "Recent posts" in the categories: [ ]
Show on a single line the links of the categories: [ ]
(https://googledrive.com/host/0B7M1e_-FeoeENTZFeGd4Y1lrZjQ/rpe_example_all_show.png)

Show on a single line all links in the forum header and in the categories and on a single button all links in the forum menu:
QuoteHide link "Show unread posts since last visit" in the forum header: [ ]
Hide link "Show all unread posts" in the forum header: [ ]
Hide link "Show new replies to your posts" in the forum header: [ ]
Hide link "Show the most recent posts" in the forum header: [ ]
Show on a single line the links of the forum header: [X]


Hide link "New unread posts" in the forum menu: [ ]
Hide link "All unread posts" in the forum menu: [ ]
Hide link "New replies" in the forum menu: [ ]
Hide link "Recent posts" in the forum menu: [ ]
Show on a single button the links of the forum menu: [X]


Hide link "New unread posts" in the categories: [ ]
Hide link "All unread posts" in the categories: [ ]
Hide link "New replies" in the categories: [ ]
Hide link "Recent posts" in the categories: [ ]
Show on a single line the links of the categories: [X]
(https://googledrive.com/host/0B7M1e_-FeoeENTZFeGd4Y1lrZjQ/rpe_example_all_show_one.png)

Show link "Show all unread posts" in the forum header, link "Recent posts" in the forum menu and on a single line link "New unread posts" in the categories:
QuoteHide link "Show unread posts since last visit" in the forum header: [X]
Hide link "Show all unread posts" in the forum header: [ ]
Hide link "Show new replies to your posts" in the forum header: [X]
Hide link "Show the most recent posts" in the forum header: [X]
Show on a single line the links of the forum header: [ ]


Hide link "New unread posts" in the forum menu: [X]
Hide link "All unread posts" in the forum menu: [X]
Hide link "New replies" in the forum menu: [X]
Hide link "Recent posts" in the forum menu: [ ]
Show on a single button the links of the forum menu: [ ]


Hide link "New unread posts" in the categories: [ ]
Hide link "All unread posts" in the categories: [X]
Hide link "New replies" in the categories: [X]
Hide link "Recent posts" in the categories: [X]
Show on a single line the links of the categories: [X]
(https://googledrive.com/host/0B7M1e_-FeoeENTZFeGd4Y1lrZjQ/rpe_example_one_show.png)

Hide all links in the forum header, in the forum menu and the categories:
QuoteHide link "Show unread posts since last visit" in the forum header: [X]
Hide link "Show all unread posts" in the forum header: [X]
Hide link "Show new replies to your posts" in the forum header: [X]
Hide link "Show the most recent posts" in the forum header: [X]
Show on a single line the links of the forum header: [ ]


Hide link "New unread posts" in the forum menu: [X]
Hide link "All unread posts" in the forum menu: [X]
Hide link "New replies" in the forum menu: [X]
Hide link "Recent posts" in the forum menu: [X]
Show on a single button the links of the forum menu: [ ]


Hide link "New unread posts" in the categories: [X]
Hide link "All unread posts" in the categories: [X]
Hide link "New replies" in the categories: [X]
Hide link "Recent posts" in the categories: [X]
Show on a single line the links of the categories: [ ]
(https://googledrive.com/host/0B7M1e_-FeoeENTZFeGd4Y1lrZjQ/rpe_example_all_hide.png)

SMF COMPATIBILITY


  • SMF 1.1 to 1.1.21.
  • SMF 2.0 to 2.0.10.

LANGUAGES


  • english, english_british.
  • french.
  • german, german_informal (no help).
  • italian.
  • spanish, spanish_es, spanish_latin.

If you want help translating it into other languages, you can add the translation in this topic.

DOWNLOAD

Link to MOD (http://custom.simplemachines.org/mods/index.php?mod=3782)

MANUAL INSTALLATION

See http://wiki.simplemachines.org/smf/Manual_installation_of_mods

SUPPORT AND COMMENTS

In English: http://www.simplemachines.org/community/index.php?topic=512057.0
In Spanish: http://www.simplemachines.org/community/index.php?topic=502519.0

CHANGE LOG

Legend:   ! Fixed   + Added   - Removed   * Changed   @ Note

2.0.5   2014-06-23
------------------
! Use HTML entities in ISO-8859-1 languages.
+ Languages: german, german-utf8, german_informal, german_informal-utf8 (no help), thanks to fondlyPiranha.
+ SMF compatibility: 2.0.8.

2.0.4   2014-01-30
------------------
+ Languages: french, french-utf8, thanks to audioforall.

2.0.3   2014-01-24
------------------
! SMF 2.0.x: The last item of a submenu should be marked as such.
+ SMF compatibility: 2.0.7.

2.0.2   2013-10-25
------------------
+ Languages: italian, italian-utf8, thanks to lmerega.
+ SMF compatibility: 1.1.19 and 2.0.6.

2.0.1   2013-10-09
------------------
! SMF 2.0.x: Menu button "Post" must be selected if current action is "unread", "unreadreplies" or "recent".
! SMF 2.0.x: Menu button "All unread posts" must be selected if page "All unread posts" is visited.

2.0     2013-08-28
------------------
@ Renames this MOD as "Enhancements to recent posts".
! SMF 2.0.x: Integration hooks functions parameters must be passed by reference.
+ Upgrade code to rename the configuration variables from version 1.0 to 2.0.
+ Links "Recent posts" in the forum header and in the categories.
+ Links "New unread posts", "All unread posts", "New replies" and "Recent posts" in the forum menu.
+ Options to showing or hiding links to recent posts, located in the forum header and in the categories.
+ Options to showing or hiding links to unread posts, new replies and recent posts, located in the forum menu.
+ SMF 2.0.x: Option to show on a single button the links of the forum menu.
+ SMF compatibility: 2.0.5.

1.0     2013-05-03
------------------
@ This work is licensed under a Creative Commons Attribution 3.0 Unported License http://creativecommons.org/licenses/by/3.0/
+ Link "Show all unread posts" in the forum header.
+ Links "All unread posts" and "New replies" in the categories.
+ SMF 1.1.x: Link "New unread posts" in the categories.
+ Options to showing or hiding links to unread posts and new replies, located in the forum header and in the categories.
+ Options to show on a single line the links of the forum header and the links of the categories.
+ Administration panel.
+ SMF compatibility: 1.1 to 1.1.18.
+ SMF compatibility: 2.0 to 2.0.4.
+ Languages: english, english-utf8, spanish_es, spanish_es-utf8, spanish_latin, spanish_latin-utf8.





Compatible with SMF 1.1.21 and 2.0.10.
Title: Re: Enhancements to recent posts, 2.0.5 (SMF 1.1-1.1.21, 2.0-2.0.10)
Post by: Americano on July 08, 2015, 07:07:04 PM
Translation into Portuguese

// BEGIN MOD RecentPostsEnhancement
global $forum_version;
$smf_version_1 = 0 === strpos($forum_version, 'SMF 1');
$help_index = $smf_version_1 ? 'rpe_hide_unread_new' : 'rpe';
$helptxt[$help_index] = '<b>Enhancements to recent posts</b><br />
Permite mostrar ou esconder links para mensagens não lidas, novas respostas e posts recentes, localizado no cabeçalho do fórum, no menu fórum e nas categorias.<br />
Também permite mostrar em apenas uma linha os links do cabeçalho do fórum e os links das categorias' . (!$smf_version_1 ? ' e para mostrar em apenas um botão os links do menu de fórum' : '') . '.<br />
Sem este MOD o fórum exibe apenas estes links:<br />
<ul class="normallist">
<li>No cabeçalho do fórum: &quot;Exibir novas mensagens desde minha última visita&quot; e &quot;Exibir novas respostas para seus posts&quot;, cada um em uma linha.</li>' . (!$smf_version_1 ? '
<li>Nas categorias: &quot;Mensagens não lidas&quot;.</li>' : '') . '
</ul>';
// END MOD RecentPostsEnhancement



// BEGIN MOD RecentPostsEnhancement
$txt['rpe'] = 'Enhancements to recent posts';
$txt['rpe_desc'] = 'Painel de controles para o &quot;Enhancements to recent posts&quot; MOD';
$txt['rpe_hide_unread_new'] = 'Ocultar link &quot;Exibir novas mensagens desde minha última visita&quot; no cabeçalho do fórum';
$txt['rpe_hide_unread_all'] = 'Ocultar link &quot;Exibir todas as mensagens não lidas&quot; no cabeçalho do fórum';
$txt['rpe_hide_unread_replies'] = 'Ocultar link &quot;Exibir novas respostas para seus posts&quot; no cabeçalho do fórum';
$txt['rpe_hide_recent'] = 'Ocultar link &quot;Exibir as mensagens mais recentes&quot; no cabeçalho do fórum';
$txt['rpe_one_line'] = 'Exibir em apenas uma linha do cabeçalho do fórum';
$txt['rpe_menu_hide_unread_new'] = 'Ocultar link &quot;Nova posts não lidos&quot; no menu do fórum';
$txt['rpe_menu_hide_unread_all'] = 'Ocultar link &quot;Todas os posts não lidos&quot; no menu do fórum';
$txt['rpe_menu_hide_unread_replies'] = 'Ocultar link &quot;Novas respostas&quot; no menu do fórum';
$txt['rpe_menu_hide_recent'] = 'Ocultar link &quot;Postagens recentes&quot; no menu do fórum';
$txt['rpe_menu_one_button'] = 'Exibir em apenas um botão os links do menu do fórum';
$txt['rpe_category_hide_unread_new'] = 'Ocultar link &quot;Novas mensagens não lidas&quot; nas categorias';
$txt['rpe_category_hide_unread_all'] = 'Ocultar link &quot;Todas as mensagens não lidas&quot; nas categorias';
$txt['rpe_category_hide_unread_replies'] = 'Ocultar link &quot;Novas respostas&quot; nas categorias';
$txt['rpe_category_hide_recent'] = 'Ocultar link &quot;Posts recentes&quot; nas categorias';
$txt['rpe_category_one_line'] = 'Exibir em apenas um link das categorias';
$txt['rpe_show'] = 'Mostrar mensagens';
$txt['rpe_show_unread_all'] = 'Mostrar todas as mensagens não lidas.';
$txt['rpe_show_recent'] = 'Mostrar as mensagens mais recentes.';
$txt['rpe_posts_unread_new'] = 'Novas mensagens não lidas';
$txt['rpe_posts_unread_all'] = 'Todas as mensagens não lidas';
$txt['rpe_posts_unread_replies'] = 'Novas respostas';
$txt['rpe_posts_recent'] = 'Postagens recentes';
$txt['rpe_unread_new'] = 'Novos posts não lidos';
$txt['rpe_unread_all'] = 'Todos posts não lidos';
$txt['rpe_unread_replies'] = 'Novas respostas';
$txt['rpe_recent'] = 'Recentes';
// END MOD RecentPostsEnhancement
Title: Re: Enhancements to recent posts, 2.0.5 (SMF 1.1-1.1.21, 2.0-2.0.10)
Post by: davidhs on July 10, 2015, 08:46:48 AM
Quote from: Americano on July 08, 2015, 07:07:04 PM
Translation into Portuguese
[...]
Thanks! I will add on next update.
Title: Re: Enhancements to recent posts
Post by: davidhs on September 26, 2015, 08:53:30 AM
Quote from: davidhs on July 10, 2015, 08:46:48 AM
Quote from: Americano on July 08, 2015, 07:07:04 PM
Translation into Portuguese
[...]
Thanks! I will add on next update.
Added.




New version:
2.0.6   2015-09-24
------------------
+ SMF compatibility: 1.1.20 to 1.1.21 and 2.0.9 to 2.0.11.
+ Languages: portuguese_brazilian, portuguese_brazilian-utf8, brazilian (SMF 1.1.x), brazilian-utf8 (SMF 1.1.x), portuguese_pt, portuguese_pt-utf8, thanks to Americano.
- SMF 2.0.x: Languages: spanish, spanish-utf8 (these are not used).
Title: Re: Enhancements to recent posts
Post by: Zirkon on May 31, 2016, 09:54:15 PM
Before I begin just want to say I love this forum mod. Hope this is the right place to post this.

Right now I'm having a problem with this mod.

"Show unread posts since last visit" and "Show new replies to your posts" works as they should.

"Show all unread posts"  when clicked on though will show replies that I have just done, and ones I have read already. It will not clear the list of unreads nor will it take you to the actual new unread part of the thread. It will take you to the first post of the thread.

Any idea on how I can resolve this.

I had a problem with my site recently and had to do the large upgrade file refresh. Everything is working now except this mod. Cannot figure out how to get it to work again like it should.

Any help would be appreciated.
Title: Re: Enhancements to recent posts
Post by: davidhs on June 01, 2016, 04:48:20 AM
Quote from: Zirkon on May 31, 2016, 09:54:15 PM
Before I begin just want to say I love this forum mod. Hope this is the right place to post this.

Right now I'm having a problem with this mod.

"Show unread posts since last visit" and "Show new replies to your posts" works as they should.

"Show all unread posts"  when clicked on though will show replies that I have just done, and ones I have read already. It will not clear the list of unreads nor will it take you to the actual new unread part of the thread. It will take you to the first post of the thread.

Any idea on how I can resolve this.

I had a problem with my site recently and had to do the large upgrade file refresh. Everything is working now except this mod. Cannot figure out how to get it to work again like it should.

Any help would be appreciated.
This mod not creates unread posts lists, only shows links to these lists. Lists are generated by SMF code.
(for example "Show all unread posts", is like http://www.simplemachines.org/community/index.php?action=unread;all;start=0 here)

I think you have a problem in your forum and you must ask in SMF support section.
Title: Re: Enhancements to recent posts
Post by: Grammy on June 01, 2016, 08:57:02 AM
Hi, works great!  Just have this one error:

Undefined index: rpe

Admin-RecentPostsEnhancement.php, line 21



$admin_areas['config']['areas']['modsettings']['subsections']['rpe'] = array($txt['rpe']);


If that's one of those "isset" things, I have no idea how to fix it.   :D
Title: Re: Enhancements to recent posts
Post by: davidhs on June 01, 2016, 10:46:00 AM
Quote from: Grammy on June 01, 2016, 08:57:02 AM
Hi, works great!  Just have this one error:

Undefined index: rpe

Admin-RecentPostsEnhancement.php, line 21



$admin_areas['config']['areas']['modsettings']['subsections']['rpe'] = array($txt['rpe']);


If that's one of those "isset" things, I have no idea how to fix it.   :D

I do not know because of this error... :(

What is your SMF version?
And what version of this mod is used? Install last version if it is not used.
Title: Re: Enhancements to recent posts
Post by: Grammy on June 01, 2016, 11:30:36 AM
Quote from: davidhs on June 01, 2016, 10:46:00 AM
I do not know because of this error... :(

What is your SMF version?
And what version of this mod is used? Install last version if it is not used.

It's SMF 2.0.11, default.  I downloaded RecentPostsEnhancement_2.0.6.tar.gz.

I thought it might be one of those missing "isset" statements that verify that the index exists before you attempt to access it, but what do I know about it?  Nothing plus nothing.   :D




Undefined index: rpe

Admin-RecentPostsEnhancement.php, line 21


Here's the block of code around it:

if (!defined('SMF'))
die('Hacking attempt...');

// Adds admin area.
function rpe_admin_areas(&$admin_areas)
{
global $txt;

$admin_areas['config']['areas']['modsettings']['subsections']['rpe'] = array($txt['rpe']);
}


   


EDIT:  I got the error to go away by changing this:

if (!defined('SMF'))
die('Hacking attempt...');

// Adds admin area.
function rpe_admin_areas(&$admin_areas)
{
global $txt;

$admin_areas['config']['areas']['modsettings']['subsections']['rpe'] = array($txt['rpe']);
}


to this:

if (!defined('SMF'))
die('Hacking attempt...');

// Adds admin area.
if (isset($txt['rpe']))   
{
function rpe_admin_areas(&$admin_areas)
{
global $txt;

$admin_areas['config']['areas']['modsettings']['subsections']['rpe'] = array($txt['rpe']);
}
}



Is that okay?
Title: Re: Enhancements to recent posts
Post by: davidhs on June 02, 2016, 04:46:56 AM
Quote from: Grammy on June 01, 2016, 11:30:36 AM
Quote from: davidhs on June 01, 2016, 10:46:00 AM
I do not know because of this error... :(

What is your SMF version?
And what version of this mod is used? Install last version if it is not used.

It's SMF 2.0.11, default.  I downloaded RecentPostsEnhancement_2.0.6.tar.gz.

I thought it might be one of those missing "isset" statements that verify that the index exists before you attempt to access it, but what do I know about it?  Nothing plus nothing.   :D




Undefined index: rpe

Admin-RecentPostsEnhancement.php, line 21


Here's the block of code around it:

if (!defined('SMF'))
die('Hacking attempt...');

// Adds admin area.
function rpe_admin_areas(&$admin_areas)
{
global $txt;

$admin_areas['config']['areas']['modsettings']['subsections']['rpe'] = array($txt['rpe']);
}


   


EDIT:  I got the error to go away by changing this:

if (!defined('SMF'))
die('Hacking attempt...');

// Adds admin area.
function rpe_admin_areas(&$admin_areas)
{
global $txt;

$admin_areas['config']['areas']['modsettings']['subsections']['rpe'] = array($txt['rpe']);
}


to this:

if (!defined('SMF'))
die('Hacking attempt...');

// Adds admin area.
if (isset($txt['rpe']))   
{
function rpe_admin_areas(&$admin_areas)
{
global $txt;

$admin_areas['config']['areas']['modsettings']['subsections']['rpe'] = array($txt['rpe']);
}
}



Is that okay?
This error should not occur... And $txt['rpe'] is important. You can replace

$admin_areas['config']['areas']['modsettings']['subsections']['rpe'] = array($txt['rpe']);

by

$admin_areas['config']['areas']['modsettings']['subsections']['rpe'] = array(isset($txt['rpe']) ? $txt['rpe'] : 'Enhancements to recent posts');





One question more: What is the language of your forum?

$txt['rpe'] must be on YOUR_FORUM/Themes/languages/modifications.YOUR_LANGUAGE.php.

Perhaps you have an error on this file... If you can, attach this file here.




This week I am out home. Next week I return and I will see in my test forum.
Title: Re: Enhancements to recent posts
Post by: Grammy on June 02, 2016, 08:52:06 AM
Quote from: davidhs on June 02, 2016, 04:46:56 AM

This error should not occur... And $txt['rpe'] is important. You can replace

$admin_areas['config']['areas']['modsettings']['subsections']['rpe'] = array($txt['rpe']);

by

$admin_areas['config']['areas']['modsettings']['subsections']['rpe'] = array(isset($txt['rpe']) ? $txt['rpe'] : 'Enhancements to recent posts');





One question more: What is the language of your forum?

$txt['rpe'] must be on YOUR_FORUM/Themes/languages/modifications.YOUR_LANGUAGE.php.

Perhaps you have an error on this file... If you can, attach this file here.




This week I am out home. Next week I return and I will see in my test forum.


That edit also keeps the error from happening; thanks for that!   :)

My forum language is English.  I'm attaching the Modifications.english.php file.  Absolutely no rush; just whenever you have time and thanks again!
Title: Re: Enhancements to recent posts
Post by: davidhs on June 02, 2016, 09:31:58 AM
Quote from: Grammy on June 02, 2016, 08:52:06 AM
Quote from: davidhs on June 02, 2016, 04:46:56 AM

This error should not occur... And $txt['rpe'] is important. You can replace

$admin_areas['config']['areas']['modsettings']['subsections']['rpe'] = array($txt['rpe']);

by

$admin_areas['config']['areas']['modsettings']['subsections']['rpe'] = array(isset($txt['rpe']) ? $txt['rpe'] : 'Enhancements to recent posts');





One question more: What is the language of your forum?

$txt['rpe'] must be on YOUR_FORUM/Themes/languages/modifications.YOUR_LANGUAGE.php.

Perhaps you have an error on this file... If you can, attach this file here.




This week I am out home. Next week I return and I will see in my test forum.


That edit also keeps the error from happening; thanks for that!   :)

My forum language is English.  I'm attaching the Modifications.english.php file.  Absolutely no rush; just whenever you have time and thanks again!
Sorry, I do not see any error on your language file. I will see next week this.

You do not add isset in code because this function is necessary in order to show admin area.
Title: Re: Enhancements to recent posts
Post by: davidhs on June 05, 2016, 10:46:44 AM
Quote from: davidhs on June 02, 2016, 09:31:58 AM
Quote from: Grammy on June 02, 2016, 08:52:06 AM
Quote from: davidhs on June 02, 2016, 04:46:56 AM

This error should not occur... And $txt['rpe'] is important. You can replace

$admin_areas['config']['areas']['modsettings']['subsections']['rpe'] = array($txt['rpe']);

by

$admin_areas['config']['areas']['modsettings']['subsections']['rpe'] = array(isset($txt['rpe']) ? $txt['rpe'] : 'Enhancements to recent posts');





One question more: What is the language of your forum?

$txt['rpe'] must be on YOUR_FORUM/Themes/languages/modifications.YOUR_LANGUAGE.php.

Perhaps you have an error on this file... If you can, attach this file here.




This week I am out home. Next week I return and I will see in my test forum.


That edit also keeps the error from happening; thanks for that!   :)

My forum language is English.  I'm attaching the Modifications.english.php file.  Absolutely no rush; just whenever you have time and thanks again!
Sorry, I do not see any error on your language file. I will see next week this.

You do not add isset in code because this function is necessary in order to show admin area.
Hi, I am at home. In my test forum I have not this error log... :o

Do you see admin area of this mod like this image?
(https://d946e397b5d950762579db229dbe392d25bcaf81.googledrive.com/host/0B7M1e_-FeoeENTZFeGd4Y1lrZjQ/rpe_settings.png)

Can you attach an image of your error log?
Title: Re: Enhancements to recent posts
Post by: davidhs on October 12, 2016, 09:54:53 AM
Compatible with SMF 2.0.12.
Title: Re: Enhancements to recent posts
Post by: aegersz on October 12, 2016, 03:18:26 PM
damn, I wish I knew about this earlier as I have spent much time adding menu buttons and installing mods to achieve much the same thing.

a very handy mod !
Title: Re: Enhancements to recent posts
Post by: davidhs on January 12, 2017, 03:14:28 PM
Compatible with SMF 2.0.13.
Title: Re: Enhancements to recent posts
Post by: davidhs on November 25, 2017, 10:50:37 AM
Compatible with SMF 2.0.14 and 2.0.15.
Title: Re: Enhancements to recent posts
Post by: jack208 on July 14, 2018, 08:34:41 PM
Quote from: davidhs on November 25, 2017, 10:50:37 AM
Compatible with SMF 2.0.14 and 2.0.15.

Just a bump to confirm this works well on ver 2.0.15.

It does throw errors on the Core theme (not the Default theme, which installed properly). We don't use the core theme for now so didn't make those manual code updates. If we do, will share the updated files here.

Thanks for the mod, David!
Title: Re: Enhancements to recent posts
Post by: davidhs on July 15, 2018, 07:29:16 AM
Quote from: jack208 on July 14, 2018, 08:34:41 PM
Quote from: davidhs on November 25, 2017, 10:50:37 AM
Compatible with SMF 2.0.14 and 2.0.15.

Just a bump to confirm this works well on ver 2.0.15.

It does throw errors on the Core theme (not the Default theme, which installed properly). We don't use the core theme for now so didn't make those manual code updates. If we do, will share the updated files here.

Thanks for the mod, David!
Yes, this mod install wiithout errors only in default theme and similars, not in core theme.

If you want install in core theme, you can install with errors and modify by hand theme files.
Title: Re: Enhancements to recent posts
Post by: davidhs on July 29, 2018, 01:58:50 PM
New version:
2.0.7   2018-07-26
------------------
@ SMF 2.1 Beta 3: Links are not displayed when user is a guest.
! SMF 2.0.x: Error in HTML code.
+ SMF 2.1 Beta 3: Links in the categories.
+ SMF compatibility: 2.0.12 to 2.0.15 and 2.1 Beta 3.
* SMF 1.1.x and 2.0.x: Languages: Title of each list is used in links.
Title: Re: Enhancements to recent posts
Post by: davidhs on April 12, 2019, 12:37:56 PM
New version:
2.0.8   2019-04-12
------------------
! SMF 2.1 Beta 3: Links were not displayed when user was a guest.
+ Actions of Administration panel are logged to Administration log.
@ Administration log does not exists in SMF 1.1.x.
+ SMF compatibility: 2.1 RC1 to RC2.
+ Languages: New language string in portuguese_brazilian, portuguese_brazilian-utf8, portuguese_pt, portuguese_pt-utf8, thanks to Americano.
Title: Re: Enhancements to recent posts
Post by: davidhs on May 10, 2019, 08:47:46 AM
New version:
2.0.9   2019-05-02
------------------
! SMF 2.x: The Quick Search of the Administration Center look for in settings variables of MOD.
Title: Re: Enhancements to recent posts
Post by: davidhs on March 05, 2020, 03:48:28 PM
Compatible with SMF 2.0.16 and 2.0.17.
Title: Re: Enhancements to recent posts
Post by: davidhs on February 15, 2021, 08:26:52 AM
New version:
2.0.10  2021-02-15
------------------
! SMF 1.1.x: Use HTML entities in UTF-8 languages.
! SMF 2.0.x: Do not use HTML entities in ISO-8859-1 languages.
! SMF 2.x: The Quick Search of the Administration Center look for in settings variables of MOD.
+ SMF compatibility: 2.0.16-2.0.18 and 2.1 RC3.
Title: Re: Enhancements to recent posts
Post by: Gryzor on February 28, 2022, 04:10:22 AM
Anyone tried it on 2.1.x? Tests are failing for me.
Title: Re: Enhancements to recent posts
Post by: bod22 on February 18, 2024, 11:07:23 AM
Any update for 2.1.4? I tried to check it but it has a lot of errors while installing.
Title: Re: Enhancements to recent posts
Post by: Steve on February 18, 2024, 12:06:51 PM
It's been about a year since @davidhs has been here so hopefully he'll show up soon to see your questions.