[WordPress] 外掛分享: AJAX Read More

前言介紹

  • 這款 WordPress 外掛「AJAX Read More」是 2011-09-12 上架。
  • 目前有 80 個安裝啟用數。
  • 上一次更新是 2011-12-07,距離現在已有 4898 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 3.0.0 以上版本才可以安裝。
  • 有 2 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

sergeysbetkenovgaroru |

外掛標籤

ajax | jquery |

內容簡介

當你的部落格載入後,所有類別為 .more-link (Read more 的 WordPress 標准 css 類別)的連結會被修改,不再將使用者導向按下連結後該篇文章的單頁顯示。相反地,WordPress 資料庫會查詢該特定文章,只回傳 標籤之後的所有內容,並立即以簡單的動畫效果(可在外掛設定中停用)與原本開頭的內容一起顯示。

AJAX-read-more 使用 WordPress 安裝中已含有的 jQuery 框架。
此外掛使用 GET ajax 動作(而非其他外掛使用的 POST 動作),以及 WordPress 的 “template_redirect” 動作。
支援快取外掛(例如 Hyper Cache Extended)。
AJAX-read-more:進度顯示器和其他行為的設計 - 由CSS(例如 css / all.css)實現。
安全的快取指令集與CSS url。

請參閱外掛選項頁面以檢查選項。

特別感謝 [email protected] 進行外掛的除錯。

主題要求:

