[WordPress] 外掛分享: Category Country Aware WordPress

首頁外掛目錄 › Category Country Aware WordPress
200+
安裝啟用
★★★★★
5/5 分(3 則評價)
1820 天前
最後更新
問題解決
WordPress 3.3+ v1.2.3 上架:2014-11-17

內容簡介

由於個人原因,我不能再繼續開發或支援此外掛。如果您有興趣接手此外掛,請參閱 https://developer.wordpress.org/plugins/wordpress-org/take-over-an-existing-plugin/

國家地理位置簡碼滿足所有需要,加上最靈活的文字(和 RSS)小工具。為您的訪客的區域(國家)和/或當前類別定制和個性化您的帖子和小工具內容。

 

自定義帖子內容以適應訪客所在地(國家)。

在帖子和小工具區域中顯示與類別相關和訪客國家相關的廣告/內容。

製作類別和國家意識的 CCA 小工具(文字/腳本/新聞動態),與帖子的類別和/或訪客的位置相關。

製作智能響應式的 CCA 小工具/廣告(根據屏幕寬度在帖子或側邊欄中顯示)。

 

功能(在 CCA 外掛指南中了解更多):

位置感知簡碼可在帖子和頁面中使用(請參閱 CCA 文件)。您甚至可以自動將文本中的溫度轉換為訪客使用的刻度。

您可以基於類別和/或訪客所在地控制小工具內容

在側邊欄中添加多個小工具,每個小工具都可配置顯示基於當前類別/國家的內容

按名稱選擇類別(而不是非友好的數字 id)

您可選擇要顯示的 RSS 新聞內容的字符數(不像 WP RSS 小工具)

選項可將新聞鏈接的 nofollow 和 RSS 鏈接打開到新選項卡中(與 WP RSS 小工具不同)

相同的小工具可根據類別和訪客所在地用作「文字」或 RSS 小工具,節省寶貴的側邊欄空間

可與 Cookie Notice 外掛一起使用,僅限歐盟訪客顯示通知

可與 Menu Item Visibility Control 外掛一起使用,修改主導覽鏈接以適應訪問者所在地

客戶端(瀏覽器) Ajax 國家/歐盟地理定位的 API - 暴露提供用於需要 JavaScript 解決方案的外掛和開發人員。

擴展(開發人員參見下文)提供其他功能(請參閱插件文檔)

 

旅遊博客示例:

在一個 CCA 側邊欄小工具(您可以使用更多)中:

默認顯示酒店預訂廣告/表格

對於類別「Equipment」的帖子,顯示 Amazon.COM 旅遊小工具廣告/表格;
但如果訪客位於英國或愛爾蘭,顯示 Amazon.CO.UK 的等效廣告/表格;

類別「Transport」:顯示航班搜索廣告

類別「Information」:默認顯示英國政府旅遊警告新聞動態(RSS);
但如果訪客是來自美國或紐西蘭,則顯示他們政府的等效提要

使用「帖子中的廣告小工具」在「equipment」類別的帖子中顯示小工具廣告。

設置小工具僅在小型設備(即當側邊欄不可見時)中顯示。

使用簡碼為不同國家的訪客自定義您的帖子,例如:

[display only=”US,GB”]some content[cca_display]將僅顯示來自美國和英國的訪客

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.2.3) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Category Country Aware WordPress」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

DUE TO PERSONAL CIRCUMSTANCES I AM NO LONGER ABLE TO DEVELOP OR SUPPORT THIS PLUGIN. IF YOU ARE INTERESTED IN ADOPTING THIS PLUGIN SEE https://developer.wordpress.org/plugins/wordpress-org/take-over-an-existing-plugin/
Country Geolocation shortcodes for every need, plus the most flexible Text (and RSS) Widget available. Customize and personalize your posts and widget content for your visitor’s locale (country) and/or the current category.

 
Customize post content to suit the visitor’s location (country).
Display category relevant and visitor country relevant adverts/content in posts and widget areas.
Make category and country aware CCA widgets (text/scripts/news feeds) relevant to the post’s category and/or visitor’s location.
Make your CCA widgets/adverts smart responsive (display in post or sidebar depending on screen width).
 
Features ( more info in the CCA Plugin Guide):

location aware Shortcodes for use in posts and pages (see CCA documentation). You can even auto convert temperatures in your text to the scale used by your visitor.

YOU control widget content based on category(s) and/or visitor’s locale(s)

add multiple widgets to the sidebar, each configurable to display content based on current Category/Country aware content

select categories by name (not by unfreindly numeric id)

YOU choose the number of characters to display for RSS News Item excerpts (unlike WP RSS widget)

option to nofollow news feed links and to open RSS links in new tab (unlike WP RSS widget)

the same widget can be used as “Text” or RSS widget, depending on category and visitor locale, saving you valuable sidebar space

can be used with Cookie Notice plugin to limit display of notice to EU visitors only

can be used with Menu Item Visibility Control plugin to modify main navigation links to suit visitor’s locale

API for client side (browser) Ajax country/EU geolocation – for use by plugins and coders who need a javascript solution.

extensions (developers see below) providing additional functionality (see plugin documentation)

 
Travel Blog EXAMPLE:
In one CCA sidebar widget (you can use more):

display a hotel booking advert/form by default

for posts in category “Equipment” display an Amazon.COM Travel Gadget advert;
but if the visitor is located in the UK or Ireland display an Amazon.CO.UK equivalent;

category “Transport”: display a flight search advertisement

category “Information”: display UK Gov Travel Warnings News Feed (RSS) by default;
but if the visitor is from US or NZ show their Government’s equivalent Feed instead

Use “Ads within posts widget” to display a gadget advert within posts in category “equipment”.

set widget to only display on small devices i.e. when your sidebar is not visible.

Use shortcodes to customize your posts for visitors from different countries e.g.

[display only=”US,GB”]some content[cca_display] will only display the enclosed content, advert etc to visitors from US and UK.

[cca_display not=”GB,AU”]some content[cca_display] will NOT display the enclosed content to visitors from the specified countries.

 
CCA Goodies Extension
Currently free for a tweet see this post for more info. More flexibility for sidebar widgets . More “Ads in Posts” widgets.
Enable PHP.
Preview mode + view CCA content as if you are a visitor from specified country. More Geolocation shortcodes. Give pages “categories” etc etc.
 
GeoIP Country Data:
This product includes GeoLite2 data created by MaxMind, available from http://www.maxmind.com .
If you use Cloudflare and have “switched on” their GeoLocation option ( see Cloudflare’s instructions ) then it will be used to identify visitor country. If not, then the Maxmind GeoLite2 Country Database, installed by this plugin, will be used.
Experts: a “hook” is provided to allow you to use other GeoIP systems with this plugin.
 
Developers and coders: edit functions.php or build your own CCA extension plugin using CCA functions, filters and actions.
Useful functions & methods are detailed in the CCA website’s documentation. Actions, Filters & Hooks have yet to be documented; but view the RSS code within this plugin or download the “CCA Goodies Extension” from the CCA website to give you an idea of how to add additional functionality.
If you want to build your own extensions then contact me first as there is a chance that hooks will be renamed or removed.
License
This program is free software licensed under the terms of the GNU General Public License version 2 as published by the Free Software Foundation.
In particular please note the following:
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon