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

Etiketler: eklenti hatası

Author Message

BLaCKWHITE

Members


Online status

49 posts
http://www.hackerbox.eu
Pagerank: 0

Location: Turkey ?stanbul
Occupation: Security staff
Age: 28

#202   2007-03-14 19:30 GMT      

What is news eklentisinde şöyle bir hata alıyorum sql defalarca onarıp otimize etmeme rağmen sonuç alamadım

Hata : SQL Hatası : Unknown column 't.ft_lastposterid' in 'on clause'

Dvdbil

Administrator


Online status

2,253 posts
http://www.seditio-tr.com
Pagerank: 3

Location: Turkey istanbul
Occupation: Web Site(ler) İşletmeciliği
Age: 28

#203   2007-03-14 19:38 GMT      
Olivier'in ufak bir kodlama hatasından kaynaklanıyor..

whatsnew.php içindeki tüm kodları sil alttaki ile değiştir.

Code:
<?PHP

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

[BEGIN_SED]
File=plugins/whatsnew/whatsnew.php
Version=100
Updated=2006-jan-24
Type=Plugin
Author=Neocrome
Description=
[END_SED]

[BEGIN_SED_EXTPLUGIN]
Code=whatsnew
Part=main
File=whatsnew
Hooks=standalone
Tags=
Minlevel=0
Order=10
[END_SED_EXTPLUGIN]

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

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

$plugin_title = $L['plu_title'];

// Recent pages

$sql = sed_sql_query("SELECT page_id, page_cat, page_title, page_date FROM $db_pages WHERE page_state=0 AND page_cat NOT LIKE 'system' ORDER by page_date DESC LIMIT ".$cfg['plugin']['whatsnew']['maxlines']);

$plugin_body .= "<h3>".$L['plu_title_pages']."</h3>";
$plugin_body .= "<table class=\"cells\"><tr>";
$plugin_body .= "<td style=\"width:40%;\" class=\"coltop\">".$L['Page']."</td>";
$plugin_body .= "<td style=\"width:25%;\" class=\"coltop\">".$L['Category']."</td>";
$plugin_body .= "<td style=\"width:35%;\" class=\"coltop\" colspan=\"2\">".$L['Updated']."</td></tr>";

$ii = 1;

while ($row = sed_sql_fetcharray($sql))
{
if (sed_auth('page', $row['page_cat'], 'R'))
{
$plugin_body .= "<tr><td><a href=\"page.php?id=".$row['page_id']."\">".sed_cc($row['page_title'])."</a></td>";
$plugin_body .= "<td><a href=\"list.php?c=".$row['page_cat']."\">".$sed_cat[$row['page_cat']]['title']."</a></td>";
$plugin_body .= "<td style=\"text-align:center;\">".date($cfg['dateformat'], $row['page_date'] + $usr['timezone'] * 3600)."</td>";
$plugin_body .= "<td style=\"text-align:center;\">".sed_build_timegap($row['page_date'], $sys['now_offset'])."</td></tr>";
$ii++;
}
}

$plugin_body .= "</table>";

// Recent posts

$plugin_body .= "<h3>".$L['plu_title_posts']."</h3>";
$plugin_body .= "<table class=\"cells\">";
$plugin_body .= "<td style=\"width:60%;\" class=\"coltop\">".$L['Section']." / ".$L['Topic']."</td>";
$plugin_body .= "<td style=\"width:5%;\" class=\"coltop\">".$L['Posts']."</td>";
$plugin_body .= "<td style=\"width:15%;\" class=\"coltop\">".$L['Author']."</td>";
$plugin_body .= "<td style=\"width:20%;\" class=\"coltop\">".$L['Updated']."</td></tr>";

