Advertisement:

Author Topic: Compile content of post  (Read 12515 times)

Offline davidhs

  • Sophist Member
  • *****
  • Posts: 1,088
  • Gender: Male
Compile content of post
« on: April 30, 2013, 03:31:55 AM »
Link to Mod

Compile content of post

ABOUT...

Compile content of post, 2.2.1
© 2013-2020 by davidhs


This work is licensed under a Creative Commons Attribution 3.0 Unported License.

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.
  • Active: Indicates if a compilation is active. By default active.

    

EXAMPLE

Quote
Content:
[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


SMF COMPATIBILITY

  • SMF 1.1 to 1.1.21.
  • SMF 2.0 to 2.0.17.
  • SMF 2.1 Beta 3 and RC1 to RC2.

LANGUAGES

  • english, english_british.
  • spanish (SMF 1.1.x), spanish_es, spanish_latin.

DOWNLOAD

Link to MOD

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.

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

CHANGE LOG

Code: [Select]
Legend:   ! Fixed   + Added   - Removed   * Changed   @ Note

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.
« Last Edit: May 24, 2015, 06:56:15 AM by Illori »

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,980
    • StoryBB/StoryBB on GitHub
Re: Compile content of post, 1.0 (SMF 1.1-1.1.18, 2.0-2.0.4)
« Reply #1 on: April 30, 2013, 09:46:49 AM »
Interesting idea.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline davidhs

  • Sophist Member
  • *****
  • Posts: 1,088
  • Gender: Male
Re: Compile content of post, 2.0 (SMF 1.1-1.1.18, 2.0-2.0.5)
« Reply #2 on: October 18, 2013, 06:43:44 PM »
New version:
Code: [Select]
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.
« Last Edit: October 19, 2013, 12:26:49 PM by davidhs »

Offline davidhs

  • Sophist Member
  • *****
  • Posts: 1,088
  • Gender: Male
Re: Compile content of post, 2.0.1 (SMF 1.1-1.1.19, 2.0-2.0.6)
« Reply #3 on: October 31, 2013, 04:50:43 PM »
New version:
Code: [Select]
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.

Offline davidhs

  • Sophist Member
  • *****
  • Posts: 1,088
  • Gender: Male
Re: Compile content of post, 2.1 (SMF 1.1-1.1.19, 2.0-2.0.6)
« Reply #4 on: December 21, 2013, 05:36:29 PM »
New version:
Code: [Select]
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.

Offline davidhs

  • Sophist Member
  • *****
  • Posts: 1,088
  • Gender: Male
Re: Compile content of post, 2.1.1 (SMF 1.1-1.1.19, 2.0-2.0.7)
« Reply #5 on: January 25, 2014, 11:15:21 AM »
New version:
Code: [Select]
2.1.1   2014-01-25
------------------
+ SMF compatibility: 2.0.7.

Offline davidhs

  • Sophist Member
  • *****
  • Posts: 1,088
  • Gender: Male
Re: Compile content of post, 2.1.2 (SMF 1.1-1.1.19, 2.0-2.0.8)
« Reply #6 on: June 27, 2014, 08:20:16 AM »
New version:
Code: [Select]
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.

Offline davidhs

  • Sophist Member
  • *****
  • Posts: 1,088
  • Gender: Male
Re: Compile content of post, 2.1.3 (SMF 1.1-1.1.20, 2.0-2.0.9)
« Reply #7 on: October 07, 2014, 08:13:04 AM »
New version:
Code: [Select]
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.

Offline davidhs

  • Sophist Member
  • *****
  • Posts: 1,088
  • Gender: Male
Re: Compile content of post, 2.1.3 (SMF 1.1-1.1.20, 2.0-2.0.9)
« Reply #8 on: May 23, 2015, 12:37:35 PM »
To moderators: Text to move to first post
Quote
Subject:
Quote
Compile content of post, 2.1.3 (SMF 1.1-1.1.21, 2.0-2.0.10)
Body:
Quote
Link to Mod



Compile content of post

ABOUT...

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


This work is licensed under a Creative Commons Attribution 3.0 Unported License.

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.

     

EXAMPLE

Quote
Content:
[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


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

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

Code: [Select]
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.

Offline davidhs

  • Sophist Member
  • *****
  • Posts: 1,088
  • Gender: Male
Re: Compile content of post
« Reply #9 on: October 01, 2015, 04:39:42 PM »
Compatible with SMF 2.0.11.

Offline davidhs

  • Sophist Member
  • *****
  • Posts: 1,088
  • Gender: Male
Re: Compile content of post
« Reply #10 on: October 12, 2016, 01:12:03 PM »
Compatible with SMF 2.0.12.

Offline davidhs

  • Sophist Member
  • *****
  • Posts: 1,088
  • Gender: Male
Re: Compile content of post
« Reply #11 on: January 12, 2017, 04:21:27 PM »
Compatible with SMF 2.0.13.

Offline davidhs

  • Sophist Member
  • *****
  • Posts: 1,088
  • Gender: Male
Re: Compile content of post
« Reply #12 on: November 25, 2017, 12:56:14 PM »
Compatible with 2.0.14 and 2.0.15.

Offline davidhs

  • Sophist Member
  • *****
  • Posts: 1,088
  • Gender: Male
Re: Compile content of post
« Reply #13 on: August 18, 2018, 07:06:40 AM »
New version:
Code: [Select]
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).

Offline davidhs

  • Sophist Member
  • *****
  • Posts: 1,088
  • Gender: Male
Re: Compile content of post
« Reply #14 on: May 10, 2019, 09:27:10 AM »
New version:
Code: [Select]
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.

Offline davidhs

  • Sophist Member
  • *****
  • Posts: 1,088
  • Gender: Male
Re: Compile content of post
« Reply #15 on: March 06, 2020, 09:20:19 AM »
Compatible with SMF 2.0.16 and 2.0.17.