Ordcensur i profil
Moderatorer: Moderatorgrupp, Supportgrupp
Ordcensur i profil
windsurf.se
http://www.phpbbhacks.com/download/6328
windsurf.se
Följande koder används för initialisering av ordcensuren:
Kod: Markera allt
$orig_word = array();
$replacement_word = array();
obtain_word_list($orig_word, $replacement_word);Kod: Markera allt
if (count($orig_word))
{
$variabel = preg_replace($orig_word, $replacement_word, $variabel);
}Alltså ...
öppna includes/usercp_viewprofile.php
Hitta:
Kod: Markera allt
$template->assign_vars(array(Kod: Markera allt
$orig_word = array();
$replacement_word = array();
obtain_word_list($orig_word, $replacement_word);
if (count($orig_word))
{
$user_interests = preg_replace($orig_word, $replacement_word, $user_interests);
}
Ingen support via PM!
Kod: Markera allt
$orig_word = array();
$replacement_word = array();
obtain_word_list($orig_word, $replacement_word);
if (count($orig_word))
{
$profiledata['user_interests'] = preg_replace($orig_word, $replacement_word, $profiledata['user_interests']);
}Ingen support via PM!
Tack Holger
Hoppas nu ingen skriver något olämpligt i något av de andra fälten....
windsurf.se
Syntaxen är denna:
Kod: Markera allt
$orig_word = array();
$replacement_word = array();
obtain_word_list($orig_word, $replacement_word);
if (count($orig_word))
{
$variabel1 = preg_replace($orig_word, $replacement_word, $variabel1);
$variabel2 = preg_replace($orig_word, $replacement_word, $variabel2);
$variabel3 = preg_replace($orig_word, $replacement_word, $variabel3);
$variabel4 = preg_replace($orig_word, $replacement_word, $variabel4);
$variabel5 = preg_replace($orig_word, $replacement_word, $variabel5);
...
}Ingen support via PM!
Tack igen !
windsurf.se
Vilka är online
Användare som besöker denna kategori: 2 och 0 gäster


