Firefox PHP

Phorum 5.2.16-RC2 released

Posted by Maurice Makaay 
Phorum 5.2.16-RC2 released
October 14, 2010 10:44PM
We are happy to be announcing our next stable release of Phorum, version 5.2.16 (release candidate 2)
Because some changes have been made that are not trivial, we release this version as a release candidate, before pushing out a final stable version. If you find any bugs in this release, then please report them to us and we will get them fixed as soon as possible.

If you are upgrading from an earlier version than 5.2.14, then keep the following in mind:
5.2.14 Announcement
Unfortunately this release also includes 3 template fixes which you might need to port to your custom template if you got them:
[] (a fix for the author's profile url in the unapproved messages panel)
[] (some fixes for the classic template, only needed you run a template derived from classic)
[] (fixes in the group membership panel so that users can actually join groups again)

You can download this new release from our downloads page.


A totally rewritten version of the Spam Hurdles module (2.0.2)

One of the big changes is that cryptographic technology is used to store work data right in the form data on the client instead of storing all of it in the database. Because of this, the module can now function without database storage at all. Only if the replay attack block is enabled ("Block forms that are submitted multiple times"), the database will be used to store the id's of the forms that have already been submitted. This database storage has been made as light as possible. After the id expires, it will be cleaned up from the database. We hope that this change will help those admins with busy forums that currently see the spam_hurdles table fill up rapidly in their databases.

Another change is that this new version of the module does support protecting the PM system as well. Note that you might need to update your pm_post.tpl as per changeset 4610 (addition of the tpl_pm_editor_before_textarea template hook).

If you have troubles with this new Spam Hurdles module, then use this thread to report them.

Improvements to the user management in the admin interface

Joe Curia has done some great work on the user management in the admin interface. The search form has been extended with extra options. Changes were done to improve the overall workflow of the user management (e.g. by keeping track of the page from which you come when clicking through to a user detail screen, making it possible to return to that same page and not simply to the first page). It is now possible to change a user's username.

Inclusion of the excellent jQuery javascript library

The jQuery library (version 1.4.2) has been added as a standard javascript library for Phorum. In Phorum 5.3, we will make extensive use of this library as the underlying layer for the Phorum javascript library (you can already see where this is going in the 5.3 development tree). If you want to make use of jQuery code in your Phorum javascript code, then you can access the bundled jQuery library using the $PJ (Phorum Jquery) variable. We do not use the standard $ variable, to prevent running into collisions with possible other js frameworks that might be using $ already.

A wide range of new hooks

Extra hooks in the phorum_output() code to provide extra and more fine grained control to modules that want to hook into the output phase. New hooks: output_templates, output_templates_<page>, start_output_<page>, after_header_<page>, before_footer_<page>, end_output_<page>

Other new hooks (lots of them contributed as patches by Markus Fisher): tpl_profile, tpl_cc_start, event_logging_writelog, admin_menu, admin_forum_delete, posting_action_cancel_post and posting_action_edit_post.

Full Changelog for this release

2010-11-29 17:08  ts77
	* show the current controlcenter panel also in the breadcrumbs and
	  the page title

   2010-11-16 18:51  mmakaay
	* Load defaults.php file, so an unconfigured username restrictions
	  module will not trigger PHP warnings because of undefined

   2010-11-16 11:58  mmakaay
	* Added an API function phorum_api_user_get_active_user(), which can
	  be used to retrieve the data for the currently active (i.e. logged
	  in) Phorum user. When no user is logged in, then the function will
	  return NULL.

   2010-11-12 07:43  mmakaay
	* When passing $return_threads = TRUE to phorum_db_search() while
	  searching for messages posted by a given user ($match_type =
	  USER_ID), the function will now only return the thread starter
	  messages that were posted by the user that is being searched on.

   2010-11-06 22:57  ts77
	* added bbcode option to add nofollow only to external urls.

   2010-11-02 10:17  ts77
	* added new hook user_save_groups

   2010-10-28 21:14  mmakaay
	* Added overflow: hidden to the generic div, so floated content
	  inside these divs will be correctly wrapped by the div.

   2010-10-28 21:08  mmakaay
	* The Phorum JavaScript library (jQuery + the Phorum javascript
	  code) is now available from within the admin interface as well.
	  Template specific javascript code and javascript code that is
	  supplied by modules are not included in the package that is loaded
	  by the admin interface (to prevent loading code that might be
	  assuming to be run in the Phorum front end.)

   2010-10-26 13:58  mmakaay
	* Added a hook "after_post_redirect" that can be used to tweak the
	  redirect URL that is used for redirecting the user after posting a
	  forum message.

   2010-10-22 09:43  mmakaay
	* Implemented phorum_api_image_supported() and
	  phorum_api_http_get_supported() which can be used to check if the
	  hosting platform supports the respective Phorum API layers.

   2010-10-22 00:35  mmakaay
	* Changes in the BBcode callback handling, to provide callback
	  handlers with the message that is being parsed. This way, the
	  callback code can perform actions that need to be context-aware.
	  Also, deprecated the use of dl() calls in the http_get and image
	  APIs. This is done because of the following warning on the PHP
	  site: "This function has been removed from some SAPI's in PHP 5.3"

   2010-10-16 22:32  mmakaay
	* Modified placement of the #REPLY anchor in the templates (moved
	  from the start of posting.tpl to the end of read.tpl). This takes
	  care of letting the page jump down when the user click "Reply" and
	  the "Sorry, only registered users may post in this forum" message
	  is showing down there.

   2010-10-15 21:20  mmakaay
	* Feeds were not disabled when disabling them from the admin
	  interface settings. They were only hidden from the templates.
	  Therefore calling the feed script to load feed data still worked.
	  This bug is fixed by this release. When disabling the feed option,
	  the feed.php script will block access to the feeds too now.

   2010-10-15 16:09  mmakaay
	* Fixes to improve the Modified-Since handling for javascript and CSS caching.

