Has anybody of you any experience placing LinkWorth LinkMura ads in Drupal. Can't make it work at my site. Thanks in advance!

Comments

nevets’s picture

It would probably help if you explain how you are trying to add the ads to your site, in a block, a node or just to the template. Does the code use javascript, if so the input format needs to be PHP (full HTML strips out javascript).

noid’s picture

Thanks nevets for replying. Encouraged me to find solutions. :)

Finally chose an option that worked (tried using php blocks and pasting the code in the page template of my theme, but the site always stalled).

In LinkWorth's Knowledgebase, you'll find this:

***START OF INSTRUCTIONS
How do I publish ads with RSS?
Solution

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:

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.

***END OF INSTRUCTIONS

So what I did was pasted my unique code as instructed in the rss_reader.php document. Then since I didn't know how to do Server Side Includes (how do you do them btw?), I just copied the whole code of rss_reader.php, and pasted it in a php block. The block now displays a different ad each time a page from my site is downloaded. I'm crossing my fingers that what I did was valid and that LinkWorth's system recognizes the presence of the ads.

Hope this helps anybody using LinkWorth LinkMura ads in his/her Drupal site. :)