How To Use AdRotator Within Your WordPress Post / Page AdRotatorのを使用する方法にしてWordPressのポスト/ページ
AdRotator Overview AdRotatorの概要
WordPress plugin AdRotator WordPressの差込式式AdRotator enables you to display an advertisement (which is randomly selected from a group of advertisements specified in a text file) at your chosen location anywhere in your WordPress blog (otherを使用する広告を表示するに(これはグループの広告からランダムに選択しないでは、テキストファイル)は、選択した場所の任意の場所をあなたのWordPress Blog (他の free WordPress plugins we provide WordPressの差込を無料でご提供 ). ) 。
Adding ad code is trvial.広告コードがtrvialを追加します。 You simply add this code in your template, where you want to show the advertisement:単にこのコードを追加してテンプレートを、ここでの広告を表示する場合:
bannerad '); ?> bannerad ' ) ;ですか? >
It searches for the file wp-content/ bannerad .txt, chooses one ad randomly from it and displays it.ファイルを検索しますWP内容/ bannerad 。 txtの、 1つの広告からランダムに選択し、表示します。 You should replace bannerad with the name of your actual text file without the ending txt extension. banneradの名前を置き換えて、あなたの実際のテキストファイルをtxt拡張子のエンディングです。
Ref:出所: AdRotator User Manual AdRotatorのユーザーズマニュアル
How to display rotating ads directly in your WordPress posts or pages? 回転の広告を表示する方法やページに直接投稿してWordPressのですか?
The key problem is that WordPress doesn’t allow php code in your posts and pages.問題は、 WordPressの鍵は許可されませんPHPコードやページを使用して投稿します。 And the code above is php code.と、上記のコードは、 PHPコードです。 The solution is very simple.このソリューションは非常に簡単です。
You should use any one of the available plugins for this.のいずれかを使用する必要が利用可能なプラグインです。 One such plugin is 1つは、このような差込式 Priyadi’s php-exec priyadiのPHP -実行 .です。 It allows you to execute php code within your posts.これによりPHPコードを実行するにして投稿します。 To install php-exec follow these simple steps:幹部にPHPをインストールする、以下の簡単な手順を実行:
- Download the plugin:ダウンロードして差込式: phpexec.txt
- Rename the plugin to phpexec.php and put it into your wp-content/plugins directory phpexec.phpの名前を変更するとプラグインをwp-content/pluginsディレクトリに置くことをお勧め
- Activate the plugin from WordPress administration menu WordPressの管理]メニューから有効にして差込式
Now all you have to do is use this code within your WordPress post, to display rotating ads:今すぐあなたがこれを行うには、このコードを使用してWordPressのポストに、回転の広告を表示する:
Filed under提出されて CMS Software CMSソフトウェア , 、 Headline Newsニュースの見出し , 、 How Toどのように , 、 Open Source Softwareオープンソースのソフトウェア , 、 PHP PHPの , 、 Pro BloggingプロBlogging , 、 Tech Note技術のノート , 、 Webウェブ , 、 Web Services Webサービス , 、 WordPress WordPressの | |
| |
RSS 2.0 RSS 2.0を | |
Trackbackトラックバック this Article |この記事|
Email this Article電子メールこの記事
You may also like to readを読むようにすることも可能 |




November 17th, 2006 at 10:21 am 2006年11月17日10:21 AMの
[...] 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.を使用することも回転する広告を表示することにして、投稿やページをご覧ください。 [...]
November 21st, 2006 at 5:17 am 2006年11月21日は午前5時17時
All this is good.すべてのこれでいいのです。 But can be exists ad-rotator to show advertising with a binding to categories?が存在することができます-回転子を表示する広告で広告を掲載するにバインドするカテゴリーですか?
December 7th, 2007 at 9:05 am 2007年12月7日9:05アム
I activated the above plug in but whenever I add the addrotator PHP code, wordpress strips it out and makes it a comment.私活性化、上記のプラグイン追加してaddrotatorしかし、私のPHPコードは、 WordPressのストリップことをコメントアウトして、それをします。
How do I correct this?この修正はどうすればよいですか?
December 7th, 2007 at 9:21 am 2007年12月7日は午後12:51
You cannot include it in post directly.を含めることはできません直接投稿してください。 You have to use a plugin which allows you to insert PHP code within a post or page.プラグインを使用する必要がPHPコードを挿入することができるまたはページを作成します。 You can however use it freely in your template.しかしそれを自由に使用することができますしてテンプレートをクリックします。
March 26th, 2008 at 8:05 pm 2008年3月26日は8:05 pmの
Hi!やあ! I am a little confused.私はちょっと混乱している。 I am not finding out how to use your plug in to display graphical ads.私は発見する方法を使用してグラフィカルな広告を表示するプラグインです。 From what I read here and in your User Manual, you can only display text ads.ここを読んでくださいと私は、ユーザーズマニュアル、テキスト広告のみ表示することができます。 What if I wanted to display an animated .gif or .swf file with a link to one of my advertiser’s sites?指名手配を表示するにはどうすればよいのアニメーションです。 gifや。 SWFファイルとのリンクを私の広告主様のサイトの1つですか? What information goes in the .txt file?どのような情報がされる。 txtファイルですか?
Also, you say that you can use this anywhere .php is supported.また、この言ってどこでも使用することができます。 PHPがサポートしています。 So, how do I use this outside of a blog - on a regular .php page?そのため、この外にはどうすればよいのブログに使用-は、定期的にします。 p hpのページですか?