how to search for a list ?

Solutions for other advanced phplisters

how to search for a list ?

Postby droidSTAR » 10:29am, Sat 24 Sep, 2011

When email lists are too many, it would be better to search for a list. As example, i have 22K emails in 50 lists. To find a specific list, it would be better to search by name.
Though phplist has the functionality to search for an user, there is no way to search for a list.
Any idea how to do that ? any hack,trick,mod or plugin ???
Any help would be greatly appreciated.
droidSTAR
phpLister
 
Posts: 10
Joined: 2:38pm, Wed 21 Sep, 2011

Re: how to search for a list ?

Postby droidSTAR » 7:17am, Sun 09 Oct, 2011

OK, i figured it out myself .
added these code
if (isset($_POST['find_list'])){
$find_list = mysql_real_escape_string($_POST['find_list']);
if (stristr($subselect, "where"))
{$subselect .= " AND name like '%{$find_list}%' ";}
else
{$subselect .= " WHERE name like '%{$find_list}%' ";}

$result = Sql_query("SELECT * FROM $tables[list] $subselect order by listorder");
}
else {
$result = Sql_query("SELECT * FROM $tables[list] $subselect order by listorder");
}

inside admin/list.php and worked fine .
droidSTAR
phpLister
 
Posts: 10
Joined: 2:38pm, Wed 21 Sep, 2011


Return to Advanced Answers, Howtos, Tips & Tricks

Who is online

Users browsing this forum: No registered users and 1 guest