Seditio ve Ldu hakkında sınırsız arama yapın
 
 
> 1 <

Etiketler: archives sorunu

Author Message

core1

Members


Online status

112 posts

Location: Turkey
Occupation:
Age:

#19965   2008-03-22 14:35 GMT      

arkadaşlar archives plugins ini kurdum ama böyle bi hata verdi neyden kaynaklanıyor acaba

Code:
Warning: implode(): Bad arguments. in c:\program files\easyphp1-8\www\plugins\archives\archives.php on line 51
siteadı.com
2008-03-22 14:33
Fatal error : SQL error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE news_minlevel<='99' AND news_date<'1206189190' AND n

MUST!

Bilgili Üye


Online status

228 posts
http://www.balabirlik.com
Pagerank: 2

Location: Turkey
Occupation: ankara
Age:

#19966   2008-03-22 14:42 GMT      
plugins\archives\archives.php archivex.php nin 51. satırında hata var kodları yazarsan sana yardımcı olan birisi cıkar

core1

Members


Online status

112 posts

Location: Turkey
Occupation:
Age:

#19968   2008-03-22 14:51 GMT      

Code:
<?PHP

/* ====================
Seditio - Website engine
Copyright Neocrome
http://www.neocrome.net

[BEGIN_SED]
File=plugins/archives/archives.php
Version=801
Updated=2005-oct-10
Type=Plugin
Author=Neocrome
Description=
[END_SED]

[BEGIN_SED_EXTPLUGIN]
Auth_guests=R
Lock_guests=W12345A
Auth_members=R
Lock_members=12345
Code=archives
Part=main
File=archives
Hooks=standalone
Tags=
Minlevel=0
Order=10
[END_SED_EXTPLUGIN]

==================== */

if (!defined('SED_CODE') || !defined('SED_PLUG')) { die('Wrong URL.'); }

$month = sed_import('month','G','INT');
$year = sed_import('year','G','INT');

