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

paulbeaney’s picture

Status: Active » Fixed

This feature is now available in the D6 release and most likely won't be back-ported to D5.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.