$user_ary
, das aus der Funktion acl_get_list()
gespeist wird, immer ein Array. Daher denke ich, daß Med-Eb nicht füge danach ein
, sondern tausche aus
im Code umgesetzt hat.Aber warten wir ab.
$user_ary
, das aus der Funktion acl_get_list()
gespeist wird, immer ein Array. Daher denke ich, daß Med-Eb nicht füge danach ein
, sondern tausche aus
im Code umgesetzt hat.irgendwie war das für dieses form zu groß - geht das auch so, als textdatei?: (Kopie von dem PASTEBIN)Miriam hat geschrieben:Kannst Du mal bitte Deine memberlist.php inklusive der von Dir eingesetzten Codeanpassungen posten? (mittels PasteBin)
Also ich konnte deine verlinkte memberlist.php problemlos in unser Pastebin hochladen.med-eb hat geschrieben:irgendwie war das für dieses form zu groß - geht das auch so, als textdatei?:
Nein.med-eb hat geschrieben:...bekomme ich dadurch grundsätzliche schwierigkeiten mit dem phpbb-forum?
Code: Alles auswählen
$user_ary = $auth->acl_get_list(false, array('a_', 'm_'), false);
Code: Alles auswählen
var_dump($user_ary);
Code: Alles auswählen
array(56) { [0]=> array(2) { ["m_"]=> array(2) { [0]=> int(55) [1]=> int(2) } ["a_"]=> array(1) { [0]=> int(2) } } [4]=> array(1) { ["m_"]=> array(1) { [0]=> int(2) } } [66]=> array(1) { ["m_"]=> array(1) { [0]=> int(2) } } [60]=> array(1) { ["m_"]=> array(1) { [0]=> int(2) } } [59]=> array(1) { ["m_"]=> array(1) { [0]=> int(2) } } [57]=> array(1) { ["m_"]=> array(1) { [0]=> int(2) } } [56]=> array(1) { ["m_"]=> array(1) { [0]=> int(2) } } [55]=> array(1) { ["m_"]=> array(1) { [0]=> int(2) } } [54]=> array(1) { ["m_"]=> array(1) { [0]=> int(2) } } [53]=> array(1) { ["m_"]=> array(1) { [0]=> int(2) } } [52]=> array(1) { ["m_"]=> array(1) { [0]=> int(2) } } [50]=> array(1) { ["m_"]=> array(1) { [0]=> int(2) } } [49]=> array(1) { ["m_"]=> array(1) { [0]=> int(2) } } [48]=> array(1) { ["m_"]=> array(1) { [0]=> int(2) } } [47]=> array(1) { ["m_"]=> array(1) { [0]=> int(2) } } [46]=> array(1) { ["m_"]=> array(1) { [0]=> int(2) } } [44]=> array(1) { ["m_"]=> array(2) { [0]=> int(2) [1]=> int(54) } } [42]=> array(1) { ["m_"]=> array(1) { [0]=> int(2) } } [39]=> array(1) { ["m_"]=> array(1) { [0]=> int(2) } } [41]=> array(1) { ["m_"]=> array(1) { [0]=> int(2) } } [37]=> array(1) { ["m_"]=> array(1) { [0]=> int(2) } } [38]=> array(1) { ["m_"]=> array(1) { [0]=> int(2) } } [36]=> array(1) { ["m_"]=> array(1) { [0]=> int(2) } } [35]=> array(1) { ["m_"]=> array(1) { [0]=> int(2) } } [40]=> array(1) { ["m_"]=> array(1) { [0]=> int(2) } } [28]=> array(1) { ["m_"]=> array(2) { [0]=> int(2) [1]=> int(54) } } [27]=> array(1) { ["m_"]=> array(2) { [0]=> int(2) [1]=> int(54) } } [26]=> array(1) { ["m_"]=> array(1) { [0]=> int(2) } } [24]=> array(1) { ["m_"]=> array(1) { [0]=> int(2) } } [23]=> array(1) { ["m_"]=> array(1) { [0]=> int(2) } } [22]=> array(1) { ["m_"]=> array(1) { [0]=> int(2) } } [21]=> array(1) { ["m_"]=> array(1) { [0]=> int(2) } } [20]=> array(1) { ["m_"]=> array(1) { [0]=> int(2) } } [19]=> array(1) { ["m_"]=> array(1) { [0]=> int(2) } } [18]=> array(1) { ["m_"]=> array(1) { [0]=> int(2) } } [17]=> array(1) { ["m_"]=> array(1) { [0]=> int(2) } } [16]=> array(1) { ["m_"]=> array(1) { [0]=> int(2) } } [15]=> array(1) { ["m_"]=> array(1) { [0]=> int(2) } } [13]=> array(1) { ["m_"]=> array(2) { [0]=> int(2) [1]=> int(54) } } [9]=> array(1) { ["m_"]=> array(1) { [0]=> int(2) } } [11]=> array(1) { ["m_"]=> array(2) { [0]=> int(2) [1]=> int(56) } } [10]=> array(1) { ["m_"]=> array(1) { [0]=> int(2) } } [14]=> array(1) { ["m_"]=> array(1) { [0]=> int(2) } } [6]=> array(1) { ["m_"]=> array(1) { [0]=> int(2) } } [5]=> array(1) { ["m_"]=> array(1) { [0]=> int(2) } } [8]=> array(1) { ["m_"]=> array(1) { [0]=> int(2) } } [61]=> array(1) { ["m_"]=> array(1) { [0]=> int(2) } } [34]=> array(1) { ["m_"]=> array(1) { [0]=> int(2) } } [33]=> array(1) { ["m_"]=> array(1) { [0]=> int(2) } } [32]=> array(1) { ["m_"]=> array(1) { [0]=> int(2) } } [31]=> array(1) { ["m_"]=> array(1) { [0]=> int(2) } } [7]=> array(1) { ["m_"]=> array(1) { [0]=> int(2) } } [30]=> array(1) { ["m_"]=> array(1) { [0]=> int(2) } } [29]=> array(1) { ["m_"]=> array(1) { [0]=> int(2) } } [3]=> array(1) { ["m_"]=> array(1) { [0]=> int(2) } } [63]=> array(1) { ["m_"]=> array(2) { [0]=> int(2) [1]=> int(56) } } } [phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4688: Cannot modify header information - headers already sent by (output started at [ROOT]/memberlist.php:76)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4690: Cannot modify header information - headers already sent by (output started at [ROOT]/memberlist.php:76)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4691: Cannot modify header information - headers already sent by (output started at [ROOT]/memberlist.php:76)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4692: Cannot modify header information - headers already sent by (output started at [ROOT]/memberlist.php:76)
$user_ary
ist ein Array.Code: Alles auswählen
$user_ary = $auth->acl_get_list(false, array('a_', 'm_'), false);
Code: Alles auswählen
// create array of sorted forum IDs
$sql = 'SELECT forum_id
FROM ' . FORUMS_TABLE . '
ORDER BY forum_type ASC, forum_id ASC';
$result = $db->sql_query($sql);
$ordered_forums = array();
$ordered_forums[0] = '';
while ($row = $db->sql_fetchrow($result))
{
$ordered_forums[$row['forum_id']] = '';
}
$db->sql_freeresult($result);
/* code for PHP5.3 and above
$user_ary = array_replace($ordered_forums, $user_ary);
*/
// code for PHP5.2.x and below
foreach ($ordered_forums as $key => &$value)
{
if (array_key_exists($key, $user_ary))
{
$value = $user_ary[$key];
}
}
$user_ary = $ordered_forums;
Code: Alles auswählen
[phpBB Debug] PHP Warning: in file [ROOT]/memberlist.php on line 110: Invalid argument supplied for foreach()
[phpBB Debug] PHP Warning: in file [ROOT]/memberlist.php on line 110: Invalid argument supplied for foreach()
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4688: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4690: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4691: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4692: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
Code: Alles auswählen
$user_ary = $auth->acl_get_list(false, array('a_', 'm_'), false);
Code: Alles auswählen
// BEGIN ******************************************************************//
// sort forum IDs
$sql = 'SELECT forum_id
FROM ' . FORUMS_TABLE . '
ORDER BY forum_type ASC, forum_id ASC';
$result = $db->sql_query($sql);
$ordered_forums = array();
$ordered_forums[0] = array();
while ($row = $db->sql_fetchrow($result))
{
$ordered_forums[$row['forum_id']] = array();
}
$db->sql_freeresult($result);
foreach ($ordered_forums as $key => &$value)
{
if (array_key_exists($key, $user_ary))
{
$value = $user_ary[$key];
}
}
$user_ary = $ordered_forums;
// sort forum IDs
// END ******************************************************************//