Post view

Dolphin 7.3.4 Released正式發表,其中包含2個我親自回報的Bug修正

在大約一年前的「2nd of November 2016」發表「DolphinPro 7.3.3 Released. Important security update!」經過將近一年以後,終於發表修正許多Bug的「Dolphin 7.3.4」版本。因為一年多以來,都沒有任何的版本更新來修正問題,或是新增功能,甚至連老開發者都離職,讓某些使用Dolphin架設網站的站長認為Dolphin已死。

事實上BOONEX團隊正在研發一個完全不同的「UNA v9」社群網站系統。這個新的「UNA v9」與「Dolphin」程式碼完全不同,無法直接升級,只能透過把整個「Dolphin」匯入到新的「UNA v9」來搬移到新的網站。

Andrew Boon posted 2nd of January 2017 in Our Journey. 19 comments.
Lean, efficient, concise. These are the words for 2017. Less talk, more walk.

We have a lot to do...

- Release Dolphin v10

- Release UNA v9

- Build a new Messenger for both Dolphin and UNA

- Tidy up Boonex.com

- Bridge Dolphin and UNA

- Improve support response time

雖然Andrew號稱在今年要發表「Dolphin v10」但是從現在才發表「Dolphin 7.3.4」小幅度版本修正來看,這個空頭支票確定已經跳票!今年絕對不會有「Dolphin v10」甚至明年都很可能不會有「Dolphin v10」。

Dolphin 7.3.4 Released

Dolphin 7.3.4 is an important service update, bringing over 60 various fixes and minor enhancements. This version is a BETA release, non-upgradable, offered for testing purposes only.

Please, do not use this version for production sites. It is not upgradable, and not production-ready. We call for experienced webmasters and developers to download and test it on sandbox sites to help us verify that it is stable and ready for full release.

The long-awaited Dolphin 7.3.4 is here. While it's a service update, focused primarily on stability and bug-fixing, there are still plenty of enhancements. Altogether, 179 issues were addressed in this iteration.

Dolphin 7.3.4 is a stable version, recommended for all Dolphin-powered sites.

Closed 2 days ago 98% complete

Timeline: Warning on "Load More" click. bug

Bad paddings in Mailbox actions line. bug

Facebook connect: update sdk to the latest version enhancement

Photos(all media modules): privacy should be checked when file is access by direct image URL bug

Page didn't load Google Maps correctly duplicate

Newline escape sequence char (\n) showing in Tooltips bug

Events/Groups: attached video isn't correctly displayed in FF bug

Groups/Events: auto-subscribe when user is joined enhancement

Allow actions which are allowed for guests for non-active members bug

Facebook Connect - Auto Friend bug

Update PHPMailer to the latest version bug

URLs parsing problem bug

Ads: latest featured ad block is showing for admin only bug

Tags: database query error bug

Image uploading progress bar enhancement

Timeline: "Load More" in Outline on Homepage is loading the same posts continuously bug

Feedback: tags page problems bug

Timeline: repost of a single photo in an album cause incorrect date bug

site thumbnails in outline bug

Problem with HTTPS & Timeline Link Images bug

No translation for lang key bug

Ads: image is out of the container on mobile size screen

Database error on search.php page bug

Profile Pruning: Base "last login" date on user's registration date if they haven't logged in bug

Forum: set sql_mode bug

Photos/Videos/Sounds/Files: no index for 'Uri' field bug

private messages are showing the receiver's name bug

Make sure that Full-name, First-name and Last-name are searchable bug

Videos View - Related Video Block does not appear bug invalid 1Videos (and other media modules): no line breaks for media file description. bug

New Alert: when page is deleted from page builder

Fans Confirmation Error when Permalinks disabled bug

EVO Jumpy Background in IE bug

Site/Profile customizer: customization block isn't responsive. bug

Photo Grid Incompatible with Join Form bug

Problem with Ads text length limit bug

Update link to generate privacy text bug

Menu builder: incorrect legend bug

Sites: DB error bug

Mass Mailer: Add "All" or "Ignore Sex" to send options bug enhancement

When there is no sex & DOB fields on join form, it shows as underlines on browsing page bug

Text overflow issue in "Simple" view in Admin Panel bug

Text overflow issue in profile description block bug

Guest Commenting Bug On Timeline/Wall wontfix

Default currency for BitPay enhancement wontfix

