Seite 1 von 1

Wie muss ich das jetzt einfügen? After add???

Verfasst: 09.10.2003 13:53
von ActiveNight
Also...hab hier ne Datei in meinem Forum, die ich modden will..und da heißt es an einer Stelle:
$group_type = isset($HTTP_POST_VARS['group_type']) ? intval($HTTP_POST_VARS['group_type']) : GROUP_OPEN;
$group_name = isset($HTTP_POST_VARS['group_name']) ? trim($HTTP_POST_VARS['group_name']) : '';
$group_description = isset($HTTP_POST_VARS['group_description']) ? trim($HTTP_POST_VARS['group_description']) : '';
$group_moderator = isset($HTTP_POST_VARS['username']) ? $HTTP_POST_VARS['username'] : '';
$delete_old_moderator = isset($HTTP_POST_VARS['delete_old_moderator']) ? true : false;

if ( $group_name == '' )
{
message_die(GENERAL_MESSAGE, $lang['No_group_name']);
}
else if ( $group_moderator == '' )
{
message_die(GENERAL_MESSAGE, $lang['No_group_moderator']);
}
So,..und in der MOD-Anleitung steht folgendes:
#
#-----[ FIND ]------------------------------------------------
#
$delete_old_moderator = isset(

#
#-----[ AFTER, ADD ]------------------------------------------
#

// Start add - Custom mass PM MOD
$group_allow_pm = isset($HTTP_POST_VARS['group_allow_pm']) ? intval($HTTP_POST_VARS['group_allow_pm']) : AUTH_ADMIN;
// End add - Custom mass PM MOD
Wie muss das ganze jetzt hinterher aussehen? Muss ich nen Zeilenumbruch machen? Was ist mit der Klammer nach "isset"..muss die nicht geschlossen werden?[/code]

Verfasst: 09.10.2003 13:54
von Leuchte
$group_type = isset($HTTP_POST_VARS['group_type']) ? intval($HTTP_POST_VARS['group_type']) : GROUP_OPEN;
$group_name = isset($HTTP_POST_VARS['group_name']) ? trim($HTTP_POST_VARS['group_name']) : '';
$group_description = isset($HTTP_POST_VARS['group_description']) ? trim($HTTP_POST_VARS['group_description']) : '';
$group_moderator = isset($HTTP_POST_VARS['username']) ? $HTTP_POST_VARS['username'] : '';
$delete_old_moderator = isset($HTTP_POST_VARS['delete_old_moderator']) ? true : false;
// Start add - Custom mass PM MOD
$group_allow_pm = isset($HTTP_POST_VARS['group_allow_pm']) ? intval($HTTP_POST_VARS['group_allow_pm']) : AUTH_ADMIN;
// End add - Custom mass PM MOD