您的主題必須生成正確的 DOM 結構:
(div id = & #8221;#content#8221;)

(div class = & #8221; post")

(/div)
(/div)
主題必須支援頁腳(wp_footer)。如果不支援,您可以在外掛設定頁面更改相關選項。

欲知詳細資訊,請參閱 Sergey S. Betke的部落格。

代辦事項

下一個版本或之後:
* WordPress 核心整合快取標頭處理???
* 可選的 http 快取控制內容時間最大值和必須重新驗證
* 僅在文章有限制存取權限時才會發送私人快取標頭
* 檢查快取外掛支援(Hyper Cache Extended):當文章修改時清除已快取的回應
* 快取控制和最後修改標頭 - 分開的外掛
* 如果修改標頭,支援 if-modified 的 HTTP 要求(另外的外掛)
* 可選的 the_excerpt 支援
* AJAX-read-more 發送正確的 http 快取控制標頭,可以完全支援客戶端公共快取。
* WP 3.3: http://wpdevel.wordpress.com/tag/3-3-dev-notes/
* WP 3.3: wp_localize_script() 所有 WP 3.3 以上已不支援非字串參數的功能,可以改用 wp_add_script_before() 取代。
* WP 3.3: wp_enqueue_script() 現在可以在頁面中當需要時插入腳本

原文外掛簡介

When your blog is loaded, all links of this class .more-link (standard wordpress css class for “Read more…”
links) are modified to no longer send the user to that post’s
single page display when clicked. Instead, the WordPress database is queried for that specific post, and all content
after the tag (i.e. only what you need) is returned.
The new content is then immediately displayed to the user with light animation (You can disable animation in plugin options),
inline with the opening content.

AJAX-read-more uses the jQuery framework already included with WordPress installations.
This plugin used GET ajax action (not POST, like other plugins), wordpress “template_redirect” action.
It’s compatible with cache plugins (like Hyper Cache Extended).
AJAX-read-more: design of progress indicator and other behaviors – by CSS (example – in css/all.css)
cache-safe script and css url

Check plugin options on options page.
Thanks for debugging to [email protected].
Theme requirements:

Your theme must generate correct DOM structure:
(div id=”#content”)

(div class=”post”)

(/div)
(/div)
Theme must support footer (wp_footer). If not, you can change corresponding option on plugin option page.

For more information, please visit the Sergey S. Betke blog.
ToDo
The next version or later:
* wordpress core integration for cache headers processing???
* optional http cache-control max-age header value and must-revalidate
* just private cache headers, when post has limited access
* check cache plugins support (Hyper Cache Extended): clear cached responces when post modified
* cache-control and Last-Modification headers – to separate plugins
* if-modified http request support (separate plugins)
* the_excerpt optional support
* AJAX-read-more send correct http cache-control headers, and fully support client-side public cache.
* WP 3.3: http://wpdevel.wordpress.com/tag/3-3-dev-notes/
* WP 3.3: replace wp_localize_script() with wp_add_script_before(). wp_localize_script doesn’t support non-string params in WP 3.3+
* WP 3.3: wp_enqueue_script() now works mid-page – insert scripts just into pages when it’t needed

各版本下載點

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

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


1.9.6 | 2.0.6 |

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

  • SearchWP Live Ajax Search 》此 WordPress 外掛不需要SearchWP,但如果有的話就會使用它。在 searchwp.com 可以找到完整文檔。, 歡迎在 GitHub 上貢獻您的力量!https://github.com/jchri...。
  • AJAX Thumbnail Rebuild 》AJAX Thumbnail Rebuild 可讓您重新建立網站上的所有縮圖。儘管已經有一些插件可供使用,但它們有一個共同點:所有縮圖都會在單一步驟中重新建立。如果您的網...。
  • WordPress File Upload 》這個外掛讓你或其他使用者可以從任何頁面、文章或側邊欄輕鬆、安全地上傳檔案到你的網站。, 只需要在任何 WordPress 頁面/文章中加入簡碼 [wordpress_file_up...。
  • WPC AJAX Add to Cart for WooCommerce 》WPC AJAX Add to Cart for WooCommerce 是一款高效的外掛,能幫助線上商店削減網站載入時間、改善用戶體驗並增加銷售額。此外掛允許用戶加入商品至購物車而不...。
  • Entry Views 》Entry Views 會記錄每篇文章/頁面(或任何文章類型)的瀏覽次數。 它附帶一個小工具,可顯示最受歡迎的文章,一個短代碼可顯示文章的瀏覽次數,以及方便的佈...。
  • Ajax Cart AutoUpdate for WooCommerce 》這是一個輕巧的外掛程式,在產品數量更改時自動更新購物車頁面和迷你購物車。同時移除了預設的「更新購物車」按鈕,並可以選擇關閉購物車頁面提示訊息。, 特...。
  • WooCommerce Ajax Cart Plugin 》WooCommerce AJAX Cart 是一款 WordPress 插件,可以更改 WooCommerte 購物車頁面的默認行為,讓買家在更改產品數量時即時查看總價格計算,無需手動點擊 "更...。
  • pageMash > Page Management 》使用此簡單的 AJAX 拖放管理介面,自訂頁面的排序,並管理父頁面結構,還有可選擇隱藏輸出頁面的選項。是一個快速重排頁面選單的好工具。, 查看範例頁面:htt...。
  • Load More Anything 》Commerce Products, Custom Div or Anything, , 這款插件能幫助您在 WordPress 網站上載入更多內容。您可以在博客文章、評論、頁面、類別、最新文章、側邊欄...。
  • Enable CORS 》外掛會收集網站 URL 與啟用的外掛列表,以提供支援。但不會分享給第三方。本外掛可幫助解決CORS問題,讓您輕鬆存取跨域資源。只需幾個簡單點擊,就能在網站上...。
  • Relevanssi Live Ajax Search 》Relevanssi Live Ajax Search 可以讓你的搜尋表單使用 ajax 即時搜尋。它不會淹沒你的設定,通常不需要做任何修改即可正常運作。如果你想自訂它,你可以完全...。
  • Infinite-Scroll 》無限捲動(Infinite scroll)也被稱為自動分頁、取消分頁、無限頁面等等。基本上,它是預先從下一個頁面取得內容,並直接將它添加到用戶當前的頁面。, 當用戶...。
  • Dave's WordPress Live Search 》Dave's WordPress Live Search 可在您的 WordPress 站點中加入「即時搜尋」功能。當訪客在 WordPress 站點的搜尋框中輸入字詞時,該外掛會持續查詢 WordPress...。
  • Filter & Grids 》使用 AJAX 篩選自定義分類 / 分類標籤來篩選文章或自定義文章類型,無需重新載入頁面,並支持不同的分頁類型。這款外掛允許解決顯示網站頁面上的文章的各種任...。
  • Ajaxify Comments – Ajax and Lazy Loading Comments 》尋找新的外掛程式維護者 👀, 請注意,此外掛程式已不再維護或支援,我們正在尋找新的外掛程式維護者(請參閱我們的公告 這裡)。 , 介紹, 預設情況下,當使用...。

文章
Filter
Apply Filters
Mastodon