Visibility of the lists
tiger_h - March 14, 2008 - 16:58
| Project: | phplist Integration Module |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | tiger_h |
| Status: | active |
Jump to:
Description
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)?

#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