User Manual 用戶手冊
There are three simple steps to use AdRotator.有三個簡單的步驟來使用的AdRotator 。

First you should首先,您應該 upload the plugin to your wp-content/plugins directory and Activate the plugin from Plugin Manager上傳插件到您的wp-content/plugins目錄和激活插件從插件經理 .

Then you should create one or more files (depending on the number of Ad groups you envision) in wp-content folder with names ending with .txt .那麼你應該創建一個或多個文件(視人數,廣告組,你的設想)在可濕性粉劑-文件夾的內容與名稱結尾為。 txt For example: banner.txt or skyscrapper.txt etc.例如: banner.txtskyscrapper.txt等。 Each files contains a specific type of Ads, normally with the same size.每個文件包含一個特定類型的廣告,通常具有相同的大小。 If you name the file indicating the type of Ad it displays, then it will be easier for you to remember later.如果您的姓名檔案顯示廣告的類型,它會顯示,然後將您能更方便地記得,稍後。

You can either create them on your desktop and upload them using ftp or create them directly on the server or use the Admin interface, your choice.您可以創建它們在您的桌面上,並上載它們的使用FTP或建立他們在該服務器上直接或使用管理介面,您的選擇。

Each of these files contains one or more lines.每個這些文件包含一個或多個線路。 Each line contains the Ad code for any particular advertisement.每一行包含的廣告代碼為任何特定的廣告。

What if your ad code is multi-line? 如果您的廣告代碼是多行?
Normally Ad codes are provided in single line.通常的廣告代碼是提供在單行。 However in certain cases like Google AdSense, for example, multi-line Ad codes are provided.但是在某些情況下,像Google AdSense的,舉例來說,多線路的廣告代碼提供。 In that case either convert the Ad code to single line manually or just take the most relevant portion of the code at the end and insert it in the file.在這種情況下無論是轉換廣告代碼,以單線手動或只採取最相關的部分代碼在去年底和它插入在文件裡。 The remaining code (which normally will be used to setup some parameters) will remain above the location (in your template file) where you would insert the function to select an ad from this ad group.其餘的代碼(通常將被用來設置一些參數)仍將高於位置(在您的模板文件) ,您可以在插入函數來選取一個廣告從這個廣告組。 So when this particular ad is chosen, then all the required code will be available and the ad will be visible.因此,當這個特定的廣告是選擇,那麼所有必要的代碼將可和廣告將可見。 Read the AdSense discussion below for further clarification.閱讀的AdSense下文的討論作進一步澄清。

This can be used to display Google AdSense, LinkShare or your custom Advertisements.這可以用來顯示的Google AdSense , LinkShare的或您的自定義廣告。

For AdSense keep the top portion of the code where settings are provided, as-is in your template.為AdSense保持頂端部分的代碼設置提供,作為-是在您的範本。 Compress the last three lines (includes a javascript file) of the code, which actually inserts the Ad, in a single line and insert it in your text file.壓縮最後三行(包括一個JavaScript文件) ,該守則的,這實際上插入的廣告,在一個單一的路線和它插入在您的文本文件。

In case you are wondering it doesn’t violate any terms of service regarding competing ads because the final HTML (at that location) displays Ads from only one source, randomly selected.在情況下,您是不知道它不違反任何服務條款關於競爭性廣告,因為最後的HTML (在該地點進行)顯示的廣告只有一個來源,隨機抽選。

Finally you need to specify a location to display your ads.最後,您需要指定一個位置,以顯示您的廣告。 Add the code添加代碼 (after providing the actual ad file name without the .txt extension) anywhere in your template. (後提供實際的廣告檔案名稱沒有。 txt擴展名)的任何地方在您的範本。

The AdRotator looks for a text file as specified in the Ad file name and with a .txt extension.有關的AdRotator尋找一個文本文件中指定的廣告文件名和一個。 txt擴展名。 So if you have a code like:因此,如果你有一個代碼,例如:
< ?php echo getad('bannerad'); ?> < ? PHP的迴聲getad ( ' bannerad ' ) ; ? >
Then AdRotator looks for wp-content/bannerad.txt file.然後的AdRotator尋找wp-content/bannerad.txt檔案。 If it finds it, it picks up a line randomly from the file and inserts it in your template/html.如果它發現它,它拿起一條線,隨機從文件並插入它在您的模板/ HTML格式。

You can alter the weight of an Ad (how often you want it displayed) by repeating the same ad line multiple times.你可以改變的重量廣告(如何,往往您想要的顯示) ,重複相同的廣告線多次。

Note: If it cannot find the specified text file or cannot find any ad in the file then it does not insert anything.注意:如果它無法找到指定的文本文件,或無法找到任何廣告,在該文件,然後它沒有插入任何事情。

Pages: 頁數: 1 2 3 4