Özel ban sisteminde kurulu problemi ???

Eklentiler ile ilgili soru, sorun ve tartışmalar.

Özel ban sisteminde kurulu problemi ???

İleti SOrginal 23.11.2005, 19:13

Arkadaşlar ben emrag arkadaşın özel ban olayını kurdum bütün incelikleriyle ve çalışıyor gibi... ama problem şu bütün userlara özel ban verildi ve bunu değiştiremiyorum daha doğrusu kullanıcı yönetiminde bir userı hatta kendimin mesaj atabilir ayarını değiştiremiyorum !! değiştiriyorum gönder diyorum kabul etmiyor. Hatta rütbesini değiştirmeye çalıştım yeni bir rütbe seçtim fakat onuda kaydetmedi...

Could not obtain user_can_post data


Bu hatayı alıyorum bana nerde hata yaptığımı söyler misiniz lütfen ?? :?
SOrginal
Üye
Üye
 
İleti: 2
Kayıt: 23.11.2005, 18:52

İleti hsa2 03.12.2005, 21:15

Alakası yok .. İndirdiğin dosyadaki direktifleri tam anlamıyla yerine getirmemişsin. Ben de dün aynı hatayı yaptım. Veritabanı dosyasını çalıştırmamışsın. O yüzden değer atayamıyor ve değer bulunamadı diye hata veriyor. Ben gerekli dosyayı aşağı yazıyorum.

[syntax="php"]<?php
/***************************************************************************
* db_update.php
* -------------------
*
* copyright : ©2003 Freakin' Booty ;-P & Antony Bailey
* project : http://sourceforge.net/projects/dbgenerator
* Website : http://freakingbooty.no-ip.com/ & http://www.rapiddr3am.net
*
***************************************************************************/

/***************************************************************************
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
***************************************************************************/

define('IN_PHPBB', true);
$phpbb_root_path = './';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);

//
// Start session management
//
$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);
//
// End session management
//


if( !$userdata['session_logged_in'] )
{
$header_location = ( @preg_match('/Microsoft|WebSTAR|Xitami/', getenv('SERVER_SOFTWARE')) ) ? 'Refresh: 0; URL=' : 'Location: ';
header($header_location . append_sid("login.$phpEx?redirect=db_update.$phpEx", true));
exit;
}

if( $userdata['user_level'] != ADMIN )
{
message_die(GENERAL_MESSAGE, 'You are not authorised to access this page');
}


$page_title = 'Updating the database';
include($phpbb_root_path . 'includes/page_header.'.$phpEx);

echo '<table width="100%" cellspacing="1" cellpadding="2" border="0" class="forumline">';
echo '<tr><th>Updating the database</th></tr><tr><td><span class="genmed"><ul type="circle">';


$sql = array();
$sql[] = "ALTER TABLE " . $table_prefix . "users ADD user_can_post TINYINT(1) default '1'";

for( $i = 0; $i < count($sql); $i++ )
{
if( !$result = $db->sql_query ($sql[$i]) )
{
$error = $db->sql_error();

echo '<li>' . $sql[$i] . '<br /> +++ <font color="#FF0000"><b>Error:</b></font> ' . $error['message'] . '</li><br />';
}
else
{
echo '<li>' . $sql[$i] . '<br /> +++ <font color="#00AA00"><b>Successfull</b></font></li><br />';
}
}


echo '</ul></span></td></tr><tr><td class="catBottom" height="28">&nbsp;</td></tr>';

echo '<tr><th>End</th></tr><tr><td><span class="genmed">Installation is now finished. Please be sure to delete this file now.<br />If you have run into any errors, please visit the <a href="http://www.phpbbsupport.co.uk" target="_phpbbsupport">phpBBSupport.co.uk</a> and ask someone for help.</span></td></tr>';
echo '<tr><td class="catBottom" height="28" align="center"><span class="genmed"><a href="' . append_sid("index.$phpEx") . '">Have a nice day</a></span></td></table>';

include($phpbb_root_path . 'includes/page_tail.'.$phpEx);

?>[/syntax]
Kullanıcı avatarı
hsa2
Üye
Üye
 
İleti: 185
Kayıt: 01.12.2005, 17:21

Cvp: Özel ban sisteminde kurulu problemi ???

İleti SOrginal 05.12.2005, 04:06

Teşekkürler sorunu hallettim...
SOrginal
Üye
Üye
 
İleti: 2
Kayıt: 23.11.2005, 18:52


Soru(n)lar & Tartışmalar



Kimler çevrimiçi

Bu forumu görüntüleyenler: Kayıtlı kullanıcı yok ve 0 misafir

cron