Closed (fixed)
Project:
PHPlist Integration Module
Version:
5.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
9 Sep 2008 at 14:01 UTC
Updated:
21 Mar 2011 at 21:01 UTC
Hi,
Is it possible that the 'subscribe' is available only to users of a specific role. The description is there, but no 'subscribe' if you are not of 'Platinum Member' role.
Presuming the following could be altered for something like, if 'Platinum Member' show .. just guessing here, would most appreciate any help and thank you.
Lilian
foreach ($lists as $list) {
if ($list->userid == '' && !$subonly) {
if($list->name == $_SERVER['HTTP_HOST']) {
$rows[] = array('name' => "<b>Newsletter ". $list->name ."</b> - ". ($booshowdescription ? " <br />". $list->description : ""),
'subscribe' => l(t('Subscribe'), "user/". $user->uid ."/edit/phplist/subscribe/". $list->lid)
);
}
}
elseif ($list->userid != '') {
if($list->name == $_SERVER['HTTP_HOST']) {
$rows[] = array('name' => "<b>Newsletter ". $list->name ."</b> - ". ($booshowdescription ? " <br />". $list->description : ""),
'unsubscribe' => l(t('Unsubscribe'), "user/". $user->uid ."/edit/phplist/unsubscribe/". $list->lid)
);
}
}
}
Comments
Comment #1
paulbeaney commentedThis feature is now available in the D6 release and most likely won't be back-ported to D5.