So, jetzt gibt es ein weiteres Problem. Ich als Admin kann es sehen, aber andere User nicht.
EDIT:
Irgendwie geht jetzt gar nichts mehr so richtig:
Code: Alles auswählen
class ucp_gmmts_info
{
function module()
{
return array(
'filename' => 'ucp_gmmts',
'title' => 'GMMTS',
'version' => '1.0.0',
'modes' => array(
'games' => array('games' => 'Games', 'auth' => 'acl_u_,$id', 'cat' => array('Games')),
'movies' => array('movies' => 'Movies', 'auth' => 'acl_u_,$id', 'cat' => array('Movies')),
'musik' => array('musik' => 'Musik', 'auth' => 'acl_u_,$id', 'cat' => array('Musik')),
),
);
}
function install()
{
}
function uninstall()
{
}
}
Code: Alles auswählen
class ucp_gmmts
{
function main($id, $mode)
{
global $config, $db, $user, $auth, $template, $phpbb_root_path, $phpEx;
switch($mode)
{
case 'games':
$this->page_title = 'Games';
$this->tpl_name = 'ucp_gmmts';
$template->assign_var('TEST', 'Games');
break;
case 'movies':
$this->page_title = 'Movies';
$this->tpl_name = 'ucp_gmmts';
$template->assign_var('TEST', 'Movies');
break;
case 'musik':
$this->page_title = 'Musik';
$this->tpl_name = 'ucp_gmmts';
$template->assign_var('TEST', 'Musik');
break;
default:
$this->page_title = 'Fehler';
$this->tpl_name = 'ucp_gmmts';
$template->assing_var('TEST', 'Irgendeine Alternative');
break;
}
}
}
Ich habe nur die Codes weiter angepasst. Mehr nicht. Jetzt ist aber folgendes passiert:
Im acp sind die ersten 2 mit einem weißen Feld ausgestattet, wenn ich es hinzufügen möchte und das Dritte wird angezeigt. Im ucp ist es dann so, dass nur die ersten beiden angezeigt werden, das Dritte aber nicht. Was ist da los? Und die Anzeige für User funktioniert auch noch nicht

Ich bin kein Profi, aber ich helfe, wo ich kann, aber lasse mich auch gerne des Besseren belehren und ich versuche durch mitreden zu lernen.
Plauder Community -->
http://gmmts.de (Games, Movies, Music, Technic, Software)