forum açıp silinmiyor yardım

phpBB 2.0.x sürümleri için MODlar hakkında ihtiyacınız olan desteği buradan sorarak alabilirsiniz.
Kilitli
yasin
Kayıtlı Kullanıcı
Mesajlar: 11
Kayıt: 15.05.2006, 10:55
Konum: marmaris
İletişim:

forum açıp silinmiyor yardım

Mesaj gönderen yasin »

merhaba benim plesk 7.5 var news açmak istiyorum açamıyorum silmek istiyorum oda olmuyor yapamıyoruım şu hataları alıyorum

1 Couldn't find news images
DEBUG MODE
The news images were not found

Line : 62
File : admin_news_cats.php

2 forum açamak istiyorum oda olmuyor açtığım forumlarıda silemiyorum forum açıyorum geri dönup bakıyorum hiç bir işlem yapılmamış hiç bir şey değişmiyor silinmiyor admin panelinden her şeyi denedim yardımcı olusanız sevinirim
Kullanıcı avatarı
AlleRGy
Kayıtlı Kullanıcı
Mesajlar: 885
Kayıt: 16.05.2006, 19:14
Konum: denizli
İletişim:

Mesaj gönderen AlleRGy »

1. soruna cvp veriim haber resmi bulunamadı dio.habere resim mi ekliosun?
Kullanıcı avatarı
dj_akman
Kayıtlı Kullanıcı
Mesajlar: 851
Kayıt: 05.04.2006, 15:57
Konum: İstanbul
İletişim:

Mesaj gönderen dj_akman »

admin_news_cats.php bu dosyada sorun olabilir bunu kontrol et
yasin
Kayıtlı Kullanıcı
Mesajlar: 11
Kayıt: 15.05.2006, 10:55
Konum: marmaris
İletişim:

dosyadaki sorun nasıl çozuluk?

Mesaj gönderen yasin »

öncelikle teşekkürler cevap yazdığınız için

1 haber bolumune resim ve haber eklemek istiyorum ve o hatayı veriyor hatanın nasıl duzeliceğinden hiç bir bilgim yok

2 o dosyayı buldum ama sorunu nasıl bulacam?
hhadi sorunu bulduk ne yapıcam ayrıntılı bilgi verirseniz bende öğrenmiş olurum

saygılar
Kullanıcı avatarı
dj_akman
Kayıtlı Kullanıcı
Mesajlar: 851
Kayıt: 05.04.2006, 15:57
Konum: İstanbul
İletişim:

Mesaj gönderen dj_akman »

öncelikle inş dosyanın yedeğini almışsın yani hiçbir değişiklik yapmadığın orjinal dosya eğer yedeğini aldıysan admin_news_cats.php in orjinali ile değiştirdiğin dosyayı değiştir eğer almadıysan burda uğraşmak zorundasın eğer dosyada değişiklik yaptığın satır ve ya bölümleri hatırlıosan onları sil eski hallerine getir bunlardan birini yaptıksan sonra sorunun düzelir
yasin
Kayıtlı Kullanıcı
Mesajlar: 11
Kayıt: 15.05.2006, 10:55
Konum: marmaris
İletişim:

uğraştım yapamadım nerdeki sorun?

Mesaj gönderen yasin »

$template->set_filenames(array(
"body" => "admin/news_cat_edit_body.tpl")
);

$filename_list = "";
for( $i = 0; $i < count($category_images); $i++ )
{
$filename_list .= '<option value="' . $category_images[$i] . '">' . $category_images[$i] . '</option>';
}

$s_hidden_fields = '<input type="hidden" name="mode" value="savenew" />';

$template->assign_vars(array(
"L_NEWS_TITLE" => $lang['Add_news_categories'],
"L_NEWS_CONFIG" => $lang['News_Configuration'],
"L_NEWS_EXPLAIN" => $lang['News_Add_Description'],
"L_NEWS_ICON" => $lang['Icon'],
"L_CATEGORY" => $lang['Category'],
"L_SUBMIT" => $lang['Submit'],
"L_RESET" => $lang['Reset'],

"I_NEWS_IMG" => $phpbb_root_path . 'templates/'.$theme['template_name'].'/'.$board_config['news_path'] . '/' . $category_images[0],

"S_NEWS_ACTION" => append_sid("admin_news_cats.$phpEx"),
"S_HIDDEN_FIELDS" => $s_hidden_fields,
"S_FILENAME_OPTIONS" => $filename_list,
"S_SMILEY_BASEDIR" => $phpbb_root_path . 'templates/'.$theme['template_name'].'/'.$board_config['news_path'])
);

