前言介紹
- 這款 WordPress 外掛「IP City Cluster」是 2008-01-13 上架。
- 目前有 10 個安裝啟用數。
- 上一次更新是 2008-06-05,距離現在已有 6177 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
- 外掛最低要求 WordPress 2.1 以上版本才可以安裝。
- 尚未有人給過這款外掛評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
tmb |
外掛標籤
ip | city | image | heat map | cluster map |
內容簡介
IP City Cluster 外掛程式(IPCCP)會根據使用者從何處(IP)連上你的網站來生成地理位置的群集圖。它需要一個統計外掛程式(保持資料庫或日誌檔案)來追蹤IP。其中的重要特色包括:以輕盈式的lightbox方法進行預覽縮放、提供城市名稱及點擊量的圖像地圖、範本輸出、智慧型群集及使用者對顏色、大小等變數的控制。 可能有些人對 ClustrMap 服務已經很熟悉了。我這個月才開始使用,但一旦使用就被迷住了。一、為什麼我不早点註冊(或如何說服他們讀取我的日誌檔案)?其次,你必須為進階服務付費,這不是我喜歡的(更不用說你總是要依賴他們的服務開啟的情況下😉 - 於是我決定自己寫一個群集圖的WordPress外掛程式。當然主要問題是IP的查尋。幸好,MaxMind 提供一個免費的資料庫以及相對應的API,可以獲取IP地址對應的城市名稱、國家名稱以及經緯度等相關資訊。可看範例 screenshots。
選項
所有IPCCP選項都可以透過相對應的管理員選項面板來操作。首先,確保輸入正確的SQL表和鍵名稱(如果不是"IP"的話)。生成新圖片有三種方法:
-在管理面板中按紅色 Redraw 按鈕
-在URL中加入 ?recluster=true
-使用排程功能(在指定時間後自動生成群集圖-準確地說,它會在下一個IPCCP呼叫之後自動生成群集圖。但要考慮到爬行公共網站的垃圾郵件和機器人的數量。這與使用者指定的時間非常接近。這不是讓你感到滿意吗?它們在為你做一些好事:) 只要在排程IPCCP之前,要注意生成所需的CPU時間不要太長時間過度(或添加長達1TB的日誌檔案)。
已知問題
新的"所有城市每群集"功能不被所有瀏覽器支援。實際上它可能只支援Safari(或Konquerer或相似的瀏覽器),而且可能並不正確 (X)HTML。但當它正常工作時,確實看起來很酷:)
[更新] 它在IE7上也可以運行!也許只有Firefox會有多行標題顯示的問題?
許可證
這個WordPress外掛程式釋出的版本在GPL下釋出,沒有絕對的保修(也有這種事?)。有支援需求的請發表留言,看看社群會有什麼不同的看法。
版本歷史
2007年2月13日- v0.b5.8
> -優化程式碼:大幅增加IP搜尋速度
> - 優化程式碼:現在也檢查資料庫IP的語法
2007年3月13日- v0.b5.7 [小更新]
> – 錯誤修正:修正訪問計數
2007年3月8日- v0.b5.6 [小更新]
> – 優化程式碼:使用更少的RAM[優化過濾]
> – 優化程式碼:在大型資料集下運行更快[踢出array_merge()]
> – 在生成群集圖時增加詳細訊息的輸出
2007年3月6日- v0.b5.5 [重大更新]
> – 新功能:
原文外掛簡介
The IP City Cluster Plugin (IPCCP) generates a geographical cluster map based on where from people access you website (or to be precise: based on the IP they got from their provider). It requires a statistics plug-in (that keeps a database or logfile) which keeps track of the IP. Key features include a preview with a lightbox way of zooming, image maps for city names and hit counters for both the preview and zoomed image, template output, smart clustering and user control over color, sizes and such.
Some of you might be familiar with the ClustrMap Service. I signed up this month and was instantly hooked. After a week or two I had two issues though. One: why didn’t I sign up ealier (or how am I going to convince them to read my logfile)? Secondly you had to pay for the advanced service. Not my cup of tea (not to mention that you are always dependent on their service being up 😉 – I decided to look into writing my own cluster map WordPress plug-in. Key problem was of course the lookup of IPs. Fortunately MaxMind offers a free database and the required API to get City name, country name as well as longitude and latitude corresponding to an IP address.
See screenshots for an example.
Options
All IPCCP options are accessible through the corresponding admin options panel. First of all make sure to enter the correct SQL table and key name (if it’s anything else than “IP”). There are three ways to generate a new picture:
– pressing Redraw in the admin panel
– calling an URL with the addition of ?recluster=true
– using the scheduling feature (which automatically generates the cluster map after a specified amount of time – or to be precise, it automatically generates the cluster map, by the next call IPCCP-call after the user specified time. But give the amount of spammers and bots that are crawling over public sites. this should be close the the specified time itself. Doesn’t it give you some satisfaction, that they are actually doing some good for you 🙂 Just be aware of the CPU time required for the generation before scheduling IPCCP too often (or adding your terabyte long logfile).
Know Issues
The new “all cities per cluster” feature is not supported by all browsers. actually it’s probably only supported by Safari (or Konquerer or the like) and probably it’s not correct (X)HTML either. But it sure looks cool when it works 🙂
[Update] It also works in IE7! Maybe it’s only Firefox that got trouble displaying multiline titles?
License
This WordPress plug is released under the GPL and is provided with absolutely no warranty (as if?). For support leave a comment and we’ll see what the community has to say.
Version History
13.feb.2007 – v0.b5.8
> – optimised code: drastically increased speed of IP lookup
> – optimised code: now checking syntax of database IPs as well
13.mar.2007 – v0.b5.7 [minor update]
> – bugfix: counting of visits fixed
08.mar.2007 – v0.b5.6 [minor update]
> – optimised code: using less RAM [optimised filtering]
> – optimised code: runs faster with large datasets [kicked array_merge()]
> – increased verbosity while generating the cluster map
06.mar.2007 – v0.b5.5 [major update]
> – new feature: JPG quality
> – new feature: non-linearity in clustering
> – bundled new GeoIP database (March.2007)
23.feb.2007 – v0.b5.4 [minor update]
> – new feature: more details in subtitle & legend
> – optimised code: loading image map only on needed pages/posts
> – bugfix: scheduled task now works as claimed
22.feb.2007 – v0.b5.3 [major update]
> – new feature: print all city names in a cluster
> – optimised code: rewrote smart clustering [you might have to readjust the SCC]
> – optimised code: lightbox JS [hardcoding of URL only in one place now]
> – bugfix: template now correctly saved
20.feb.2007 – v0.b5.2 [major update]
> – new feature: verbosity while generating the cluster map
> – new option: Performance vs Memory efficiency
> – new option: legend [on/off]
> – optimised code: reading of large files now reliable and fast
> – optimised code: _getSize rewritten
> – corrected behaviour: when called with no data
> – corrected behaviour: when first called
> – corrected behaviour: _updateOptions and value validation updated
> – bugfix: image map not precise
> – bugfix: correct readout of international characters in city names
18.feb.2007 – v0.b5.1 [minor update]
> – extended logfile support [Use any logfile and apply filter]
17.feb.2007 – v0.b5 first public release [WhooHoo!]
> – new option: cron like automated generation [by setting a minimum time]
> – slightly modified admin panel
> – bugfix: rare change of user specified values for the template
16.feb.2007 – v0.a4 new option: recluster by cron
> – new option: recluster by url
> – finished admin panel
15.feb.2007 – v0.a3 lightbox + image maps [Woohooo!!!]
> – rendering of small and big images
14.feb.2007 – v0.a2 smart clustering [using an adaptive clustering distance]
> – added logfile support [fetching IPs from file]
> – new option: image map support
> – new option: show your place
13.feb.2007 – v0.a1 Preliminaries [fetch entries from SQL, group by IP, get places, group by places ]
> – figured out how long/lat corresponds to planar maps
> – figured out how to draw [using GD]
> – clustering of neighbouring citys into bigger ones
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「IP City Cluster」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
延伸相關外掛(你可能也想知道)
Server IP & Memory Usage Display 》這個外掛可以在管理頁面底部顯示內存限制、當前內存使用情況、WordPress 內存限制、IP 位址和 PHP 版本。, 以下為四個我們鍾愛的功能:, 1) 在管理頁面底部,...。
Remove IP 》Remove IP 是一個非常簡單的外掛程式,可以避免 WordPress 網站上留言者的 IP 地址被記錄。, 這個外掛程式對於不想使用 libapache2-mod-removeip(因為不使用...。
Register IPs 》 垃圾郵件是一回事,但惡意留言和假帳戶卻另當別論。有時候,有些人會決定成為爛人並創建多個帳戶來騷擾您的誠實用戶。此外掛可幫助您通過記錄創建時使用的 I...。
Visitor IP Tracker, IP Stats Analytics and IP Control With Email Alerts 》TraceMyIP官方訪客IP統計追踪外掛具備易於使用的網站分析功能,可進行訪客IP跟踪並發送電子郵件提醒、計數訪問次數、封鎖訪客IP、重定向IP和IP存取控制。, 強...。
CGC Maintenance Mode 》輕鬆使用這個外掛將你的網站進入維護模式,以便你進行更新。該外掛透過選擇一些IP地址並將其與訪問者的IP地址進行比較,來運作。, IP地址匹配的使用者可以正...。
Smart Maintenance Mode 》智能維護模式 (Smart Maintenance Mode) 是一款外掛,可以讓您的網站進入維護模式,讓讀者看到即將上線的頁面,而您可以看到實際網站開發的進度。您可以創建...。
Secure Admin IP 》這個外掛是一個簡單的解決方案,透過 IP 白名單,保護你的 WordPress 管理介面。只有在白名單中的 IP 地址才能進入管理介面(支援外部白名單)。, , 另一個進...。
CloudGuard 》使用雲端和全球 CDN 的力量來限制您的登入頁面訪問。, CloudGuard 為您的登入頁面帶來全球和雲端驅動的保護。使用 Cloudflare 的免費地理位置服務,此超輕量...。
country-redirect 》這個外掛對於像 Alfa Romeo、Bosch、Biir 和 Siemens 這樣的公司和擁有不同網站的部落格(針對來自不同國家的非登入訪客)非常有用。, 它在 WordPress 的管理...。
IP Based Login 》IP Based Login 允許您直接從授權的 IP 登錄,而不需要輸入密碼。因此,如果您想允許某人登錄但不希望共享登錄詳細信息,只需使用 IP Based Login 添加其 IP ...。
MW IP Denied 》MW IP Denied 是一個 WordPress 外掛,允許你根據 IP 位址為每個文章設定存取限制。當存取受到限制並且存在 template-access-denied.php 模板,MW IP Denied ...。
Real IP Detector 》這個外掛可以讓 WordPress 在後面有反向代理、負載均衡器時,檢測真正的訪客 IP 地址。, 啟用外掛後就可以直接運作了。, 此外,它也兼容以下訪客檢測程式:, ...。
ExtraWatch (Live Stats, Realtime tracking, Visits on a map and more) 》了解您的網站即時瀏覽情況,查看誰正在瀏覽哪些頁面,以及有關他的國家、城市、設備信息。這是一種非常好的方法,可以了解使用者如何使用您的網站。, 查看地...。
Redirect Modal Based On Country 》這個外掛非常有用,可以讓您的訪客知道他們也可以從其所在國家專門訪問您的網站。, 它在 WordPress 的管理區創建了一個名為「基於國家的重定向彈出窗口設置」...。
Real IP and Geo for Cloudflare 》來自 Cloudflare 支援網站:, 問:為什麼我的伺服器日誌顯示 Cloudflare 的 IP 使用 Cloudflare?, 答:當您登錄 Cloudflare 時,日誌顯示方式會因 Cloudflar...。