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

Etiketler: konunun üstüne tıklandığında hata veriyor

Author Message

Cevher

Members


Online status

15 posts
http://www.cevherforum.com
Pagerank: 0

Location: Turkey
Occupation:
Age: 17

#27580   2008-05-24 18:45 GMT      

Konunun Üstüne Tıkladığımda Böyle Bir Hata Veriyor

Fatal error: Call to undefined function sed_pagination() in C:\wamp\www\seditio\system\core\forums\forums.posts.inc.php on line 430

Kaan

Moderators


Online status

2,038 posts
http://www.ntka.org
Pagerank: 3

Location: Turkey
Occupation: Destek
Age: 25

#27583   2008-05-24 19:08 GMT      
function sed_pagination fonsiyonunu bulamıyor tekrar indir neocromeden yama yapıltı sanıyorum en indirdiğimde sorun cıkarmadı. yeni eklendi o fonksiyon.

emremix

Moderators


Online status

481 posts

Location: Turkey
Occupation: emremix
Age:

#27584   2008-05-24 19:51 GMT      

sed_pagination özelliği seditio 122 ile gelen bir fonksiyondur.Sorun senin 121'in functions.php sini kullanmanda.Eğer dosyalarımı değiştirmeden eklemek istiyorum diyorsan

functions.php yi aç

1.adım

Code:
$cfg['th_dir'] = 'datas/thumbs/';
bunu bul ve hemen altına ekle

Code:
$cfg['pagination'] = ' [%s]';
$cfg['pagination_cur'] = ' <strong>> %s <</strong>';


2. adım

Code:
/* ------------------ */

function sed_outputfilters($output)
{
global $cfg;

/* === Hook === */
$extp = sed_getextplugins('output');
if (is_array($extp))
{ foreach($extp as $k => $pl) { include('plugins/'.$pl['pl_code'].'/'.$pl['pl_file'].'.php'); } }
/* ==== */

$output = str_replace('</FORM>', '</form>', $output);
$output = str_replace('</form>', sed_xp().'</form>', $output);

  return($output);
  }


bunu bul ve altına ekle

Code:
/* ------------------ */

function sed_pagination($url, $current, $entries, $perpage)
{
global $cfg;

if ($entries<=$perpage)
{ return (""); }

$totalpages = ceil($entries / $perpage);
$currentpage = $current / $perpage;

for ($i = 0; $i < $totalpages; $i++)
{
$j = $i * $perpage;
if ($i==$currentpage)
{ $res .= sprintf($cfg['pagination_cur'], "<a href=\"".$url."&amp;d=".$j."\">".($i+1)."</a>"); }
elseif (is_int(($i+1)/10) || $i<4 || ($totalpages-$i)<4 || abs($i-$currentpage)<4)
{ $res .= sprintf($cfg['pagination'], "<a href=\"".$url."&amp;d=".$j."\">".($i+1)."</a>"); }
}
return ($res);
}

/* ------------------ */

function sed_pagination_pn($url, $current, $entries, $perpage, $res_array=FALSE)
{
global $L, $sed_img_left, $sed_img_right;

if ($current>0)
{
$prevpage = $current - $perpage;
if ($prevpage<0)
{ $prevpage = 0; }
$res_l = "<a href=\"".$url."&amp;d=".$prevpage."\">".$L['Previous']." $sed_img_left</a>";
}

if (($current + $perpage)<$entries)
{
$nextpage = $current + $perpage;
$res_r = "<a href=\"".$url."&amp;d=".$nextpage."\">$sed_img_right ".$L['Next']."</a>";
}
if ($res_array)
{ return (array($res_l, $res_r)); }
else
{ return ($res_l." ".$res_r); }
}


Bu kadar sonra hata düzelir muhtemelen.
Sudo apt-get Alcohol
Forever Ubuntu :)

Cevher

Members


Online status

15 posts
http://www.cevherforum.com
Pagerank: 0

Location: Turkey
Occupation:
Age: 17

#27594   2008-05-24 22:52 GMT      
Saolun Düzeldi
> 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] [206] [207]