Project:PHPlist Integration Module
Version:5.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:tiger_h
Status:closed (fixed)

Issue Summary

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

#1

Hi,

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

Regards,

- Paul

#2

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

#3

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

Regards,

- Paul

#4

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

#5

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

#6

Category:support request» feature request

#7

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

#8

Status:active» fixed

This now possible with roles (in D6-DEV)

#9

Status:fixed» closed (fixed)

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