[WordPress] 外掛分享: Browser Screenshots

WordPress 外掛 Browser Screenshots 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「Browser Screenshots」是 2012-10-14 上架。
  • 目前有 4000 個安裝啟用數。
  • 上一次更新是 2024-01-30,距離現在已有 458 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 4.0 以上版本才可以安裝。
  • 有 19 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

ronalfy | binarymoon | kevinlearynet |

外掛標籤

blocks | browser | generator | screenshot | browser shot |

內容簡介

使用 [browser-shot] 短代碼來自動化網站截圖的過程。一個圖示也會被加入 TinyMCE 編輯器中,以方便製作短代碼。

外掛使用從 WordPress.com 取得的「mshots」功能來自動捕捉網站截圖。該功能的非商業使用為免費。

這些圖片會儲存在 WordPress.com 的伺服器上,而不是存儲在你的網站中。圖片會在生成後約 24 小時進行快取再生成。

短代碼預覽
// 基礎截圖,寬度 600 像素
[browser-shot url="https://link-to-website" width="600"]

// 帶有連結到其他網站的截圖
[browser-shot url="https://link-to-website" width="700" link="https://www.binarymoon.co.uk/"]

// 帶有標題(使用預設的 WordPress 標題樣式)的截圖
[browser-shot url="https://link-to-website" width="700"]Add Caption[/browser-shot]

參數說明

url(必填)- 連結網址
width - 圖片寬度
height - 圖片高度
alt - 圖片替代文字
link - 圖將連結到的網址。留空則會連向截圖所在的網站
target - 瀏覽器連結目標,可設置 _blank 以在新視窗中開啟連結
class - 將一個類添加到 browsershots 包裝器
image_class - 將預設的 browsershots 圖像類別alignnone 更改為你選擇的類別
display_link(true 或 false,預設為 true)用於在截圖中顯示連結
post_links(true 或 false,預設為 false)用於連結到截圖所在文章的永久鏈接

代碼生成截圖

如果你想使用這個外掛來在主題中製作截圖,可以使用 BrowserShots::get_shot 方法來實現。

例如:

請注意,必須安裝並啟用外掛才能使用此功能。

get_shot 方法有三個參數:

網址。
寬度。
高度。

從 shotcode 中的其他參數可以在輸出HTML時手動實現。

多站點相容性

Browser Shots 外掛相容於 WordPress Multisite,只需使用 网络启用 功能即可在每個站點啟用短代碼。如果只想在特定站點啟用短代碼,請僅為該站點啟用外掛。

更多資訊

代碼可以在 Github 上找到:Github
你可以在 Twitter 上 聯繫我以提出任何問題或疑慮

原文外掛簡介

Use the [browser-shot] shortcode to automate the process of taking website screenshots. An icon is also added to the TinyMCE editor to make the shortcode creation process easy.
The plugin uses the ‘mshots’ functionality, from WordPress.com, to automatically take screenshots of websites. This function is free for non-commercial use.
The images are stored on the wordpress.com servers and are not saved onto your own website. The images are cached for roughly 24 hours before being generated again.
Shortcode Preview
// basic shot 600px wide
[browser-shot url="https://link-to-website" width="600"]

// shot with link to other website
[browser-shot url="https://link-to-website" width="700" link="https://www.binarymoon.co.uk/"]

// shot with caption (uses default WordPress caption styles)
[browser-shot url="https://link-to-website" width="700"]Add Caption[/browser-shot]

Available Parameters

url (required) – the url of the link to shorten
width – the width of the image
height – the height of the image
alt – the image alt text
link – where the image links. Left blank it will point to the website where the screenshot is being taken
target – browser target. Set to _blank to open in a new window
class – add a class to the browsershots wrapper
image_class – change the default browsershots image class from alignnone to your chosen class
display_link (true or false – default true) to display a link in your screenshot
post_links (true or false – default false) to link to the permalink of the post the screenshot is on

Generating Screenshots with code
If you want to create screenshots in a theme using this plugin then you can do so using the BrowserShots::get_shot method.
For example:

Keep in mind that the plugin must be installed and activated for this to work.
The get_shot method has 3 parameters.

