Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: davidhs on April 30, 2013, 03:31:55 AM

Title: Compile content of post
Post by: davidhs on April 30, 2013, 03:31:55 AM
Link to Mod (https://custom.simplemachines.org/mods/index.php?mod=3684)

Compile content of post

ABOUT...

Compile content of post, 2.2.2
© 2013-2021 by davidhs

(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

This MOD allows compile information from content of post (links and images) and show it at the beginning and/or at the end of same post. Can be define any number of compilations throw several parameters:

(https://lh3.googleusercontent.com/O4XuZG-gwl_piiX0rOm5UMA8SCH-x4_tXcuQto3rlQJaSD1nd4t38vBZua23YsdK9hC7XRSXGIKhb_CAL6vhmdXo5Rd_A_GYnKJHZAD8oKPTMDMLpa1ytYIOQTk8GN88VBXgdi6w3g=w2400)     (https://lh3.googleusercontent.com/CErLGuW597acKlHdaD2iA4xxSyeP9EXtjjf1kLvYyFL9q7KK47CWMK4UbeSOH4qiCiYeYXi-kf8tkyfIpOz-gH4u2TsLVZOadA4rUJHJ8IC-uAh81gGICYFzGHRXemxnIZflnZcZ5w=w2400)

EXAMPLE

QuoteContent:
[b]{TYPE}[/b]
[quote]{CONTENT}[/quote]
[hr]

Type of compilation: All (links, eLinks and images)
Show as: In post (links, eLinks or images)
Position: Before post


Content:
[hr]
[b]{TYPE}[/b]
[code]{CONTENT}[/code]

Type of compilation: All (links, eLinks and images)
Show as: Text to copy
Position: After post

(https://lh3.googleusercontent.com/k55_ysoWz5ftnEKRBI3oFPCt7Ke2ehnihjZzzoQPVUTUe3mrUF_FSzgbdpMfkihWXSyN5RPKzDtSWXs_EhqKvOeQrrKJVGyAiHIX0BSeKMDjBqXDIRa3lpvEPhTAsjsghbDWbl2W4g=w2400)

SMF COMPATIBILITY


LANGUAGES


DOWNLOAD

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

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.2.2   2021-02-23
------------------
! 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.2.1   2019-05-02
------------------
! SMF 2.1.x: logAction is a deprecated function. Instead, logActions is used.
! SMF 2.1.x: Search pattern of links.
! SMF 2.x: The Quick Search of the Administration Center look for in settings variables of MOD.
! Use HTML entities in ISO-8859-1 languages.
+ SMF compatibility: 2.1 RC1 to RC2.

2.2     2018-08-17
------------------
! Error in source code.
! SMF 1.1.x: Theme of the generic form of displaying lists.
+ Upgrade code to the configuration variables from version 2.0-2.1.x to 2.2.
+ SMF 2.1.x: Uninstallation code to the configuration variables.
+ Field to indicate if a compilation is active.
+ Actions of Administration panel are logged to Administration log.
@ Administration log does not exists in SMF 1.1.x.
+ SMF compatibility: 1.1.21, 2.0.10 to 2.0.15 and 2.1 Beta 3.
- SMF 2.0.x: Languages: spanish, spanish-utf8 (these are not used).

2.1.3   2014-10-06
------------------
+ 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.1.2   2014-06-23
------------------
! 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.1.1   2014-01-25
------------------
+ SMF compatibility: 2.0.7.

2.1     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.
+ Variable in content of compilation to insert URL to forum folder.
* Reorganization of the fields in the administration panel.

2.0.1   2013-10-31
------------------
! There was a PHP error when the list of compilations was empty.
+ SMF compatibility: 1.1.19 and 2.0.6.

2.0     2013-10-19
------------------
@ Not work after quick modification of post.
! SMF 2.0.x: Integration hooks functions parameters must be passed by reference.
+ Upgrade code to the configuration variables from version 1.0 to 2.0.
* Allows to create any number of compilations in the administration panel.
+ Variable in content of compilation to insert web address of forum.
+ Variable in content of compilation to insert url to the images folder in the users current theme.
+ Variable in content of compilation to insert url to the images folder in the default theme.
+ SMF compatibility: 2.0.5.

1.0     2013-04-28
------------------
@ This work is licensed under a Creative Commons Attribution 3.0 Unported License https://creativecommons.org/licenses/by/3.0/
+ 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: Compile content of post, 1.0 (SMF 1.1-1.1.18, 2.0-2.0.4)
Post by: Arantor on April 30, 2013, 09:46:49 AM
Interesting idea.
Title: Re: Compile content of post, 2.0 (SMF 1.1-1.1.18, 2.0-2.0.5)
Post by: davidhs on October 18, 2013, 06:43:44 PM
New version:
2.0     2013-10-19
------------------
@ Not work after quick modification of post.
! SMF 2.0.x: Integration hooks functions parameters must be passed by reference.
+ Upgrade code to the configuration variables from version 1.x to 2.0.
* Allows to create any number of compilations in the administration panel.
+ Variable in content of compilation to insert web address of forum.
+ Variable in content of compilation to insert url to the images folder in the users current theme.
+ Variable in content of compilation to insert url to the images folder in the default theme.
+ SMF compatibility: 2.0.5.
Title: Re: Compile content of post, 2.0.1 (SMF 1.1-1.1.19, 2.0-2.0.6)
Post by: davidhs on October 31, 2013, 04:50:43 PM
New version:
2.0.1   2013-10-31
------------------
! There was a PHP error when the list of compilations was empty.
+ SMF compatibility: 1.1.19 and 2.0.6.
Title: Re: Compile content of post, 2.1 (SMF 1.1-1.1.19, 2.0-2.0.6)
Post by: davidhs on December 21, 2013, 05:36:29 PM
New version:
2.1     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.
+ Variable in content of compilation to insert URL to forum folder.
* Reorganization of the fields in the administration panel.
Title: Re: Compile content of post, 2.1.1 (SMF 1.1-1.1.19, 2.0-2.0.7)
Post by: davidhs on January 25, 2014, 11:15:21 AM
New version:
2.1.1   2014-01-25
------------------
+ SMF compatibility: 2.0.7.
Title: Re: Compile content of post, 2.1.2 (SMF 1.1-1.1.19, 2.0-2.0.8)
Post by: davidhs on June 27, 2014, 08:20:16 AM
New version:
2.1.2   2014-06-23
------------------
! 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: Compile content of post, 2.1.3 (SMF 1.1-1.1.20, 2.0-2.0.9)
Post by: davidhs on October 07, 2014, 08:13:04 AM
New version:
2.1.3   2014-10-06
------------------
+ 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: Compile content of post, 2.1.3 (SMF 1.1-1.1.20, 2.0-2.0.9)
Post by: davidhs on May 23, 2015, 12:37:35 PM
To moderators: Text to move to first post
QuoteSubject:
QuoteCompile content of post, 2.1.3 (SMF 1.1-1.1.21, 2.0-2.0.10)
Body:
Quote
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=3684)




Compile content of post

ABOUT...

Compile content of post, 2.1.3
© 2013-2015 by davidhs

(http://i.creativecommons.org/l/by/3.0/88x31.png) (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

This MOD allows compile information from content of post (links and images) and show it at the beginning and/or at the end of same post. Can be define any number of compilations throw several parameters:

  • Content: BBC used to show compilation. Can be used the following variables:

    • {CONTENT} - Text of compilation.
    • {TYPE} - Type of compilation.
    • {BOARDURL} - URL to forum folder.
    • {SCRIPTURL} - Web address of forum.
    • {IMAGES_URL} - URL to images folder in the users current theme.
    • {DEFAULT_IMAGES_URL} - URL to the images folder in the default theme.
  • Type of compilation: Can be shown all (links, eLinks and images, the default), links, or images eLinks which contains the post.
  • Show as: The compilation is shown as in post (links, eLinks or images; the default option) or as text to copy.
  • Position: The compilation is shown before and after post (the default option), before post or after post.
  • Boards: Posts where show the compilation may belong any board (except board of deleted posts; the default option), a single board or several boards.
  • Child boards: Indicates if the compilation is shown in posts of child boards and until level. Default is not shown.

(https://googledrive.com/host/0B7M1e_-FeoeEeFJxaEFuaWZvV3c/ccop_settings_show.png)     (https://googledrive.com/host/0B7M1e_-FeoeEeFJxaEFuaWZvV3c/ccop_settings_edit.png)

EXAMPLE

QuoteContent:
[b]{TYPE}[/b]
[quote]{CONTENT}[/quote]
[hr]

Type of compilation: All (links, eLinks and images)
Show as: In post (links, eLinks or images)
Position: Before post


Content:
[hr]
[b]{TYPE}[/b]
[code]{CONTENT}[/code]

Type of compilation: All (links, eLinks and images)
Show as: Text to copy
Position: After post

(https://googledrive.com/host/0B7M1e_-FeoeEeFJxaEFuaWZvV3c/ccop_example.png)

SMF COMPATIBILITY


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

LANGUAGES


  • english, english_british.
  • 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=3684)

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=502835.0
In Spanish: http://www.simplemachines.org/community/index.php?topic=502254.0

CHANGE LOG

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

2.1.3   2014-10-06
------------------
+ 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.1.2   2014-06-23
------------------
! 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.1.1   2014-01-25
------------------
+ SMF compatibility: 2.0.7.

2.1     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.
+ Variable in content of compilation to insert URL to forum folder.
* Reorganization of the fields in the administration panel.

2.0.1   2013-10-31
------------------
! There was a PHP error when the list of compilations was empty.
+ SMF compatibility: 1.1.19 and 2.0.6.

2.0     2013-10-19
------------------
@ Not work after quick modification of post.
! SMF 2.0.x: Integration hooks functions parameters must be passed by reference.
+ Upgrade code to the configuration variables from version 1.x to 2.0.
* Allows to create any number of compilations in the administration panel.
+ Variable in content of compilation to insert web address of forum.
+ Variable in content of compilation to insert url to the images folder in the users current theme.
+ Variable in content of compilation to insert url to the images folder in the default theme.
+ SMF compatibility: 2.0.5.

1.0     2013-04-28
------------------
@ This work is licensed under a Creative Commons Attribution 3.0 Unported License http://creativecommons.org/licenses/by/3.0/
+ 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: Compile content of post
Post by: davidhs on October 01, 2015, 04:39:42 PM
Compatible with SMF 2.0.11.
Title: Re: Compile content of post
Post by: davidhs on October 12, 2016, 01:12:03 PM
Compatible with SMF 2.0.12.
Title: Re: Compile content of post
Post by: davidhs on January 12, 2017, 04:21:27 PM
Compatible with SMF 2.0.13.
Title: Re: Compile content of post
Post by: davidhs on November 25, 2017, 12:56:14 PM
Compatible with 2.0.14 and 2.0.15.
Title: Re: Compile content of post
Post by: davidhs on August 18, 2018, 07:06:40 AM
New version:
2.2     2018-08-17
------------------
! Error in source code.
! SMF 1.1.x: Theme of the generic form of displaying lists.
+ Upgrade code to the configuration variables from version 2.0-2.1.x to 2.2.
+ SMF 2.1.x: Uninstallation code to the configuration variables.
+ Field to indicate if a compilation is active.
+ Actions of Administration panel are logged to Administration log.
@ Administration log does not exists in SMF 1.1.x.
+ SMF compatibility: 1.1.21, 2.0.10 to 2.0.15 and 2.1 Beta 3.
- SMF 2.0.x: Languages: spanish, spanish-utf8 (these are not used).
Title: Re: Compile content of post
Post by: davidhs on May 10, 2019, 09:27:10 AM
New version:
2.2.1   2019-05-02
------------------
! SMF 2.1.x: logAction is a deprecated function. Instead, logActions is used.
! SMF 2.1.x: Search pattern of links.
! SMF 2.x: The Quick Search of the Administration Center look for in settings variables of MOD.
! Use HTML entities in ISO-8859-1 languages.
+ SMF compatibility: 2.1 RC1 to RC2.
Title: Re: Compile content of post
Post by: davidhs on March 06, 2020, 09:20:19 AM
Compatible with SMF 2.0.16 and 2.0.17.
Title: Re: Compile content of post
Post by: davidhs on February 23, 2021, 02:30:27 PM
New version:
2.2.2   2021-02-23
------------------
! 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.