Full Changelog for 5.2.16-RC1

   2010-10-14 23:56  mmakaay
	* Fixed a problem with CSS and JavaScript caching not automatically refreshing.
          Because the the cache key was not MD5'ed, the cache key could grow too large
          for the memcached caching layer.

   2010-10-11 23:44  mmakaay
	* Added a work-around for the Spam Hurdles ASCII art CAPTCHA in
	  combination with browsers in which the monospace font was set to a
	  proportional font. The font now is configured as Courier New and
	  Courier, before falling back to the monospace option that is
	  controlled by the browser.

   2010-10-11 23:28  mmakaay
	* Release Spam Hurdles version 2.0.2 as the default version for both
	  Phorum 5.2 and the Phorum development trunk.

   2010-07-16 12:02  ts77
	* added attachments as input to the send_email hook (thanks to
	  Oliver Riesen)

   2010-07-04 20:45  ts77
	* invalidate message cache on approval, thanks to Markus Fischer

   2010-07-04 20:07  ts77
	* applied patches from Joe Curia for enhanced Edit User Panel

   2010-06-30 14:18  ts77
	* formatting and escaping announcements correctly now (closing a
	  possible security issue), thanks to Patrick Kaiser

   2010-06-30 14:00  ts77
	* checking correctly for jpeg support in php 5.3 too, thanks to
	  phorum user nedanko in #948 for the report.

   2010-06-30 13:52  ts77
	* New hooks: admin_forum_delete, posting_action_cancel_post,
	  posting_action_edit_post, thanks to Markus Fischer (closing #949)

   2010-06-30 13:43  ts77
	* added new admin menu hook, thanks for the thorough implementation
	  to Markus Fischer (#945)

   2010-06-30 13:27  ts77
	* User deletion - clearing recent message data, thanks to Markus
	  Fischer (closing #946)

   2010-06-30 13:24  ts77
	* event_logging: hook to intercept $loginfo, thanks to Markus
	  Fischer (closing #947)

   2010-06-30 13:20  ts77
	* Add "message" and "details" filter capability to mod
	  event_logging, thanks to Markus Fischer (closing #942)

   2010-06-30 13:15  ts77
	* phorum_cache_put() verify fopen() call, thanks to Markus Fischer
	  (closing #943)

   2010-06-10 13:16  mmakaay
	* Added the jQuery library to 5.2 and the $PJ compatbility wrapper
	  to prevent collissions with possible other js frameworks that
	  might be using $ already.

   2010-06-10 12:53  mmakaay
	* Fixing editor tools popups in a page that uses relative and/or
	  absolute CSS positioning for layout.

   2010-05-23 21:00  mmakaay
	* Fix for #952: Malformed javascript in form_objects.js.php

   2010-05-20 09:46  ts77
	* fixed timezone setting in forum settings panel. it got off with
	  dst enabled (closing #950, thanks to Phorum user Skye for the

   2010-04-23 22:45  mmakaay
	* Added extra hooks in the phorum_output() code to provide extra and
	  more fine grained control to modules that want to hook into the
	  output phase. New hooks: output_templates,
	  output_templates_<page>, start_output_<page>, after_header_<page>,
	  before_footer_<page>, end_output_<page>.

   2010-04-19 15:20  ts77
	* added two new template hooks: tpl_profile and tpl_cc_start in the
	  relevant templates

   2010-04-16 14:32  mmakaay
	* Added missing language strings to BBcode mod.

   2010-04-01 21:52  mmakaay
	* Fixed some hook documentation issues.

   2010-03-31 13:13  mmakaay
	* Bug fix: do not update the last_post_time of a forum in case a
	  message is approved that was posted before the active
	  last_post_time of that forum.

   2010-03-26 12:55  ts77
	* fixed pm_send_init hook, thanks to Charlie Brown (in #941)

   2010-03-18 12:20  mmakaay
	* Fix for #938: client.js.php steps on javascript Phorum object The
	  way in which existence of the Phorum object was checked was wrong
	  because of some legacy code in the Ajax js lib. This change should
	  fix the issue.

Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce

Edited 2 time(s). Last edit at 12/01/2010 09:26PM by Maurice Makaay.
Re: Phorum 5.2.16-RC1 released
October 14, 2010 10:46PM
Everyone congratulate Maurice on his first release all by himself. They grow up so fast. =)

Brian - Cowboy Ninja Coder - Personal Blog - Twitter
Re: Phorum 5.2.16-RC1 released
October 14, 2010 11:12PM
Congrats, Maurice! ;-)

I just upgraded this forum to 5.2.16-RC1.

Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Phorum 5.2.16-RC1 released
October 15, 2010 09:56AM
In this release, the database layer code was modified to do all inserts for new flags handling in one query instead of using separate insert queries. This provides a really good speed improvement when a user hits a read page with a lot of messages on it. However, there was a small bug in this code. I fixed the bug and repackaged the RC1 distribution.

If you installed the RC1 release before this message, then you on have to copy the file include/db/mysql.php to your installation to get the fix included.

Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Phorum 5.2.16-RC1 released
October 15, 2010 06:24PM
Admins who load a jQuery library already for their site and who want to spare some resources, can install the module Disable Bundled jQuery.

This is a fresh module. If you have troubles using it, then please report your issue in the module's thread.

Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Phorum 5.2.16-RC1 released
October 18, 2010 05:25PM
I just SVN up all three of my forums.

Awesome job guys!

Phorum the #1 forum and most dependable.

Re: Phorum 5.2.16-RC1 released
November 16, 2010 03:27PM
I found a litte "bug" in include/admin/users.php (when you are on the admin-page "user search").

Line ~422 is
$multiple = (count($db_groups) > 1) ? "multiple=\"multiple\" size=\"2\"" : "";

=> if you only have one group, this group will be always selected with this code. A quick workaround is using this code instead:

$multiple = "multiple=\"multiple\" size=\"1\"";
Re: Phorum 5.2.16-RC1 released
November 16, 2010 05:08PM
I guess I was trying to be a little too clever. My suggestion would be to drop line 422 and simply set the field to always be a multiple select size 2.

The patch:
@@ -419,8 +419,7 @@
         $db_groups = phorum_db_get_groups(0,true);
         if (count($db_groups)) {
-            $multiple = (count($db_groups) > 1) ? "multiple=\"multiple\" size=\"2\"" : "";
-            $group_select = "<select name=\"member_of_group[]\" $multiple>\n";
+            $group_select = "<select name=\"member_of_group[]\" multiple=\"multiple\" size=\"2\">\n";
             $selected_groups = array();
             if(!empty($_REQUEST['member_of_group'])) {
                 if (is_array($_REQUEST['member_of_group'])) {

Joe Curia (aka Azumandias)
Modules: l0Admin Mass Email00000000l000000Automatic Time Zones000ll.l00000Enhanced Custom Profiles0.00Google Calendar0000l.l000000Post Previews
000000000Admin Security Suite000000000000Check Modules for Upgrades0000External Authentication000000Group Auto-Email00000.00000Private Message Alerts
000000000Attachment Download Counter0000Custom Attachment Icons000ll.ll00Favorite Forums000000.00000Highlighted Search Terms0000Self-Delete Posts Option
000000000Attachment Watermarks0l00000000Custom Language Database00l.l.0Forum Lockdown00000.00000Ignore Forums0000000000000Threaded Tree View
000000000Automatic Message Pruning00.llll.00Easy Color Scheme Manager0l.l00Forum Subscriptions0000lll000Moderated User Group
Templates:lGeneric Integration000000000 0000Simple Rounded000000 00000000Tabbed Emerald
Re: Phorum 5.2.16-RC2 released
December 01, 2010 09:27PM
Version 5.2.16-RC2 is released. Check the start of this thread for the changes since 5.2.16-RC1.

These forums have also been upgraded to 5.2.16-RC2.

Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce

Edited 1 time(s). Last edit at 12/01/2010 09:35PM by Maurice Makaay.
Sorry, only registered users may post in this forum.

Click here to login