WordPress Plugin: AdRotator - Ad Rotating Solution for your Ads (including AdSense, Clicksor, Chitika etc.) wordpress插件:的AdRotator -公元旋转,解决您的广告(包括A dSense, c licksor, c hitika等)
Contents 内容
- Overview概览
- Requirements要求
- Usage使用
- Configuration配置
- Download下载
- User Manual用户手册
- Example例如
Installation安装 - Uninstallation卸载
Overview 概览
Displays an advertisement (which is randomly selected from a group of advertisements specified in a text file) at your chosen location.显示广告(这是随机选取的一组广告,指定在一个文本文件中)在您所选择的位置。 Tested on WordPress 1.5 & 2.x.进行测试的WordPress 1.5 & 2.x. Should work with earlier and later versions (future and past proofed).应工作与早前和更高版本(未来和过去的空调) 。 It can also be used with other CMS systems or anywhere where PHP is supported.它也可以用来与其他细胞质雄性不育系统或任何PHP在哪里支持。
It does one job and does it well.但这一份工作是否良好。 Enough said.足够的说。
If you find this useful, let me know.如果您发现这个有用的,让我知道。 Links are appreciated too.链接是赞赏。
Note:注意: Contact me与我联系 for custom modification requests.自订修改的要求。
Requirements 要求
AdRotator was created with few simple requirements.的AdRotator创建几个简单的要求。
- It should allow rotating (randomly) between any number of advertisements (or other code or images etc.)它应该让旋转(随机)之间的任何数目的广告(或其他代码或图像等)
- It should be efficient.它应该有效率。
- It should be simple to use.它应该是简单使用。
- It should be simple to install.应该安装简单。
- It should be simple to uninstall.它应该是简单卸载。
Usage 使用
This can be used to distribute your Ads impressions between various providers and to provide variety to users.这可以用来分发您的广告展示次数之间的各种供应商,并提供多样化的用户。
It can also be used to randomly include any other code or even to randomly display images, text messages etc. The usage is limited by your imagination only.它也可以被用来随机包括任何其他代码或什至随机显示图片,文字讯息等的使用是有限的,由你的想象力只。 You can also use it to您也可以使用它来 display rotating advertisement within your posts or pages显示旋转的广告在您的职位或页面 . 。
The code can be used with non-WordPress systems too.代码可用于与非的WordPress系统。
Update: You can refer to my更新:您可以参考我的 comments below for further clarifications下面的意见作进一步的澄清 and an example of the text file.和一个例子,文本文件。
Filed under提起下 CMS Software CMS软件 , , Headline News头条新闻 , , How To如何 , , Open Source Software开放源码软件 , , PHP PHP的 , , Pro Blogging赞成Blogging , , Technology技术 , , Web网页 , , WordPress在WordPress | |
| |
RSS 2.0 2.0 | |
Email this Article电子邮件此文章
You may also like to read您也可以想读 |



