phpBB Smartfeed

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in the Customisations Database.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTICE: This forum is only for the announcement of new releases and/or updates of MODs. Any MOD support should be obtained through the Customisations Database in the support area designated for each MOD.

A direct link to support for each MOD is in the first post of the respective topic.

Re: phpBB Smartfeed

Postby MarkDHamill » Wed Nov 25, 2009 1:44 am

The problem must be related to being logged in. Unfortunately, I cannot seem to create an account so I cannot troubleshoot it. Others have had problems like this in the past. It has always been something subtle in the integration between HTML and Javascript, usually a Javascript syntax error, or some object that was expected not appearing.
Get the latest versions of my Digests and Smartfeed mods.
Need a phpBB services or a phpBB consultant? I offer limited phpBB services.
MarkDHamill
Registered User
 
Posts: 2371
Joined: Fri Aug 02, 2002 12:36 am
Location: Oak Hill, Virginia USA

Garbled install.xml file in 2.2.15 archive

Postby MarkDHamill » Wed Nov 25, 2009 8:29 pm

I accidentally created a garbled install.xml file for version 2.2.15 of phpBB Smartfeed. I think it happened as a result of accidentally pressing a key that reindented the code in Dreamweaver. I have repacked the archive. Meanwhile, here is a better copy.

Code: Select all
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<?xml-stylesheet type="text/xsl" href="modx.prosilver.en.xsl"?>
<!--For security purposes, please check: http
://www.phpbb.com/mods/ for the latest version of this MOD. Although MODs are checked before being allowed in the MODs Database there is no guarantee that there are no security problems within the MOD. No support will be given for MODs not found within the MODs Database which can be found at http://www.phpbb.com/mods/-->
<mod xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.phpbb.com/mods/xml/modx-1.2.3.xsd">
  <header>
    <license>http://opensource.org/licenses/gpl-license.php GNU General Public License v2</license>
    <title lang="en">phpBB Smartfeed</title>
    <description lang="en">Provides RSS 1.0, RSS 2.0, Atom 1.0 customized newsfeeds. Users select forums they want, including protected forums if they can access them.</description>
    <author-notes lang="en">Differences in functionality with phpBB Smartfeed for phpBB 2.x:
     
      1. Cookie logic has been removed
      2. RSS 0.91 support has been dropped
      3. No refresh from browser cache (HTTP 304 error) logic
      4. No advertising interface is supported at this time
     
      Rather than reinvent the wheel, this mod uses the FeedCreator PHP class originally written by Kai Blankenhorn, but extended by Scott Reynen and Dirk Clemen,
      with on the fly feed code added by Fabian Wolf and ATOM 1.0. Changes can be indentified by looking for lines with "Mark D. Hamill" in them. See
      http://feedcreator.org/.
     
      A big thanks to phpBB forum user -=ET=- for giving me a draft of a Administrator Control Panel interface and for revising smartfeed_url.php for better
      organization. As a result Smartfeed is much more usable.
     
      This has been tested, but not extensively, by validating reasonably complex feeds for RSS 1.0, RSS 2.0 and ATOM 1.0 at http://validator.w3.org/feed/ in HTML Safe mode.
     
      It has been tested on a MySQL 4.1 and 5.0 environments only but should be DBAL compliant.
     
      To try it out, after installation click on the Smartfeed icon that should now appear on the header of each page of your board or invoke smartfeed_url.php.
      After pressing Generate URL, copy and paste the resulting complex URL into your newsreader. The whole URL may not show in the field, so make sure you have
      copied the whole field. An easy way to copy it in Windows is to select or click on the field (which should select all text), then press CTRL-C. Run your
      newsreader using the copied URL and enjoy the results.
     
      Suggested readers:
     
      Feedreader (http://www.feedreader.com)
      Sage for Firefox: http://sage.mozdev.org/
      Google Reader: http://reader.google.com</author-notes>
    <author-group>
      <author>
        <realname>Mark D Hamill</realname>
        <username>MarkDHamill</username>
        <email>mark@phpbbservices.com</email>
        <homepage>http://phpbbservices.com/smartfeed/</homepage>
      </author>
    </author-group>
    <link-group>
      <link type="contrib" href="./contrib/upgrade/smartfeed_2.1.0_to_2.2.2.xml" lang="en">Smartfeed 2.1.0 to 2.2.2 Upgrade Instructions</link>
      <link type="contrib" href="./contrib/upgrade/smartfeed_2.2.2_to_2.2.3.xml" lang="en">Smartfeed 2.2.2 to 2.2.3 Upgrade Instructions</link>
      <link type="contrib" href="./contrib/upgrade/smartfeed_2.2.3_to_2.2.4.xml" lang="en">Smartfeed 2.2.3 to 2.2.4 Upgrade Instructions</link>
      <link type="contrib" href="./contrib/upgrade/smartfeed_2.2.4_to_2.2.5.xml" lang="en">Smartfeed 2.2.4 to 2.2.5 Upgrade Instructions</link>
      <link type="contrib" href="./contrib/upgrade/smartfeed_2.2.5_to_2.2.6.xml" lang="en">Smartfeed 2.2.5 to 2.2.6 Upgrade Instructions</link>
      <link type="contrib" href="./contrib/upgrade/smartfeed_2.2.6_to_2.2.7.xml" lang="en">Smartfeed 2.2.6 to 2.2.7 Upgrade Instructions</link>
      <link type="contrib" href="./contrib/upgrade/smartfeed_2.2.7_to_2.2.8.xml" lang="en">Smartfeed 2.2.7 to 2.2.8 Upgrade Instructions</link>
      <link type="contrib" href="./contrib/upgrade/smartfeed_2.2.8_to_2.2.9.xml" lang="en">Smartfeed 2.2.8 to 2.2.9 Upgrade Instructions</link>
      <link type="contrib" href="./contrib/upgrade/smartfeed_2.2.9_to_2.2.10.xml" lang="en">Smartfeed 2.2.9 to 2.2.10 Upgrade Instructions</link>
      <link type="contrib" href="./contrib/upgrade/smartfeed_2.2.10_to_2.2.11.xml" lang="en">Smartfeed 2.2.10 to 2.2.11 Upgrade Instructions</link>
      <link type="contrib" href="./contrib/upgrade/smartfeed_2.2.11_to_2.2.12.xml" lang="en">Smartfeed 2.2.11 to 2.2.12 Upgrade Instructions</link>
      <link type="contrib" href="./contrib/upgrade/smartfeed_2.2.12_to_2.2.13.xml" lang="en">Smartfeed 2.2.12 to 2.2.13 Upgrade Instructions</link>
      <link type="contrib" href="./contrib/upgrade/smartfeed_2.2.13_to_2.2.14.xml" lang="en">Smartfeed 2.2.13 to 2.2.14 Upgrade Instructions</link>
      <link type="contrib" href="./contrib/upgrade/smartfeed_2.2.14_to_2.2.15.xml" lang="en">Smartfeed 2.2.14 to 2.2.15 Upgrade Instructions</link>
      <link type="language" href="./br.xml" lang="en">Bulgarian Language Installation Instructions</link>
      <link type="language" href="./es.xml" lang="en">Spanish Language Installation Instructions</link>
      <link type="language" href="./fr.xml" lang="en">French Language Installation Instructions</link>
      <link type="language" href="./de.xml" lang="en">German Language Installation Instructions</link>
      <link type="template" href="./subsilver2.xml" lang="en">subsilver2 Template Installation Instructions</link>
    </link-group>
    <mod-version>2.2.15</mod-version>
    <installation>
      <level>intermediate</level>
      <time>900</time>
      <target-version>3.0.6</target-version>
    </installation>
    <history>
      <entry>
        <date>2008-01-12</date>
        <rev-version>2.0.1</rev-version>
        <changelog lang="en">
          <change>This is the first Alpha version for public testing. Originally identified as 2.0.0 Alpha Version 1.</change>
        </changelog>
      </entry>
      <entry>
        <date>2008-02-01</date>
        <rev-version>2.0.2</rev-version>
        <changelog lang="en">
          <change>Originally identified as 2.0.0 Alpha Version 2.</change>
          <change>Optionally cuts off any post that exceeds X characters.</change>
          <change>Announcements show in feed automatically if they were posted after the requested begin date of feed. Since they are now automatic, the interface in smartfeed_url.php has been removed.</change>
          <change>Added a feed_style attribute: HTML (default), BASIC or COMPACT. See smartfeed_url.php for details.</change>
          <change>Optionally omits posts unless they contain at least Y characters.</change>
          <change>mcrypt is no longer needed for authentication. Instead the PHP Secure Communications Library is bundled into the mod. It will call mcrypt if available, otherwise it will use PHP functions that do the same thing, which is slower. This also means the annoying mcrypt message no longer appears. Note: I was unable to test this functionality since mcrypt is installed on my test machine, but it should work.</change>
          <change>Allows longer range of times for items in the feed. Can select 2 weeks, 1 month or 1 quarter for very slow boards.</change>
          <change>phpBB censor_text() function used where appropriate.</change>
          <change>Fixed bug in FeedCreator class so post would report the post time in the user's timezone (based on their phpBB profile).</change>
          <change>Fixed bookmarked topics bug.</change>
        </changelog>
      </entry>
      <entry>
        <date>2008-02-17</date>
        <rev-version>2.0.1</rev-version>
        <changelog lang="en">
          <change>This is the first beta version of phpBB Smartfeed 2.0. It can be used with caution on a live board.</change>
          <change>If Apache authentication is detected, will show an error message when trying to access smartfeed_url.php. This is because by default a .htaccess file will try to restrict all unauthenticated users. To remove this message, first fix your .htaccess file to allow smartfeed.php to have unimpeded access to your phpBB root directory. Then change the constant SMARTFEED_APACHE_HTACCESS_ENABLED to true.</change>
          <change>If LDAP authentication is detected, only public forums can be accessed with Smartfeed. This is because there is no way to get the password for a user from a LDAP directory, thus making it impossible to create an authentication parameter. An appropriate warning is displayed by smartfeed_url.php.</change>
          <change>Private messages are now supported.</change>
          <change>Global announcements are now supported.</change>
          <change>subsilver2 style is now supported.</change>
          <change>MODX is now supported.</change>
        </changelog>
      </entry>
      <entry>
        <date>2008-03-06</date>
        <rev-version>2.0.2</rev-version>
        <changelog lang="en">
          <change>This is a beta version of phpBB Smartfeed 2.0. It can be used with caution on a live board.</change>
          <change>This version contains code clean up and optimizations. Lots of code changes, but little new functionality except as shown below.</change>
          <change>Private message comments link now included in feed.</change>
          <change>Private messages in the feed are now marked as read.</change>
          <change>Better null user_smartfeed_key support, which should work better with SQL Server.</change>
          <change>Performs a version check. Only administrators will see version messages. Version information shows near the bottom of smartfeed_url.php</change>
          <change>Both the prosilver and subsilver2 templates are now XHTML compliant with their respective schemas.</change>
          <change>User order no longer appears as an option if only allowed to see public forums.</change>
          <change>Removed unneeded encryption files for the PHP Secure Communications Library</change>
          <change>Now shows RSS before ATOM in overall_header.html</change>
        </changelog>
      </entry>
      <entry>
        <date>2008-03-14</date>
        <rev-version>2.0.3</rev-version>
        <changelog lang="en">
          <change>This is a beta version of phpBB Smartfeed 2.0. It can be used with caution on a live board.</change>
          <change>Fixed bug that showed that guests had an invalid access type.</change>
          <change>Fixed bug that did not properly remove sessions because $session->data was used when $user->data should have been used.</change>
          <change>Overwriting FEEDCREATOR_VERSION and TIME_ZONE constants in the Feedcreator class should not cause PHP notices.</change>
          <change>Removed the last of passing by reference code.</change>
          <change>Fixed bug to use $config['default_style'] not $config[default_style]</change>
          <change>Fixed bug in smartfeed_url.php where if there were no accessible forums for the board a database error would occur.</change>
          <change>Fixed bug in subsilver2 theme that showed text for styling in the wrong font size.</change>
        </changelog>
      </entry>
      <entry>
        <date>2008-03-28</date>
        <rev-version>2.0.1</rev-version>
        <changelog lang="en">
          <change>Added Safe HTML styling. If selected it will remove "unsafe" HTML tags. As a practical matter, it ruins styling. However, it does allow the feed to validate.</change>
          <change>Fixed bug where smilies were showing relative path to smilie image instead of absolute path.</change>
          <change>generate_board_url() now also used in smartfeed_url.php.</change>
          <change>Added a "Run the URL in this browser now" button. Allows for easier testing. Has the side effect of logging the user out of phpBB since smartfeed.php kills the existing session.</change>
          <change>To check version of Smartfeed the domain phpbbservices.com is now checked. phpbb.potomactavern.org is obsolete.</change>
          <change>Feedcreator class had every other line blank. This has been fixed.</change>
          <change>Modified code in rfc822 function in Feedcreator class. It was giving an invalid date.</change>
          <change>Fixed Javascript error for LDAP authentication in smartfeed_url_body.html</change>
          <change>Edits now requested to help_faq.php. This makes it consistent with Smartfeed for phpBB 2.</change>
        </changelog>
      </entry>
      <entry>
        <date>2008-03-30</date>
        <rev-version>2.0.2</rev-version>
        <changelog lang="en">
          <change>Changed instances of .php to $phpEx in smartfeed_url.php and smartfeed.php</change>
          <change>Added code at start of feedcreator.class.php, DES.php and TripleDES.php to exit if the IN_PHPBB constant is not defined.</change>
          <change>PHP Notices are now turned off in both smartfeed.php and smartfeed_url.php. Since Smartfeed uses 3rd party classes, without extensive hacking of these classes there is no way to keep these notices from showing if PHP is configured to show them by default.</change>
        </changelog>
      </entry>
      <entry>
        <date>2008-04-12</date>
        <rev-version>2.0.3</rev-version>
        <changelog lang="en">
          <change>There are a ton of code changes in this version but very little in the way of new functionality. Changes were made based on feedback from the phpBB Mod Team. As a result this version is much more standards compliant, language independent, decoupled and the code size has been moderately shrunk.</change>
          <change>Constants moved into a separate file.</change>
          <change>Language variables (except for FAQ) moved into separate file.</change>
          <change>If you select "Run this URL in this browser now" in smartfeed_url.php, your phpBB session is no longer killed.</change>
          <change>The program smartfeed_url.php creates a clean smartfeed key. Before it was possible to generate a key which when translated into the e parameter could be parsed into two URL parameters.</change>
          <change>Certain hardcoded URL parameter values are now language independent.</change>
          <change>Fixed notices in DES.php (thanks to Terrafrost, the author, for the changes.)</change>
        </changelog>
      </entry>
      <entry>
        <date>2008-04-26</date>
        <rev-version>2.0.4</rev-version>
        <changelog lang="en">
          <change>Multibyte character set for parameter fields allows for maximum language independence.</change>
          <change>User timezone logic removed. Added too much complication. All feed items will report time in GMT.</change>
          <change>SMARTFEED_SHOW_USERNAME_IN_FIRST_POST_TOPIC defaults to true. Also, this was used more than once in the constants file. Second occurrence removed.</change>
          <change>Forums of type TOPIC_LINK do not appear in the user interface or in the feed.</change>
        </changelog>
      </entry>
      <entry>
        <date>2008-05-25</date>
        <rev-version>2.1.0</rev-version>
        <changelog lang="en">
          <change>User interface redesigned. Thanks to -=ET=- for showing me how and providing a draft to edit.</change>
          <change>New Administrator Control Panel interface. Thanks to -=ET=- for showing me how and providing a draft to edit. You will find it on the General tab, under Board Configuration.</change>
          <change>Post retrieve time limits can be unlimited, although the Administrator may restrict the maximum time back from the present that posts can be retrieved.</change>
          <change>New Topics Only functionality has changed. New topics appear automatically for the given date range anyhow. Instead, use First posts of topics only.</change>
          <change>The administrator can set whether all forums are checked by default in the user interface.</change>
          <change>Maximum number of posts in the feed option can be specified by the user.</change>
          <change>Feed tests appear in new browser window.</change>
          <change>URL is blanked any time a change is made to a field in the user interface.</change>
          <change>Count limit functionality removed. Previously this appeared on when sort by post time descending was selected.</change>
          <change>No subsilver2 user interface this time around. It will probably be in next version.</change>
          <change>Masking to remove PHP notices removed. According to phpBB Mod Team, this is in common.php anyhow, so it is redundant.</change>
          <change>The file /includes/constants_smartfeed.php is no longer needed. All values are stored in the phpbb_config table.</change>
          <change>Addressed bugs by a review of the phpBB Mod Team.</change>
          <change>Addressed bugs reported in the phpBB development topic.</change>
        </changelog>
      </entry>
      <entry>
        <date>2008-06-06</date>
        <rev-version>2.1.1</rev-version>
        <changelog lang="en">
          <change>Fixed instructions, which inadvertently left out code changes needed to includes/acp/info/acp_board.php. Sorry about that.</change>
          <change>Fixed a number of PHP Notices.</change>
          <change>Fixed URL for newsfeed item link so it would correctly link to the referenced post.</change>
          <change>Changed " to &quot; and .php to $phpEx in /language/en/mods/smartfeed.php and where appropriate to /language/en/acp/acp_board.php. Thanks to Aaron Spettl for point out these errors.</change>
          <change>Changed Javascript in smartfeed_body.html so that the limit parameter could be used for public users and to add S_IF_GUEST logic around the private messages in feed control.</change>
          <change>subsilver2 template is back. See the templates folder.</change>
          <change>Code changes to /includes/functions.php no longer uses include statement, but $user->setup function.</change>
          <change>max_items parameter removed from overall_header.html.</change>
          <change>subsilver2 template is back. See the contrib/templates folder.</change>
          <change>Upgrade instructions (beginning with 2.1.0) added and can be found in the contrib/upgrade folder.</change>
          <change>German and French language translations are provided. See DIY section.</change>
        </changelog>
      </entry>
      <entry>
        <date>2008-07-06</date>
        <rev-version>2.2.0</rev-version>
        <changelog lang="en">
          <change>Other than the version number, there is NO CHANGE between this version and 2.1.1. This version was created because I was unable to upload version 2.1.1 to phpBB for Mod Team review because it expects even number versions to be production quality.</change>
        </changelog>
      </entry>
      <entry>
        <date>2008-07-06</date>
        <rev-version>2.2.1</rev-version>
        <changelog lang="en">
          <change>Other than the version number, there is NO CHANGE between this version and 2.1.1 and 2.2.0. This version was created to validate with the new mod template</change>
        </changelog>
      </entry>
      <entry>
        <date>2008-07-06</date>
        <rev-version>2.2.2</rev-version>
        <changelog lang="en">
          <change>Other than the version number, there is NO CHANGE between this version and 2.1.1, 2.2.0 and 2.2.1. This version was created to address changes to the .xml files requested by the phpBB Mod Team.</change>
          <change>All .xml files are now validated against the ModX 1.2.0 schema using a schema validator on w3.org.</change>
        </changelog>
      </entry>
      <entry>
        <date>2008-08-06</date>
        <rev-version>2.2.3</rev-version>
        <changelog lang="en">
          <change>ACP contains a new switch that will not kill Smartfeed sessions, if desired. In addition, administrator Smartfeed sessions are no longer killed. The assumption is that if an administrator is using Smartfeed, it is for testing purposes.</change>
          <change>When ACP Smartfeed changes are made, they are now properly logged.</change>
          <change>Certain items which were language variables are now constants, including URL parameter values. Parameter values that used to contain a space (ex: 1 MONTH) now use an underscore. Constants are in a new file called /includes/constants_smartfeed.php</change>
          <change>Fixed bug in remove foes logic.</change>
          <change>Tightened criteria for retrieving posts so only approved posts are shown in feed.</change>
          <change>Blank post replies are now handled better, avoiding the ugly :: :: for the item title that previously occurred.</change>
          <change>truncate_words now returns exactly the number of words requested, not one less than the number requested.</change>
          <change>Fixed version logic so if there is no 4th level of a Smartfeed version, it does not trigger a PHP Notify.</change>
          <change>At request of phpBB Mod Team, fixed language/en/mods/smartfeed.php to move sprintf logic.</change>
          <change>3 months returns 90 days, not 91 days.</change>
          <change>Fixed bug in Javascript in smartfeed_url_body.html that resulted in a badly formatted limit parameter when authentication is not used.</change>
        </changelog>
      </entry>
      <entry>
        <date>2008-10-09</date>
        <rev-version>2.2.4</rev-version>
        <changelog lang="en">
          <change>New program smartfeed_url_new_key.php. This is a program which allows a user to create a new Smartfeed key. It is called asynchronously using AJAX from smartfeed_url_body.html.</change>
          <change>Utilizing base64_decode_safe and base64_encode_safe provided by phpBB user klapray. He discovered in certain cases the "e" parameter in the URL string will not be encoded or decode correctly. Much thanks. This has been a tough bug to figure out! As a consequence of fixing this problem, your users may have to regenerate a URL using smartfeed_url.php. They should get an error notice to this effect in this case.</change>
          <change>smartfeed_url.php issues fewer SQL calls by gathering a list of parent forums before executing logic to show nested categories and forums.</change>
          <change>The functions check_word_size and check_word_size_min in smartfeed_url_body.html was fixed to do number comparisons instead of ASCII comparisons.</change>
          <change>Fixed category error for ATOM feeds in feedcreator.class.php. Fix provided by phpBB user klapray.</change>
          <change>Fixed date limit error in SQL for the case of SMARTFEED_NO_LIMIT smartfeed.php.</change>
          <change>Fixed PHP Notices for variables $user_permissions, $acl_options, $acl, $forum_read_ary, in smartfeed_url.php.</change>
          <change>Fixed PHP Notice in smartfeed.php for variable lastvisit.</change>
        </changelog>
      </entry>
      <entry>
        <date>2008-11-21</date>
        <rev-version>2.2.5</rev-version>
        <changelog lang="en">
          <change>Addressed a few issues, some serious, pointed out by Paul on the phpBB Mod Team.</change>
          <change>$_SERVER usage replaced with equivalent calls using PHP getenv function.</change>
          <change>There were a couple security issues with request_var logic that were fixed. In general parameter checking is now less complex.</change>
          <change>Language variable SMARTFEED_COUNT_LIMIT_FORMAT_ERROR removed. Language variable SMARTFEED_MIN_SIZE_EXPLAIN added. Clarified that the minimum words per post function may return what appears to be a wrong word count if BBCode is embedded in the message. A future version may fix this limitation.</change>
        </changelog>
      </entry>
      <entry>
        <date>2008-12-29</date>
        <rev-version>2.2.6</rev-version>
        <changelog lang="en">
          <change>LDAP users now have full access to all permitted forums.</change>
          <change>getenv function reverts to $_SERVER usage because getenv is not supported by IIS. When the user's IP is needed, $user->ip is now used.</change>
          <change>Figuring out which forums a user can access is now much less complex now that I have discovered acl_raw_data_single_user.</change>
          <change>truncate_words function now returns an accurate word count, minus HTML markup. The tradeoff is HTML is removed from posts if a post must be truncated after X words, since otherwise invalid HTML might get rendered.</change>
          <change>get_remote_file PHP function used to compare version numbers.</change>
          <change>A few small language file changes were made.</change>
        </changelog>
      </entry>
      <entry>
        <date>2009-02-24</date>
        <rev-version>2.2.7</rev-version>
        <changelog lang="en">
          <change>Forum parent permissions are checked to make sure they have appropriate list permissions for the user. If any parent of a forum does not have list permissions, the forum cannot be displayed or selected. This is a very unusual situation but occurred when I turned off category permissions on my board.</change>
          <change>smartfeed_url.php adds an additional warning that if you generate a new key, the old key is immediate invalidated.</change>
          <change>Fixed another instance in smartfeed.php where I used $_SERVER and should have used $user->ip. Thanks Mod Team!</change>
          <change>Instructions modified to show that atom10.gif file should be copied, not atom.gif. Also, to change the find text for JAB_USERNAME_EXPLAIN since it was updated with phpBB 3.0.4. Thanks Mod Team!</change>
        </changelog>
      </entry>
      <entry>
        <date>2009-04-23</date>
        <rev-version>2.2.8</rev-version>
        <changelog lang="en">
          <change>Removed $user->lang['SMARTFEED_APACHE_AUTHENTICATION_WARNING_ADMIN'] from language file. No longer needed.</change>
          <change>Parent table is only loaded once now in smartfeed_url.php</change>
          <change>Modified these instructions to use inline edits and to suggest refreshing themes and imagesets as suggested by the phpBB Mod team.</change>
          <change>Minor changes to smartfeed.php to use $user->page['query_string'], make the board disabled message appear sooner, combine two calls to the acl_options table into one call as suggested by the phpBB Mod team. Parent table is only loaded once now in check_all_parents function.</change>
          <change>Added some missing $db->sql_freeresults statements.</change>
          <change>phpBB Mod team suggested adding an installer, but this is too complex for me to tackle right now. It may show up in a future version.</change>
        </changelog>
      </entry>
      <entry>
        <date>2009-04-29</date>
        <rev-version>2.2.9</rev-version>
        <changelog lang="en">
          <change>Globally replaced require statements with file_exists() and include statements instead.</change>
          <change>Replaced $_SERVER['HTTP_REFERER'] with $user->referer in smartfeed.php.</change>
          <change>Replaced a die() and addslashes statements in feedcreator.class.php to bypass some MPV warnings. Such is the danger of integrating a third party class.</change>
          <change>Archive heirarchy reorganized to meet current recommendations.</change>
        </changelog>
      </entry>
      <entry>
        <date>2009-06-10</date>
        <rev-version>2.2.10</rev-version>
        <changelog lang="en">
          <change>More changes requested by the phpBB Mod Team.</change>
          <change>Properly indicated the type of license being used: The GNU General Public License (GPL) Version 2, June 1991.</change>
          <change>This file now shows a file_exists function before including /includes/constants_smartfeed.php.</change>
          <change>Where needed, SELECT SQL changed from ORDER BY 1 to ORDER BY column name ASC.</change>
          <change>In smartfeed_url.php, using $user->data['session_id'] vs. fetching the session from the database.</change>
          <change>In smartfeed_url.php, using $auth->acl_getf instead of fetching $read_id and $list_id from database.</change>
          <change>In smartfeed_url.php, documented the use of template flags like 'T' and 'F'. Unfortunately these are nested so deeply in the templates that using boolean template variables does not work with the phpBB templating system, which is why I am using character compares.</change>
          <change>In smartfeed_url.php, SQL shows &lt;&gt; vs !=.</change>
          <change>In language file, changed text for SMARTFEED_STYLE_COMPACT_EXPLAIN.</change>
        </changelog>
      </entry>
      <entry>
        <date>2009-07-17</date>
        <rev-version>2.2.11</rev-version>
        <changelog lang="en">
          <change>More changes requested by the phpBB Mod Team.</change>
          <change>Inconsistent licensing is now consistent.</change>
          <change>subsilver2 and other languages files moved inside root folder of archive.</change>
          <change>Removed issues causing PHP Notices.</change>
          <change>Boolean template switches now being used consistently.</change>
          <change>Many template variable names changed to follow phpBB Coding Standards. There were some inconsistencies.</change>
          <change>sprintf and other variable declarations removed from language file.</change>
          <change>TripleDES.php now properly includes DES.php. Was not noticed much before because most people have mcrypt compiled into PHP.</change>
        </changelog>
      </entry>
      <entry>
        <date>2009-07-24</date>
        <rev-version>2.2.12</rev-version>
        <changelog lang="en">
          <change>More changes requested by the phpBB Mod Team.</change>
          <change>Template changes to use ELSE where appropriate.</change>
          <change>Include logic now consistently looks for either an expected constant or a function existing and if it does not find it includes the file.</change>
          <change>Added missing case statements to handle_error function in smartfeed.php</change>
          <change>smartfeed_url.php now looks at the user's is_registered value to determine if they can access private forums.</change>
          <change>Removed unneed intval() function when updating phpbb_users table in smartfeed_url.php.</change>
        </changelog>
      </entry>
      <entry>
        <date>2009-07-24</date>
        <rev-version>2.2.13</rev-version>
        <changelog lang="en">
          <change>kill_session function in smartfeed.php revised to remove bugs.</change>
          <change>Added APACHE_AUTHENTICATION_WARNING_ADMIN language variable.</change>
          <change>Fixed a few indenting issues and prettied the code a bit.</change>
          <change>New updated German translation provided by Aaron Spettl. Thank you!</change>
        </changelog>
      </entry>
      <entry>
        <date>2009-09-17</date>
        <rev-version>2.2.14</rev-version>
        <changelog lang="en">
          <change>garbage_collection() function added to smartfeed.php. Some users were noticing that database connections were not being closed when smartfeed.php ended.</change>
          <change>$user->lang['DIGEST_MAX_WORDS_NOTIFIER'] fixed to be $user->lang['SMARTFEED_MAX_WORDS_NOTIFIER'] in smartfeed.php.</change>
          <change>You can now get a feed with private messages even if no forums are selected.</change>
          <change>Solved the "ugly URL" problem. smartfeed_url.php will no longer generate URLs with ?&amp; in the URL.</change>
          <change>Added parentheses to an isset function to the file changes in functions.php.</change>
          <change>DIY instructions provide guidance for making template changes if you are not using prosilver or subsilver2.</change>
          <change>Fixed encrypt function in smartfeed_new_key.php so it calls TripleDES.php. It was incorrectly called DES.php.</change>
          <change>Spanish translation courtesy of valaraukar.</change>
        </changelog>
      </entry>
      <entry>
        <date>2009-11-21</date>
        <rev-version>2.2.15</rev-version>
        <changelog lang="en">
          <change>phpBB 3.0.6 compliant. There was a conflict with 3.0.6 using L_FEED and U_FEED too. These were named L_SMARTFEED and U_SMARTFEED.</change>
        </changelog>
      </entry>
    </history>
  </header>
  <action-group>
    <sql dbms="mysql"><![CDATA[ALTER TABLE phpbb_users ADD user_smartfeed_key varchar(32) default NULL;
INSERT INTO phpbb_config (config_name, config_value) VALUES ('sf_all_by_default', true);
INSERT INTO phpbb_config (config_name, config_value) VALUES ('sf_apache_htaccess_enabled', false);
INSERT INTO phpbb_config (config_name, config_value) VALUES ('sf_atom_10_value', 'ATOM1.0');
INSERT INTO phpbb_config (config_name, config_value) VALUES ('sf_auto_advertise_public_feed', true);
INSERT INTO phpbb_config (config_name, config_value) VALUES ('sf_default_fetch_time_limit', (30 * 24));
INSERT INTO phpbb_config (config_name, config_value) VALUES ('sf_feed_image_path', 'imageset/site_logo.gif');
INSERT INTO phpbb_config (config_name, config_value) VALUES ('sf_max_items', 100);
INSERT INTO phpbb_config (config_name, config_value) VALUES ('sf_privacy_mode', true);
INSERT INTO phpbb_config (config_name, config_value) VALUES ('sf_public_feed_url_suffix_atom', 'feed_type=ATOM1.0&amp;limit=%s&amp;sort_by=%s&amp;feed_style=%s&amp');
INSERT INTO phpbb_config (config_name, config_value) VALUES ('sf_public_feed_url_suffix_rss', 'feed_type=RSS2.0&amp;limit=%s&amp;sort_by=%s&amp;feed_style=%s&amp');
INSERT INTO phpbb_config (config_name, config_value) VALUES ('sf_require_ip_authentication', false);
INSERT INTO phpbb_config (config_name, config_value) VALUES ('sf_rfc1766_lang', 'en-GB');
INSERT INTO phpbb_config (config_name, config_value) VALUES ('sf_rss_10_value', 'RSS1.0');
INSERT INTO phpbb_config (config_name, config_value) VALUES ('sf_rss_20_value', 'RSS2.0');
INSERT INTO phpbb_config (config_name, config_value) VALUES ('sf_show_sessions', false);
INSERT INTO phpbb_config (config_name, config_value) VALUES ('sf_show_username_in_first_topic_post', true);
INSERT INTO phpbb_config (config_name, config_value) VALUES ('sf_show_username_in_replies', true);
INSERT INTO phpbb_config (config_name, config_value) VALUES ('sf_smartfeed_host', 'phpbbservices.com');
INSERT INTO phpbb_config (config_name, config_value) VALUES ('sf_smartfeed_page_url', 'http://phpbbservices.com/smartfeed/');
INSERT INTO phpbb_config (config_name, config_value) VALUES ('sf_smartfeed_title', 'phpBB Smartfeed');
INSERT INTO phpbb_config (config_name, config_value) VALUES ('sf_smartfeed_title_explain', 'Access this board with a newsreader');
INSERT INTO phpbb_config (config_name, config_value) VALUES ('sf_smartfeed_title_short', 'Smartfeed');
INSERT INTO phpbb_config (config_name, config_value) VALUES ('sf_suppress_forum_names', false);
INSERT INTO phpbb_config (config_name, config_value) VALUES ('sf_ttl', '60');
INSERT INTO phpbb_config (config_name, config_value) VALUES ('sf_version', '2.2.15');
INSERT INTO phpbb_config (config_name, config_value) VALUES ('sf_webmaster','');]]>
    </sql>
    <copy>
      <file from="root/smartfeed.php" to="smartfeed.php" />
      <file from="root/smartfeed_url.php" to="smartfeed_url.php" />
      <file from="root/smartfeed_url_new_key.php" to="smartfeed_url_new_key.php" />
      <file from="root/includes/constants_smartfeed.php" to="includes/constants_smartfeed.php" />
      <file from="root/includes/feedcreator.class.php" to="includes/feedcreator.class.php" />
      <file from="root/includes/Crypt/DES.php" to="includes/Crypt/DES.php" />
      <file from="root/includes/Crypt/TripleDES.php" to="includes/Crypt/TripleDES.php" />
      <file from="root/language/en/mods/smartfeed.php" to="language/en/mods/smartfeed.php" />
      <file from="root/styles/prosilver/imageset/newsfeed_atom10.gif" to="styles/prosilver/imageset/newsfeed_atom10.gif" />
      <file from="root/styles/prosilver/imageset/newsfeed_rss10.gif" to="styles/prosilver/imageset/newsfeed_rss10.gif" />
      <file from="root/styles/prosilver/imageset/newsfeed_rss20.gif" to="styles/prosilver/imageset/newsfeed_rss20.gif" />
      <file from="root/styles/prosilver/template/smartfeed_url_body.html" to="styles/prosilver/template/smartfeed_url_body.html" />
      <file from="root/styles/prosilver/theme/images/icon_mini_feed.gif" to="styles/prosilver/theme/images/icon_mini_feed.gif" />
    </copy>
    <open src="includes/functions.php">
      <edit>
        <find>   global $db, $config, $template, $SID, $_SID, $user, $auth, $phpEx, $phpbb_root_path;</find>
        <action type="after-add"><![CDATA[   // BEGIN Smartfeed 2.0 Modification
   $user->add_lang('mods/smartfeed');
   if (!defined('SMARTFEED_NO_LIMIT_VALUE'))
   {
      include ($phpbb_root_path . 'includes/constants_smartfeed.' . $phpEx);
   }
   // END Smartfeed 2.0 Modification]]></action>
      </edit>
      <edit>
        <find>      'L_ONLINE_EXPLAIN'   => $l_online_time,</find>
        <action type="after-add">      // BEGIN Smartfeed 2.0 Modification
      'L_SMARTFEED'            => $config['sf_smartfeed_title_short'],
      // END Smartfeed 2.0 Modification</action>
      </edit>
      <edit>
        <find>      'U_FAQ'               => append_sid("{$phpbb_root_path}faq.$phpEx"),</find>
        <action type="after-add">      // BEGIN Smartfeed 2.0 Modification
      'U_ATOM_PARAMETERS'         => sprintf($config['sf_public_feed_url_suffix_atom'],
         rawurlencode(SMARTFEED_LAST_DAY_VALUE),
         rawurlencode(SMARTFEED_STANDARD),
         rawurlencode(SMARTFEED_HTML)),
      'U_SMARTFEED'            => append_sid("{$phpbb_root_path}smartfeed_url.$phpEx"),
      'U_RSS_PARAMETERS'         => sprintf($config['sf_public_feed_url_suffix_rss'],
         rawurlencode(SMARTFEED_LAST_DAY_VALUE),
         rawurlencode(SMARTFEED_STANDARD),
         rawurlencode(SMARTFEED_HTML)),
      'U_SMARTFEED_URL'               => "{$phpbb_root_path}smartfeed.$phpEx",
      // END Smartfeed 2.0 Modification</action>
      </edit>
      <edit>
        <comment lang="en">Around Line 3488 you should find this text:</comment>
        <find>      'S_AUTOLOGIN_ENABLED'   => ($config['allow_autologin']) ? true : false,</find>
        <action type="after-add">      // BEGIN Smartfeed 2.0 Modification
      'S_AUTO_ADVERTISE_PUBLIC_FEED'         => (isset($config['sf_auto_advertise_public_feed'])) ? $config['sf_auto_advertise_public_feed'] : false,
      // END Smartfeed 2.0 Modification</action>
      </edit>
    </open>
    <open src="includes/acp/acp_board.php">
      <edit>
        <find>
          <![CDATA[         case 'cookie':]]>
        </find>
        <action type="before-add">
          <![CDATA[         // phpBB Smartfeed MOD - Addition begin -----------------------------------------------------------
            case 'smartfeed':
            $display_vars = array(
               'title'   => 'ACP_SMARTFEED_SETTINGS',
               'vars'   => array(
                  'legend1'                        => 'SMARTFEED_PRIMARY_PERFORMANCE_THROTTLES',
                  'sf_max_items'                     => array('lang' => 'SMARTFEED_MAX_ITEMS',                     'validate' => 'int:0',   'type' => 'text:5:5', 'explain' => true),
                  'sf_default_fetch_time_limit'         => array('lang' => 'SMARTFEED_DEFAULT_FETCH_TIME_LIMIT',         'validate' => 'int:0',   'type' => 'text:5:5', 'explain' => true, 'append' => ' ' . $user->lang['SMARTFEED_HOURS']),
                  'sf_ttl'                        => array('lang' => 'SMARTFEED_TTL',                           'validate' => 'int:0',   'type' => 'text:4:4', 'explain' => true, 'append' => ' ' . $user->lang['SMARTFEED_MINUTES']),
           
                  'legend2'                        => 'SMARTFEED_SECURITY_SETTINGS',
                  'sf_require_ip_authentication'         => array('lang' => 'SMARTFEED_REQUIRE_IP_AUTHENTICATION',         'validate' => 'bool',   'type' => 'radio:yes_no', 'explain' => true),
                  'sf_auto_advertise_public_feed'         => array('lang' => 'SMARTFEED_AUTO_ADVERTISE_PUBLIC_FEED',         'validate' => 'bool',   'type' => 'radio:yes_no', 'explain' => true),
                  'sf_privacy_mode'                  => array('lang' => 'SMARTFEED_PRIVACY_MODE',                  'validate' => 'bool',   'type' => 'radio:yes_no', 'explain' => true),
                  'sf_show_username_in_first_topic_post'   => array('lang' => 'SMARTFEED_SHOW_USERNAME_IN_FIRST_TOPIC_POST',   'validate' => 'bool',   'type' => 'radio:yes_no', 'explain' => true),
                  'sf_show_username_in_replies'         => array('lang' => 'SMARTFEED_SHOW_USERNAME_IN_REPLIES',         'validate' => 'bool',   'type' => 'radio:yes_no', 'explain' => true),
           
                  'legend3'                        => 'SMARTFEED_ADDITIONAL_SETTINGS',
                  'sf_all_by_default'                  => array('lang' => 'SMARTFEED_ALL_BY_DEFAULT',                  'validate' => 'bool',   'type' => 'radio:yes_no', 'explain' => true),
                  'sf_rfc1766_lang'                  => array('lang' => 'SMARTFEED_RFC1766_LANG',                  'validate' => 'string',   'type' => 'text:8:8', 'explain' => true),
                  'sf_feed_image_path'               => array('lang' => 'SMARTFEED_FEED_IMAGE_PATH',                  'validate' => 'string',   'type' => 'text:40:255', 'explain' => true),
                  'sf_suppress_forum_names'            => array('lang' => 'SMARTFEED_SUPPRESS_FORUM_NAMES',            'validate' => 'bool',   'type' => 'radio:yes_no', 'explain' => true),
                  'sf_apache_htaccess_enabled'         => array('lang' => 'SMARTFEED_APACHE_HTACCESS_ENABLED',            'validate' => 'bool',   'type' => 'radio:yes_no', 'explain' => true),
                  'sf_webmaster'                     => array('lang' => 'SMARTFEED_WEBMASTER',                     'validate' => 'string',   'type' => 'text:40:255', 'explain' => true),
                  'sf_show_sessions'                  => array('lang' => 'SMARTFEED_SHOW_SESSIONS',                  'validate' => 'bool',   'type' => 'radio:yes_no', 'explain' => true),
               )
            );
         break;
         // phpBB Smartfeed MOD - Addition end -------------------------------------------------------------]]>
        </action>
      </edit>
    </open>
    <open src="includes/acp/info/acp_board.php">
      <edit>
        <find>
          <![CDATA[         'registration'   => array('title' => 'ACP_REGISTER_SETTINGS', 'auth' => 'acl_a_board', 'cat' => array('ACP_BOARD_CONFIGURATION')),]]>
        </find>
        <action type="after-add">
          <![CDATA[         // phpBB Smartfeed MOD - Addition begin -------------------------------------------------------
            'smartfeed'      => array('title' => 'ACP_SMARTFEED_SETTINGS', 'auth' => 'acl_a_board', 'cat' => array('ACP_BOARD_CONFIGURATION')),
            // phpBB Smartfeed MOD - Addition end ---------------------------------------------------------]]></action>
      </edit>
    </open>
    <open src="language/en/acp/board.php">
      <edit>
        <find><![CDATA[   'JAB_USERNAME_EXPLAIN'      => 'Specify a registered username or a valid JID. The username will not be checked for validity. If you only specify a username, then your JID will be the username and the server you specified above. Else, specify a valid JID, for example user@jabber.org.',
));]]>
        </find>
        <action type="after-add"><![CDATA[
// phpBB Smartfeed MOD - Addition begin -------------------------------------------------------
$lang = array_merge($lang, array(
   'ACP_SMARTFEED_SETTINGS_EXPLAIN'                  => 'You can fine tune the performance of Smartfeed for your board below.',
   'SMARTFEED_ALL_BY_DEFAULT'                        => 'Select all forums by default',
   'SMARTFEED_ALL_BY_DEFAULT_EXPLAIN'                  => 'If set to Yes, when the Smartfeed URL generation page is displayed, all the forums will be checked. If you have a lot of forums, it may be better to set this to No.',
   'SMARTFEED_MAX_ITEMS'                           => 'Maximum items allowed in any feed',
   'SMARTFEED_MAX_ITEMS_EXPLAIN'                     => 'This is used to set some upper bound on the number of items permitted in a newsfeed. If 0, there is no limit. For heavily trafficked boards you may find you have to set a limit to keep the board from getting bogged down. Make sure this is a whole number.',
   'SMARTFEED_DEFAULT_FETCH_TIME_LIMIT'               => 'Maximum post time range',
   'SMARTFEED_DEFAULT_FETCH_TIME_LIMIT_EXPLAIN'         => 'This will set a point in time in hours from now beyond which no posts can be retrieved. Otherwise on highly trafficked boards it could take minutes or hours to assemble a newsfeed, possibly impacting other members. The default is to go back 30 days (720 hours). Caution: if you set this to zero, you are could be giving permission for all members to create a feed with hundreds or thousands of posts.',
   'SMARTFEED_HOURS'                              => 'hrs',
   'SMARTFEED_REQUIRE_IP_AUTHENTICATION'               => 'Require IP authentication',
   'SMARTFEED_REQUIRE_IP_AUTHENTICATION_EXPLAIN'         => 'Setting this to Yes tightens security for all registered members by limiting the IP range for which Smartfeed will return a feed. You should enable this setting if your board contains sensitive information. If you leave this set at No, each registered member can decide for themselves if they want this extra security feature. Please note that unless your board uses HTTPS or is accessed through a VPN, the feed will be unencrypted.',
   'SMARTFEED_APACHE_HTACCESS_ENABLED'                  => 'Apache .htaccess enabled for Smartfeed',
   'SMARTFEED_APACHE_HTACCESS_ENABLED_EXPLAIN'            => "If you use Apache authentication, you first need to manually correct your board's .htaccess file to allow the smartfeed.$phpEx program to bypass authentication. Otherwise it is impossible for Smartfeed to work, since Apache authentication won't let it through. If you have fixed your .htaccess file then you can set this to true. Of course if you do not use Apache authentication, this setting is ignored.",
   'SMARTFEED_AUTO_ADVERTISE_PUBLIC_FEED'               => 'Auto-advertise your public feeds',
   'SMARTFEED_AUTO_ADVERTISE_PUBLIC_FEED_EXPLAIN'         => 'Set to true if you want to expose your public feed automatically.',
   'SMARTFEED_TTL'                                 => 'Newsfeed Time to Live (TTL)',
   'SMARTFEED_TTL_EXPLAIN'                           => 'How many minutes should the newsreader cache the feed before refreshing it? Throttle the number up if your board is getting overwhelmed, but newsreaders may ignore your advice. Note that this is a feature of RSS 2.0 only, and individual newsreaders may ignore the setting.',
   'SMARTFEED_MINUTES'                              => 'min',
   'SMARTFEED_RFC1766_LANG'                        => 'RFC-1766 Language Code',
   'SMARTFEED_RFC1766_LANG_EXPLAIN'                  => 'Language of your feed content. <a href="http://www.w3.org/TR/REC-html40/struct/dirlang.html#langcodes">List of valid codes</a>.',
   'SMARTFEED_FEED_IMAGE_PATH'                        => 'Feed image path',
   'SMARTFEED_FEED_IMAGE_PATH_EXPLAIN'                  => 'The image you want to appear in the feed to brand your board. The default is site_logo.gif, which is the phpBB icon (or the image you substituted for it). The default style will be used, so set it to the relative path from your board\'s default style directory.',
   'SMARTFEED_SHOW_SESSIONS'                        => 'Show Smartfeed sessions',
   'SMARTFEED_SHOW_SESSIONS_EXPLAIN'                  => 'If yes, the View Online information will be misleading because people or guests will appear online who are in fact accessing a feed. Most Smartfeed sessions will show up as guest sessions. Setting this to yes may also skew the most users online ever value.',
   'SMARTFEED_SHOW_USERNAME_IN_FIRST_TOPIC_POST'         => 'Show member name in the first topic post',
   'SMARTFEED_SHOW_USERNAME_IN_FIRST_TOPIC_POST_EXPLAIN'   => 'Set to Yes if you want the member name to appear in the item title of the first topic in a post. You might want to set this to No if you want to cannibalize your own feed elsewhere, for example to show a list of new topics on your web site main page. Note that the item author value is always set, but not all newsreaders will display it.',
   'SMARTFEED_SHOW_USERNAME_IN_REPLIES'               => 'Show member name in replies',
   'SMARTFEED_SHOW_USERNAME_IN_REPLIES_EXPLAIN'         => 'If you set this to No, member names will not appear in replies. This could be unwise because the newsreader may choose not to show the authors of individual items in the feed, so it would be hard for readers to know who posted the reply.',
   'SMARTFEED_PRIVACY_MODE'                        => 'Privacy mode',
   'SMARTFEED_PRIVACY_MODE_EXPLAIN'                  => 'If Yes, real poster email addresses are not shown in the feed and a fake email address is substituted if necessary to validate the feed. Even if set to No, if the member specifies in their board preferences not to show their email address, then a fake email address will be substituted. Also, in this mode, signature blocks are not shown to public members. The idea is to keep spammers from having yet another way to harvest email addresses and to maximize the privacy of your members.',
   'SMARTFEED_SUPPRESS_FORUM_NAMES'                  => 'Suppress forum names',
   'SMARTFEED_SUPPRESS_FORUM_NAMES_EXPLAIN'            => 'By default the forum name appears in the item title. To suppress it for all members, set this value to Yes.',
   'SMARTFEED_WEBMASTER'                           => 'Webmaster E-Mail Address',
   'SMARTFEED_WEBMASTER_EXPLAIN'                     => 'If so inclined, enter the email address of the webmaster of the phpBB forum and it will appear in RSS 2.0 feeds.',
));
// phpBB Smartfeed MOD - Addition end ---------------------------------------------------------]]></action>
      </edit>
    </open>
    <open src="language/en/acp/common.php">
      <edit>
        <find><![CDATA[   'LOG_CONFIG_SIGNATURE'      => '<strong>Altered signature settings</strong>',]]></find>
        <action type="after-add"><![CDATA[   // Begin Smartfeed Mod
   'LOG_CONFIG_SMARTFEED'      => '<strong>Altered Smartfeed settings</strong>',
   // End Smartfeed Mod]]></action>
      </edit>
      <edit>
        <find><![CDATA[?>]]></find>
        <action type="before-add"><![CDATA[
// phpBB Smartfeed MOD - Addition begin -------------------------------------------------------
$lang = array_merge($lang, array(
   'ACP_SMARTFEED_SETTINGS'               => 'Smartfeed settings',
   'SMARTFEED_PRIMARY_PERFORMANCE_THROTTLES'   => 'Primary performance throttles',
   'SMARTFEED_SECURITY_SETTINGS'            => 'Security settings',
   'SMARTFEED_ADDITIONAL_SETTINGS'            => 'Additional settings',
));
// phpBB Smartfeed MOD - Addition end ---------------------------------------------------------]]></action>
      </edit>
    </open>
    <open src="language/en/help_faq.php">
      <edit>
        <find><![CDATA[);

?>]]>
        </find>
        <action type="before-add"><![CDATA[   // Begin Smartfeed Mod
   ,
   array(
      0 => '--',
      1 => 'Newsfeeds'
      ),
   array(
      0 => 'Are your forums accessible as a newsfeed using RSS and Atom protocols?',
      1 => 'Yes. This site has installed the Smartfeed phpBB modification for phpBB 3, which allows access to both our public and private forums. Accessing private forums requires appropriate authorizations. <a href="' . append_sid("{$phpbb_root_path}smartfeed_url.$phpEx") . '">Learn more</a>.'
      ),
   // End Smartfeed Mod]]></action>
      </edit>
    </open>
    <open src="styles/prosilver/template/overall_header.html">
      <edit>
        <find><![CDATA[<link href="{T_THEME_PATH}/large.css" rel="alternate stylesheet" type="text/css" title="A++" />]]></find>
        <action type="after-add"><![CDATA[<!-- IF S_AUTO_ADVERTISE_PUBLIC_FEED -->
<link rel="alternate" type="application/rss+xml" title="RSS" href="{U_SMARTFEED_URL}?{U_RSS_PARAMETERS}" />
<link rel="alternate" type="application/atom+xml" title="ATOM" href="{U_SMARTFEED_URL}?{U_ATOM_PARAMETERS}" />
<!-- ENDIF -->]]></action>
      </edit>
      <edit>
        <find><![CDATA[         <ul class="linklist rightside">]]></find>
        <action type="after-add"><![CDATA[            <li class="icon-smartfeed"><a href="{U_SMARTFEED}" title="{L_SMARTFEED_SHORT_EXPLAIN}">{L_SMARTFEED}</a></li>]]>        </action>
      </edit>
    </open>
    <open src="styles/prosilver/theme/bidi.css">
      <edit>
        <find><![CDATA[.rtl .sitehome, .rtl .icon-faq, .rtl .icon-members, .rtl .icon-home, .rtl .icon-ucp, .rtl .icon-register, .rtl .icon-logout,]]>
        </find>
        <inline-edit>
          <inline-find><![CDATA[.rtl .sitehome,]]></inline-find>
          <inline-action type="after-add"><![CDATA[.rtl .icon-smartfeed,]]></inline-action>
        </inline-edit>
      </edit>
    </open>
    <open src="styles/prosilver/theme/buttons.css">
      <edit>
        <find><![CDATA[.sitehome, .icon-faq, .icon-members, .icon-home, .icon-ucp, .icon-register, .icon-logout,]]></find>
        <inline-edit>
          <inline-find><![CDATA[.sitehome,]]></inline-find>
          <inline-action type="after-add"><![CDATA[.icon-smartfeed,]]></inline-action>
        </inline-edit>
      </edit>
    </open>
    <open src="styles/prosilver/theme/colours.css">
      <edit>
        <find><![CDATA[.sitehome                  { background-image: url("{T_THEME_PATH}/images/icon_home.gif"); }]]></find>
        <action type="after-add"><![CDATA[/* Begin Smartfeed Mod */
.icon-smartfeed               { background-image: url("{T_THEME_PATH}/images/icon_mini_feed.gif"); }
/* End Smartfeed Mod */]]></action>
      </edit>
    </open>
    <diy-instructions lang="en"><![CDATA[For upgrade information, see /contrib/upgrade.
       
If your are supporting subsilver2, please copy over the files now and make the template changes by following the link under Additional MODX Files.

If your board uses neither prosilver or subsilver2 styles, you probably would like to make it work for your preferred style. Here is some guidance.

Most styles are based on either prosilver or subsilver2. To find out which your style is based on, look at the overall_header.html file in your
style's template folder. If after the <body> tag you find a <div class="navbar"> the style is subsilver2 based, otherwise it is probably
prosilver based.

When copying files, copy the files for the style yours is based on (prosilver or subsilver2) into your style directory.

See if the template files and template changes for that style work for your style. Style changes for prosilver are included in the install.xml
file. File changes for subsilver2 can be found in the Additional MODX Files part of these instructions. In some cases you may have to tweak the HTML
embedded in the template a bit to make it match your style. If you do not have experience in HTML, consult someone with these skills, although
some experimentation usually works. Keep a backup copy of the template in case you make a mistake!

To complete installation, you also need to install a module so that Smartfeed settings can be adjusted in the Administrator Control Panel

ACP > System Tab > Module Management > Administration Control Panel
Type in "Smartfeed settings" and click on the "Create new module" button
Select...
Module type = Module
Parent = General > Board configuration
Module enabled = Yes
Module displayed = Yes
Choose module = Board management [acp_board]
Choose module mode = Smartfeed settings
...and click on "Submit"

Finally, since there are a bunch of new configuration variables, you need to purge the cache. This is needed so the new Smartfeed config
variables can be found and so that the templates and imagesets can be used:

ACP > General Tab > Purge the cache (Scroll down, it's a button on the right pane) > Yes

Next, refresh the Template, Theme and Imagesets for prosilver

ACP > Styles > Style Components > Templates > prosilver > Refresh
ACP > Styles > Style Components > Themes > prosilver > Refresh
ACP > Styles > Style Components > Imagesets > prosilver > Refresh (Caution: you may have to reset certain images, like your logo, when you refresh)

If you also installed subsilver2, refresh the Template and Theme for subsilver2. The imagesets do not need to be refreshed. Similarly, refresh
the templates of any other style that you customized to work with phpBB Smartfeed.

ACP > Styles > Style Components > Templates > subsilver2 > Refresh
ACP > Styles > Style Components > Themes > subsilver2 > Refresh

You will find the ACP interface on the General Tab > Board Configuration > Smartfeed settings

You may have to clear your browser's cache to see the Smartfeed icon in the overall header. One way to do this is to exit and reenter the browser.

Caution: non-English language files are very out of date. If you have an up to date version please send it to me so I can include it in a future version.]]>
    </diy-instructions>
  </action-group>
</mod>
Get the latest versions of my Digests and Smartfeed mods.
Need a phpBB services or a phpBB consultant? I offer limited phpBB services.
MarkDHamill
Registered User
 
Posts: 2371
Joined: Fri Aug 02, 2002 12:36 am
Location: Oak Hill, Virginia USA

Re: phpBB Smartfeed

Postby CMA » Thu Nov 26, 2009 8:12 am

its explained why automod failed... but what about the old version at first post?
CMA
Registered User
 
Posts: 330
Joined: Mon Jun 02, 2003 4:15 pm
Location: Vancouver BC Canada

Re: phpBB Smartfeed

Postby MarkDHamill » Thu Nov 26, 2009 4:14 pm

CMA wrote:its explained why automod failed... but what about the old version at first post?


Not sure what you mean.
Get the latest versions of my Digests and Smartfeed mods.
Need a phpBB services or a phpBB consultant? I offer limited phpBB services.
MarkDHamill
Registered User
 
Posts: 2371
Joined: Fri Aug 02, 2002 12:36 am
Location: Oak Hill, Virginia USA

Re: phpBB Smartfeed

Postby CMA » Thu Nov 26, 2009 5:30 pm

i tried to install it via automod and it had some errors...

so i wonder if i use install.xml from two posts above to replace install.xml from old winzip at first post... so will it work perfectly?
CMA
Registered User
 
Posts: 330
Joined: Mon Jun 02, 2003 4:15 pm
Location: Vancouver BC Canada

Re: phpBB Smartfeed

Postby MarkDHamill » Thu Nov 26, 2009 6:18 pm

I think so. I actually did not try it because to run a full regression test is a lot of work, but it did before I accidentally transformed the install.xml file and packaged it up.
Get the latest versions of my Digests and Smartfeed mods.
Need a phpBB services or a phpBB consultant? I offer limited phpBB services.
MarkDHamill
Registered User
 
Posts: 2371
Joined: Fri Aug 02, 2002 12:36 am
Location: Oak Hill, Virginia USA

Re: phpBB Smartfeed

Postby Trokal » Tue Dec 01, 2009 9:56 am

can we install this on phpbb 3.0.5?
Trokal
Registered User
 
Posts: 396
Joined: Fri Oct 23, 2009 5:13 pm

Re: phpBB Smartfeed

Postby MarkDHamill » Tue Dec 01, 2009 2:52 pm

Trokal wrote:can we install this on phpbb 3.0.5?


Probably. I did not give it a try.
Get the latest versions of my Digests and Smartfeed mods.
Need a phpBB services or a phpBB consultant? I offer limited phpBB services.
MarkDHamill
Registered User
 
Posts: 2371
Joined: Fri Aug 02, 2002 12:36 am
Location: Oak Hill, Virginia USA

MySQL Database tablenames

Postby patings » Sun Dec 06, 2009 6:48 pm

In the install we have:

ALTER TABLE phpbb_users ADD user_smartfeed_key varchar(32) default NULL;
INSERT INTO phpb_config (config_name, config_value) VALUES ('sf_all_by_default', true);
Etc .......................

Is my assumption correct that I should change these names into the actual names, in my case

phpbb_users in afyv_users and phpbb_config in afyv_config ??

And does this need further propagation in any other code ?

I do not read anything about it and it seems to be obvious to all but it is not to me.
Thanks,
User avatar
patings
Registered User
 
Posts: 21
Joined: Wed Sep 09, 2009 10:06 pm
Location: Nederland

Re: phpBB Smartfeed

Postby MarkDHamill » Sun Dec 06, 2009 7:14 pm

Yes, that's a correct assumption.
Get the latest versions of my Digests and Smartfeed mods.
Need a phpBB services or a phpBB consultant? I offer limited phpBB services.
MarkDHamill
Registered User
 
Posts: 2371
Joined: Fri Aug 02, 2002 12:36 am
Location: Oak Hill, Virginia USA

Re: phpBB Smartfeed

Postby patings » Sun Dec 06, 2009 10:54 pm

Thanks Mark.
I am preparing for "production" and notice this in flie language/en/help_faq.php
To add this at the end (before ); ?> )
Code: Select all
.................................
 <a href="' . append_sid("{$phpbb_root_path}smartfeed_url.$phpEx") . '">Learn more</a>.'
      ),
   // End Smartfeed Mod

I am not a PHP programmer but I think the last comma would not be required as it is the last statement in this array definition.
Will it harm or will it just be ignored ?
I could have tried this but I prefer asking first.
Thanks again,
User avatar
patings
Registered User
 
Posts: 21
Joined: Wed Sep 09, 2009 10:06 pm
Location: Nederland

Re: phpBB Smartfeed

Postby MarkDHamill » Sun Dec 06, 2009 11:08 pm

It works fine. The last comma is optional but it doesn't hurt to add it. I added it in case some other mod wanted to add text to the bottom of the FAQ.
Get the latest versions of my Digests and Smartfeed mods.
Need a phpBB services or a phpBB consultant? I offer limited phpBB services.
MarkDHamill
Registered User
 
Posts: 2371
Joined: Fri Aug 02, 2002 12:36 am
Location: Oak Hill, Virginia USA

Version 2.2.16 now available

Postby MarkDHamill » Mon Dec 07, 2009 1:30 am

Download Here

Change log:

* The administrator can set the maximum number of words that can be shown in any post. It overrides any user settings.
* The administrator has an extra privacy control. If enabled the post content will not display in the feed. Instead, the user will see a single message saying that there are new posts for the topic. The user has to visit the board to read the posts. This applies globally to all users, forums and categories. While the author information is obscured, the category, forum and topic titles are not obscured.
* Better support for web-based proxy newsreaders using IP authentication. You can specify an IP mask to allow (it defaults to your IP) when using IP authentication. A mask of x.y.*.* is supported as well as x.y.z.*
* Updated Spanish translation provided by valaraukar.
Get the latest versions of my Digests and Smartfeed mods.
Need a phpBB services or a phpBB consultant? I offer limited phpBB services.
MarkDHamill
Registered User
 
Posts: 2371
Joined: Fri Aug 02, 2002 12:36 am
Location: Oak Hill, Virginia USA

Re: phpBB Smartfeed 2.2.16 problem getting into ACP

Postby powermgt » Mon Dec 07, 2009 8:17 pm

Mark

I have just installed 2.2.16 into my version 3.06. I can login as a board user and I can log into the User control panel, but when I click "administration control panel" (ACP) to get into the ACP I get a blank page. I went back and re-edited the four files that I think have to do with the ACP, they are:

includes/acp/acp_board.php,
includes/acp/info/acp_board.php,
language/en/acp/board.php,
language/en/acp/common.php,

However after editing these files again, I still cannot get into the ACP. Relative to the SQL I entered those values as stated and cannot find any values that may be specifically tied into the ACP. Do you have any thoughts as to why I cannot get into the ACP.

Just so you know I am not a programmer.

Thank you
Michael Barbarita
powermgt
Registered User
 
Posts: 7
Joined: Mon Dec 07, 2009 8:03 pm

Re: phpBB Smartfeed

Postby MarkDHamill » Mon Dec 07, 2009 10:14 pm

OK, I will do another fresh install tonight. Perhaps something changed when I created the archive. Blank screens are usually indicative of a syntax error.
Get the latest versions of my Digests and Smartfeed mods.
Need a phpBB services or a phpBB consultant? I offer limited phpBB services.
MarkDHamill
Registered User
 
Posts: 2371
Joined: Fri Aug 02, 2002 12:36 am
Location: Oak Hill, Virginia USA

PreviousNext

Return to [3.0.x] MOD Database Releases

Who is online

Users browsing this forum: No registered users and 18 guests

cron