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

Etiketler: karma sorunu

Author Message

xahmets

Members


Online status

19 posts

Location: Turkey
Occupation:
Age:

#9748   2008-01-06 13:40 GMT      

Selamun aleyküm...
Siteme karma kurdum.Ama kullanmaya çalışınca bu hatayı alıyorum.
Fatal error: Cannot re-assign $this in /home/*********/public_html/plugins/karma/karma.php on line 123

Sorun neden kaynaklanabilir?

Vezir

Members


Online status

220 posts
http://www.tekadresim.net
Pagerank: 1

Location: Turkey
Occupation:
Age:

#9749   2008-01-06 14:15 GMT      
karma.php dosyası yoq
Kendini hirosimada bulabilir misin?Ozgurluk adina kendini yakan vietnamlinin et kokusunu duyabilir misin?Okullarda vurulan genclerin kanli elbiselerini giyebilir misin?Filistin'deki kurtulus savascisi gerilalarin fiseklerini kusanabilir misin?Beni baris icinde cikar dusunmeden sevebilir misin?[/b

xahmets

Members


Online status

19 posts

Location: Turkey
Occupation:
Age:

#9750   2008-01-06 15:03 GMT      

Quote
Vezir :
karma.php dosyası yoq

Sorun bu kadar basit olmamalı.Tabi ki dosya var.

Xiao

Moderators


Online status

866 posts
http://www.seditione.com
Pagerank: 0

Location: Turkey Trabzon
Occupation: Orman Mühendisi
Age: 30

#9751   2008-01-06 15:22 GMT      
eğer eklentinin içindeki karma.lang.ru.php dosyasının adını tr yaptıysan eklentiyi aç 123. satırda büyük ihtimalle karma.lang.ru.php yazıyordur.onu tr olarak değiştir.
Haziran 2008 Seditio Site Yar??mas? >> http://www.seditione.com

xahmets

Members


Online status

19 posts

Location: Turkey
Occupation:
Age:

#9760   2008-01-06 18:18 GMT      
Onu denedim olmadı.123.Satırda bu kodlar var.

$this = sed_sql_fetchassoc($sql1);

Ve kod $this kodunun rengi açık mavi ile çizgili.Yani sorun ondan kaynaklanıyor.Ama çözemiyorum.Silince başka hata veriyor.Ki zaten gereksiz kodu koymazlar.

Dvdbil

Administrator


Online status

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

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

#9761   2008-01-06 18:51 GMT      
Php versiyonun nedir ?

xahmets

Members


Online status

19 posts

Location: Turkey
Occupation:
Age:

#9762   2008-01-06 18:59 GMT      
Sitemin php versiyonu 5.2.4

Dvdbil

Administrator


Online status

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

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

#9763   2008-01-06 19:10 GMT      
karma.php'yi alttaki kodlarla değiştirip test et..

Sadece php kodlar:
Code:
if ( !defined('SED_CODE') ) { die("Wrong URL."); }//motor2hg

$act = sed_import('act','G','ALP');
$fp = sed_import('fp','G','INT') ? sed_import('fp','G','INT') : sed_diefatal($L['no_fp']);

require_once("plugins/karma/lang/karma.tr.lang.php");

$access = sed_auth('plug', 'karma', 'W');//motor2hg

$sql = sed_sql_query("SELECT COUNT(*) FROM sed_forum_posts WHERE fp_posterid = {$usr['id']}");
if ($access == false || sed_sql_result($sql,0,'COUNT(*)')<$cfg['plugin']['karma']['minpost']) { $act="default"; }//motor2hg

