| Author | Message |
Cevher
15 posts |
#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
2,038 posts |
#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
481 posts |
#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 ekleCode: $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."&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."&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."&d=".$prevpage."\">".$L['Previous']." $sed_img_left</a>"; } if (($current + $perpage)<$entries) { $nextpage = $current + $perpage; $res_r = "<a href=\"".$url."&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
15 posts |
#27594 2008-05-24 22:52 GMT |
|
Saolun Düzeldi
|
|
> 1 <
Benzer konular (Similar topics) #BETA
| Konular | Mesajlar | Son Yazar | Güncelleme |
| Apache de Htacess hata veriyor | 2 | The_PcDelisi | 88 Gün |
| db yedek alırken hata veriyor.... | 5 | wanted | 214 Gün |
| mesaj düzenliyorum hata veriyor | 2 | Kaan | 110 Gün |
| Çok Kişi Girince Hata Veriyor :) | 3 | Dvdbil | 279 Gün |
| Yedek Yükledim Hata Veriyor | 3 | siyah.kin | 281 Gün |




