K2 v2.10.2現(xiàn)在可以下載,Joomla 1.5到3. x都可以使用它。這個版本解決很多前期存在的問題,并從UI交互性能到,bug修復(fù)和安全進行了提升。
如果你的網(wǎng)站基于K2創(chuàng)建,歡迎盡快下載安裝它。下載地址: https://getk2.org/downloads

更新K2的過程相當簡單。如果你在Joomla 1.5,抓住上面的zip文件鏈接,將它安裝在你的現(xiàn)有K2的版本。如果你在Joomla 2.5或3.倍,去Joomla更新管理器,清除更新緩存,重新審視,你會發(fā)現(xiàn)新版本可以立即更新。如果你仍然在Joomla 1.6或1.7,可以發(fā)送郵件給我們,或幫自己一個忙,升級到Joomla 2.5然后Joomla 3. x。
想要更新這個新的版本嗎?
下面列出的K2 v2.7.1的改變或更新。后臺管理
- 添加類別的批處理操作(v2.7.0作為項目介紹)
- 固定端語言過濾器類
- 在PHP7環(huán)境下上傳圖片問題
- 固定批量語言切換到“所有”從一個單一的語言項目
- 當創(chuàng)建一個新項目時修復(fù)丟失的額外字段(#306)
- 固定新創(chuàng)建的附件不存儲值在正確的HTML元素(2.7.0之后)
- 更新NicEdit
- K2現(xiàn)在將用下劃線在圖像文件名上傳的圖像畫廊代替白色空間,防止后端圖像預(yù)覽的問題
- 固定模態(tài)“瀏覽服務(wù)器”按鈕不工作的類別編輯表單
- 固定v2.7.0隱藏的媒體預(yù)覽
- 不同的用戶界面(UI)的修正和改進(在所有視口)
FRONTEND
- Sub- and Child-Category ordering issue (#278) related to a bug in backend UI ordering controls
- Social media buttons will now adapt to the language of your site (if it's supported from Facebook, Twitter or Google+)
- Added option in the K2 Tools module's "Search Box" options for setting a menu item id (comes handy when you want to enforce a redirect page after using the K2 search box, so you cab style the results better)
- Added option (in the component settings) to control the display of K2 User Profiles for users with no items. This setting will prevent spammers from abusing their auto-generated K2 User Profile page (after a simple signup) in order to post spam links.
- Fixed redirection issue in the user registration form when reCAPTCHA v2 is enabled
- Fixed "related items by tag" image display alternate text missing
- Updated the attachments download function to prevent PHP memory limit related errors when trying to download large files - download initiation is also faster now
- Fixed login/logout redirection issue in mod_k2_user
- Fixed duplicate item pulling when retrieving content from multiple tags in the K2 Content module
- Fixed timestamp missing from OpenGraph image meta tags, when the timestamp option (in K2 settings) is on for K2 item images
- Category ID hiding in the URL (when using K2's Advanced SEF options) has been restored
SECURITY
- Fixed: Low priority XSS vulnerability in the K2 backend - relates to inadequate filtering of the search option in backend listings. Upgrade to version 2.7.1 to resolve.
GENERAL
- Improved compatibility with PHP 7.x
- Latest Joomla 3.6.x compatible
- Still 100% compatible with Joomla 1.5 and 2.5
- Removed PHP Pear's Services_JSON class and replaced with native PHP functions
- Many, many other bug fixes and improvements under the hood
Upgrading
If you use v2.7.0 already, then it is (as always) safe to upgrade to K2 v2.7.1. If you use a version before 2.7.0, refer to the2.7.0upgrade notes. In v2.7.1 there is a minor HTML output change in the frontend (in the item.php override) with the addition of a language tag in social media buttons.If you already have your own K2 CSS and/or HTML template overrides then there's nothing to worry about. If you use "stock" K2 CSS and HTML template overrides, just browse your site after the upgrade to make sure nothing's misalligned. In any case, exceptions may occur but they are usually easy to resolve. If you need any help, just post about your issue in the K2 Community Forum.
Since the release of K2 v2.7.0 we have added an update notification for new releases of K2 within the K2 backend (viewed only by super admins) to make it easier to spot new releases and update accordingly.
Before upgrading, it's always a good idea to get a backup of your site (just in case):
- To upgrade in Joomla 1.5, just install v2.7.1 on top of any existing K2 installation.
- To upgrade in Joomla 2.5 or 3.x, either install on top (as with Joomla 1.5) or use Joomla's extension updater (you should already see the notification for v2.7.1).
CSS & HTML Template Overrides
As stated above, the only frontend change is the addition of a language tag in social media buttons, in the item.php override.Metrics, metrics, metrics...
The K2 Metrics(https://metrics.getk2.org/) initiative launched since v2.7.0 has been a real treasure for us, shaping the development of K2 for the future. To give you a quick example, we were using (for many years already) PHP Pear's Services_JSON class which was a PHP implementation of json_encode/decode functions, geared primarily for PHP versions before 5.2. This was something we had in to support Joomla 1.5 on PHP 5.2 and below (as Joomla 1.5 is compatible with even PHP 4.x according to the official Joomla requirements page). K2 metrics showed there are just 3 sites on PHP 5.1 and 0 on PHP 4.x while using K2 v2.7.0. So we removed that class and used native PHP functions instead. This is a trivial example but if you have a look ath the metrics page you'll easily see that the LAMP stack rules (MS tech is less than 1%), PHP 7 is (naturally) slow to adopt, Apache rules (but a 20% of that with accurate version reporting uses old Apache versions - 1.x or 2.2), Nginx is surprisingly third (behind Apache & LiteSpeed) so naturally you can assume that most sites are run on cPanel or Plesk based servers and finally MariaDB is starting to rise.There are currently ~110,000 active sites using K2 v2.7.x - the actual number is probably higher if you consider we aggregate monthly data and only when a super admin navigates to the K2 backend. That's a huuuuuge number if you think about it. And of course K2 is on a steady track to surpass 3 million downloads within the year.
Enjoy K2 v2.7.1 :)





