Knowledgebase
How do I publish ads with RSS?
Posted by - NA - on 18 June 2008 09:34 PM

What are the requirements for publishing Linkworth Ads with RSS?

To publish Linkworth content with RSS the Linkworth RSS reader will be required. Download the Linkworth RSS Feed Reader by clicking here.

Once downloaded, utilize a Zip file extractor to open the file. There is one (1) file included in the zip file: rss_reader.php.

Updating the Feed Reader Code

Open the rss_reader.php file with notepad, Dreamweaver, Frontpage or your favorite code editor.

Look for the following snippet at the bottom of the page: // ENTER YOUR UNIQUE PRT_PACKAGE_ID NUMBER BELOW AT THE END OF THE URL

Below this is the following snippet of code:

$fp = fopen("http://www.linkworth.com/act/partner/links/rss_feed.php?prt_package_id=23", "r")
or die("Error reading RSS data.");

This URL in quotes can be updated as needed by the partner to host several different types of Ads.

Updating RSS code snippet for displaying ALL Linkworth rotating ads in one section of the partner website.

For a no-maintenance solution to displaying ads with RSS, the partner simply needs to change the URL (highlighted above) to the code snippet provided by the Linkworth adserver at the time the Ad is approved. Note that by adding the code one time, the page is fully enabled to display ALL dynamic ads (Rotating Ads, etc.) that are approved in the future.

The code provided by Linkworth adserver at the time the advertisement is approved may look something like the following:

<?php
require 'http://www.mywebsite.com/act/partner/rotating_ads/rss_feed.php?prt_website_id=11111&prt_website_link_placement_location=3&prt_website_link_placement_id=22222';
?>

Integrating the RSS code into the partner website

In order to successfully display the results of the RSS feed from Linkworth's adservers, the partner will need to include the code on their website/webpage. There are two ways of doing this:

Dynamic pages (.php, .asp, .shtml)

For dynamic pages, the partner can simply save the rss_reader.php file (once updated with the proper prt_package_id) into the root web folder.

Once saved, the partner can locate the area on their webpage(s) and utilize a SSI (Server Side Include) to include the file in a specific table, cell, div, etc.

Additionally, if the partner choose not to utilize SSI, the entire code from rss_reader.php can be pasted directly into a table, cell, div, etc.

Static Pages (.htm, .html)

Prior to including PHP code on the partner website, .htm and .html php processing must be enabled via .htaccess.

Once php processing is enabled, follow the instructions for Dynamic Pages.

(465 vote(s))
This article was helpful
This article was not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments:
Help Desk Software by Kayako help.linkworth.com/index.php?