Ok to do roboty

Mod zrobiony przeze mnie

Mod robiony na tej podstawie ==>
http://www.nav.cal.pl/index.php/topic,1012.0.htmlMy zrobimy to jako blokade shoutboxa.
W zapytaniu:
ALTER TABLE users ADD hide_torrents ENUM('yes','no') NOT NULL DEFAULT 'yes'; zmieniamy hide_torrents na swoją wartość ja wezme shouts, czyli wygląda to tak:
ALTER TABLE users ADD shouts ENUM('yes','no') NOT NULL DEFAULT 'yes'; W miejscu które odpowiada za wyświetlania shoutboxa:
Mamy ukrycie torrentów:
if ($CURUSER['hide_torrents'] == 'yes')
{
Kod wyświetlania torrentów
}Zmieniamy zmienne na naszą.
Wygląda to tak:
if ($CURUSER['shouts'] == 'yes')
{
Kod wyświetlania shoutboxa
}W userdetails.php (tam gdzie zmienna o edycji) również zmieniamy wartości:
print("<tr><td class=tableb>Możliwość widzenia torrentów:</td><td colspan=2 align=left class=tableb><input name=hide_torrents value='yes' type=radio" . ($user["hide_torrents"] == "yes" ? " checked" : "") . ">Tak <input name=hide_torrents value='no' type=radio" . ($user["hide_torrents"] == "no" ? " checked" : "") . ">Nie</td></tr>\n"); na
print("<tr><td class=tableb>Możliwość widzenia shoutboxa:</td><td colspan=2 align=left class=tableb><input name=shouts value='yes' type=radio" . ($user["shouts"] == "yes" ? " checked" : "") . ">Tak <input name=shouts value='no' type=radio" . ($user["shouts"] == "no" ? " checked" : "") . ">Nie</td></tr>\n");modtask.php również:
$hide_torrents = $_POST["hide_torrents"];na
$shouts = $_POST["shouts"];zmienimy na
$res = mysql_query("SELECT warned, enabled, shouts, username, uploaded, downloaded, class FROM users WHERE id=$userid") or sqlerr(__FILE__, __LINE__);a nie
$res = mysql_query("SELECT warned, enabled, hide_torrents, username, uploaded, downloaded, class FROM users WHERE id=$userid") or sqlerr(__FILE__, __LINE__);i ostatnia zmiana:
$updateset[] = "hide_torrents = " . sqlesc($hide_torrents);na
$updateset[] = "shouts = " . sqlesc($shouts);Wszędzie zmieniamy hide_torrents na to co chcemy można na hide_news etc.
Jak coś to pisać

///////////////////Poradnik napisany przeze mnie\\\\\\\\\\\\\\\\\\\\\\\
edit. fakt Zielony masz rację

Coś ucieło.