Fatal error: Failed evaluating code: preg_replace($orig_word, $replacement_word, '>haha ok nou ga ik mezelf in het vuur gooien.. kom maar op allemaal!! kennen jullie die lekkere koekjes met+\ in /home/eefjuh/public_html/forum/viewtopic.php on line 1156
Probleem dus, ik kan 1 pagina van een topic niet lezen...
Het enige wat ik heb verandert deze dag en gister is een favicon, ranks in userslist, en bbcode mod die images geeft ipv [img] knopjes...
Dit is het enige wat ik kan vinden, maar ik snap dus niet wat nu het probleem is :S
obtain_word_list
Usage;
obtain_word_list(&$orig_word, &$replacement_word)
Explain;
'Obtain list of naughty words and build preg style replacement arrays for use by the calling script, note that the
vars are passed as references this just makes it easier to return both sets of arrays' (taken from functions.php)
Example;
Code: Selecteer alles
<?php
define('IN_PHPBB', true);
$phpbb_root_path = './';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
$orig_word = array();
$replacement_word = array();
$text = "FACK";
obtain_word_list($orig_word, $replacement_word);
if ( count($orig_word) )
{
$text = preg_replace($orig_word, $replacement_word, $text);
}
echo $text;
?> The $text is set to 'FACK' which i one my forum have set to be replaced with 'FAQ', so when it is echoed out it becomes 'FAQ', because of the word filter.
Het vreemd is dat ik daar niks heb verandert... wel in posting_body.tpl.
viewtopic.php
Code te lang - weggehaald. Post aub een link naar een tekstbestand. --bee

