Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: davidhs on May 26, 2010, 01:15:53 AM

Title: Content of the latest posts
Post by: davidhs on May 26, 2010, 01:15:53 AM
Link to Mod (https://custom.simplemachines.org/mods/index.php?mod=2547)

Content of the latest posts

ABOUT...

Content of the latest posts, 2.5.2
© 2010-2021 by davidhs
© Russian language 2010-2011 by Bugo

(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

The MOD ContentOfLatestPosts can show in any post on the forum a list with the content of the latest posts. The content to be displayed is sorted by date and grouped by board. It is also defined by several parameters:

Can be created an index of topics using at least these parameters:

Administration panel

In administration panel can set the default value for each parameter.

Can also create predefined lists, each with its parameters and header BBC.

(https://lh3.googleusercontent.com/tyHut7I83dIMysyrmyw280Ub4MGgwcu_tIqZzVyzovkSmDVoyDyhBVnzrw7G2JNBjVKQwnD7TOWQXgduVSC9MZ6Tq9XP4LLL9IorDjgm05ZDg8Hha3haGNlJHPorAoaTGN8y2puB8g=w2400)     (https://lh3.googleusercontent.com/DuSkszvJ0ydfOrCTubEq9yBJ-dqDMwDz9DjbFgwfbpwrEDnjqXsOSphjpCaLOytOjv4aHdawKQLNzKoS_07edXGeEzOPC7vyVQ1Ze1dUtVaaOaolhcDLD6ShYFvsIjY7fJHKLOzpCQ=w2400)

BBC tag

To display a list of content of the latest posts you have to write the BBC tag:

[contentlatest predefined=... type=... group=... boards_link=... boards=... child_boards=... number_by_group=... number_by_topic=... age=... unread=... date=... sticky=... locked=...]text[/contentlatest]

Attributes, all optional, are:

For all other parameters of list there is no attribute in BBC. If any attribute not exists the value used is the value of predefined list or, if not exists, the default value, both defined in the administration panel.

The text between contentlatest begin and end tags will replaces the {TITLE} variable in the header of the list, if exists. Can be used the variables {TYPE}, {BOARDURL}, {SCRIPTURL}, {IMAGES_URL} and {DEFAULT_IMAGES_URL} (like in header).

Appearance of the list

By default the list has the style of current theme, but can be changed in the file style.css (SMF 1.1.x series) or css/index.css (SMF 2.x series) of theme copying the CSS rules of the block

/* BEGIN MOD ContentOfLatestPosts */
...
/* END MOD ContentOfLatestPosts */


before of the block and editing.

EXAMPLES

A list of each type:

(https://lh3.googleusercontent.com/VNV4gw0YytNUGDzQngGNazA0a6Ii830Ea5kzNdYRvm_u0t-Fzu265oDv7lKTt4sau81rM7hyChGvdpcgaNXHdbgxpyZ590v9mwbe5tJGJaSNqC5bQGUeI2sQ5b9hPXIKsvGBi1JJjQ=w2400)     (https://lh3.googleusercontent.com/NSav_jq_hH6QKayhRLqvEL4ea5U9EFFSwvZL3SeTkZ7Ot9LB5UgK2nLSzEct_3nwEyGh4EnalHNsDPfwaobLfTR-3A2pBLxI6j7SCJ23T_2r3rdc2OFIKFYCdiBxyUfSgb6t6f4HcQ=w2400)

(https://lh3.googleusercontent.com/Vx9XgtuP1NlrB8mJ1VlqhKDOdEWIiF7zEhIBhsZBQJLYbzNRpY1pubonE7wGzCK3eQ0DB6ol0PA2y0Eku-bi_GTMrZRf2sjgtnK1AKe44KFe6cMvwG7H6wOJZlbrMBz0iUJUvpsHHQ=w2400)     (https://lh3.googleusercontent.com/AzM3CbTJgWwExBH6rIdhXe35S9YEf4yauR1360SxMwIDFqIXeIjbQsRQOJobSI1wCvIRKMnLbbF73Lp9CY87fiIqiITe0V2fbYQnbDf56bo5d6A9LY_nGP0T-tnxr2VqkAa90YzHsw=w2400)

(https://lh3.googleusercontent.com/WsT-5XwI-XhmQkwcHOHkuxWz9put4TDPrXqkM7idXAJPyeERkr69Dmb_Vq0kgSFTgCQKR925uhNuFL1uEGx97pg2lWptcYf4byeTd5I-SWS9B3USgOA2b9U2T5nOM97MPO1w4aptNg=w2400)     (https://lh3.googleusercontent.com/x6WWYSmeIAqiW8DENZ_rfpepMh8wLBDXI9SVIts0u-M-3nCVTMu4dZV4ACYPs4ONLjxFlLbvfsvl-gydwI1lJf3mTBTDfYPQqcqtA34Az6ziBrP-ztUdf1VnYRZKey5iR376JmHMmQ=w2400)

(https://lh3.googleusercontent.com/uCNcKsMXsqIeoElPhEiEzrjg_xfiSUlqA8pEC8C29CqCkwNeb9-FqHgVNyCOqfRzbC47oTZ9BHevnkO9P7oJ1iAczlRvlRXdy410_2hYfFj3D3qbiNetp73voCxgFR6zQ7RrvaBO1w=w2400)

An index of topics:

(https://lh3.googleusercontent.com/VZ9ixrcoM4G0SaMmEe8VNSTpNVD_cYxcvj6vK_1mbNDB8gAk0mgiQZ8-P7-IZRh0vksP4e83DpA89yFdnzdarzBn5crrLvYdSvN0E9IH6wJ3CGqzOwG3AycGT14vUMx3JJIWkHrlMQ=w2400)

SMF COMPATIBILITY


LANGUAGES


DOWNLOAD

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

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.5.2   2021-02-25
------------------
! If the text of header begins with "https://" is also supposed to be the URL of an image.
! Attachment search.
! 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 compatibility: 2.0.16-2.0.18 and 2.1 RC3.

2.5.1   2019-05-11
------------------
! SMF 2.1.x: Use HTML 5.
! SMF 2.x: The Quick Search of the Administration Center look for in settings variables of MOD.
+ SMF compatibility: 2.1 RC1 to RC2.

2.5     2018-12-27
------------------
! Error in source code.
! SMF 1.1.x: Theme of the generic form of displaying lists.
* In Administration panel, the default values and the predefined lists are split.
+ Actions of Administration panel are logged to Administration log.
@ Administration log does not exists in SMF 1.1.x.
! SMF 2.1.x: Languages: Only UTF-8 languages are used.

2.4     2018-06-27
------------------
+ Upgrade code to the configuration variables from versions 2.3 to 2.4.
+ SMF 2.1.x: Uninstallation code to the configuration variables.
+ Field in administration panel to indicate if show icon.
+ Fields in administration panel to indicate a different format when the content is displayed.
+ Field in administration panel to indicate if are consulted posts with subject prefix.
* If the results are grouped by first character of subject, always is displayed the navigation bar with characters, whether or not there be content.
+ SMF compatibility: 1.1.21, 2.0.10-2.0.15 and 2.1 Beta 3.
- SMF 2.0.x: Languages: spanish, spanish-utf8 (these are not used).

2.3.2   2014-10-08
------------------
+ SMF 1.1.x: Implemented a generic form of displaying lists, similar to SMF 2.0.x.
+ SMF compatibility: 1.1.20 and 2.0.9.

2.3.1   2014-06-24
------------------
! Use HTML entities in ISO-8859-1 languages.
! Help.
+ Functions to get/update/delete data check the parameters before using them.
* Big multi-line text input fields are wider.
* Submit buttons have shortcut key to get focus.
+ SMF compatibility: 2.0.8.

2.3     2014-01-27
------------------
+ Upgrade code to the configuration variables from versions 2.1-2.2 to 2.3.
+ Field in administration panel to indicate if is consulted first post of topics.
+ Field in administration panel to indicate if are consulted replies of topics.
+ Field in administration panel to indicate if are not consulted posts with subject prefix.
+ SMF compatibility: 2.0.7.

2.2     2013-12-21
------------------
! Error in source code.
! SMF 2.0.x: Functions of administration area must return settings variables for the Quick Search of the Administration Center.
+ SMF 2.0.x: The Quick Search of the Administration Center look for in settings variables of MOD.
! If posts are grouped by the first character of the subject and there are more than one list in a topic, links "Go to..." not work.
+ Variable in header of list to insert URL to forum folder.
* Reorganization of the fields in the administration panel.

2.1     2013-10-31
------------------
! There was a PHP error when the list of predefined lists was empty.
+ Upgrade code to the configuration variables from version 2.0.x to 2.1.
+ Possibility of grouping post by the first character of the subject.
* Rename value "yes" to "board" (by board) in BBC attribute "group" (group posts). "yes" is still supported for backward compatibility.
+ Value "character" (by first character of the subject) in BBC attribute "group" (group posts).
+ Field in administration panel to indicate the letters of group (if posts are grouped by first character of subject).
+ Field in administration panel to indicate the subject prefix which will not be take into account when grouping posts (if posts are grouped by first character of subject).
+ Field in administration panel to indicate if show boards (if posts are not grouped by board).
+ Field in administration panel to indicate if show subject (if content type is not subject).
+ Field in administration panel to indicate if show poster.
+ Field in administration panel to indicate if show content (if content type is not all, post or subject).
+ Field in administration panel to indicate the posts order.
@ The BBC has many attributes and can not be added more.
* Navigation tree of boards is placed before subject.
+ SMF compatibility: 1.1.19 and 2.0.6.

2.0.1   2013-10-18
------------------
! SMF 2.0.x: Tab duplicate in settings area.

2.0     2013-10-17
------------------
@ This work is licensed under a Creative Commons Attribution 3.0 Unported License https://creativecommons.org/licenses/by/3.0/
! SMF 2.0.x: Integration hooks functions parameters must be passed by reference.
! Attached images resizable did not expand if were repeated in a topic.
+ Upgrade code to the configuration variables from version 1.x to 2.0.
* Allows to create any number of predefined lists in the administration panel.
+ Variable in header of list to insert web address of forum.
+ Variable in header of list to insert url to the images folder in the users current theme.
+ Variable in header of list to insert url to the images folder in the default theme.
+ Value "current" (current board) in BBC attribute "boards" (boards).
- Value "all" (unlimited) in BBC attributes "number_by_group" (maximum number of posts by group) and "number_by_topic" (maximum number of posts by topic). It is still supported for backward compatibility.
+ SMF compatibility: 2.0.5.

1.2.2   2013-04-10
------------------
+ SMF compatibility: 1.1.18.
+ SMF compatibility: 2.0.4.
- SMF compatibility: Support to obsolete 1.0.x series and Beta and RC versions.

1.2.1   2012-12-22
------------------
+ SMF compatibility: 1.0.23.
+ SMF compatibility: 1.1.17.
+ SMF compatibility: 2.0.3.

1.2     2012-04-08
------------------
+ Field in administration panel and BBC attribute to indicate if results are grouped by board or not.
+ Field in administration panel and BBC attribute to indicate the maximum number of posts shown by group.
+ Field in administration panel and BBC attribute to indicate the maximum number of posts shown by topic.
+ Field in administration panel and BBC attribute to indicate if are consulted only unread posts.
+ Redirect to administration panel after install.

1.1.4   2011-12-24
------------------
+ SMF compatibility: 1.0.22.
+ SMF compatibility: 1.1.16.
+ SMF compatibility: 2.0.2.

1.1.3   2011-09-20
------------------
! Use of integration hook integrate_modify_modifications in SMF 2.0.
+ SMF compatibility: 1.1.15.
+ SMF compatibility: 2.0.1.

1.1.2   2011-06-22
------------------
! Maximum age in days is not rounded.
+ SMF compatibility: 1.1.14.
+ SMF compatibility: 2.0.
* Uses integration hooks in SMF 2.0 RC4 and next.

1.1.1   2011-02-15
------------------
! Small adjustments to each version of SMF.
+ SMF compatibility: 1.0 RC1 to RC2 and 1.0 to 1.0.21.
+ SMF compatibility: 1.1 Beta 3 Public, RC1 to RC3 and 1.1 to 1.1.13.
+ SMF compatibility: 2.0 Beta 3.1 Public and RC5.

1.1     2010-12-21
------------------
+ Field in administration panel to write a description of each list (default and predefined).
+ Field in administration panel to write a text to display if have not content.
+ Field in administration panel and BBC attribute to indicate if are consulted posts of child boards and until level.
+ Languages: russian, russian-utf8, thanks to Bugo.

1.0.2   2010-11-07
------------------
+ SMF compatibility: 2.0 Beta 4, RC1 to RC1.2 and RC4.
+ Languages: english_british, english_british-utf8 (copy of english).
+ Languages: spanish, spanish-utf8 (copy of spanish_es).
* Regular expression of links is used by SMF 2.0 RC4.

1.0.1   2010-05-28
------------------
! In administration panel, value of "BBC of the header" fields could not have tags with attributes quoted.

1.0     2010-05-26
------------------
+ Administration panel and BBC tag.
+ SMF compatibility: 2.0 RC2 to RC3.
+ Languages: english, english-utf8, spanish_es, spanish_es-utf8, spanish_latin, spanish_latin-utf8.
Title: Re: Content of the latest posts, 1.0 (SMF 2.0 RC2, 2.0 RC3)
Post by: Kreator on May 27, 2010, 06:23:58 PM
Hmm, I assume you stick the bbc code into a post... only I just get the bbc tag returned each time I post it, as follows

[contentlatest predefined=all type=all boards=all boards_link=all age=60 date=modify sticky=all locked=all]LATEST CONTENT[/contentlatest]


so whats happening? checked that there is a bb code for contentlatest in ACP
Title: Re: Content of the latest posts, 1.0 (SMF 2.0 RC2, 2.0 RC3)
Post by: davidhs on May 28, 2010, 06:00:50 AM
This happens because the value of the parameter "predefined" is wrong (only can take 1 to 5).
Quote from: davidhs on May 26, 2010, 01:15:53 AM
Parameters, all optional, are:

  • predefined: Predefined list number. Permitted values: 1 to 5.
[...]

But in your case does not have to use this parameter. Write only:
[contentlatest type=all boards=all boards_link=all age=60 date=modify sticky=all locked=all]LATEST CONTENT[/contentlatest]
Because the default values of the pameters this is equivalent:
[contentlatest boards=all age=60 date=modify]LATEST CONTENT[/contentlatest]
Both shows list of all posts (text and attachment of each post), in all boards, with link in all navegation tree, modified in the last 60 days, sticky or non-sticky, and locked or unlocked.

Use the parameter "predefined" only in you define a predefined list in administration panel.
Title: Re: Content of the latest posts, 1.0.1 (SMF 2.0 RC2, 2.0 RC3)
Post by: davidhs on May 28, 2010, 07:24:22 AM
New version:

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

1.0.1   2010-05-28
------------------
! In administration panel, value of "BBCode of the header" fields could not have tags with parameters quoted.

Title: Re: Content of the latest posts, 1.0.1 (SMF 2.0 RC2, 2.0 RC3)
Post by: vicram10 on May 28, 2010, 08:29:42 AM
nice mod..
congrats ;)
Title: Re: Content of the latest posts, 1.0.1 (SMF 2.0 RC2, 2.0 RC3)
Post by: Bruno36 on May 29, 2010, 01:56:58 PM
I do not understand how this mod works :o
Title: Re: Content of the latest posts, 1.0.1 (SMF 2.0 RC2, 2.0 RC3)
Post by: Kreator on May 29, 2010, 04:44:28 PM
Sorry it still does not work , I still just get the bbc code coming back in preview or even when I post,


If I`m using predefined say 1, then should I be adding boards and other stuff ? surely they have been predefined in the first place


[contentlatest predefined=1 type=all boards=all boards_link=all age=create date=all sticky=all locked=all]text[/contentlatest]

should it not just be this:

[contentlatest predefined=1]text[/contentlatest]
Title: Re: Content of the latest posts, 1.0.1 (SMF 2.0 RC2, 2.0 RC3)
Post by: davidhs on May 29, 2010, 07:30:56 PM
Quote from: Bruno36 on May 29, 2010, 01:56:58 PM
I do not understand how this mod works :o

Sorry, my English is not very good and I can not explain better :( . In the first post I explained what this MOD can do (basically, list the latest content posted on the forum).

If you tell me an example of list you need to do, I write the BBCode for your example.

If someone who speaks English well can explain it better, I would appreciate. ;)





Quote from: Kreator on May 29, 2010, 04:44:28 PM
Sorry it still does not work , I still just get the bbc code coming back in preview or even when I post,

If I`m using predefined say 1, then should I be adding boards and other stuff ?

If you define the predefined list 1 in section "Administration Center > Modification Settings > Content of the latest posts > Predefined content list", you have something like this:

QuoteDefine predefined list 1 [X] (CHECKED)
Content type: All (post and attachment)
Boards: EMPTY (CURRENT BOARD)
Links to boards: Yes, all
Maximum age: 0 days
Date consulted: Create date
Sticky topics: All
Locked topics: All
BBCode of the header: ANYTHING
Correct?

These values of parameters of predefined list 1 are the default values of parameters if you write
[contentlatest predefined=1]text[/contentlatest]
(the values used are:
QuoteContent type: All (post and attachment)
Boards: EMPTY (CURRENT BOARD)
Links to boards: Yes, all
Maximum age: 0 days
Date consulted: Create date
Sticky topics: All
Locked topics: All
)

If you write in BBCode more parameters, the values used for these parameters are the values write in BBCode, not values in administration panel. For example, if you write
[contentlatest predefined=1 boards=65,66]text[/contentlatest]
this use the values of predefined list 1 except boards who use the value 65,66:
QuoteContent type: All (post and attachment)
Boards: 65,66
Links to boards: Yes, all
Maximum age: 0 days
Date consulted: Create date
Sticky topics: All
Locked topics: All

Quote from: Kreator on May 29, 2010, 04:44:28 PM
[contentlatest predefined=1 type=all boards=all boards_link=all age=create date=all sticky=all locked=all]text[/contentlatest]
The value of parameter "age" should be an integer (number of days), not "create". "create" is a value valid of parameter "date". The correct BBCode is
[contentlatest predefined=1 type=all boards=all boards_link=all age=10 date=create sticky=all locked=all]text[/contentlatest]
Title: Re: Content of the latest posts, 1.0.1 (SMF 2.0 RC2, 2.0 RC3)
Post by: Kreator on May 31, 2010, 08:27:30 AM
Finally got it to work, phew!! Now I`ve got to find a good reason for using it!.
Title: Re: Content of the latest posts, 1.0.2 (SMF 2.0 Beta 4 and RC1 to RC4)
Post by: davidhs on November 13, 2010, 09:15:45 AM
New version:

1.0.2   2010-11-07
------------------
+ SMF compatibility: Adds 2.0 Beta 4, RC1 to RC1.2 and RC4.
+ Languages: Adds english_british, english_british-utf8 (copy of english).
+ Languages: Adds spanish, spanish-utf8 (copy of spanish_es).
* Regular expression of links is used by SMF 2.0 RC4.
Title: Re: Content of the latest posts, 1.0.2 (SMF 2.0 Beta 4 and RC1 to RC4)
Post by: Patriiick on November 28, 2010, 12:57:00 PM
Can someone clearly say what this MOD does?  ;D
Title: Re: Content of the latest posts, 1.0.2 (SMF 2.0 Beta 4 and RC1 to RC4)
Post by: davidhs on November 30, 2010, 05:56:33 AM
Makes a list with the latest content posted on the forum.
Title: Re: Content of the latest posts, 1.0.2 (SMF 2.0 Beta 4 and RC1 to RC4)
Post by: Bugo on December 20, 2010, 12:54:39 AM
Russian translation (please don't merge content of these files into one) :)
Title: Re: Content of the latest posts, 1.0.2 (SMF 2.0 Beta 4 and RC1 to RC4)
Post by: davidhs on December 20, 2010, 10:23:42 AM
Quote from: Bugo on December 20, 2010, 12:54:39 AMRussian translation (please don't merge content of these files into one) :)
Thanks!! Do not worry, I put each language-encoding in different files ;)
Title: Re: Content of the latest posts, 1.1 (SMF 2.0 Beta 4 and RC1 to RC4)
Post by: davidhs on December 21, 2010, 02:10:50 PM
New version:

1.1   2010-12-21
------------------
+ Field in Administration panel to write a description of each list (default and predefined).
+ Field in Administration panel to write a text to display if have not content.
+ Field in Administration panel and BBCode parameter to indicate if are consulted posts of child boards and untill level.
+ Languages: Adds russian, russian-utf8, thanks to Bugo.
Title: Re: Content of the latest posts, 1.1.1 (SMF 1.0*-1.0.21, 1.1*-1.1.13, 2.0*-RC5)
Post by: davidhs on February 16, 2011, 08:24:32 AM
New version:

1.1.1   2011-02-15
------------------
! Small adjustments to each version of SMF.
+ SMF compatibility: Adds 1.0 RC1 to RC2 and 1.0 to 1.0.21.
+ SMF compatibility: Adds 1.1 Beta 3 Public, RC1 to RC3 and 1.1 to 1.1.13.
+ SMF compatibility: Adds 2.0 Beta 3.1 Public and RC5.
Title: Re: Content of the latest posts, 1.1.2 (SMF 1.0*-1.0.21, 1.1*-1.1.14, 2.0*-2.0)
Post by: davidhs on June 23, 2011, 12:37:15 PM
New version:

1.1.2   2011-06-22
------------------
! Maximum age in days is not rounded.
+ SMF compatibility: Adds 1.1.14.
+ SMF compatibility: Adds 2.0.
* Uses integration hooks in SMF 2.0 RC4 and next.
Title: Re: Content of the latest posts, 1.1.3 (SMF 1.0*-1.0.21, 1.1*-1.1.15, 2.0*-2.0.1)
Post by: davidhs on September 22, 2011, 12:56:51 PM
New version:

1.1.3   2011-09-20
------------------
! Use of integration hook integrate_modify_modifications in SMF 2.0.
+ SMF compatibility: Adds 1.1.15.
+ SMF compatibility: Adds 2.0.1.
Title: Re: Content of the latest posts, 1.1.4 (SMF 1.0*-1.0.22, 1.1*-1.1.16, 2.0*-2.0.2)
Post by: davidhs on December 25, 2011, 02:52:03 PM
New version:
1.1.4   2011-12-24
------------------
+ SMF compatibility: Adds 1.0.22.
+ SMF compatibility: Adds 1.1.16.
+ SMF compatibility: Adds 2.0.2.
Title: Re: Content of the latest posts, 1.2 (SMF 1.0*-1.0.22, 1.1*-1.1.16, 2.0*-2.0.2)
Post by: davidhs on May 20, 2012, 06:07:51 PM
New version:
1.2     2012-04-08
------------------
+ Field in Administration panel and BBCode parameter to indicate if results are grouped by board or not.
+ Field in Administration panel and BBCode parameter to indicate the maximum number of posts shown by group.
+ Field in Administration panel and BBCode parameter to indicate the maximum number of posts shown by topic.
+ Field in Administration panel and BBCode parameter to indicate if are consulted only unread posts.
+ Redirect to Administration panel after install.
Title: Re: Content of the latest posts, 1.2 (SMF 1.0*-1.0.22, 1.1*-1.1.16, 2.0*-2.0.2)
Post by: qu3ll0 on December 01, 2012, 08:52:54 AM
Thank you very much for this mod.

It is almost what I was looking for since a long time.

However, I need to take content of latest topics (not posts). Can you please tell me if your mod is able to do that?

Thanks!!!
Title: Re: Content of the latest posts, 1.2 (SMF 1.0*-1.0.22, 1.1*-1.1.16, 2.0*-2.0.2)
Post by: davidhs on December 01, 2012, 12:54:02 PM
This MOD only can take content of posts, but if you write

Maximum number of posts by topic = 1

only take content of 1 post by topic (similar to content of topic).
Title: Re: Content of the latest posts, 1.2 (SMF 1.0*-1.0.22, 1.1*-1.1.16, 2.0*-2.0.2)
Post by: qu3ll0 on December 02, 2012, 08:12:36 AM
Great! Thank you!
Title: Re: Content of the latest posts, 1.2.1 (SMF 1.0*-1.0.23, 1.1*-1.1.17, 2.0*-2.0.3)
Post by: davidhs on December 22, 2012, 12:03:46 PM
New version:
1.2.1   2012-12-22
------------------
+ SMF compatibility: Adds 1.0.23.
+ SMF compatibility: Adds 1.1.17.
+ SMF compatibility: Adds 2.0.3.
Title: Re: Content of the latest posts, 1.2.2 (SMF 1.1-1.1.18, 2.0-2.0.4)
Post by: davidhs on April 10, 2013, 05:12:56 PM
New version:
1.2.2   2013-04-10
------------------
+ SMF compatibility: Adds 1.1.18.
+ SMF compatibility: Adds 2.0.4.
- SMF compatibility: Removes support to obsolete series 1.0.x and Beta and RC versions.
Title: Re: Content of the latest posts, 2.0 (SMF 1.1-1.1.18, 2.0-2.0.5)
Post by: davidhs on October 17, 2013, 01:47:00 PM
New version:
2.0     2013-10-17
------------------
@ This work is licensed under a Creative Commons Attribution 3.0 Unported License http://creativecommons.org/licenses/by/3.0/
! SMF 2.0.x: Integration hooks functions parameters must be passed by reference.
! Attached images resizable did not expand if were repeated in a topic.
+ Upgrade code to the configuration variables from version 1.x to 2.0.
* Allows to create any number of predefined lists in the administration panel.
+ Variable in header of list to insert web address of forum.
+ Variable in header of list to insert url to the images folder in the users current theme.
+ Variable in header of list to insert url to the images folder in the default theme.
+ Value "current" (current board) in BBC attribute "boards" (boards).
- Value "all" (unlimited) in BBC attributes "number_by_group" (maximum number of posts by group) and "number_by_topic" (maximum number of posts by topic). It is still supported for backward compatibility.
+ SMF compatibility: 2.0.5.
Title: Re: Content of the latest posts, 2.0.1 (SMF 1.1-1.1.18, 2.0-2.0.5)
Post by: davidhs on October 18, 2013, 01:42:47 PM
New version:
2.0.1   2013-10-18
------------------
! SMF 2.0.x: Tab duplicate in settings area.
Title: Re: Content of the latest posts, 2.1 (SMF 1.1-1.1.19, 2.0-2.0.6)
Post by: davidhs on October 31, 2013, 04:34:36 PM
New version:
2.1     2013-10-31
------------------
! There was a PHP error when the list of predefined lists was empty.
+ Upgrade code to the configuration variables from version 2.0.x to 2.1.
+ Possibility of grouping post by the first character of the subject.
* Rename value "yes" to "board" (by board) in BBC attribute "group" (group posts). "yes" is still supported for backward compatibility.
+ Value "character" (by first character of the subject) in BBC attribute "group" (group posts).
+ Field in administration panel to indicate the letters of group (if posts are grouped by first character of subject).
+ Field in administration panel to indicate the subject prefix which will not be take into account when grouping posts (if posts are grouped by first character of subject).
+ Field in administration panel to indicate if show boards (if posts are not grouped by board).
+ Field in administration panel to indicate if show subject (if content type is not subject).
+ Field in administration panel to indicate if show poster.
+ Field in administration panel to indicate if show content (if content type is not all, post or subject).
+ Field in administration panel to indicate the posts order.
@ The BBC has many attributes and can not be added more.
* Navigation tree of boards is placed before subject.
+ SMF compatibility: 1.1.19 and 2.0.6.
Title: Re: Content of the latest posts, 2.2 (SMF 1.1-1.1.19, 2.0-2.0.6)
Post by: davidhs on December 21, 2013, 02:19:57 PM
New version:
2.2     2013-12-21
------------------
! Error in source code.
! SMF 2.0.x: Functions of administration area must return settings variables for the Quick Search of the Administration Center.
+ SMF 2.0.x: The Quick Search of the Administration Center look for in settings variables of MOD.
! If posts are grouped by the first character of the subject and there are more than one list in a topic, links "Go to..." not work.
+ Variable in header of list to insert URL to forum folder.
* Reorganization of the fields in the administration panel.
Title: Re: Content of the latest posts, 2.2 (SMF 1.1-1.1.19, 2.0-2.0.6)
Post by: searchgr on January 06, 2014, 07:43:22 AM
I created a predefined list but i dont see any new tab in the menu bar of my forum. How can someone see the new unread posts?
Title: Re: Content of the latest posts, 2.2 (SMF 1.1-1.1.19, 2.0-2.0.6)
Post by: davidhs on January 06, 2014, 10:33:25 AM
Quote from: searchgr on January 06, 2014, 07:43:22 AM
I created a predefined list but i dont see any new tab in the menu bar of my forum. How can someone see the new unread posts?
This MOD does not add tab in menu.

If you create a predefined list (for example #1), you can write in a post
[contentlatest predefined=1][/contentlatest]
Title: Re: Content of the latest posts, 2.2 (SMF 1.1-1.1.19, 2.0-2.0.6)
Post by: searchgr on January 06, 2014, 11:30:58 AM
So how does the unread posts appear? I don't see them around :)
Title: Re: Content of the latest posts, 2.2 (SMF 1.1-1.1.19, 2.0-2.0.6)
Post by: davidhs on January 06, 2014, 12:20:26 PM
Quote from: searchgr on January 06, 2014, 11:30:58 AM
So how does the unread posts appear? I don't see them around :)
I suppose you want to create a list with the unread post.
You can use BBC and several parameters, without create predefined list.
unread:
- unread=new search content in recent unread topics,
- unread=all search content in all unread topics.
For example, this
[contentlatest type=subject boards=all age=100 unread=new][/contentlatest]
creates a list of subjects of recent unread post posted on last 100 days in all boards.

Or you can create default parameters:
- Content type: Subject.
- Boards: All.
- Maximum age: 100 days.
- Only unread posts: Recent unread topics.
and write:
[contentlatest][/contentlatest]

Or can create a predefined list (i.e. #1) with parameters:
- Content type: Subject.
- Boards: All.
- Maximum age: 100 days.
- Only unread posts: Recent unread topics.
and write:
[contentlatest predefined=1][/contentlatest]
Title: Re: Content of the latest posts, 2.2 (SMF 1.1-1.1.19, 2.0-2.0.6)
Post by: searchgr on January 06, 2014, 01:27:52 PM
Thank you.
Title: Re: Content of the latest posts, 2.3 (SMF 1.1-1.1.19, 2.0-2.0.7)
Post by: davidhs on January 27, 2014, 11:16:28 AM
New version:
2.3     2014-01-27
------------------
+ Upgrade code to the configuration variables from versions 2.1-2.2 to 2.3.
+ Field in administration panel to indicate if is consulted first post of topics.
+ Field in administration panel to indicate if are consulted replies of topics.
+ Field in administration panel to indicate if are not consulted posts with subject prefix.
+ SMF compatibility: 2.0.7.
Title: Re: Content of the latest posts, 2.3 (SMF 1.1-1.1.19, 2.0-2.0.7)
Post by: mweishaa on April 18, 2014, 05:55:09 PM
OK, maybe I am dense... but how does this mod work? 
I've been to Admin > Configuration > Modification Settings > Content of the latest posts

I set it up to expand everything in all forums... pretty much the defaults, and saved it.  Nothing in the forum changes.  Is there more that has to be done?

I was hoping this mod would allow users to see an expanded view of posts in a forum, so they didn't have to click so much.  Like an expanded tree.  Is that not what this does?  I find it very confusing, so any help would be appreciated.
Title: Re: Content of the latest posts, 2.3 (SMF 1.1-1.1.19, 2.0-2.0.7)
Post by: davidhs on April 22, 2014, 05:59:33 PM
Quote from: mweishaa on April 18, 2014, 05:55:09 PM
I was hoping this mod would allow users to see an expanded view of posts in a forum, so they didn't have to click so much.  Like an expanded tree.  Is that not what this does?  I find it very confusing, so any help would be appreciated.
This mod does not.

You can create a list with content of last messages posted
1. Create a predefined list (I suppouse #1)
2. Create a topic with this text
[contentlatest predefined=1]text[/contentlatest]
Title: Re: Content of the latest posts, 2.3.1 (SMF 1.1-1.1.19, 2.0-2.0.8)
Post by: davidhs on June 27, 2014, 08:40:18 AM
New version:
2.3.1   2014-06-24
------------------
! Use HTML entities in ISO-8859-1 languages.
! Help.
+ Functions to get/update/delete data check the parameters before using them.
* Big multi-line text input fields are wider.
* Submit buttons have shortcut key to get focus.
+ SMF compatibility: 2.0.8.
Title: Re: Content of the latest posts, 2.3.2 (SMF 1.1-1.1.20, 2.0-2.0.9)
Post by: davidhs on October 09, 2014, 07:06:36 AM
New version:
2.3.2   2014-10-08
------------------
+ SMF 1.1.x: Implemented a generic form of displaying lists, similar to SMF 2.0.x.
+ SMF compatibility: 1.1.20 and 2.0.9.
Title: Re: Content of the latest posts, 2.3.2 (SMF 1.1-1.1.20, 2.0-2.0.9)
Post by: Sakae on March 04, 2015, 08:43:25 PM
Ok, this MOD probably is what I am looking for.

But how can I add a index, like the last screenshot?
Title: Re: Content of the latest posts, 2.3.2 (SMF 1.1-1.1.20, 2.0-2.0.9)
Post by: davidhs on March 05, 2015, 07:23:01 AM
Quote from: Sakae on March 04, 2015, 08:43:25 PM
But how can I add a index, like the last screenshot?

You can create a predefined list with these parameters:
Quote from: davidhs on May 26, 2010, 01:15:53 AM
Can be created an index of topics using at least these parameters:

  • Group posts: By first character of subject.
  • Show subject: Yes.
  • Show content: No.
  • Order by: Ascending subject.
  • Maximum age: 999999999.
  • Only unread posts: No.
  • First post of topic: Yes.
  • Replies of topic: No.
and create a new topic with this content:
[contentlatest predefined=n]title[/contentlatest]
where n is the number of your new predefined list.
Title: Re: Content of the latest posts, 2.3.2 (SMF 1.1-1.1.20, 2.0-2.0.9)
Post by: Sakae on March 05, 2015, 02:56:22 PM
Working great now. Thanks and good job! :)
Title: Re: Content of the latest posts, 2.3.2 (SMF 1.1-1.1.20, 2.0-2.0.9)
Post by: davidhs on May 23, 2015, 12:47:10 PM
Compatible with SMF 1.1.21 and 2.0.10.
Title: Re: Content of the latest posts
Post by: davidhs on October 01, 2015, 04:30:47 PM
Compatible with SMF 2.0.11.
Title: Re: Content of the latest posts
Post by: Goten22 on March 27, 2016, 04:07:18 PM
Wonderful job!
Is there any way to limit showed topics to specific prefix? So just opposite form the option "Posts without subject prefix Separate prefixes by commas. Example: "Re:,RE:"."

So for example I have 3 topics:
"asdasd"
"asdasd 2313"
"prefix: asdasd"
And only last is showed?
Title: Re: Content of the latest posts
Post by: davidhs on March 27, 2016, 04:43:39 PM
Quote from: Goten22 on March 27, 2016, 04:07:18 PM
Is there any way to limit showed topics to specific prefix? So just opposite form the option "Posts without subject prefix Separate prefixes by commas. Example: "Re:,RE:"."

So for example I have 3 topics:
"asdasd"
"asdasd 2313"
"prefix: asdasd"
And only last is showed?
This is not possible, sorry :(

A good idea for next update 8)
Title: Re: Content of the latest posts
Post by: skb on August 11, 2016, 05:31:47 AM
I liked the Mod and installed it, with manual changes in who.php as recommended during installation.
I wanted to use for Index of Topics as the above poster, but I think the Mod is having some conflicts with TinyPortal that I have installed. The Recent Posts block on the right disappears with the message that  the database is missing. So I have uninstalled it for the time being.
Title: Re: Content of the latest posts
Post by: davidhs on August 15, 2016, 01:19:53 PM
Quote from: skb on August 11, 2016, 05:31:47 AM
I liked the Mod and installed it, with manual changes in who.php as recommended during installation.
I wanted to use for Index of Topics as the above poster, but I think the Mod is having some conflicts with TinyPortal that I have installed. The Recent Posts block on the right disappears with the message that  the database is missing. So I have uninstalled it for the time being.
Portal and my mod works, but posts displayed at center of portal are "cut" with 300 characters, and if BBC of my mod is cut, it do not work.

You can write other number bigger, for example 500, in TinyPortal Admin > Settings & Frontpage > Frontpage and Number of characters to display per forum-post at bottom of page.
Title: Re: Content of the latest posts
Post by: davidhs on October 12, 2016, 01:56:34 PM
Compatible with SMF 2.0.12
Title: Re: Content of the latest posts
Post by: davidhs on January 12, 2017, 04:16:16 PM
Compatible with SMF 2.0.13.
Title: Re: Content of the latest posts
Post by: davidhs on November 25, 2017, 12:47:50 PM
Compatible with SMF 2.0.14 and 2.0.15.
Title: Re: Content of the latest posts
Post by: davidhs on June 28, 2018, 11:59:28 AM
Quote from: davidhs on March 27, 2016, 04:43:39 PM
Quote from: Goten22 on March 27, 2016, 04:07:18 PM
Is there any way to limit showed topics to specific prefix? So just opposite form the option "Posts without subject prefix Separate prefixes by commas. Example: "Re:,RE:"."

So for example I have 3 topics:
"asdasd"
"asdasd 2313"
"prefix: asdasd"
And only last is showed?
This is not possible, sorry :(

A good idea for next update 8)
Done!




New version:
2.4     2018-06-27
------------------
+ Installation code to the configuration variables from versions 2.3 to 2.4.
+ SMF 2.1.x: Uninstallation code to the configuration variables.
+ Field in administration panel to indicate if show icon.
+ Fields in administration panel to indicate a different format when the content is displayed.
+ Field in administration panel to indicate if are consulted posts with subject prefix.
* If the results are grouped by first character of subject, always is displayed the navigation bar with characters, whether or not there be content.
+ SMF compatibility: 1.1.21, 2.0.10-2.0.15 and 2.1 Beta 3.
- SMF 2.0.x: Languages: spanish, spanish-utf8 (these are not used).
Title: Re: Content of the latest posts
Post by: davidhs on December 27, 2018, 03:30:43 PM
New version:
2.5     2018-12-27
------------------
! Error in source code.
! SMF 1.1.x: Theme of the generic form of displaying lists.
* In Administration panel, the default values and the predefined lists are split.
+ Actions of Administration panel are logged to Administration log.
@ Administration log does not exists in SMF 1.1.x.
! SMF 2.1.x: Languages: Only UTF-8 languages are used.
Title: Re: Content of the latest posts
Post by: davidhs on May 12, 2019, 05:22:05 PM
New version:
2.5.1   2019-05-11
------------------
! SMF 2.1.x: Use HTML 5.
! SMF 2.x: The Quick Search of the Administration Center look for in settings variables of MOD.
+ SMF compatibility: 2.1 RC1 to RC2.
Title: Re: Content of the latest posts
Post by: davidhs on March 06, 2020, 09:54:48 AM
Compatible with SMF 2.0.16 and 2.0.17.
Title: Re: Content of the latest posts
Post by: davidhs on February 25, 2021, 04:45:22 PM
New version:
2.5.2   2021-02-25
------------------
! If the text of header begins with "https://" is also supposed to be the URL of an image.
! Attachment search.
! 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 compatibility: 2.0.16-2.0.18 and 2.1 RC3.