TLA ad blocks on pages with a Plus sign in the URL don't work by default

MacRonin - February 24, 2008 - 01:23
Project:Text Link Ads Integration
Version:5.x-1.x-dev
Component:Documentation
Category:task
Priority:normal
Assigned:Unassigned
Status:active
Description

First this is NOT a problem with the TLA module itself, but a quirk in the function that lets Blocks be put in specific pages. If the page you want to place your TLA ad on has a Plus sign in it you need to use PHP to select the page to include the block on. A copy of the code I used is included below:

<?php
$match
= FALSE;
$url = request_uri();
if (
strpos($url, "topics/court+us/fisa+foreign+intelligence+surveillance+act")) {
 
$match = TRUE;
}
return
$match;
?>

This is more important since we can now have multiple XML tags on a single site.

#1

greggles - May 17, 2008 - 21:26
Category:support request» task

I guess this should be added to the README.txt so I'll mark this as a task.

 
 

Drupal is a registered trademark of Dries Buytaert.