switch ($act){
case 'change':

if (sed_import('value','G','ALP')=="add")
{$do = $L['karma_add']; $value = "add"; $color="eeffee";}
elseif (sed_import('value','G','ALP')=="del")
{$do = $L['karma_del']; $value = "del"; $color="ffeeee";}
else
{sed_diefatal($L['no_karma']);}

$sql = sed_sql_query("SELECT f.fp_text, u.user_name, u.user_id FROM sed_forum_posts f LEFT JOIN sed_users u ON (f.fp_posterid=u.user_id) WHERE f.fp_id = $fp LIMIT 1");///motor2hg
$row = sed_sql_fetchassoc($sql);

if ($usr['id']==$row['user_id'])
{ $popup_body .= "<div id=\"fullcol\" class=\"des\"><div class=\"block2\"><div class=\"w1\"><div class=\"w2\"><div class=\"w3\"><div class=\"w4\"><h4>".$L['no_self']."</h4></div></div></div></div></div></div>"; break; }

$popup_body .= "<div id=\"fullcol\" class=\"des\">";
$popup_body .= "<div class=\"block3\"><div class=\"w1\"><div class=\"w2\"><div class=\"w3\"><div class=\"w4\">".$L['do_1']." ".$do." ".$L['do_2']." <a href=\"users.php?m=details&amp;id=".$row['user_id']."\" target=\"_blank\" class=\"info\">".$row['user_name']."</a> ".$L['do_3']."</div></div></div></div></div>";
$popup_body .= "<div class=\"block2\"><div class=\"w1\"><div class=\"w2\"><div class=\"w3\"><div class=\"w4\">".sed_parse($row['fp_text'], $cfg['parsebbcodeforums'], $cfg['parsesmiliesforums'], 1)."</div></div></div></div></div>";
$popup_body .= "<div class=\"block2\"><div class=\"w1\"><div class=\"w2\"><div class=\"w3\"><div class=\"w4\">";
$popup_body .= "<form action=\"plug.php?o=karma&act=dochange&fp=$fp\" method=\"POST\">";
$popup_body .= "<h4>".$L['comm']."</h4>";
$popup_body .= "<input type=\"hidden\" name=\"value\" value=\"$value\">";
$popup_body .= "<input type=\"hidden\" name=\"recipient\" value=\"".$row['user_id']."\">";

if (is_file("plugins/textboxer2/tb2.comments.php")){//motor2hg
require_once("plugins/textboxer2/tb2.comments.php");//motor2hg
$popup_body .= sed_textboxer2('reason',
'newcomment',
$rtext,
$tb2TextareaRows,
$tb2TextareaCols,
'comments',
$tb2ParseBBcodes,
$tb2ParseSmilies,
$tb2ParseBR,
$tb2Buttons,
$tb2DropdownIcons,
$tb2MaxSmilieDropdownHeight,
$tb2InitialSmilieLimit);
}
  else
  {
$popup_body .= "<textarea name=\"reason\" rows=\"12\" cols=\"32\"></textarea>";
}

$popup_body .= "<input type=\"submit\" class=\"submit\" name=\"submit\" value=\"".$L['Submit']."\">";
$popup_body .= "</form>";
$popup_body .= "</div></div></div></div></div></div>";

break;
case 'dochange':

$reason = sed_import('reason','P','TXT') ? sed_import('reason','P','TXT') : sed_diefatal($L['no_comm']);//motor2hg
$recipient = sed_import('recipient','P','INT') ? sed_import('recipient','P','INT') : sed_diefatal($L['no_recipient']);//motor2hg

if (sed_import('value','P','ALP')=="add")
{$value = "+1";}
elseif (sed_import('value','P','ALP')=="del")
{$value = "-1";}
else
{sed_diefatal($L['no_karma']);}

if ($usr['id']==$recipient)
{ $popup_body .= "<div id=\"fullcol\" class=\"des\"><div class=\"block2\"><div class=\"w1\"><div class=\"w2\"><div class=\"w3\"><div class=\"w4\"><h4>".$L['no_self']."</h4></div></div></div></div></div></div>"; break; }

$sql = sed_sql_query("INSERT sed_karma VALUES ('', '$recipient', '{$usr['id']}', '$value', '$reason', '$fp')");

$popup_body .= "<div id=\"fullcol\" class=\"des\"><div class=\"block2\"><div class=\"w1\"><div class=\"w2\"><div class=\"w3\"><div class=\"w4\"><h4>".$L['karma_changed_ok']."</h4></div></div></div></div></div></div>";

break;
case 'moderate':

if (sed_auth('plug', 'karma', 'A') ==False )//motor2hg Åñëè àäìèí òî ìîæåò ã?îõíóòü óîìåò â êà?ìå
{ sed_diefatal($L['low_level']); }
$sql = sed_sql_query("DELETE FROM sed_karma WHERE karma_id = $fp AND karma_recipient!={$usr['id']} LIMIT 1");

$popup_body .= "<div id=\"fullcol\" class=\"des\"><div class=\"block2\"><div class=\"w1\"><div class=\"w2\"><div class=\"w3\"><div class=\"w4\"><h4>".$L['karma_del_ok']."</h4></div></div></div></div></div></div>";

break;
case 'show': default:

$sql = sed_sql_query("SELECT u.user_name, u.user_id, k.* FROM sed_karma k LEFT JOIN sed_users u ON (u.user_id=k.karma_rater) WHERE k.karma_recipient = $fp ORDER BY k.karma_id");
$sql1 = sed_sql_query("SELECT user_name FROM sed_users WHERE user_id = $fp LIMIT 1");
$sql1_row = sed_sql_fetchassoc($sql1);

$popup_body .="<div id=\"fullcol\" class=\"des\">";
$popup_body .="<div class=\"block2\"><div class=\"w1\"><div class=\"w2\"><div class=\"w3\"><div class=\"w4\">";
$popup_body .= "<h4>".$sql1_row['user_name'].":</h4>";
$popup_body .= "<table width=100%>";
$popup_body .= "<tr>";
$popup_body .= "<td align=\"center\"><b>".$L['Name']."</b></td>";
$popup_body .= "<td align=\"center\"><b>".$L['Value']."</b></td>";
$popup_body .= "<td align=\"center\"><b>".$L['Comment']."</b></td>";
$popup_body .= "<td align=\"center\"><b>".$L['Reason']."</b></td>";
$popup_body .= (sed_auth('plug', 'karma', 'A') && $usr['id']!==$fp) ? "<td align=\"center\"><b>".$L['Delete']."</b></td>" : "";//motor2hg
$popup_body .= "</tr>";

while ($row = sed_sql_fetchassoc($sql))
{
$color = ($row['karma_value']>0) ? "eeffee" : "ffeeee" ;
$popup_body .= "<tr style=\"background-color:#".$color." !important;\">";
$popup_body .= "<td><a href=\"users.php?m=details&id=".$row['user_id']."\" target=_blank>".$row['user_name']."</td>";
$popup_body .= "<td align=\"center\" valign=\"middle\">".$row['karma_value']."</td>";
$popup_body .= "<td width=\"100%\">".sed_parse($row['karma_text'], $cfg['parsebbcodeforums'], $cfg['parsesmiliesforums'], 1)."</td>";
$popup_body .= "<td><a href=\"forums.php?m=posts&p=".$row['karma_fp']."#".$row['karma_fp']."\" target=_blank>".$L['View']."</a></td>";
$popup_body .= (sed_auth('plug', 'karma', 'A') && $usr['id']!==$fp) ? "<td><a href=\"plug.php?o=karma&act=moderate&fp=".$row['karma_id']."\">".$L['Delete']."</a></td>" : "";//motor2hg
$popup_body .= "</tr>";
}
$popup_body .= "</table>";
$popup_body .= "</div></div></div></div></div></div>";

break;
}

xahmets

Members


Online status

19 posts

Location: Turkey
Occupation:
Age:

#9764   2008-01-06 19:33 GMT      

Çok Çok teşekkür ediyorum size. Gerçekten hiç olmayacak zannediyordum.Tekrar teşekkürler.Selametle...
> 1 <

Benzer konular (Similar topics) #BETA

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]