{"id":44004,"date":"2010-01-16T19:36:49","date_gmt":"2010-01-16T19:36:49","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/another-random-posts-widget\/"},"modified":"2011-06-24T11:07:53","modified_gmt":"2011-06-24T11:07:53","slug":"another-random-posts-widget","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/another-random-posts-widget\/","author":3678803,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.1.11","stable_tag":"trunk","tested":"3.3.2","requires":"3.0","requires_php":"","requires_plugins":"","header_name":"Another Random Posts Widget","header_author":"Dennis Hoppe","header_description":"","assets_banners_color":"","last_updated":"2011-06-24 11:07:53","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/www.paypal.com\/cgi-bin\/webscr?cmd=_s-xclick&hosted_button_id=1220480","header_plugin_uri":"http:\/\/dennishoppe.de\/wordpress-plugins\/another-random-posts-widget","header_author_uri":"http:\/\/DennisHoppe.de","rating":0,"author_block_rating":0,"active_installs":20,"downloads":13937,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":{"screenshot-2.png":{"filename":"screenshot-2.png","revision":"1538985","resolution":"2","location":"plugin"},"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1538985","resolution":"1","location":"plugin"}},"screenshots":{"1":"Example front end screenshot with TwentyTen Theme","2":"Back end Widget options"}},"plugin_section":[],"plugin_tags":[86,166,244,162],"plugin_category":[43],"plugin_contributors":[79433],"plugin_business_model":[],"class_list":["post-44004","plugin","type-plugin","status-closed","hentry","plugin_tags-post","plugin_tags-posts","plugin_tags-random","plugin_tags-widget","plugin_category-customization","plugin_contributors-dhoppe","plugin_committers-dhoppe"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/another-random-posts-widget.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/another-random-posts-widget\/trunk\/screenshot-1.png?rev=1538985","caption":"Example front end screenshot with TwentyTen Theme"},{"src":"https:\/\/ps.w.org\/another-random-posts-widget\/trunk\/screenshot-2.png?rev=1538985","caption":"Back end Widget options"}],"raw_content":"<!--section=description-->\n<h4>Description<\/h4>\n\n<p>This Widget shows some random posts in the sidebar. You can choose how many posts and what parts of the post should be shown. If you use this widget on a sidebar in single post view the current post will be excluded from the randomizing list of posts.<\/p>\n\n<h4>Requirements<\/h4>\n\n<ul>\n<li><strong>This Widget requires PHP5!<\/strong><\/li>\n<li>WordPress 3.0 or higher<\/li>\n<\/ul>\n\n<h4>In the Press<\/h4>\n\n<ul>\n<li>3 \"Must Have\" WordPress Related Posts Plugins by SEO Design Solutions. <a href=\"http:\/\/www.seodesignsolutions.com\/blog\/wordpress-seo\/3-must-have-related-posts-wordpress-seo-plugins\/\">To the post &raquo;<\/a><\/li>\n<\/ul>\n\n<h4>Customizing the appearance<\/h4>\n\n<p>If you want to customize the design you have to do the following:<\/p>\n\n<ul>\n<li>copy the <em>random-posts-widget.css<\/em> file (from the plug-in folder) to your theme directory<\/li>\n<li>copy the <em>random-posts-widget.php<\/em> file (from the plug-in folder) to your theme directory<\/li>\n<li>Now you can start customize the style of your widget until it fits your needs. Both files are well documented and easy to understand. The <em>random-posts-widget.php<\/em> builds the architecture. The <em>random-posts-widget.css<\/em> adds the style information. <\/li>\n<\/ul>\n\n<p><strong>Of course i can help you customizing your widget appearance<\/strong> for a small fee. ;) Feel free to send me a mail or leave a comment in my blog.<\/p>\n\n<h4>For developers<\/h4>\n\n<p>If you want to use a customized template file outside the theme directory you can use the <em>random_posts_widget_template<\/em> filter. Just write a path to a file in the filter to bypass the template. Here is an example that shows how you can write a plugin which changes the template path to a file in the same directory.<\/p>\n\n<pre><code>Function bypass_template($template_file){\n  \/* the $template_file is the file which is currently set as template so\n     you can also use the filter to read the current template file. \n  *\/\n  return DirName(__FILE__) . '\/my-template.php';\n}\nAdd_Filter('random_posts_widget_template', 'bypass_template');\n<\/code><\/pre>\n\n<p>Analogical you can change the style sheet with the <em>random_posts_widget_style_sheet<\/em> filter. Here is an example:<\/p>\n\n<pre><code>Function bypass_style_sheet($css_file){\n  \/* the $css_file is the file (URL) which is currently set as style sheet so\n     you can also use the filter to read the current css file. \n  *\/\n  \/\/ Url to your CSS File\n  return get_bloginfo('wpurl') . '\/my-style.css';\n}\nAdd_Filter('random_posts_widget_style_sheet', 'bypass_style_sheet');\n<\/code><\/pre>\n\n<h4>Questions<\/h4>\n\n<p>If you have any questions you can leave a comment in my blog. But please think about this: I will not add features, write customizations or write tutorials for free. Please think about a donation. I'm a human and to write code is hard work.<\/p>\n\n<h4>Language<\/h4>\n\n<ul>\n<li>This Plug-in is available in English.<\/li>\n<li>Diese Erweiterung ist in Deutsch verf\u00fcgbar. (<a href=\"http:\/\/dennishoppe.de\/\">Dennis Hoppe<\/a>)<\/li>\n<li>Ce plug-in est disponible en fran\u00e7ais. (<a href=\"http:\/\/creapage.net\/\">Thomas Mur<\/a>)<\/li>\n<li>Deze plugin is beschikbaar in het Nederlands. (<a href=\"http:\/\/wpwebshop.com\/\">WordPress Webshop<\/a>)<\/li>\n<li>Detta till\u00e4gg \u00e4r tillg\u00e4ngligt p\u00e5 svenska. (<a href=\"http:\/\/www.kaufeldt.com\/\">Ove Kaufeldt<\/a>)<\/li>\n<li>Questo plugin \u00e8 disponibile in italiano. (<a href=\"http:\/\/www.andreabersi.com\/\">Andrea Bersi<\/a>)<\/li>\n<li>Este Plugin est\u00e1 dispon\u00edvel em Portugu\u00eas. (Pedro Saraiva)<\/li>\n<li>Acest plugin este disponibil \u00een limba Rom\u00e2n\u0103. (<a href=\"http:\/\/www.jibo.ro\/\">Anunturi Jibo<\/a>)<\/li>\n<li>\u042d\u0442\u043e\u0442 \u043f\u043b\u0430\u0433\u0438\u043d \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u043d\u0430 \u0440\u0443\u0441\u0441\u043a\u043e\u043c. (<a href=\"http:\/\/pimpyoursite.ru\/\">Sergey Kasyan<\/a>)<\/li>\n<li>\u0426\u0435\u0439 \u043f\u043b\u0430\u0433\u0456\u043d \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0438\u0439 \u0443\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u043e\u044e. (<a href=\"http:\/\/pimpyoursite.ru\/\">Sergey Kasyan<\/a>)<\/li>\n<li>Bu eklentinin T\u00fcrk\u00e7e deste\u011fi bulunmaktad\u0131r. (<a href=\"http:\/\/ramerta.com\/\">Ramerta Grup<\/a>)<\/li>\n<li>Plugin ini tersedia dalam Bahasa Indonesia. (<a href=\"http:\/\/www.zhangjia.com\/\">Zhang Han<\/a>)<\/li>\n<\/ul>\n\n<p>If you have translated this plug-in in your language feel free to send me the language file (.po file) via E-Mail with your name and this translated sentence: \"This plug-in is available in %YOUR_LANGUAGE_NAME%.\" So i can add it to the plug-in.<\/p>\n\n<p>You can find the <em>Translation.pot<\/em> file in the <em>language\/<\/em> folder in the plug-in directory.<\/p>\n\n<ul>\n<li>Copy it.<\/li>\n<li>Rename it (to your language code).<\/li>\n<li>Translate everything.<\/li>\n<li>Send it via E-Mail to mail@DennisHoppe.de.<\/li>\n<li>Thats it. Thank you! =)<\/li>\n<\/ul>\n\n<!--section=installation-->\n<p>Installation as usual.<\/p>\n\n<ol>\n<li>Unzip and Upload all files to a sub directory in \"\/wp-content\/plugins\/\".<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress.<\/li>\n<li>Go to Widgets and add the new Widget to a sidebar.<\/li>\n<li>You like what you see?<\/li>\n<\/ol>\n\n<!--section=changelog-->\n<h4>1.1.11<\/h4>\n\n<ul>\n<li>Added Indonesian translation by <a href=\"http:\/\/www.zhangjia.com\/\">Zhang Han<\/a>.<\/li>\n<\/ul>\n\n<h4>1.1.10<\/h4>\n\n<ul>\n<li>Changes enqueue_style hook to \"wp_print_styles\"<\/li>\n<li>Added Exclude feature<\/li>\n<li>Added index files<\/li>\n<\/ul>\n\n<h4>1.1.9<\/h4>\n\n<ul>\n<li>Added Turkish translation by <a href=\"http:\/\/ramerta.com\/\">Ramerta Grup<\/a>.<\/li>\n<\/ul>\n\n<h4>1.1.8<\/h4>\n\n<ul>\n<li>Made the \"by\" in the template translateable.<\/li>\n<\/ul>\n\n<h4>1.1.7<\/h4>\n\n<ul>\n<li>Updated language file handling<\/li>\n<li>Removed hardcoded style links<\/li>\n<li>Changed posts titles to \"<\/li>\n<\/ul>\n\n<p>&lt;<\/p>\n\n<p>h3&gt;\"\"s<\/p>\n\n<h4>1.1.6<\/h4>\n\n<ul>\n<li>Added Romanian translation by <a href=\"http:\/\/www.jibo.ro\/\">Anunturi Jibo<\/a>.<\/li>\n<li>Added Russian translation by <a href=\"http:\/\/pimpyoursite.ru\/\">Sergey Kasyan<\/a>.<\/li>\n<li>Added Ukrainian translation by <a href=\"http:\/\/pimpyoursite.ru\/\">Sergey Kasyan<\/a>.<\/li>\n<\/ul>\n\n<h4>1.1.5<\/h4>\n\n<ul>\n<li>Added Portuguese translation file by Pedro Saraiva.<\/li>\n<\/ul>\n\n<h4>1.1.4<\/h4>\n\n<ul>\n<li>Added Italian translation by <a href=\"http:\/\/www.andreabersi.com\/\">Andrea Bersi<\/a>.<\/li>\n<\/ul>\n\n<h4>1.1.3<\/h4>\n\n<ul>\n<li>Added Swedish translation by <a href=\"http:\/\/www.kaufeldt.com\/\">Ove Kaufeldt<\/a>.<\/li>\n<\/ul>\n\n<h4>1.1.2<\/h4>\n\n<ul>\n<li>Added Dutch translation by <a href=\"http:\/\/wpwebshop.com\/\">WordPress Webshop<\/a>.<\/li>\n<\/ul>\n\n<h4>1.1.1<\/h4>\n\n<ul>\n<li>Added French translation by <a href=\"http:\/\/creapage.net\/\">Thomas Mur<\/a>.<\/li>\n<\/ul>\n\n<h4>1.1<\/h4>\n\n<ul>\n<li>Added template engine<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>Everything works fine.<\/li>\n<\/ul>","raw_excerpt":"This Widget shows some random posts in the sidebar.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/44004","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=44004"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/dhoppe"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=44004"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=44004"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=44004"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=44004"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=44004"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=44004"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}