if (empty($month) || empty($year))
{
$plugin_title = "<a href=\"plug.php?e=archives\">".$L['plu_title']."</a>";

$table = array();
$prevyear = '';

$plugin_body = '<h4>'.$L['plu_bydate'].' :</h4>';

$sql = sed_sql_query("SELECT news_date FROM $db_news
WHERE news_minlevel<='".$usr['level']."'
AND news_date<'".$sys['now_offset']."'
AND news_state=0
[red]AND news_cat IN ('".implode("','", $sed_catacc)."')[/red]
ORDER BY news_date DESC");

while ($row = sed_sql_fetcharray($sql))
{
$now = $row['news_date'] + $usr['timezone'] * 3600;
$year = date('Y', $now);
$month_str = date('F', $now);
$month_str = ereg_replace($month_str, $L[$month_str], $month_str);

$month = date('n', $now);

if ($prevyear!=$year)
{
$plugin_body .= "<p>".$year."</p>";
$prevyear = $year;
}

if (!$table[$year][$month])
{
$table[$year][$month]++;
$plugin_body .= "&nbsp; <a href=\"plug.php?e=archives&amp;year=".$year."&amp;month=".$month."\">".$month_str."</a><br />";
}
}

$plugin_body .= '<h4>'.$L['plu_bycategory'].' :</h4>';

$sql = sed_sql_query("SELECT DISTINCT news_cat FROM $db_news WHERE 1 ORDER BY news_cat");

while ($row = sed_sql_fetcharray($sql))
{
$sql1 = sed_sql_query("SELECT COUNT(*) FROM $db_news WHERE news_cat='".$row['news_cat']."'");

$plugin_body .= "&nbsp; <a href=\"index.php?c=".$row['news_cat']."&amp;m=all\">".$sed_cat[$row['news_cat']]['tpath']."</a> (".sed_result($sql1,0,"COUNT(*)").")<br />";
}

$sql = sed_sql_query("SELECT news_id, news_title, news_date FROM $db_news
WHERE news_minlevel<='".$usr['level']."'
AND news_date<'".$sys['now_offset']."'
AND news_state=0
AND news_cat IN ('".implode("','", $sed_catacc)."')
ORDER BY news_date DESC");
elseif ($month>0 && $month<13 && $year>1980 && $year<2010)

{
$month_str = date("F", sed_mktime(0, 0, 0, $month, 1, $year));
$month_str = ereg_replace($month_str, $L[$month_str], $month_str);

$plugin_title = "<a href=\"plug.php?e=archives\">".$L['plu_title']."</a> ".$cfg['separator']." <a href=\"plug.php?e=archives&amp;year=".$year."&amp;month=".$month."\">".$month_str." ".$year."</a>";

$start = sed_mktime(0, 0, 0, $month, 1, $year);
$end = sed_mktime(23, 59, 59, $month, 31, $year);

$sql = sed_sql_query("SELECT news_id, news_title, news_cat, news_date
FROM $db_news
WHERE news_minlevel<='".$usr['level']."'
AND news_date>='$start'
AND news_date<='$end'
AND news_state=0
AND news_cat IN ('".implode("','", $sed_catacc)."')
ORDER BY news_date DESC");

while ($row = sed_sql_fetcharray($sql))
{
$plugin_body .= date($cfg['dateformat'], $row['news_date'] + $usr['timezone'] * 3600);
$plugin_body .= " : <a href=\"index.php?m=single&amp;id=".$row['news_id']."\">";
$plugin_body .= stripslashes($row['news_title'])."</a><br />";
}
}
?>

MUST!

Bilgili Üye


Online status

228 posts
http://www.balabirlik.com
Pagerank: 2

Location: Turkey
Occupation: ankara
Age:

#19971   2008-03-22 14:58 GMT      
Code:
[red]AND news_cat IN ('".implode("','", $sed_catacc)."')[/red]
buradaki
Code:
[red][/red]
kodunu kaldırıp dene olursada olmassada buraya yaz,,çünkü heiç php bilgim olmadan bunu sölüyorum ama dediğim doğrudur 187

EviLcod3R

Destek Ekibi


Online status

244 posts
http://www.rapidshare.com
Pagerank: 6

Location: Turkey Deligi Bulunan Her Yer !
Occupation:
Age: 19

#19972   2008-03-22 14:59 GMT      
Code:
<?PHP

/* ====================
Seditio - Website engine
Copyright Neocrome
http://www.neocrome.net

[BEGIN_SED]
File=plugins/archives/archives.php
Version=801
Updated=2005-oct-10
Type=Plugin
Author=Neocrome
Description=
[END_SED]

[BEGIN_SED_EXTPLUGIN]
Auth_guests=R
Lock_guests=W12345A
Auth_members=R
Lock_members=12345
Code=archives
Part=main
File=archives
Hooks=standalone
Tags=
Minlevel=0
Order=10
[END_SED_EXTPLUGIN]

==================== */

if (!defined('SED_CODE') || !defined('SED_PLUG')) { die('Wrong URL.'); }

$month = sed_import('month','G','INT');
$year = sed_import('year','G','INT');

if (empty($month) || empty($year))
{
$plugin_title = "<a href=\"plug.php?e=archives\">".$L['plu_title']."</a>";

$table = array();
$prevyear = '';

$plugin_body = '<h4>'.$L['plu_bydate'].' :</h4>';

$sql = sed_sql_query("SELECT news_date FROM $db_news
WHERE news_minlevel<='".$usr['level']."'
AND news_date<'".$sys['now_offset']."'
AND news_state=0
AND news_cat IN ('".implode("','", $sed_catacc)."')
ORDER BY news_date DESC");

while ($row = sed_sql_fetcharray($sql))
{
$now = $row['news_date'] + $usr['timezone'] * 3600;
$year = date('Y', $now);
$month_str = date('F', $now);
$month_str = ereg_replace($month_str, $L[$month_str], $month_str);

$month = date('n', $now);

if ($prevyear!=$year)
{
$plugin_body .= "<p>".$year."</p>";
$prevyear = $year;
}

if (!$table[$year][$month])
{
$table[$year][$month]++;
$plugin_body .= "&nbsp; <a href=\"plug.php?e=archives&amp;year=".$year."&amp;month=".$month."\">".$month_str."</a><br />";
}
}

$plugin_body .= '<h4>'.$L['plu_bycategory'].' :</h4>';

$sql = sed_sql_query("SELECT DISTINCT news_cat FROM $db_news WHERE 1 ORDER BY news_cat");

while ($row = sed_sql_fetcharray($sql))
{
$sql1 = sed_sql_query("SELECT COUNT(*) FROM $db_news WHERE news_cat='".$row['news_cat']."'");

$plugin_body .= "&nbsp; <a href=\"index.php?c=".$row['news_cat']."&amp;m=all\">".$sed_cat[$row['news_cat']]['tpath']."</a> (".sed_result($sql1,0,"COUNT(*)").")<br />";
}

$sql = sed_sql_query("SELECT news_id, news_title, news_date FROM $db_news
WHERE news_minlevel<='".$usr['level']."'
AND news_date<'".$sys['now_offset']."'
AND news_state=0
AND news_cat IN ('".implode("','", $sed_catacc)."')
ORDER BY news_date DESC");
elseif ($month>0 && $month<13 && $year>1980 && $year<2010)

{
$month_str = date("F", sed_mktime(0, 0, 0, $month, 1, $year));
$month_str = ereg_replace($month_str, $L[$month_str], $month_str);

$plugin_title = "<a href=\"plug.php?e=archives\">".$L['plu_title']."</a> ".$cfg['separator']." <a href=\"plug.php?e=archives&amp;year=".$year."&amp;month=".$month."\">".$month_str." ".$year."</a>";

$start = sed_mktime(0, 0, 0, $month, 1, $year);
$end = sed_mktime(23, 59, 59, $month, 31, $year);

$sql = sed_sql_query("SELECT news_id, news_title, news_cat, news_date
FROM $db_news
WHERE news_minlevel<='".$usr['level']."'
AND news_date>='$start'
AND news_date<='$end'
AND news_state=0
AND news_cat IN ('".implode("','", $sed_catacc)."')
ORDER BY news_date DESC");

while ($row = sed_sql_fetcharray($sql))
{
$plugin_body .= date($cfg['dateformat'], $row['news_date'] + $usr['timezone'] * 3600);
$plugin_body .= " : <a href=\"index.php?m=single&amp;id=".$row['news_id']."\">";
$plugin_body .= stripslashes($row['news_title'])."</a><br />";
}
}
?>
Cc iLe Aldıgım Domqini Regleyip Msn Adresim Geçici Süreligine Durdurulmuştur !

Önüne GeLen Destek Ekibi oLmuş xD

core1

Members


Online status

112 posts

Location: Turkey
Occupation:
Age:

#19973   2008-03-22 15:00 GMT      
onu şimdi ben yaptım sen 51. de hata oldugunu söylesin bende kırmızı olarak yazıcaktım

This post was edited by core1 (2008-03-22 15:08 GMT, 55 Gün ago)

core1

Members


Online status

112 posts

Location: Turkey
Occupation:
Age:

#19974   2008-03-22 15:05 GMT      
sorun hala devam ediyor
> 1 <

Benzer konular (Similar topics) #BETA

KonularMesajlarSon YazarGüncelleme
Dil Sorunu5Th3Rb198 Gün
css sorunu2mervan170 Gün
Seo Sorunu8MUST!47 Gün
Tag sorunu3Kripteks387 Gün
Seo Sorunu2samba58 Gün

Keywords (beta):

Forum Arşiv (beta):

[1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17] [18] [19] [20] [21] [22] [23] [24] [25] [26] [27] [28] [29] [30] [31] [32] [33] [34] [35] [36] [37] [38] [39] [40] [41] [42] [43] [44] [45] [46] [47] [48] [49] [50] [51] [52] [53] [54] [55] [56] [57] [58] [59] [60] [61] [62] [63] [64] [65] [66] [67] [68] [69] [70] [71] [72] [73] [74] [75] [76] [77] [78] [79] [80] [81] [82] [83] [84] [85] [86] [87] [88] [89] [90] [91] [92] [93] [94] [95] [96] [97] [98] [99] [100] [101] [102] [103] [104] [105] [106] [107] [108] [109] [110] [111] [112] [113] [114] [115] [116] [117] [118] [119] [120] [121] [122] [123] [124] [125] [126] [127] [128] [129] [130] [131] [132] [133] [134] [135] [136] [137] [138] [139] [140] [141] [142] [143] [144] [145] [146] [147] [148] [149] [150] [151] [152] [153] [154] [155] [156] [157] [158] [159] [160] [161] [162] [163] [164] [165] [166] [167] [168] [169] [170] [171] [172] [173] [174] [175] [176] [177] [178] [179] [180] [181] [182] [183] [184] [185] [186] [187] [188] [189] [190] [191] [192] [193] [194] [195] [196] [197] [198] [199] [200] [201] [202] [203] [204] [205] [206] [207] [208] [209] [210] [211] [212] [213] [214] [215] [216] [217] [218] [219] [220] [221] [222] [223] [224] [225] [226] [227] [228] [229] [230] [231] [232] [233] [234] [235] [236] [237] [238] [239] [240] [241] [242] [243] [244] [245] [246] [247] [248] [249] [250] [251] [252] [253] [254] [255] [256] [257] [258] [259] [260] [261] [262] [263] [264] [265] [266] [267]