I have this running on a test site hoping it will get developed for 6. I upgraded to the latest dev version today and while all the pieces seem to be there, the one image ad I have displaying doesn't work on clicking. I have a destination URL in that field but when I click the ad I go to a Page Not Found with the path: ...ad/redirect/3/@HOSTID___

Comments

ztyx’s picture

Title: Rediredt doesn't work » Redirect doesn't work
danyg’s picture

subscribe with text and html ads. Pgae not found error.
.../ad/redirect/163/t20/
this is a 163rd node in 20th taxonomy,

in ad_menu() i found:
$items["ad/redirect/%/%/%"] = array(
'access arguments' => array('show advertisements'),
'type' => MENU_CALLBACK,
'page callback' => 'ad_redirect',
'page arguments' => (array(2,3,4)),
);

maybe i need three arguments, but I modified it, and try to understand ad_redirect($aid, $group, $hostid = 0) function without results.
Am I doing wrong or dev version doesn't work yet?

I tried to change it based on http://drupal.org/node/294029 , but it doesn't work for me :(

Thanks in advance,

DanyG

jeremy’s picture

Status: Active » Closed (duplicate)

Marking as duplicate. (And here).