
內容簡介
你的網站經常在 Reddit 上被討論嗎?使用這個外掛增加 Reddit 的參與度,獲得更多評論和讚。使用者可以在不離開你的網站的情況下閱讀 Reddit 的評論。
wp-redditjs 使用 redditJS.com 創建小工具,在你的網站上嵌入 Reddit 。
文章小工具會嵌入到你的 WordPress 文章中,並檢測它是否已經在 Reddit 上發布。 更多詳細資訊和範例
如果它還沒有在 Reddit 上發布,它會顯示一個鏈接來鼓勵用戶提交。
如果已經發布了,它將加載顯示 Reddit 文章的小工具,並給用戶點讚/評論文章的地方。
wp-redditjs 將為您提供一個類似於 Facebook 或 Disqus 評論系統的聊天框。這非常適合那些網站將其內容提交到Reddit的網站。它將有助於增加 Reddit 中的活動,獲得更多的讚和評論,並允許用戶自由地瀏覽 Reddit。
使用方法
如果你沒有使用 WordPress 插件,你可以在任何網站上添加這個 script 標籤。
<script src='//redditjs.com/post.js' ></script>
選項
名稱描述值默認值
data-url你想在 Reddit 上搜索的 URL,嵌入到你的網站上任何 url當前 URL
data-width文章小工具的寬度。數字 500
data-height文章小工具的高度。數字 500
data-post-finder如果 URL 已經在 Reddit 上發布了多次,它會根據您的設置顯示最相關的文章。 newest、mostUpvoted、mostComments mostComments
data-theme更改主題的主題淺、深淺
data-show-submit如果我們在 Reddit 上找不到文章,是否顯示「提交到 Reddit」小工具。 true、false true
Reddit 文章小工具(淺色主題)
<script src='//redditjs.com/post.js' data-url='http://www.techodrom.com/etc/star-trek-edges-closer-reality-tractor-beam-moves-object-using-nothing-power-ultrasound/' data-height='500' data-width='500' data-post-finder='newest' data-theme='dark' data-show-submit='true'></script>
你還可以使用小工具嵌入 subreddit 或使用以下腳本標籤來嵌入 subreddit。
<script src=’//redditjs.com/subreddit.js’ ></script>
名稱描述值默認值
data-subreddit你要嵌入的 subreddit 任何 subreddit front
data-domain如果你想嵌入所有來自一個域名的文章。如果你想嵌入一個常規的 subreddit,不要包含任何有效的網域 null
data-width文章小工具的寬度。數字 300
data-height文章小工具的高度。數字 300
data-sort subreddit 的排序方式熱門、最新、有爭議、上升、前幾、金牌熱門
data-theme更改主題的主題淺、深淺
data-timeframe如果選擇了“前幾”或“有爭議”,則可以顯示特定時間段內的文章。 hour、day、week、month、year、all light
data-subreddit-mode你想要如何顯示 subreddit 正常、小、網格、大 正常
外掛標籤
開發者團隊
原文外掛簡介
Does your site get a lot of posts on reddit? Increase reddit engagement, more comments, more upvotes. Users can read the reddit comments without having to leave your website.
wp-redditjs uses redditJS.com to create widgets to embed reddit on your website.
The post widget will embed itself onto your WordPress post and detect if it has been posted to reddit. more details and examples
If it has NOT been posted to reddit it will show a link to encourage the user to submit.
If it has been posted, it will load a widget displaying that reddit post giving the user where they can upvote/comment that post.
wp-redditjs will give you a chat box similar to facebook or disqus comment system. This is excellent for websites that have their content submitted to reddit. It will help increase reddit activity with more upvotes and comments and allow the user to freely navigate reddit.
Instructions
If you are not using the WordPress plugin, you can add this script tag on any website.
<script src='//redditjs.com/post.js' ></script>
Options
NameDescription values Default
data-urlThe URL you want to search in reddit to embed on your site. any url current URL
data-widthWidth of the post widget. number 500
data-heightHeight of the post widget. number 500
data-post-finderIf the URL has been submitted multiple times to reddit, it will display the most relevant post based on your setting. newest, mostUpvoted, mostComments mostComments
data-themeChange the theme light, dark light
data-show-submitIf we don’t find a post on reddit, should we display a “submit to reddit” widget. true,false true
reddit post widget light theme
<script src='//redditjs.com/post.js' data-url='http://www.techodrom.com/etc/star-trek-edges-closer-reality-tractor-beam-moves-object-using-nothing-power-ultrasound/' data-height='500' data-width='500' data-post-finder='newest' data-theme='dark' data-show-submit='true'></script>
You can also embed a subreddit with a sidebar widget or with this script tag
NameDescription values Default
data-subredditThe subreddit you want to embed any subreddit front
data-domainIf you want to embed all posts coming from a domain. Do not include if you want to embed a regular subreddit any valid domain null
data-widthWidth of the post widget. number 300
data-heightHeight of the post widget. number 300
data-sortSort order of subreddit hot, new, controversial, rising, top, gilded hot
data-themeChange the theme light, dark light
data-timeframeIf top or controversial is select you can show posts from a specific time period. hour,day,week,month,year,alllight
data-subreddit-modeHow you want to display a subreddit normal,small,grid,large normal
