{"id":6290,"date":"2009-07-29T10:29:19","date_gmt":"2009-07-29T10:29:19","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/ad-rotator\/"},"modified":"2009-07-30T06:01:18","modified_gmt":"2009-07-30T06:01:18","slug":"ad-rotator","status":"publish","type":"plugin","link":"https:\/\/mk.wordpress.org\/plugins\/ad-rotator\/","author":64444,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"2.0.3","stable_tag":"2.0.3","tested":"2.8.2","requires":"2.8.0","requires_php":"","requires_plugins":"","header_name":"Ad Rotator","header_author":"Dmytro Shteflyuk","header_description":"","assets_banners_color":"","last_updated":"2009-07-30 06:01:18","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/kpumuk.info\/projects\/wordpress-plugins\/ad-rotator\/","header_author_uri":"http:\/\/kpumuk.info\/","rating":5,"author_block_rating":0,"active_installs":200,"downloads":44470,"num_ratings":1,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"1"},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.1","2.0.0","2.0.1","2.0.2","2.0.3"],"block_files":[],"assets_screenshots":{"screenshot-2.png":{"filename":"screenshot-2.png","revision":"1566836","resolution":"2","location":"plugin"},"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1566836","resolution":"1","location":"plugin"}},"screenshots":{"1":"Ad Rotator widget configuration.","2":"Sidebar with Ad Rotator widgets."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[2557,321,2607,755,162],"plugin_category":[35,43,50],"plugin_contributors":[80686],"plugin_business_model":[],"class_list":["post-6290","plugin","type-plugin","status-publish","hentry","plugin_tags-ad","plugin_tags-ads","plugin_tags-advertisements","plugin_tags-rotate","plugin_tags-widget","plugin_category-advertising","plugin_category-customization","plugin_category-media","plugin_contributors-kpumuk","plugin_committers-kpumuk"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/ad-rotator.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/ad-rotator\/trunk\/screenshot-1.png?rev=1566836","caption":"Ad Rotator widget configuration."},{"src":"https:\/\/ps.w.org\/ad-rotator\/trunk\/screenshot-2.png?rev=1566836","caption":"Sidebar with Ad Rotator widgets."}],"raw_content":"<!--section=description-->\n<p>Ad Rotator is a simple WordPress widget to display random HTML code\nfrom a given group of HTML-chunks separated with <code>&lt;!--more--&gt;<\/code>\non sidebar. Basically it shows different HTML every time you requesting\npage. There are infinite number of instances of this widget may exist.<\/p>\n\n<h4>Support<\/h4>\n\n<p>If you have any suggestions, found a bug, or just wanted to say \"thank\nyou\",\u2013 feel free to email me <a href=\"mailto:kpumuk@kpumuk.info\">kpumuk@kpumuk.info<\/a>.\nPromise, I will answer every email I received.<\/p>\n\n<p>If you want to contribute your code, see the <em>Development<\/em> section under\nthe <em>Other Notes<\/em> tab.<\/p>\n\n<h4>Migrating from AdRotator plugin<\/h4>\n\n<p><a href=\"http:\/\/blog.taragana.com\/index.php\/archive\/wordpress-plugin-adrotator-rotate-your-ads-including-adsense-dynamically\/\">AdRotator<\/a>\nplugin is a simple file-based ad rotation solution. It was developed by\nAngsuman Chakraborty long time ago, but occasionally we have the same\nplugin names from WordPress' point of view. If you are using this plugin,\nyou may click upgrade link from your <em>Plugins<\/em> page and it being replaced\nwith Ad Rotator widget.<\/p>\n\n<p>So now you have two ways to solve the problem <code>'getad()' function is undefined<\/code>:\n1. you can download AdRotator and ignore upgrade notices, or\n2. you can upgrade your theme to use Ad Rotator Widget.<\/p>\n\n<p>Here is how to upgrade your theme. Find all occurrences of <code>getad<\/code> function,\nand replace them with something like this:<\/p>\n\n<pre><code>register_sidebar(array(\n  'name' =&gt; 'ad-area',\n  'id' =&gt; 'ad-area',\n  'before_widget' =&gt; '',\n  'after_widget' =&gt; '',\n  'before_title' =&gt; '',\n  'after_title' =&gt; ''\n));\n<\/code><\/pre>\n\n<p>Make sure you've replaced <code>ad-area<\/code> with the name suitable for you. Also\nyou can specify additional options, like <code>before_title<\/code> and <code>after_title<\/code>.<\/p>\n\n<p>Then open the <em>Appearence\/Widgets<\/em> page in <em>Site Admin<\/em> and configure\nAd Rotator widget instances for your advertisements area. Just take into\naccount, that in files for AdRotator ads are separated with new line\ncharacter (ie each line means separate ad), but in Ad Rotator widget\nyou should separate you blocks with <code>&lt;!--more--&gt;<\/code> (so each of them\nmay contain more then one line.)<\/p>\n\n<p>Anyways, sorry for \u0441onfusion, I did not want to \u0441heat on you.<\/p>\n\n<h3>Development<\/h3>\n\n<p>Sources of this plugin are available both in SVN and Git:<\/p>\n\n<ul>\n<li><a href=\"http:\/\/svn.wp-plugins.org\/ad-rotator\/\">WordPress SVN repository<\/a><\/li>\n<li><a href=\"http:\/\/github.com\/kpumuk\/ad-rotator\/\">GitHub<\/a><\/li>\n<\/ul>\n\n<p>Feel free to check them out, make your changes and send me patches.\nPromise, I will apply every patch (of course, if they add a value to the\nproduct). Email for patches, suggestions, or bug reports:\n<a href=\"mailto:kpumuk@kpumuk.info\">kpumuk@kpumuk.info<\/a>.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Download and unpack plugin files to the <code>wp-content\/plugins\/ad-rotator<\/code>\ndirectory.<\/li>\n<li>Enable <strong>Ad Rotator<\/strong> plugin on your <em>Plugins<\/em> page in\n<em>Site Admin<\/em>.<\/li>\n<li>Go to the <em>Appearence\/Widgets<\/em> page in <em>Site Admin<\/em> and drag as\nmany Ad Rotator widgets to your sidebars as you wish. Configure\ninstances separating HTML blocks with <code>&lt;!--more--&gt;<\/code>. Save changes.<\/li>\n<li>Now on Ad Rotator blocks should appear on your sidebars.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>How to enter several ads to a single text box?<\/dt>\n<dd><p>Separate your ad blocks with <code>&lt;!--more--&gt;<\/code> sequence.<\/p><\/dd>\n<dt>How many ads every instance of widget could handle?<\/dt>\n<dd><p>Number of advertisements in each instance is unlimited.<\/p><\/dd>\n<dt>Can I use Google AdSense code as one of my ads?<\/dt>\n<dd><p>Of course, you can use any HTML you wish (AdSense, Clicksor, Chitika,\nand everything else).<\/p><\/dd>\n<dt>WordPress shows `'getad()' function is undefined` error<\/dt>\n<dd><p>See explanation on the <em>Description<\/em> page in <em>Migrating from\nAdRotator plugin<\/em> section.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>2.0.3 (July 30, 2009)<\/h4>\n\n<ul>\n<li>Fixed problem with backslashes appearing inside HTML (thanks to <a href=\"http:\/\/www.maxxkremer.com\/\">Maxx Kremer<\/a>).<\/li>\n<\/ul>\n\n<h4>2.0.2 (July 29, 2009)<\/h4>\n\n<ul>\n<li>Added section <em>Migrating from AdRotator plugin<\/em> in readme.txt.<\/li>\n<\/ul>\n\n<h4>2.0.1 (July 29, 2009)<\/h4>\n\n<ul>\n<li>Fixed Installation section in readme.txt.<\/li>\n<li>Filter out HTML when user has no rights to edit unfiltered HTML.<\/li>\n<\/ul>\n\n<h4>2.0.0 (July 29, 2009)<\/h4>\n\n<ul>\n<li>Completely rewritten using new WordPress 2.8 widgets API.<\/li>\n<li>Readme file and couple of screenshots added.<\/li>\n<\/ul>\n\n<h4>1.0.1 (March 31, 2007)<\/h4>\n\n<ul>\n<li>Plugin home page updated.<\/li>\n<\/ul>\n\n<h4>1.0.0 (May 1, 2006)<\/h4>\n\n<ul>\n<li>Initial plugin implementation.<\/li>\n<\/ul>","raw_excerpt":"Ad Rotator is a simple widget to display random HTML code (advertisements) from a given group of HTML-chunks on sidebar.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/mk.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/6290","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mk.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/mk.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/mk.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=6290"}],"author":[{"embeddable":true,"href":"https:\/\/mk.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/kpumuk"}],"wp:attachment":[{"href":"https:\/\/mk.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=6290"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/mk.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=6290"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/mk.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=6290"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/mk.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=6290"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/mk.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=6290"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/mk.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=6290"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}