Feedback: When a member is deleted, their feedback remains. Feedback for deleted members shows the current user instead. bug

Facebook removed FacebookLocales.xml file bug

Facebook share in EVO template bug

Facebook Connect - Extended Profile Infomation question

Forum: search term isn't properly escaped in regular expression

Chat+: display profile link for all users, not for admins only enhancement

World Map: map isn't loading sometimes bug

Timeline: Images are truncated on mobile devices. bug

Timeline: Apostrophe in NickName issue. bug

Login with long domain tld in email address isn't accepted bug

Profile/Account page -> view timeline block on mobile devices. bug

Possibility to override password hashing algorithm invalid

User not automatically logged in after joining bug

Use all supported Currencies in BitPay integration. enhancement

TinyMCE: enable fullscreen plugin

When DB connection is gone and email report about is sent - it fails

Comments: Links of a certain length are incomplete or not made at all

在這些修正完畢的Bug裡面(不知道為什麼只完成98%),有兩個關於相片的Bug,是我親自在原廠的討論區上回報的問題:

・Photos(all media modules): privacy should be checked when file is access by direct image URL bug

・Photos/Videos/Sounds/Files: no index for 'Uri' field bug

我自己修正好了「Photos/Videos/Sounds/Files: no index for 'Uri' field bug」這個Bug。因為要修正這個問題非常簡單,只要在phpMyAdmin的MySQL管理網頁裡面,在相簿、影片、聲音的Uri欄位,全部都按下「建立索引表」的按鈕就行了。

但就是因為原廠忘記幫相簿、影片、聲音的Uri欄位建立索引表,導致照片超過10萬張以上,照片的顯示速度會異常緩慢,更慘的是瀏覽照片會導致MySQL異常忙碌超過200%以上,最後導致無法連接資料庫的錯誤!

另外一個「privacy should be checked when file is access by direct image URL bug」的問題,由於原廠認定是Bug,而且已經排入修正時程表,所以我就懶得自己修正這個Bug,讓原廠來修正這個問題點。

當然,正式運作的網站,不能隨意升級到「Dolphin 7.3.4」!

我必須先在「地下社群網站」測試從目前的insoelr升級到新的「Dolphin 7.3.4」會不會有什麼嚴重的問題!因為insoler被我新增了許多原本海豚系統沒有的功能,修改了許多程式碼。所以必須先了解原廠從前一版的「Dolphin 7.3.3」到「Dolphin 7.3.4」更改了哪些部分?那些部分是不是剛好也被我同時修改成不同的功能?

如果沒有仔細比對、測試,就直接升級運作中的insoler網站,只會導致有許多功能無法正常運作,更慘的時候,很可能會導致網頁無法開啟,網頁內容一片空白!

也因此只是從「Dolphin 7.3.3」升級到「Dolphin 7.3.4」,很可能會需要一個星期,甚至是一個月的時間,默默的在地下室一一檢查完畢,才會正式升級insoler網站到新的版本。

這次升級到Dolphin 7.3.4的速度比我預計的一個星期還要更快就完成了!因為我修改最多的Photos模組,這次只有BxPhotosModule.php與BxPhotosPageView.php兩個PHP檔案而已,所以才能比預定的時間更早完成。

新增海豚系統原本沒有的功能

到現在為止,我已經幫海豚系統新增了許多原廠沒有的功能,包括:

1. insoler「雲端相簿」支援直接上傳「RAW照片」檔案,並自動轉成JPEG顯示在相簿裡面

這是第一個,世界初、支援RAW可與寫真愛好者交流「RAW相片」的交友社群網站。所有會員都可以直接上傳RAW照片檔案,網站系統會自動把RAW轉換成JPEG,顯示在會員的相簿裡面。insoler的「雲端相簿」並沒有限制與計算相簿容量功能,所以目前是「無限制容量」。雖然如此,目前也只有某阿光與某中國會員常常使用「insoler雲端相簿」功能。

2. 顯示相片的EXIF資訊與GPS地圖資訊,而且支援多國語系

Dolphin原版只能顯示照片而已,無法顯示EXIF資訊與GPS地圖。

3. 上傳照片使用「非同步」後置處理,上傳照片的時候可以用最高的網路上傳速度,把照片上傳到insoler網站

當然,照片的上傳速度要依據你使用的網路速度為主。雖然我們現在有100M/100M的雙向光纖網路,但因為很少有會員上傳照片,因此實際上能體驗「高速上傳」的人,大概只有某阿光了。

