Michael Reinisch
Mitglied
Ähm kommt es bei den ACP Einstellungen von dem Tinymce Mod oder von einem Anderem ?
Folge dem Video um zu sehen, wie unsere Website als Web-App auf dem Startbildschirm installiert werden kann.
Anmerkung: Diese Funktion ist in einigen Browsern möglicherweise nicht verfügbar.
$size = (int) $tpl_type[1];
$maxlength = (int) $tpl_type[2];
/**
* Build configuration template for acp configuration pages
*/
function build_cfg_template($tpl_type, $key, &$new, $config_key, $vars)
{
global $user, $module;
$tpl = '';
$name = 'config[' . $config_key . ']';
// Make sure there is no notice printed out for non-existent config options (we simply set them)
if (!isset($new[$config_key]))
{
$new[$config_key] = '';
}
if ($config_key == 'board_timezone')
{
$new[$config_key] = AUTOMATIC_DST_BOARD_TIMEZONE;
}
switch ($tpl_type[0])
{
case 'text':
case 'password':
$tpl = '<input id="' . $key . '" type="' . $tpl_type[0] . '"' . (($size) ? ' size="' . $size . '"' : '') . ' maxlength="' . (($maxlength) ? $maxlength : 255) . '" name="' . $name . '" value="' . $new[$config_key] . '"' . (($tpl_type[0] === 'password') ? ' autocomplete="off"' : '') . ' />';
break;
case 'dimension':
$size = (int) $tpl_type[1];
$maxlength = (int) $tpl_type[2];
$tpl = '<input id="' . $key . '" type="text"' . (($size) ? ' size="' . $size . '"' : '') . ' maxlength="' . (($maxlength) ? $maxlength : 255) . '" name="config[' . $config_key . '_width]" value="' . $new[$config_key . '_width'] . '" /> x <input type="text"' . (($size) ? ' size="' . $size . '"' : '') . ' maxlength="' . (($maxlength) ? $maxlength : 255) . '" name="config[' . $config_key . '_height]" value="' . $new[$config_key . '_height'] . '" />';
break;
case 'textarea':
$rows = (int) $tpl_type[1];
$cols = (int) $tpl_type[2];
$tpl = '<textarea id="' . $key . '" name="' . $name . '" rows="' . $rows . '" cols="' . $cols . '">' . $new[$config_key] . '</textarea>';
break;
case 'radio':
$key_yes = ($new[$config_key]) ? ' checked="checked"' : '';
$key_no = (!$new[$config_key]) ? ' checked="checked"' : '';
$tpl_type_cond = explode('_', $tpl_type[1]);
$type_no = ($tpl_type_cond[0] == 'disabled' || $tpl_type_cond[0] == 'enabled') ? false : true;
$tpl_no = '<label><input type="radio" name="' . $name . '" value="0"' . $key_no . ' class="radio" /> ' . (($type_no) ? $user->lang['NO'] : $user->lang['DISABLED']) . '</label>';
$tpl_yes = '<label><input type="radio" id="' . $key . '" name="' . $name . '" value="1"' . $key_yes . ' class="radio" /> ' . (($type_no) ? $user->lang['YES'] : $user->lang['ENABLED']) . '</label>';
$tpl = ($tpl_type_cond[0] == 'yes' || $tpl_type_cond[0] == 'enabled') ? $tpl_yes . $tpl_no : $tpl_no . $tpl_yes;
break;
'emotinymce_width' => array('lang' => 'ACP_CONFIG_WIDTH', 'validate' => 'int:0', 'type' => 'text', 'method' => false, 'explain' => true,),
'emotinymce_height' => array('lang' => 'ACP_CONFIG_HEIGHT', 'validate' => 'int:0', 'type' => 'text', 'method' => false, 'explain' => true,),
'emotinymce_qwidth' => array('lang' => 'ACP_CONFIG_QWIDTH', 'validate' => 'int:0', 'type' => 'text', 'method' => false, 'explain' => true,),
'emotinymce_qheight' => array('lang' => 'ACP_CONFIG_QHEIGHT', 'validate' => 'int:0', 'type' => 'text', 'method' => false, 'explain' => true,),
'type' => 'text', ....
'type' => 'text:size:maxlength', .....
[phpBB Debug] PHP Notice: in file [ROOT]/includes/functions_auto_answer.php on line 232: Undefined offset: 0
[phpBB Debug] PHP Notice: in file [ROOT]/includes/functions_auto_answer.php on line 233: Undefined offset: 0
[phpBB Debug] PHP Notice: in file [ROOT]/includes/functions_auto_answer.php on line 232: Undefined offset: 1
[phpBB Debug] PHP Notice: in file [ROOT]/includes/functions_auto_answer.php on line 233: Undefined offset: 1
$total_or[$i] = ($check[$i][$k][1] == WORD_TYPE_OR) ? $total_or[$i] + 1 : $total_or[$i];
$total_expl_or[$i] = ($check[$i][$k][1] == WORD_TYPE_EXPL_OR) ? $total_expl_or[$i] + 1 : $total_expl_or[$i];
[phpBB Debug] PHP Notice: in file [ROOT]/includes/functions_auto_answer.php on line 443: Undefined index: bbcode_uid
[phpBB Debug] PHP Notice: in file [ROOT]/includes/functions_auto_answer.php on line 444: Undefined index: message
$row['post_text'] = str_replace($row['bbcode_uid'], $message_data['bbcode_uid'], $row['post_text']);
$message_data['message'] .= $this->parse_vars($row['post_text']);
multi_words($word_text, $post_text)
scan_post($post_text)
$aa_id = $auto_answer->scan_post($data['message']);
$multi_words = $this->multi_words($row['word_text'], $post_text);
$sql = 'SELECT * FROM ' . AUTO_ANSWER_WORDS_TABLE;
$result = $db->sql_query($sql);
while ($row = $db->sql_fetchrow($result))
Da bin ich mir nicht ganz sicher wo und wie das geht,ich habe in phpmyadmin geschaut und nur eine Tabelle phpbb_auto_a_words und keine AUTO_ANSWER_WORDS_TABLE gefunden und die gefundene Tabelle phpbb_auto_a_words hat kein $row enthalten.Daher würde ich mir mal ansehen was in $row enthalten ist.
Wie das geht mit solltest du bereits wissen.
$pattern = $this->create_pattern($row['word_text'], $row['word_match']);
Ich vermute mal IDE ist ein Editor z.b. ++Notpade oder?Nun habe ich mit hilfe meiner IDE in allen PHP Dateien gesucht wo die oben genannt Funktion aufgerufen wird.
echo "Inhalt von row:<pre>";
var_dump( $row );
echo "</pre>";
while ($row = $db->sql_fetchrow($result))
Inhalt von row:
array(4) {
["post_id"]=>
string(1) "2"
["word_text"]=>
string(5) "Hallo"
["word_type"]=>
string(1) "0"
["word_match"]=>
string(1) "0"
}
Inhalt von row:
array(4) {
["post_id"]=>
string(1) "2"
["word_text"]=>
string(5) "hallo"
["word_type"]=>
string(1) "0"
["word_match"]=>
string(1) "0"
}
Jetzt wo ich es gesehen habe ist es mir wider eingefallen das ergebniss ist:
Wenn ich das nun richtig sehe ist es doch das ["word_match"] oder?
Was kannst du jetzt daraus sehen?
Wo kann man den IDE bekommen und was Kostet dieser?
[phpBB Debug] PHP Notice: in file [ROOT]/includes/functions_auto_answer.php on line 232: Undefined offset: 0
[phpBB Debug] PHP Notice: in file [ROOT]/includes/functions_auto_answer.php on line 233: Undefined offset: 0
$total_or[$i]= ($check[$i][$k][1] == WORD_TYPE_OR) ? $total_or[$i] + 1 : $total_or[$i];
$total_expl_or[$i]= ($check[$i][$k][1] == WORD_TYPE_EXPL_OR) ? $total_expl_or[$i] + 1 : $total_expl_or[$i];
$type_and_found = $message_id = $total_or = $total_expl_or = array();
var_dump(); $type_and_found = $message_id = $total_or = var_dump(); $total_expl_or = array();
phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_auto_answer.php on line 179: var_dump() expects at least 1 parameter, 0 given
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_auto_answer.php on line 179: var_dump() expects at least 1 parameter, 0 given
[phpBB Debug] PHP Notice: in file [ROOT]/includes/functions_auto_answer.php on line 233: Undefined offset: 0
[phpBB Debug] PHP Notice: in file [ROOT]/includes/functions_auto_answer.php on line 232: Undefined offset: 1
[phpBB Debug] PHP Notice: in file [ROOT]/includes/functions_auto_answer.php on line 233: Undefined offset: 1
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_auto_answer.php on line 179: var_dump() expects at least 1 parameter, 0 given
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_auto_answer.php on line 179: var_dump() expects at least 1 parameter, 0 given
[phpBB Debug] PHP Notice: in file [ROOT]/includes/functions_auto_answer.php on line 233: Undefined offset: 0
[phpBB Debug] PHP Notice: in file [ROOT]/includes/functions_auto_answer.php on line 232: Undefined offset: 1
[phpBB Debug] PHP Notice: in file [ROOT]/includes/functions_auto_answer.php on line 233: Undefined offset: 1
[phpBB Debug] PHP Notice: in file [ROOT]/includes/functions_auto_answer.php on line 515: Undefined variable: forum_data
[phpBB Debug] PHP Notice: in file [ROOT]/includes/functions_auto_answer.php on line 444: Undefined index: bbcode_uid
[phpBB Debug] PHP Notice: in file [ROOT]/includes/functions_auto_answer.php on line 445: Undefined index: message
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_auto_answer.php on line 179: var_dump() expects at least 1 parameter, 0 given
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_auto_answer.php on line 179: var_dump() expects at least 1 parameter, 0 given