The url.
The width.
The height.

The other parameters, from the shotcode, can be implemented manually when outputting the html.
Multisite Compatibility
The Browser Shots plugin is compatibly with WordPress Multisite, just use the Network Activate feature to enable the shortcode on every site. If you only want to enable the shortcode for a specific site, activate the plugin for that site only.
More…

The code can be found on Github
You can reach out to me with questions or problems on Twitter

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Browser Screenshots」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


1.0 |

延伸相關外掛(你可能也想知道)

  • Userback 》一個簡單美觀的客戶反饋方式。, Userback是一個客戶反饋解決方案,讓您使用視頻和帶註釋的截圖在網站和應用程序上收集和管理高質量的反饋。, 為設計師,開發...。
  • WP Screenshot 》這個外掛讓你可以使用簡單的短碼在文章和頁面中插入截圖。, , [screenshot width=200]www.wordpress.org[/screenshot], , 上述範例會顯示一個 WordPress.org ...。
  • WP Featured Screenshot 》這個外掛可以讓你將截圖添加到媒體庫中,就像其他圖片一樣在 WordPress 網站中使用。它會在網站伺服器上創建截圖的副本,以減少網站的開銷。, 請查看我們在 h...。
  • WEBphysiology Portfolio 》WEBphysiology Portfolio 外掛是專為需要擴充列表式或格狀式投資組合佈局時提供乾淨、現代外觀的外掛程式。該外掛是通過 [shortcode] 實現的,支援基於投資組...。
  • WP-Thumbnail 》WP-Thumbnail 是一個簡單而整潔的 WordPress 外掛程式,不僅允許您在文章中使用短碼來動態產生網頁截圖,而且還可以實時拍攝網頁快照並在頁面本身上保存其鏈...。
  • Super Link Preview 》使用 Super Link Preview 插件,你可以在你的文章中获取任何外部链接的最相关的图片、适当的嵌入式媒体播放器或该链接网页的截图(类似于在 Facebook 或 Goog...。
  • ShrinkTheWeb (STW) Website Previews Plugin 》這個外掛允許任何 WordPress 使用者藉由簡單的 [stwthumb]http://www.yourwebsite.com[/stwthumb] 格式,在他們的文章內容中輕鬆地加入網站縮圖預覽。外掛文...。
  • Open Link 图链 》使用短代码 [wp-openlink] 可在页面上输出链接,包含网站缩略图(备注字段)和点击数(评分字段),而不需要修改数据库或存储图片。, 缩略图格式为长宽为 100...。
  • Admin Toolbar Remover 》使用此外掛可移除 WordPress 3.1 管理員工具列。。
  • Page Preview 》總結:Page Preview外掛為WordPress儀表板提供視覺增強功能,自動將已發佈頁面的截圖直接添加到文章列表中。透過此功能,您可以看到每個頁面的視覺表示,無需...。
  • Snap A Site 》快速地拍下網站快照,並將其嵌入您的文章中,完全不需要使用螢幕截圖工具或任何編程技巧。, 只需插入簡碼,網站快照將自動嵌入您的文章中。, 以下是示例: [sn...。
  • Urlbox Screenshots 》🎉 輕鬆在 WordPress 網站上顯示任何網址的網頁截圖 🎉, 此外掛使用 Urlbox API 生成網頁截圖並在您的網站上顯示。請注意,Urlbox API 是一個付費服務-您可以...。
  • JSM Screenshot Machine Shortcode 》使用這個外掛可以在你的內容中使用來自Screenshot Machine的圖片。, 在你的內容中使用ssm短代碼,帶入以下參數:, , key="{customer key}", url="{url}", dim...。
  • Browser Shots Carousel 》Browser Shots Carousel 是一個 Gutenberg 區塊,可讓您使用 Browser Shots 服務從網站截圖中創建網站輪播。, 。
  • ThumbSniper 》這個外掛可以在你的 WordPress 網站上動態顯示超連結的預覽截圖。, 為了產生提示框的效果,該外掛在內部使用一個稱為「qTip2」的 jQuery 外掛程式。, 你可以...。

文章
Filter
Apply Filters
Mastodon