In principal it works great.
I add 3 diffent lists in my phplist, how can I do it, that the drupal user only sees one or two of them in his mailing list (user/1/edit/phplist)?

Comments

paulbeaney’s picture

Hi,

The current functionality is that Drupal users see all lists which are tagged as 'Active'.

Regards,

- Paul

tiger_h’s picture

How do I change that. Im using phplist in a multisite installation each site having its own indepentent activ list.

paulbeaney’s picture

In phpList itself - the page where you add/edit your list.

Regards,

- Paul

tiger_h’s picture

Hi
my problem is, that domain1 need activ list 1, domain2 needs activ list2 and domain3 needs activ list3. Users und domain1 should see list1 only,...

Thanks for your help

tiger_h’s picture

My quick and dirty solution to display the list corresponding with the domain only. I edited the function phplist_lists

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)
      );
      }
    }
  }

paulbeaney’s picture

Category: support » feature
paulbeaney’s picture

Hi,

Just thought of a way you could do this using the existing functionality: create a role unique to each of your domains, and ensure that all your users have the appropriate role. This way, you can use the permissions mechanism provided by the module to restrict which lists get shown on which site.

This is probably only doing in a very simplistic environment, but might just give you a workaround.

Regards,

- Paul

paulbeaney’s picture

Status: Active » Fixed

This now possible with roles (in D6-DEV)

Status: Fixed » Closed (fixed)

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