內容簡介
### 外掛總結:
這個外掛與 Bin their Dump That 在廢物運輸行業中的特定網頁應用程序進行整合。
### 問題與答案:
1. 這個外掛使用了哪些外部服務?
- Google 地圖 API 用於驗證使用者輸入的地址,重要性在於提供廢物運輸服務。相關使用條款可在 [這裡](https://cloud.google.com/maps-platform/terms) 找到。
- https://btdt.dev2.rocks/controller.html 或 https://www.Bintracker.software/controller.html:允許外掛從/向特許經營者數據庫請求/發送信息。同時,進行所有安全檢查,以確保所涉及的模塊有效且為外部方授權。安全檢查完成後,調用模塊並進行第二層安全檢查,驗證接收到的數據。相關使用條款可在 [這裡](https://www.bintracker.software/forms/EULA.html) 找到。
- https://www.gstatic.com/charts/loader.js:允許外掛使用 Google 圖表生成圖表,用於生成基於圖形的報告。相關使用條款可在 [這裡](https://cloud.google.com/maps-platform/terms) 找到。
2. 外部文檔中提供了哪些信息?
- https://developers.google.com/places/web-service/get-api-key:提供有關獲取 Google API 密鑰的信息。如果沒有 API 密鑰,外掛將無法驗證地址、計算距離或獲取經度和緯度。
- https://www.bintracker.software/api/word-press-plugin.html:提供有關外掛及其功能的信息。
- https://www.cloud-computing.rocks:提供有關外掛作者的信息。
- https://jqueryui.com/themeroller:作為 jQuery-ui.css 的一部分,我們不得不將其包含在本地,因為 WordPress 不包含核心的 jQuery。
3. 如何導入和激活這個外掛?
- 導入:在 WordPress 面板的「外掛」區域下,用戶需要導航到「上傳外掛」功能。
- 激活:在 WordPress 面板的「外掛」區域下的「已安裝外掛」部分,找到「Bin Tracker Portal」,並點擊「啟用」。
4. 如何設置 Bin Tracker Portal?
- 用戶需要訪問管理面板側欄的「Bin Tracker Portal」功能,並更新所有必填字段,其中包括 Google API 密鑰。
5. 如何在前端使用外掛?
- 在 WordPress 網站的前端使用這個外掛,用戶需要創建一個新頁面並在頁面中使用短代碼 `[bin-tracker-portal]`,或者在任何現有頁面中添加短代碼 `[b1nTPortal_bin-tracker-portal]` 想使用外掛。
開發者團隊
原文外掛簡介
The plug in provides integration with a private web application for Bin their Dump That, a franchisor in the waste hauling industry.
External services
https://maps.googleapis.com/maps/api/js?key=$b1nTPortal_google_api_key&libraries=places: a google api used to validate the address a user inputs in to the plugin. A valid and existing address is very important when providing a service in the waste hauling industry. The terms of use can be found at https://cloud.google.com/maps-platform/terms
https://btdt.dev2.rocks/controller.html or https://www.Bintracker.software/controller.html: allows the plugin to request/send information from/to the franchisee database. It also, does all the security checks as a first line of defence to make sure that the module in quesiton is valid and authorized to an external party. After all security checks are done, the module is called where a second layer of security checks is done; verifying the data received. The terms of use can be found at https://www.bintracker.software/forms/EULA.html
https://www.gstatic.com/charts/loader.js: allows the plugin to generate charts using google charts, this is used to generate graph based reports that user can use. The terms of use can found at https://cloud.google.com/maps-platform/terms
External documentation
https://developers.google.com/places/web-service/get-api-key: provides information to the user admin about obtaining a google api key. Without an api key the plugin will not be able to validate address, calculate distance, or get longitude and latitude.
https://www.bintracker.software/api/word-press-plugin.html: provides information about plugin and it’s features.
https://www.cloud-computing.rocks: provides information about the plugin author.
https://jqueryui.com/themeroller: part of the jquery-ui.css which we had to include locally since wordpress does not include it with the core jquery.
Importing Plugin
To import “Bin Tracker Portal” plugin into WordPress. User needs to navigate to “Upload Plugin” feature under the Plugins area in the WordPress dashboard.
Activating Plugin
To activate the “Bin Tracker Portal” plugin user need to navigate to “Installed Plugins” section under the Plugins area in the WordPress dashboard.
Here user will get list of all the installed plugins, from this list user need to find “Bin Tracker Portal ” and click on “Activate”.
Setting up Bin Tracker Portal
To update the settings “Bin Tracker Portal”, the user will need to access the plugin’s setting using the “Bin Tracker Portal” feature from the sidebar of the admin panel, and then update all required fields.
Amongts those required fields is the google api key. The user will need it or the plugin wont function. To obtain a google api key follow the steps bellow:
Go to “https://cloud.google.com/maps-platform/” and click on “Get Started”
A pop up window will open, asking you to select a product(s); select maps and places.
Login to or create a google account, then enter a project name and create a billing account.
After you billing account is created, you will be prompt with another option, allowing you to
enable google maps platform. Click next, and google will respond with an api key. This method will
activate all google maps platform API(s). However, you can go back and remove the ones you wont need
for this plugin. The API(s) you will need are the followings: Directions API, Distance Matrix API,
Geocoding API, Maps Elevation API, Maps JavaScript API and Places API.
Using Plugin in front end
To use the plugin at front of the WordPress site user needs to create a new page and use the shortcode [bin-tracker-portal] in the page or the user can add the shortcode [b1nTPortal_bin-tracker-portal] in any existing page where user wants to use the plugin.
