In this 4-months-long release, we are introducing SEO issues, which work on avoiding duplicated content, if you use mod_rewrite mode (it seems this issue helped us to get our positions back in Google); new option for deleting many messages by one click; defining new database field for "ban reasons" in your admin panel; also as providing A LOT of minor and major fixes for making miniBB more stable, convenient, fast, content-oriented and still 'smallest' board software package on Earth!
We are out of imagination, when final release of 2.0 will be out; and we are hoping each time we're making subrelease, that this will be the latest before it. Each time we hope, that next release will contain only bug fixes, but nobody knows it! And as you see, each time we have a lot of stuff to implement, for making it "the best". Probably, we just may to give it an index '2.0' and continue to work, forcing users to update — because RC5 version was worth really a lot of job from our side, even if it's not really visible. Update is highly recommended!
We have now complete manual on how to upgrade miniBB:
https://www.minibb.com/forums/manual.html#upgradesFour big, but worth of it steps to update from the previous version:
1)
Update your database table, executing this query:
ALTER ignore TABLE minibbtable_banned ADD banreason varchar(255) DEFAULT '' NOT NULL;where 'minibbtable_banned' stays for the title of your "banned" table.
2)
Back up and then update the following core script files, overwriting them:
*
bb_admin.php — editing forums dropdown list the same as in bb_func_forums; added "ban reason" field processing; bb_plugins and bb_plugins2 including now
*
bb_codes.php — completely removed email decoding tag
*
bb_cookie.php — it is now possible to store admin's password directly in MD5 hash (update this file only if you are not using your own authorization code); minor security fix.
*
bb_func_checkusr.php — fixed error handling when adding custom obligate fields & errors
*
bb_func_delmsg.php — group deletion of messages now is possible; could help you in deleting many messages simultaneously with a click; mod_rewrite relocation issue.
*
bb_func_editmsg.php — little date improvement; mod_rewrite issue
*
bb_func_editprf.php — minor development fix
*
bb_func_forums.php — <optgroup></optgroup>
*
bb_func_ldisc.php — parseTopic() introduction; latest discussions/closed forums-excluded forums fix; XHTML issues; SQL optimizations.
*
bb_func_login.php — it is now possible to store admin's password directly in MD5 hash (just set 32 symbols for it). Now displays common warning for all login errors when $loginError=1;
*
bb_func_movetpc.php — changed list of forums (based now on bb_func_forums)
*
bb_func_pthread.php — email sending fixes (acc. to multilanguage board); empty space symbol fixes; limitation of minimum text length defined; email notification fix (not send to the replier his own reply).
*
bb_func_ptopic.php — empty space symbol fixes; limitation of minimum text length defined (10 symbols), both for topic lenght and message length. Will force your users to create really important content messages. Corresponding changes in language pack ($l_topiccannotempty, $l_emptyPost variables).
*
bb_func_search.php — descending thread issues on redirecting; mod_rewrite issues; searchin now by complete fragments of words
*
bb_func_stats.php — mod_rewrite issues; fixes concerning topic views disabled; fixed $dbUserSheme on most active users
*
bb_func_txt.php — URL making after BB codes fix; encoding urls function swap (completely rewritten urlMaker() ); minor 'isMod' fix
*
bb_func_usernfo.php — ability to use $customProfileList array and define fields to display in user's profile in necessary order; fixed topics amount — if zero, it won't be shown in profile; fixed moderators definition
*
bb_func_vthread.php — more convenient method of parseMessage(); function (now it will use globals instead of adding a string, which allows to specify many globals in this function, and then put them as variables into template); fix of read-only forums quote; group deleting issues; confirmation of deleting group messages.
*
bb_func_vtopic.php — parseTopic(); introduction; changes accordingly to new form solutions; it is now possible to set custom sorting of topics in special forums via $customTopicSort option. Define in setup_options.php or bb_specials.php:
$customTopicSort=array(
FORUM_ID_1=>array('SORTING ORDER 1', 'SORTING ORDER TITLE 1'),
FORUM_ID_2=>array('SORTING ORDER 2', 'SORTING ORDER TITLE 2')
);
Example:
$customTopicSort=array(
9=>array('topic_title ASC', 'Topic title'),
5=>array('ord(substring(top
ic_title,1,1)) ASC', 'Alphabetically')
);
provides sorting by topic_title field in ASC order (for latin alphabet) for forum with ID=9; also provides alphabetical sorting by non-latin alphabet for forum ID=5. Define {$defaultSorting} variable in templates/main_topics.html — and you will get the link for custom sorting, if user has changed it to "New topics". Custom sorting overrides any sorting user has set, except for what is specified in GET request. If mod_rewrite option is set, user's sorting will be available only on the first page of topics list; any other pages will be sorted by custom.
* bb_functions.php — mod_rewrite and main URL fixes; makeUp() optimization; fixes concerning new topic form solution; sendMail() function optimization, ability to use external PHPmailer class for advanced SMTP sendings. Refer to miniBB Manual of how to install it properly with miniBB.
* index.php — fixed working with avatars; search bug fix on post-only forums; admin panel link fix; secured 'customProfileList' setting; secured 'correct', 'customTopicSort' settings; sortBy fix; manualIndex, startIndex, metaRobots; mod_rewrite optimizations on redirect; $l_anonTxt variable; login/logout routine changes; a lot of non-critical, but optimization fixes. Now we display common warning for all login errors.
* setup_mysql.php — search function improvements
3) Do not overwrite these files, but only add new stuff at the end of them:
* setup_options.php
— OBLIGATORY parameters $startIndex, $manualIndex; defines full name of start forums page, which is used on many crosslinking pages and within the forum. By default, should be set as 'index.php' or the original $indexphp value without question sign at the end. So if you have {$main_url}/{$startIndex}, you go directly to forums page. This setting is used only for displaying backlinks to the main forum page. If you are using mod_rewrite mode, it's ok to set this to 'index.html', defining this rule in .htaccess like:
RewriteRule ^index\.html$ ./index.php?mdrw=on
— NOT OBLIGATORY option available; uncomment $enableGroupMsgDelete=TRUE; for enabling group messages deletion (see above bb_func_delmsg.php)
* /lang/eng.php (your language pack) — small fixes; bb codes translated; new search module variable (type by complete fragments of words); new variable $l_deleteAllMsgs; for the new variables — see below the file for adding in your own language pack.
4) For default version, we have done changes in the following files (don't overwrite your files, if you have changed these templates; however, it would be good step to update them if you are updating core script files):
* templates/admin_banusr1.html — added "ban reason" field
* templates/admin_deleteban1.html — XHTML issues
* templates/admin_editforum1.html — {$listForums} instead of {$forums_to_edit}
* templates/admin_viewsubs.html — $startIndex update accordingly to the setup_options definition
* templates/form.js — updated code, so now codes like [imgs]null[/imgs] or [url=null][/url] (on propmt cancel) should not be inserted
* templates/main_footer.html (XHTML)
* templates/main_forumgroup.html (XHTML)
* templates/main_forums.html — quotation attributes (XHTML)
* templates/main_forums_cell.html (XHTML)
* templates/main_header.html — New tag: <META NAME="ROBOTS" CONTENT="{$metaRobots}"> — we recommend to add this tag to your default header file, specially if you are using mod_rewrite. Also changed lowercase of all tags, quotation marks on attributes (futured XHTML issues); {$user_logging} is enclosed in "tbTransparent" table here (was in user_login_only_form).
* templates/main_last_discussions.html (XHTML)
* templates/main_last_discuss_cell.html (XHTML)
* templates/main_post_form.html — eliminated encoding warning {$l_warnEncoding}; bb codes translated
* templates/main_posts.html — $startIndex update accordingly to the setup_options definition; onMouseMove instead of onMouseDown; getQuotation() update; confirmDelete() update; new form around list of messages, creates list of checkboxes for mass deleting; new variable {$deleteAllMsgs} in administration panel.
* templates/main_posts_cell.html: new variable {$deleteBox} (add after {$posterText}) — indicates checkbox for group deleting of messages
* templates/main_topics.html — $startIndex update accordingly to the setup_options definition; icon valign fix; new HTML comment tags necessary for running additional solutions; XHTML issues.
* templates/main_user_info.html — $startIndex update accordingly to the setup_options definition
* templates/main_warning.html — $startIndex update accordingly to the setup_options definition
* templates/search.html — $startIndex update accordingly to the setup_options definition; caption3 instead of caption6 in CAPTION; slight header change; HTML code updated.
* templates/stats.html — $startIndex update accordingly to the setup_options definition
* templates/tools_move_topics.html — {$listForums} instead of {$forumsList}
* templates/tools_userips.html — $startIndex update accordingly to the setup_options definition
* templates/user_dataform.html — $startIndex update accordingly to the setup_options definition; {$l_im} variable added for instant messenger
* templates/user_logged_in.html — <table> removed
* templates/user_login_form.html — XHTML issues; added {$l_anonTxt} variable
* templates/user_login_only_form.html XHTML issues; <table> removed
5) We have updated these files accordingly only to new version. Do not update these file, if you already have running version of miniBB:
* !UPDATE_DB.sql: added
ALTER ignore TABLE minibbtable_banned ADD banreason varchar(255) DEFAULT '' NOT NULL;
* _install.php — fixed
* _install_mysql.sql — added new field `minibbtable_banned`.
* new forum icons: all /img/forum_icons/topic_*.gif
* templates/manual_eng.html — default version of miniBB manual updated
Update history became big and now it's separated from the main miniBB package.
Your suggestions and test are welcome as always!