$template->pparse("body");
}
else if ( $mode != "" )
{
switch( $mode )
{
case 'delete':
//
// Admin has selected to delete a category.
//

$news_id = ( !empty($_POST['id']) ) ? $_POST['id'] : $_GET['id'];

$sql = "DELETE FROM " . NEWS_TABLE . "
WHERE news_id = " . $news_id;

$result = $db->sql_query($sql);
if( !$result )
{
message_die(GENERAL_ERROR, "Couldn't delete news category", "", __LINE__, __FILE__, $sql);
}

$sql = "UPDATE " . TOPICS_TABLE . " SET news_id=0 WHERE news_id = " . $news_id;

$result = $db->sql_query($sql);
if( !$result )
{
message_die(GENERAL_ERROR, "Couldn't update topics news category", "", __LINE__, __FILE__, $sql);
}

$message = $lang['Category_Deleted'] . "<br /><br />" . sprintf($lang['Click_return_newsadmin'], "<a href=\"" . append_sid("admin_news_cats.$phpEx") . "\">", "</a>") . "<br /><br />" . sprintf($lang['Click_return_admin_index'], "<a href=\"" . append_sid("index.$phpEx?pane=right") . "\">", "</a>");

message_die(GENERAL_MESSAGE, $message);
break;

case 'edit':
//
// Admin has selected to edit a smiley.
//

$news_id = ( !empty($_POST['id']) ) ? $_POST['id'] : $_GET['id'];

$sql = "SELECT *
FROM " . NEWS_TABLE . "
WHERE news_id = " . $news_id;

$result = $db->sql_query($sql);
if( !$result )
{
message_die(GENERAL_ERROR, 'Could not obtain news information', "", __LINE__, __FILE__, $sql);
}
$category_data = $db->sql_fetchrow($result);

$filename_list = "";
for( $i = 0; $i < count($category_images); $i++ )
{
if( $category_images[$i] == $category_data['news_image'] )
{
$category_selected = "selected=\"selected\"";
$category_edit_img = $category_images[$i];
}
else
{
$category_selected = "";
}

$filename_list .= '<option value="' . $category_images[$i] . '"' . $category_selected . '>' . $category_images[$i] . '</option>';
}

$template->set_filenames(array(
"body" => "admin/news_cat_edit_body.tpl")
);

$s_hidden_fields = '<input type="hidden" name="mode" value="save" /><input type="hidden" name="news_id" value="' . $category_data['news_id'] . '" />';


$template->assign_vars(array(
"NEWS_CATEGORY" => $category_data['news_category'],
"NEWS_ICON" => $phpbb_root_path . 'templates/'.$theme['template_name'].'/'.$board_config['news_path'] . '/' . $category_data['news_image'],

"L_NEWS_TITLE" => $lang['News_Editing_Utility'],
"L_NEWS_CONFIG" => $lang['News_Config'],
"L_NEWS_EXPLAIN" => $lang['News_Explain'],
"L_NEWS_ICON" => $lang['Icon'],
"L_CATEGORY" => $lang['Category'],
"L_SUBMIT" => $lang['Submit'],
"L_RESET" => $lang['Reset'],

"I_NEWS_IMG" => $phpbb_root_path . 'templates/'.$theme['template_name'].'/'.$board_config['news_path'] . '/'. $category_edit_img,

"S_SMILEY_ACTION" => append_sid("admin_news_cats.$phpEx"),
"S_HIDDEN_FIELDS" => $s_hidden_fields,
"S_FILENAME_OPTIONS" => $filename_list,
"S_SMILEY_BASEDIR" => $phpbb_root_path . 'templates/'.$theme['template_name'].'/'.$board_config['news_path'])
);

$template->pparse("body");
break;

case "save":
//
// Admin has submitted changes while editing a smiley.
//

//
// Get the submitted data, being careful to ensure that we only
// accept the data we are looking for.
//
$news_category = ( isset($_POST['category']) ) ? trim($_POST['category']) : trim($_GET['category']);
$news_image = ( isset($_POST['image_url']) ) ? trim($_POST['image_url']) : trim($_GET['image_url']);
$news_id = ( isset($_POST['news_id']) ) ? intval($_POST['news_id']) : intval($_GET['news_id']);

// If no code was entered complain ...
if ($news_category == '' || $news_image == '' || $news_id == '' )
{
message_die(MESSAGE, $lang['Fields_empty']);
}

//
// Proceed with updating the news table.
//
$sql = "UPDATE " . NEWS_TABLE . "
SET news_category = '$news_category', news_image = '$news_image'
WHERE news_id = $news_id";
if( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, "Couldn't update news info", "", __LINE__, __FILE__, $sql);
}

$message = $lang['Category_Updated'] . "<br /><br />" . sprintf( $lang['Click_return_newsadmin'], "<a href=\"" . append_sid("admin_news_cats.$phpEx") . "\">", "</a>") . "<br /><br />" . sprintf($lang['Click_return_admin_index'], "<a href=\"" . append_sid("index.$phpEx?pane=right") . "\">", "</a>");

message_die(GENERAL_MESSAGE, $message);
break;

case "savenew":
//
// Admin has submitted changes while adding a new smiley.
//

//
// Get the submitted data being careful to ensure the the data
// we recieve and process is only the data we are looking for.
//
$news_category = ( isset($_POST['category']) ) ? trim($_POST['category']) : trim($_GET['category']);
$news_image = ( isset($_POST['image_url']) ) ? trim($_POST['image_url']) : trim($_GET['image_url']);

// If no code was entered complain ...
if ($news_category == '' || $news_image == '' )
{
message_die(MESSAGE, $lang['Fields_empty']);
}

//
// Save the data to the smiley table.
//
$sql = "INSERT INTO " . NEWS_TABLE . " ( news_image, news_category)
VALUES ( '$news_image', '$news_category')";
$result = $db->sql_query($sql);
if( !$result )
{
message_die(GENERAL_ERROR, "Couldn't insert new category", "", __LINE__, __FILE__, $sql);
}

$message = $lang['Category_Added'] . "<br /><br />" . sprintf($lang['Click_return_newsadmin'], "<a href=\"" . append_sid("admin_news_cats.$phpEx") . "\">", "</a>") . "<br /><br />" . sprintf($lang['Click_return_admin_index'], "<a href=\"" . append_sid("index.$phpEx?pane=right") . "\">", "</a>");

message_die(GENERAL_MESSAGE, $message);
break;
}
}
else
{
//
// This is the main display of the page before the admin has selected
// any options.
//
$data_access = new NewsDataAccess( $phpbb_root_path );
$news_cats = $data_access->fetchCategories( );

$template->set_filenames(array(
"body" => "admin/news_cat_list_body.tpl")
);

$template->assign_vars(array(
'L_ACTION' => $lang['Action'],
'L_NEWS_TITLE' => $lang['News_Editing_Utility'],
'L_NEWS_TEXT' => $lang['News_Explain'],
'L_DELETE' => $lang['Delete'],
'L_EDIT' => $lang['Edit'],
'L_NEWS_ADD' => $lang['Add_new_category'],
'L_ICON' => $lang['Icon'],
'L_CATEGORY' => $lang['Category'],
'L_TOPICS' => $lang['Topics'],

'S_HIDDEN_FIELDS' => $s_hidden_fields,
'S_NEWS_ACTION' => append_sid("admin_news_cats.$phpEx"))
);

//
// Loop throuh the rows of smilies setting block vars for the template.
//
for($i = 0; $i < count($news_cats); $i++)
{
//
// Replace htmlentites for < and > with actual character.
//

$row_color = ( !($i % 2) ) ? $theme['td_color1'] : $theme['td_color2'];
$row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2'];

$template->assign_block_vars("news_cats", array(
'ROW_COLOR' => '#' . $row_color,
'ROW_CLASS' => $row_class,

'TOPIC_COUNT' => $news_cats[$i]['topic_count'],

'CATEGORY_IMG' => $phpbb_root_path . 'templates/'.$theme['template_name'].'/'.$board_config['news_path']. '/' . $news_cats[$i]['news_image'],
'L_CATEGORY' => $news_cats[$i]['news_category'],

'U_NEWS_EDIT' => append_sid("admin_news_cats.$phpEx?mode=edit&id=" . $news_cats[$i]['news_id']),
'U_NEWS_DELETE' => append_sid("admin_news_cats.$phpEx?mode=delete&id=" . $news_cats[$i]['news_id']))
);
}

//
// Spit out the page.
//
$template->pparse("body");
}

//
// Page Footer
//
include('./page_footer_admin.'.$phpEx);

?>
Kilitli

“2.0.x MOD Destek” sayfasına dön

Kimler çevrimiçi

Bu forumu görüntüleyen kullanıcılar: Ahrefs [Bot] ve 2 misafir