dzięki to działa, ale jak chce zmienić styl forów to wyskakuje taki błąd:
Kod:
Couldn't get list of Categories/Forums
DEBUG MODE
SQL Error : 1054 Unknown column 'is_special' in 'where clause'
SELECT * FROM phpbb_themes WHERE is_special='1'
Line : 125
File : admin_forums.php
linie 110-140
[phpbb]
message_die(GENERAL_ERROR, "Forum/Category doesn't exist or multiple forums/categories with ID $id", "", __LINE__, __FILE__);
}
$return = $db->sql_fetchrow($result);
$return['number'] = $count;
return $return;
}
function style_list($style_id,$name)
{
global $db;
$sql = "SELECT * FROM ".THEMES_TABLE." WHERE is_special='1'";
if( !$result = $db->sql_query($sql) )
{
message_die(GENERAL_ERROR, "Couldn't get list of Categories/Forums", "", __LINE__, __FILE__, $sql);
}
if ($style_id == 0 || $style_id =="")
{
$t = " selected=\"selected\"";
}
$catlist = "<option value=\"0\"$t>".$name."</option>\n";;
while( $row = $db->sql_fetchrow($result) )
{
$s = "";
if ($row['themes_id'] == $style_id)
{
$s = " selected=\"selected\"";
[/phpbb]
z góry dzięki za odp.
Status w budowie!!!