4. 網站完全支援多國語系,包括TinyMCE的編輯器

我個人無法完成多國語系翻譯,所以其實是我自己寫一個翻譯程式,透過微軟翻譯API來翻譯多國語系,目前支援的語系有繁體中文、簡體中文、日本語、英語、俄語、韓語、法語、德語、西班牙語、義大利語、葡萄牙語。

5. 相片、部落格的「評論」功能,可以支援雙向通知功能

原版的海豚系統只有「單向通知」功能,也就是某人(B)在發表意見時單向通知原作者(A),當原作者(A)回覆評論的時候,發表評論的某人(B)卻不會收到任何通知。

6. 在網站首頁新增「討論區最新話題」區塊

原版的海豚系統只能透過RSS Feed在網站首頁顯示「討論區最新話題」區塊。表面上好像可以使用,但其實透過RSS Feed功能的話,瀏覽器會另外呼叫RSS通訊協定,從網站伺服器主機重新送出RSS Feed內容!導致顯示速度更慢,而且還會增加網站伺服器主機與MySQL資料庫主機的負擔。

所以我花了很多時間研究,終於在forum新增了原版沒有的「討論區最新話題」區塊。原版的海豚系統可以在網站首頁顯示「部落格最新日誌」區塊,卻沒有「討論區最新話題」區塊,其實是很奇怪的事情。

7. 支援「更新語系」功能

原本的海豚系統只能匯入新的語系。如果有修改目前語系的內容,例如繁體中文、簡體中文、日本語... 等,必須先刪除語系,才能以匯入新的語系的方式,來匯入修改過的內容。

表面上這似乎沒有什麼太大的問題,但是一但刪除某個語系,比如刪除「繁體中文」就會導致正在用「繁體中文」瀏覽網頁的人,會看到網頁出現亂碼!而且無法刪除系統預設的語系!(預設是英語)如果要刪除系統預設的語系,就必須先把英語改成「繁體中文」,才能刪除英語,再重新匯入修改好的英語!

當然,從資料庫刪除一筆資料,再重新新增一筆資料的話,還會造成資料的ID筆數號碼不斷增加!雖然這不會有太大的問題,但卻很難從對應的ID直接判斷語系。

所以不管是什麼情況,只能「匯入新的語系」是一個非常差,而且是過於簡陋,有點偷工減料的設計!所以我在海豚系統裡面新增了「更新語系」的功能,只要有修改過繁體中文、簡體中文、日本語... 等語系內容,就只要重新匯入一次即可更新完畢。

8. insoler討論區終於可以修改一篇話題的「標題」

由於海豚系統的「討論區」程式系統本身就沒有「發表一篇議題以後,重新修改標題」的功能,所以如果標題裡面打錯字、覺的標題用詞不妥,一但發表討論話題以後,就算打錯字,都無法修改標題內容!其實一個討論區系統,竟然缺少「編輯標題功能」這是非常糟糕的事情。

以前如果會員自己想要修改標題,或是修正錯字,是絕對不可能的任務!這是因為海豚系統的討論區本身就沒有這種設計,並不是因為我禁止會員修改標題!

現在終於可以任意修改文章的標題,或是修改文章的內容。

9. 將MySQL資料庫從3位元編碼的utf8轉換成4位元編碼的utf8mb4

原本海豚系統使用的編碼系統是許多網站常用的utf8_general_ci、utf8_unicode_ci或是utf8_bin。這幾種都是1〜3位元編碼的Unicode多國語系系統。事實上Unicode是一個1〜4位元的多國語系系統,目前最新的版本是2017年6月20日發表的Unicode 10.0.0。由於有一些漢字(屬於極少使用的漢字與異體字)與許多的表情符號,都必須使用4位元編碼的Unicode,所以我把整個資料庫編碼改成最新4位元編碼的utf8mb4_bin或是utf8mb4_general_ci。

這樣就可以在文章裡面直接輸入Unicode 10.0.0支援的表情符號,例如笑臉的「?」、電腦的「?」、滑鼠的「?️」、貓的「?」、狗的「?」,或是漢堡的「?」等等。

蘇言霖 2017/10/19 0 1033
Comments
Order by: 
Per page:
 
  • There are no comments yet
Rate
0 votes
Post info
蘇言霖
「超級懶貓級」社群網站站長
2017/10/19 (2352 days ago)
Actions