May 23rd, 2005 at 8:43 am 2005年5月23日在上午8时43分
[...] s - Cool Scripts LinkyLoo Wordpress Plugins Business of Blogging — Mark WordPress Plugin: AdRotator - Ad [...] [ … … ] s -酷剧本l inkyloow ordpress插件业务的博客-马克wo rdpress插件:的A d Rotator-广告[ …… ]
May 23rd, 2005 at 5:33 pm 2005年5月23日在下午5时33分
[...] [ … … ]
davidbisset.com
WordPress Plugin: AdRotator Displays an advertisement (which [...] wordpress插件:的AdRotator显示广告( [ … … ]
May 24th, 2005 at 2:39 am 2005年5月24日在上午02时39分
[...] « WordPress Theme Viewer Plugin WordPress: Ad-Rotator Ad-Rotator è un plugin per [...] [ … … ] «的WordPress主题查看插件的WordPress :广告旋转广告-转子è联合国插件每[ … … ]
May 25th, 2005 at 2:32 pm 2005年5月25日在下午2时32分
[...] as been published that supports “ad rotation”. [ … … ]作为出版支持“广告轮换” 。 WordPress Plugin: AdRotator WordPress Plugin: AdRotator - Ad [...] wordpress插件:的AdRotator wordpress插件:的AdRotator -广告[ … … ]
May 30th, 2005 at 7:27 pm 2005年5月30日在下午7点27分
Is this rotator supposed to exchange ads continuously while viewing the same page or is does it Only changes ads as you change pages on the blog?这是转子假定交换广告,不断的同时查看相同的网页,或是否是唯一的改变是广告作为你改变的网页上的博客? I installed it and if I go to different category pages, it does change the ad with each new page viewed.我安装了它,如果我去不同类别的页面,但这改变广告与每一个新的网页浏览。 Do you know of any plugin that will keep them changing on the same page or am I just getting this wrong?你知不知道任何插件,将让他们改变在同一个网页上或我刚刚起步,这是错误的? thanks!谢谢!
May 30th, 2005 at 9:00 pm 2005年5月30日在下午九时
It changes ad with each viewing of each page.它的变化,广告与每一个观看的每一页。 You can reload the page to test it.您可以重新载入网页,以测试它。
> Do you know of any plugin that will keep them changing on the same page or am I just getting this wrong? >你知不知道任何插件,将让他们改变在同一个网页上或我刚刚起步,这是错误的?
No. AFAIK it is not recommended by Google and many Ad providers as it leads to artificial increase in page impressions.第afaik ,这是不建议由Google和许多广告提供商,因为它导致人工增加的网页展示。 Check the TOS before you go that route.检查服务条款之前,你走的路线。
May 31st, 2005 at 1:15 pm 2005年5月31日在下午1时15分
What if I am publishing my own banners?如果我出版我自己的旗帜? I have simple src tags in the footer.php and sidebar.php in my WordPress Theme.我简单的钢骨混凝土标签,在footer.php和sidebar.php在我的WordPress的主题。 Can I rotate multiple banners in the footer, or in between posts?我可以旋转多个横幅,在页脚,或在之间的职位?
Thanks谢谢
May 31st, 2005 at 8:58 pm 2005年5月31日在下午8时58分
@Ravedelay @ ravedelay
> What if I am publishing my own banners? >如果我出版我自己的旗帜?
Sure.当然。 No problem.没有问题。
> Can I rotate multiple banners in the footer, or in between posts? >我可以旋转多个横幅,在页脚,或在之间的职位?
Anywhere you want.您想要的任何地方。
July 2nd, 2005 at 11:10 pm 2005年7月2日在下午11时10分
[...] Ever since I opened the YDW Store I’ve had a banner ad for it at the bottom of most pages. [ … … ]自从我打开了ydw商店我已经有一个横幅广告,为它在底部的大多数网页。 What I wanted to do was to be able to rotate several ads for it, but there wasn’ta way to do it until recently.我想做的事是要能够旋转的几个广告,但不是有办法这样做,直到最近。 Thanks to Angsuman Chakraborty’s Ad Rotator plugin for WordPress, I have that ability.感谢日由Angsuman Chakraborty的广告转子插件的WordPress ,我有这种能力。 [...] [ … … ]
July 10th, 2005 at 5:52 am 2005年7月10日在上午05时52分
[...] Simple Thoughts on WordPress [...] [ … … ]简单的思考的WordPress [ … … ]
July 31st, 2005 at 6:49 pm 2005年7月31日在下午6时49分
[...] For more info and download, please visit taragana blog Tags: Wordpress, Plugin, Ad, Ad Rotator DirectLinks: Adsense, Gloriagate, Naruto, Ka Webspy Directory, Cellphones and Gadgets [...] [ … … ]的更多信息和下载,请访问采购Taragana博客标签:在WordPress ,插件,广告,广告转子directlinks : AdSense的, gloriagate ,火影忍者,嘉webspy目录,手机和小工具[ … … ]
October 10th, 2005 at 7:16 pm 2005年10月10日在下午7点16分
Angsuman,由Angsuman ,
I’m the guy from WP forums who is STILL having problems making some rotating ads work.我家伙从可湿性粉剂论坛谁是仍然有问题,使一些旋转的广告工作。 You dropped by and offered your services– which I greatly appreciate.你下跌,并提供您的服务-我十分欣赏。
You say this AD ROTATOR is easy and requires little coding.你说这个广告转子是很简单的要求很少编码。 I’ve read this ‘manual’ twice and must politely disagree.我已阅读本手册'两次,必须有礼貌地不同意。
1. 1 。 I completed the first step, uploading and activating the plugin.我完成了第一步,上载和激活插件。 Very clear.很清楚的。
2. 2 。 You then ask me to create a .txt file.然后,您会问我,创造一个。 txt文件。 I’m pretty sure I know what you mean, but right there some people won’t.我相当肯定我知道你的意思,但有权有一些人不会。 I’ma Mac user that believes I can create such a file in text edit, but I’m unsure if I need to do so in some binary or ascii mode, neither of which mean anything to me but I that I see now and again.我的Mac用户认为,我可以创造这样一个文件在文字编辑,但我不确定如果我需要这样做,在一些二进制或ASCII模式,既不是其中意味着什么,但我,我现在看到的和再次。
3. 3 。 Even worse:更糟糕:
“Each of these files contains one or more lines. “每个这些文件包含一个或多个线路。 Each line contains the Ad code for any particular advertisement.” This is very vague.每一行包含的广告代码为任何特定的广告“ ,这是非常含糊。 Lines of what?行什么? What ad code?什么广告代码? What does it look like, exactly, since in code EXACT matters.什么是它的外观,正是,因为在代码的确切事宜。
**************
My best suggestion: create and post an example banners.txt file, with example ad code in it.我最好的建议:创建和后一个例子banners.txt文件,例如广告程式码。
My personal request is that you DON’T force us to identically sized banners.我个人的要求是,你不迫使我们相同大小的横幅。
Any help would be greatly GREATLY appreciated,任何帮助将会大大大大的赞赏,
Jerome杰罗姆
October 10th, 2005 at 8:00 pm 2005年10月10日在下午八时
@Jerome and others @杰罗姆和其他
> You then ask me to create a .txt file >然后,您会问我,创造一个。 txt文件
I mean create a text file with .txt extension.我的意思是创建一个文本文件。 txt扩展名。
> “Each of these files contains one or more lines. > “每个这些文件包含一个或多个线路。 Each line contains the Ad code for any particular advertisement.” This is very vague.每一行包含的广告代码为任何特定的广告“ ,这是非常含糊。 Lines of what?行什么? What ad code?什么广告代码? What does it look like, exactly, since in code EXACT matters.什么是它的外观,正是,因为在代码的确切事宜。
> Lines of what? >线什么?
“Each line contains the Ad code for any particular advertisement.” “每一行包含的广告代码为任何特定的广告” 。
> What ad code? >什么广告代码?
Your advertisers like Google / Chitika etc. gives your certain text to insert in your webpage / template.您的广告,像Google / chitika等,让您的某些文本插入在您的网页/模板。 That is commonly referred to as ad code.这是被称为广告代码。
> What does it look like, exactly, since in code EXACT matters. >什么是它的外观,正是,因为在代码的确切事宜。
It depends on your advertiser.它取决于你的广告客户。 See the example below for my advertisers code.看看下面的例子为我的广告代码。
> My best suggestion: create and post an example banners.txt file, with example ad code in it. >我最好的建议:创建和后一个例子banners.txt文件,例如广告程式码。
You got it -你明白它- sample adrotator file - adrotator_example.txt样本的AdRotator档案-a drotator_example.txt
> My personal request is that you DON’T force us to identically sized banners. >我个人的要求是,你不迫使我们相同大小的横幅。
I don’t.我不会这样做。 You can have any number of banners of any sizes; all different even.您可以有任何数目的旗帜,任何大小;所有不同的,甚至。
Not only that you can use them in as many locations as you want; you can also have certain ads display with more frequency than others etc.不仅如此,您可以使用他们在许多地方,作为您想要的;您也可以有一定的广告展示更多的频率比其他等。
October 11th, 2005 at 1:40 pm 2005年10月11日在下午1时40分
Dear Sir,亲爱的主席先生,
You rock.你的岩石。 Thank you so much for the sample.txt youp posted.谢谢这么多为sample.txt youp张贴。 It helped me figure out little nuances and such and was greatly appreciated.它帮助我出来的细微差别不大等,并极大的赞赏。
What would make this plugin really easy– maybe:是什么使这个插件真的容易,也许:
1. 1 。 We upload and activate the php.plugin我们上传并激活php.plugin
2. 2 。 It creates a control panel under ‘manage’它创造了一个控制面板下的'管理'
3. 3 。 It allows us to name and create a .txt file in the default location; as well as a default position/folder for images它使我们能够姓名和创造。 txt文件在默认位置;以及作为一个预设的立场/文件夹的图片
4. 4 。 It offers fields for html, descriptions, and images它提供了领域的HTML ,说明和图像
This may be asking a lot, but what I’m trying to do is reduce the potential of error for the novice like myself这可能是问了很多,但我所试图做的是减少了潜在的误差为新手像我一样
******************
But THANK YOU thank you THANK YOU for you help in this matter.不过,谢谢你,谢谢,谢谢您的帮助,在这件事。
******************
There isn’ta way to make this somehow work for a PHPboard, is there?有不是的方法,使这在某种程度上为phpboard ,是否有? (I managed to get the javascript thing to work there.) (我设法获得的JavaScript的事在那里工作) 。
October 11th, 2005 at 10:28 pm 2005年10月11日在下午10时28分
@Jerome @杰罗姆
Thanks for your compliments.感谢您的恭维。
I will keep your suggestions in mind for the next version.我会保持您的建议,考虑到为未来的版本。
> There isn’ta way to make this somehow work for a PHPboard, is there? >却没有办法使这一工作在某种程度上为phpboard ,是否有?
It is very easy to make it work anywhere.这是很容易使它在任何地方工作。 I may soon put up a generic version for other systems.我可能会尽快提出一个通用的版本为其他系统。
October 25th, 2005 at 12:00 pm 2005年10月25日在下午12点
Is there anyway this ADSense tool can advertise banners with Pictures, and not just TEXT ads?无论如何,是有此AdSense工具可以刊登广告横幅与图片,而不仅是文字广告? If its capable of doing this please let me know !如果它能够这样做,请让我知道了!
Great plugin by the way伟大的插件方式,由
November 5th, 2005 at 12:00 am 2005年11月5日在上午12点
Give me the download link Please给我的下载连结,请
November 5th, 2005 at 3:28 am 2005年11月5日在上午03时28分
It is in这是在 page 2第2页 . 。
Please read the请阅读 User Manual用户手册 thoroughly after you后彻底你 download the plugin下载插件 . 。
November 5th, 2005 at 8:15 pm 2005年11月5日在下午8时15分
I have been trying to use your rotator script rotating AddSense and other text advertising but AddSense just would not show.我一直在尝试使用您的脚本转子旋转addsense和其他文字广告,但addsense只是不会显示。 I have converted the add code to one liner but it does not come up.我已转换添加代码以一班轮但这并不出来。 Other lines do show up but not the ASense line.其他线显示出来,而不是asense线。
Can you tell me if it does work with AddSense in general or is their code incompatible with this script?你能告诉我,如果它的工作与addsense在一般或是他们的代码不符合此脚本?
I do not want to cut the code in two parts as you mention in the User mannual, but rather keep it all in the txt file.我不想削减代码分为两部分,作为你所提到的在用户mannual ,而是保持它所有在该txt文件。
Can you please tell me if it does work with AddSense.可以请你告诉我,如果它的工作与addsense 。
If yes, can you please look into this code and may be tell me what is wrong here.如果是的话,可以请你看看这个代码,并可能告诉我,什么是错在这里。
Thank you.谢谢您。
AS Code:作为代码:
November 5th, 2005 at 10:34 pm 2005年11月5日在下午10时34分
@Mike @迈克
> Can you please tell me if it does work with AddSense. >可以请你告诉我,如果它的工作与addsense 。
Absolutely.绝对。 I use it in all my blogs.我用它在我所有的博客。
> I have converted the add code to one liner but it does not come up. >我已转换添加代码以一班轮但这并不出来。
That is kind of tricky so I don’t recommend it.这是种微妙的,所以我不推荐。
> If yes, can you please look into this code and may be tell me what is wrong here. >如果是的话,可以请你看看这个代码,并可能告诉我,什么是错在这里。
Sure.当然。 Send it at angsuman [at] taragana [dot] com它传送由Angsuman [在]采购Taragana [点]的COM
November 10th, 2005 at 1:58 am 2005年11月10日在上午01时58分
I’m wondering whether there’sa way to make this display a Google AdSense for Search.我很怀疑是否有方法,使这显示Google的AdSense for search 。
Or if you know of any other WP Plugin that can do this, I’d really appreciate you telling me.或者,如果您知道任何其他可湿性粉剂插件可以做这,我要非常感谢你告诉我。
Thanks.谢谢。
November 11th, 2005 at 10:06 pm 2005年11月11日在下午10时06分
@George @乔治
I am not sure about your question.我不知道你的问题。 Can you please clarify?可以请你澄清?
November 18th, 2005 at 12:26 pm 2005年11月18日在下午12时26分
This plugin is really nice !此插件,实在是不错! great work sir.伟大的工作,主席先生。
November 18th, 2005 at 12:43 pm 2005年11月18日在下午12时43分
Thanks Kritika.感谢kritika 。
BTW: Your link isn’t valid.的BTW :您的链接是无效的。
December 9th, 2005 at 3:23 pm 2005年12月9日在下午3时23分
help I get:帮助我得到:
Fatal error: Call to undefined function: getad()致命错误:调用未定义的功能: getad ( )
anywhere i place任何地方我把
December 9th, 2005 at 8:39 pm 2005年12月9日在下午8时39分
Mr. P,先生,磷,
You haven’t activated the plugin.您还没有激活插件。
December 22nd, 2005 at 8:57 pm 2005年12月22日在下午8时57分
Can someone please provide an example of both the .txt file and code added into the template for mulitple AdSense ads?有人可以请提供一个例子,双方的。 txt文件和代码加入到模板mulitple AdSense广告?
Also, is it possible to make the ads appear at the bottom of each post?此外,是否有可能使广告出现在底部的每一个职位?
cheers干杯
December 22nd, 2005 at 11:21 pm 2005年12月22日在下午11时21分
@Nathan @弥敦道
> Can someone please provide an example of both the .txt file >有人可以请提供一个例子,双方的。 txt文件
Check the comments, specifically检查的意见,特别是 comment no 13没有评论13 where I provide an example.我提供一个例子。
> code added into the template for mulitple AdSense ads? >代码加入到模板mulitple AdSense广告?
Please check the documentation.请检查文件。 Essentially I call getad with different file names.基本上我呼吁getad与不同的档案名称。
> Also, is it possible to make the ads appear at the bottom of each post? >此外,是否有可能使广告出现在底部的每一个职位?
Yes.是。 In this blog I use AdRotator to display AdSense ad at the bottom of each post.在这博客我使用的AdRotator显示AdSense广告在底部的每一个职位。 Just add the line in your template after the post code.刚才行添加在您的模板后,邮递区号。
December 27th, 2005 at 1:44 pm 2005年12月27日在下午1时44分
[...] WordPress Plugin: AdRotator - Ad Rotating Solution for your Ads (including AdSense) [...] [ … … ] wordpress插件:的AdRotator -公元旋转,解决您的广告(包括A dSense) [ … … ]
December 29th, 2005 at 1:02 am 2005年12月29日在上午01时02分
[...] [...] [ … … ] [ … … ]
January 3rd, 2006 at 10:22 pm 2006年1月3日在下午10时22分