开发者 | redazionegriido |
---|---|
更新时间 | 2009年3月30日 20:57 |
捐献地址: | 去捐款 |
PHP版本: | 2.5 及以上 |
WordPress版本: | 2.7.1 |
/wp-content/plugins/
.
This should result in the following file structure:
- wp-content - plugins - tubematic | readme.txt | config.php | tubematic.php
Then just visit your admin area and activate the plugin.
See Also: "Installing Plugins" article on the WP CodexFirst of all, you need to insert the [tubematic] token into any page or post. Use apostrophes (') to enclose each parameter value. The paramaters are as follows: type - this parameter can have one of this value: uploads or category or searchfeed Please use: uploads to get the latest videos from a channel or only the videos that match your keywords category to search videos in a category freesearch to search videos starting from keywords There isn't a default value. query - this parameter is the name of yt channel (required if use type='category' or type='uploads') There isn't a default value. limit - the maximum number of items in the output grid The default value is '6'. orderby - this parameter specifies the value that will be used to sort videos in the search result set Valid values for this parameter are updated or rating or relevance or published or viewCount. The default value for this parameter is viewCount. spanrow - this is the maximum number of columns of the gallery (the gallery is a table with rows and columns) The default value for this parameter is '3'. keys - this parameter specifies a search query term. YouTube will search all video metadata for videos matching the term. Video metadata includes titles, keywords, descriptions, authors' usernames, and categories. To search for an exact phrase, enclose the phrase in quotation marks. There isn't a default value. lr - this parameter restricts the search to videos that have a title, description or keywords in a specific language. Valid values for the lr parameter are ISO 639-1 two-letter language codes (http://www.loc.gov/standards/iso639-2/php/code_list.php).\ You can also use the values zh-Hans for simplified Chinese and zh-Hant for traditional Chinese. There isn't a default value. showtitle - y or n (show video title?) The default value for this parameter is 'y'. showdate - y or n (show date added to YouTube?) The default value for this parameter is 'y'. showuser - y or n (show user byline?) The default value for this parameter is 'y'. showcount - y or n (show views?) The default value for this parameter is 'y'. Here's some samples: [tubematic type='uploads' query='seostrategy' limit='3' spanrow='2' showuser='n'] [tubematic type='category' query='seo strategy' limit='3' showuser='n' orderby='published'] [tubematic type='searchfeed' keys='google maps' limit='5']
Edit the config.php script file to customize the plugin (i.e. translate labels, change date format).
Sure! I do this in my free time and I appreciate all donations that I get. It makes me want to continue to update this plugin. You can find more details on my donate page. Also appreciated a valuable backlink (thematic and PR>=3) to our Griido.it magazine. To share details, please email us to redazione@griido.it.