
內容簡介
WordPress 外掛描述:
WordPress 的 Upvote / Downvote 外掛可啟用短碼、文章及小工具範本,用以放置主題橫幅。您可以選擇要顯示哪些主題、橫幅大小和位置,以及顯示主題的當前得分。
不需要註冊或登入,任何人都可以透過推文進行投票!
使用 Google Adsense 進行廣告分享以賺取收益。
在 Upvoting.com 上建立您自己的主題。
有針對開發者的資源,包括樣本橫幅大小和趨勢主題列表,請參閱 Upvoting.net。
只需將我們的小工具新增到您的側邊欄即可開始使用!
短碼
短碼會被換成所選圖像。
- 票選 ID 是出現在投票頁面(靠近底部)或身份驗證推文中的數字。
- 格式可以是以下值:
- 1 - 排行榜,728 x 90,以文字方式顯示分數。
- 2 - 排行榜,728 x 90,以圖形方式顯示分數。
- 3 - 大矩形,336 x 280,以文字方式顯示分數。
- 4 - 大正方形,250 x 250,以文字方式顯示分數。
- 5 - 垂直矩形,240 x 400,以文字方式顯示分數。
- 6 - 寬排行榜,1200 x 150,以文字方式顯示分數。
- 7 - 寬排行榜,1200 x 150,以圖形方式顯示分數。
只需將標籤複製並粘貼到您希望橫幅出現的文章中。
小工具
小工具會隨外掛安裝而安裝,可讓您在主題上的任何位置添加顯示計數的橫幅。您可以指定一個或多個票選 ID,該小工具將每次顯示隨機選擇其中之一。
- 將該小工具新增到您的側邊欄或其他小工具區域。
- 添加任意數量的票選 ID,以逗號隔開。例如 302、323、380。
- 選擇橫幅的風格,側邊欄通常使用正方形樣式。
- 按 "保存" 。
文章/頁面表單
在每個文章頁面上,將出現 Upvote / Downvote 表單。
- 只需輸入主題 ID,並可選擇更改格式和位置。
- 儲存/更新文章,就會顯示投票結果。
短碼產生器
在每個文章頁面上,將會出現 Upvote / Downvote 表單。
- 只需輸入主題 ID,並可選擇更改格式。位置不使用。
- 點擊 "生成短碼" 按鈕,程式碼片段就會出現在按鈕下。
- 複製並粘貼短碼到您希望圖像出現的文章中。
- 請記得清除 "主題 ID" 方框,如果您不想要圖像出現兩次。
全局設定
主要設定頁面可讓您設置會影響所有橫幅顯示的全局參數。
- 包含周圍的 <div> 元素。
- 使用此通用 HTML 片段將橫幅放置在頁面上:
<div><a href><img /></a></div>
- 取消選中此框以從輸出中省略 <div> 元素,這也可以在每個橫幅上進行設置。
- 影像寬度。
外掛標籤
開發者團隊
② 後台搜尋「Upvote / Downvote – Vote with a Tweet」→ 直接安裝(推薦)
原文外掛簡介
The Upvote / Downvote plugin for WordPress enables shortcode, post and widget placement of topic banners. You can choose which topic(s) to display, the banner size and position, and display your topics current scores.
No registration or login needed. Anyone can Vote with a Tweet!
Earn money with our advert sharing using Google Adsense.
Create your own topics on Upvoting.com
For Developer Resources including sample banner sizes and a list of trending topics visit Upvoting.net
Just add our widget to your sidebar to get going!
Shortcode
[udvote voteid="123" format="1"]
The shortcode will be replaced with the image of choice.
The voteid is the number that appears on the voting page (look near the bottom) or in the authverify tweet.
The format can be one of these values;
1 – Leaderboard, 728 x 90, text display of scores.
2 – Leaderboard, 728 x 90, graphical display of scores.
3 – Large Rectangle, 336 x 280, text display of scores.
4 – Large Square, 250 x 250, text display of scores.
5 – Vertical Rectangle, 240 x 400, text display of scores.
6 – Wide Leaderboard, 1200 x 150, text display of scores.
7 – Wide Leaderboard, 1200 x 150, graphical display of scores.
Simply copy and paste the tag into your post where you want the banner to appear.
Widget
The widget is installed with the plugin and enables you to add a vote count banner anywhere you can add a widget on your theme. You can assign one or more vote IDs and the widget will display a randomly selected one each time.
Add the widget to your sidebar or other widget area.
Add any number of vote IDs separated by commas. e.g. 302,323,380
Select the style of banner, square is usually best for the sidebar.
Hit “Save”.
Post/Page Form
On every post page the Upvote / Downvote form will appear.
Just type in the topic id and optionally change the format and position.
Save/Update the post and the vote results will appear.
Shortcode generator
On every post page the Upvote / Downvote form will appear.
Just type in the topic id and optionally change the format. Position is not used.
Hit the “Generate Shortcode” button and the snippet will appear below the button.
Copy and paste the shortcode into your post where you want the image to appear.
Remember to clear the “Topic ID” box if you don’t want the image appearing twice.
Global Settings
The main settings page allows you to set global parameters that will affect the display of all banners.
Include surrounding
Uncheck this box to omit the
Image width type
Percentage : The image width is set to “100%” to fill any container.
Fixed width : The width of the image is set to the actual pixel width of the image.
Div width type
Select whether or not the div has no width attribute set (default) or has a “width:123px” style that matches the width of the contained image. Useful if you have inherited “floats”.
Anything you enter in this box will appear in the style tag of the div. e.g. “padding-bottom:20px;”
If you exclude the div element then this will have no effect.
Anything you enter in this box will appear in the style tag of the image. e.g. “padding-bottom:20px;”
custom style
Anything you enter in this box will appear in the style tag of the link. e.g. “display:block;”
Widget Settings
These settings only affect the widget. You can override the global settings here if needed.
Include surrounding
Anything you enter in this box will appear in the style tag of the div. e.g. “padding-bottom:20px;”
If you exclude the div element then this will have no effect.
Anything you enter in this box will appear in the style tag of the image. e.g. “padding-bottom:20px;”
custom style
Anything you enter in this box will appear in the style tag of the link. e.g. “display:block;”
Advanced Options
These allow to adjust how specific sizes of banner are displayed. Each section reflects one of the available banner sizes.
Include surrounding
Alignment
Applies the style “float:xyz;” to outermost element (either the div or the image). The available options are; none/left/right/inherit.
Anything you enter in this box will appear in the style tag of the div. e.g. “padding-bottom:20px;”
If you exclude the div element then this will have no effect.
Anything you enter in this box will appear in the style tag of the image. e.g. “padding-bottom:20px;”