$sql = sed_sql_query("SELECT t.*, s.fs_id, s.fs_title
FROM $db_forum_topics t,
$db_forum_sections s
WHERE t.ft_sectionid=s.fs_id
AND t.ft_movedto=0
ORDER by t.ft_updated DESC LIMIT ".$cfg['plugin']['whatsnew']['maxlines']);

while ($row = sed_sql_fetcharray($sql))
  {
  if (sed_auth('forums', $row['fs_id'], 'R'))
     {
     $img = ($usr['id']>0 && $row['ft_updated']>$usr['lastvisit']) ? "<a href=\"forums.php?m=posts&amp;q=".$row['ft_id']."&amp;n=unread#unread\"><img src=\"skins/$skin/img/system/arrow-unread.gif\" alt=\"\" /></a>" : "<a href=\"forums.php?m=posts&amp;q=".$row['ft_id']."&amp;n=last#bottom\"><img src=\"skins/$skin/img/system/arrow-follow.gif\" alt=\"\" /></a> ";

$plugin_body .= "<tr><td>"."<a href=\"forums.php?m=topics&amp;s=".$row['fs_id']."\">".sed_cutstring(stripslashes($row['fs_title']),32)."</a> ";
$plugin_body .= $cfg['separator']." <a href=\"forums.php?m=posts&amp;q=".$row['ft_id']."&amp;n=last#bottom\">".sed_cc(sed_cutstring(stripslashes($row['ft_title']),40))."</a></td>";
$plugin_body .= "<td style=\"text-align:center;\">".$row['ft_postcount']."</td>";
$plugin_body .= "<td style=\"text-align:center;\">".sed_build_user($row['ft_lastposterid'], sed_cc($row['ft_lastpostername']))."</td>";
$plugin_body .= "<td style=\"text-align:center;\">".sed_build_timegap($row['ft_updated'], $sys['now_offset'])."</td></tr>";
}
}


$plugin_body .= "</table>";

// Recent comments

$sql = sed_sql_query("SELECT c.com_code, c.com_author, c.com_authorid, c.com_date, p.page_title, p.page_cat FROM $db_com as c
LEFT JOIN $db_pages as p ON CONCAT('p', p.page_id)=c.com_code
WHERE com_isspecial=0 ORDER by com_date DESC LIMIT ".$cfg['plugin']['whatsnew']['maxlines']);

$plugin_body .= "<h3>".$L['plu_title_comments']."</h3>";
$plugin_body .= "<table class=\"cells\">";
$plugin_body .= "<td class=\"coltop\">".$L['Page']."</td>";
$plugin_body .= "<td class=\"coltop\">".$L['Category']."</td>";
$plugin_body .= "<td class=\"coltop\">".$L['Author']."</td>";
$plugin_body .= "<td class=\"coltop\" colspan=\"2\">".$L['Updated']."</td></tr>";

$ii = 1;

while ($row = sed_sql_fetcharray($sql))
{
$com_code = $row['com_code'];
$j = substr($com_code, 0, 1);
$k = substr($com_code, 1);

switch($j)
{
case 'p':
$lnk = "<a href=\"page.php?id=$k&amp;comments=1\">".stripslashes($row['page_title'])."</a>";
$lnk2 = sed_build_catpath($row['page_cat'], "<a href=\"list.php?c=%1\$s\">%2\$s</a>");
break;

default:
$lnk = "<a href=\"index.php\">?</a>";
$lnk2 = "<a href=\"index.php\">?</a>";
break;
}

$plugin_body .= "<tr><td>".$lnk."</a></td><td>".$lnk2."</a></td>";
$plugin_body .= "<td>".sed_build_user($row['com_authorid'], sed_cc($row['com_author']))."</a></td>";
$plugin_body .= "<td style=\"text-align:center;\">".date($cfg['dateformat'], $row['com_date'] + $usr['timezone'] * 3600)."</a></td>";
$plugin_body .= "<td style=\"text-align:center;\">".sed_build_timegap($row['com_date'], $sys['now_offset'])."</td></tr>";
}

$plugin_body .= "</table>";

// Recent users

$sql = sed_sql_query("SELECT user_name, user_id, user_country, user_regdate FROM $db_users WHERE user_maingrp>1 ORDER by user_regdate DESC LIMIT ".$cfg['plugin']['whatsnew']['maxlines']);

$plugin_body .= "<h3>".$L['plu_title_users']."</h3>";
$plugin_body .= "<table class=\"cells\">";
$plugin_body .= "<td style=\"width:25%;\" class=\"coltop\">".$L['User']."</td>";
$plugin_body .= "<td style=\"width:25%;\" class=\"coltop\">".$L['Country']."</td>";
$plugin_body .= "<td style=\"width:50%;\" class=\"coltop\" colspan=\"2\">".$L['Registered']."</td></tr>";

while ($row = sed_sql_fetcharray($sql))
{
$plugin_body .= "<tr><td>".sed_build_user($row['user_id'], sed_cc(stripslashes($row['user_name'])))."</td>";
$plugin_body .= "<td>".sed_build_flag($row['user_country'])." ";
$plugin_body .= sed_build_country($row['user_country'])."</td>";
$plugin_body .= "<td style=\"text-align:center;\">".date($cfg['dateformat'], $row['user_regdate'] + $usr['timezone'] * 3600)."</a></td>";
$plugin_body .= "<td style=\"text-align:center;\">".sed_build_timegap($row['user_regdate'], $sys['now_offset'])."</td></tr>";
}

$plugin_body .= "</table>";

?>
Sitelerinize profesyonel anlamda hizmet verilir;

- Performans optimizasyonu,
- Üst düzey güvenlik yamaları,
- İsteğe bağlı eklentiler,
- Her çeşit bot (program, video, resim, arsiv, haber),
- Profesyonel görsel skin.

Tüm tasarım, kodlamalar ve optimizasyon Neocrome referansı ile tarafımca hazırlanmakta.
 
*************************İSTATİSTİKLER*************************
Müşterim olan danışmanlığını yaptığım toplam kişi sayısı: 23
Sadece Eklenti hazırladığım kişi sayısı: 22
Uygulama yaptığım toplam site sayısı: 39
-------------------------------------------------
Müşterinin isteği doğrultusunda hazırladığım;
- eklenti sayısı: 46
- skin sayısı: 8
- bot sayısı: 18
- özel güvenlik yamaları: 21
- Sql performans optimizasyonu: 13 (yüksek hitli siteler için)
- Portal genel cache ve materyal optimizasyonu: 15
***************************************************************

BLaCKWHITE

Members


Online status

49 posts
http://www.hackerbox.eu
Pagerank: 0

Location: Turkey ?stanbul
Occupation: Security staff
Age: 28

#204   2007-03-14 19:47 GMT      

Yardımın için teşekkur ederım saol bunlara bi teşekkur botu yaz ona basalım

Dvdbil

Administrator


Online status

2,253 posts
http://www.seditio-tr.com
Pagerank: 3

Location: Turkey istanbul
Occupation: Web Site(ler) İşletmeciliği
Age: 28

#205   2007-03-14 20:04 GMT      
Teşekkür botunu anlamsız buluyorum belki ileride daha iyi bir sistem geliştiririm.
Sitelerinize profesyonel anlamda hizmet verilir;

- Performans optimizasyonu,
- Üst düzey güvenlik yamaları,
- İsteğe bağlı eklentiler,
- Her çeşit bot (program, video, resim, arsiv, haber),
- Profesyonel görsel skin.

Tüm tasarım, kodlamalar ve optimizasyon Neocrome referansı ile tarafımca hazırlanmakta.
 
*************************İSTATİSTİKLER*************************
Müşterim olan danışmanlığını yaptığım toplam kişi sayısı: 23
Sadece Eklenti hazırladığım kişi sayısı: 22
Uygulama yaptığım toplam site sayısı: 39
-------------------------------------------------
Müşterinin isteği doğrultusunda hazırladığım;
- eklenti sayısı: 46
- skin sayısı: 8
- bot sayısı: 18
- özel güvenlik yamaları: 21
- Sql performans optimizasyonu: 13 (yüksek hitli siteler için)
- Portal genel cache ve materyal optimizasyonu: 15
***************************************************************
> 1 <

Benzer konular (Similar topics) #BETA

KonularMesajlarSon YazarGüncelleme
Eklenti hatası4BLaCKWHITE583 Gün
Eklenti(plugins) Hatası4deasn51 Gün
Galiba Eklenti Hatası3core1280 Gün
eklenti2Dvdbil611 Gün
1 eklenti9hakan616 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] [268] [269] [270] [271] [272] [273] [274] [275] [276] [277] [278] [279]