| Author | Message |
BlackqaN
79 posts |
#25788 2008-05-04 13:51 GMT |
|
Arkadaşlar ben news eklentisini etkinlik olarak değiştirdim ve header.tplde çalışmasını istiyorum yapıyorum. tagslarıda ekliyorum fakat eklentiyi çalıştırdığım zaman bütün haberler gidiyor.Ön metin görünüyor fakat tıklayınca boş bi sayfa çıkıyor. eklentinin kodları etkinlik.php Code: <?PHP /* ==================== Seditio - Website engine Copyright Neocrome http://www.neocrome.net [BEGIN_SED] File=plugins/etkinlik/etkinlik.php Version=120 Updated=2007-mar-01 Type=Plugin Author=Neocrome Description= [END_SED] [BEGIN_SED_EXTPLUGIN] Code=etkinlik Part=homepage File=etkinlik Hooks=header.tags Tags=header.tpl:{HEADER_ETKINLIK} Minlevel=0 Order=10 [END_SED_EXTPLUGIN] ==================== */ if (!defined('SED_CODE')) { die('Wrong URL.'); } if ($cfg['plugin']['etkinlik']['maxpages']>0 && !empty($cfg['plugin']['etkinlik']['category']) && !empty($sed_cat[$cfg['plugin']['etkinlik']['category']]['order'])) { $jj = 0; $mtch = $sed_cat[$cfg['plugin']['etkinlik']['category']]['path']."."; $mtchlen = strlen($mtch); $catsub = array(); $catsub[] = $cfg['plugin']['etkinlik']['category']; foreach($sed_cat as $i => $x) { if (substr($x['path'], 0, $mtchlen)==$mtch && sed_auth('page', $i, 'R')) { $catsub[] = $i; } } $sql = sed_sql_query("SELECT p.*, u.user_name, user_avatar FROM $db_pages AS p LEFT JOIN $db_users AS u ON u.user_id=p.page_ownerid WHERE page_state=0 AND page_cat NOT LIKE 'system' AND page_begin<'".$sys['now_offset']."' AND page_expire>'".$sys['now_offset']."' AND page_cat IN ('".implode("','", $catsub)."') ORDER BY page_".$sed_cat[$cfg['plugin']['etkinlik']['category']]['order']." ".$sed_cat[$cfg['plugin']['etkinlik']['category']]['way']." LIMIT ".$cfg['plugin']['etkinlik']['maxpages']); $etkinlik = new XTemplate(sed_skinfile('etkinlik')); while ($pag = sed_sql_fetcharray($sql)) { $jj++; $catpath = sed_build_catpath($pag['page_cat'], "<a href=\"list.php?c=%1\$s\">%2\$s</a>"); $pag['page_desc'] = sed_cc($pag['page_desc']); $pag['page_pageurl'] = (empty($pag['page_alias'])) ? "page.php?id=".$pag['page_id'] : "page.php?al=".$pag['page_alias']; $pag['page_fulltitle'] = $catpath." ".$cfg['separator']." <a href=\"".$pag['page_pageurl']."\">".$pag['page_title']."</a>"; $item_code = 'p'.$pag['page_id']; list($pag['page_comments'], $pag['page_comments_display']) = sed_build_comments($item_code, $pag['page_pageurl'], FALSE); list($pag['page_ratings'], $pag['page_ratings_display']) = sed_build_ratings($item_code, $pag['page_pageurl'], FALSE); $etkinlik-> assign(array( "PAGE_ROW_URL" => $pag['page_pageurl'], "PAGE_ROW_ID" => $pag['page_id'], "PAGE_ROW_TITLE" => $pag['page_fulltitle'], "PAGE_ROW_SHORTTITLE" => $pag['page_title'], "PAGE_ROW_CAT" => $pag['page_cat'], "PAGE_ROW_CATTITLE" => $sed_cat[$pag['page_cat']]['title'], "PAGE_ROW_CATPATH" => $catpath, "PAGE_ROW_CATDESC" => $sed_cat[$pag['page_cat']]['desc'], "PAGE_ROW_CATICON" => $sed_cat[$pag['page_cat']]['icon'], "PAGE_ROW_KEY" => sed_cc($pag['page_key']), "PAGE_ROW_EXTRA1" => sed_cc($pag['page_extra1']), "PAGE_ROW_EXTRA2" => sed_cc($pag['page_extra2']), "PAGE_ROW_EXTRA3" => sed_cc($pag['page_extra3']), "PAGE_ROW_EXTRA4" => sed_cc($pag['page_extra4']), "PAGE_ROW_EXTRA5" => sed_cc($pag['page_extra5']), "PAGE_ROW_DESC" => $pag['page_desc'], "PAGE_ROW_AUTHOR" => sed_cc($pag['page_author']), "PAGE_ROW_OWNER" => sed_build_user($pag['page_ownerid'], sed_cc($pag['user_name'])), "PAGE_ROW_AVATAR" => sed_build_userimage($pag['user_avatar']), "PAGE_ROW_DATE" => @date($cfg['formatyearmonthday'], $pag['page_date'] + $usr['timezone'] * 3600), "PAGE_ROW_FILEURL" => $pag['page_url'], "PAGE_ROW_SIZE" => $pag['page_size'], "PAGE_ROW_COUNT" => $pag['page_count'], "PAGE_ROW_FILECOUNT" => $pag['page_filecount'], "PAGE_ROW_COMMENTS" => $pag['page_comments'], "PAGE_ROW_RATINGS" => "<a href=\"".$pag['page_pageurl']."&ratings=1\"><img src=\"skins/".$usr['skin']."/img/system/vote".round($pag['rating_average'],0).".gif\" alt=\"\" /></a>", "PAGE_ROW_ODDEVEN" => sed_build_oddeven($jj) )); switch($pag['page_type']) { case '1': $etkinlik->assign("PAGE_ROW_TEXT", $pag['page_text']); break; case '2': if ($cfg['allowphp_pages']) { ob_start(); eval($pag['page_text']); $etkinlik->assign("PAGE_ROW_TEXT", ob_get_clean()); } else { $etkinlik->assign("PAGE_ROW_TEXT", "The PHP mode is disabled for pages.<br />Please see the administration panel, then \"Configuration\", then \"Parsers\"."); } break; default: $readmore = strpos($pag['page_text'], "[more]"); if ($readmore>0) { $pag['page_text'] = substr($pag['page_text'], 0, $readmore)."<br />"; $pag['page_text'] .= "<a href=\"".$pag['page_pageurl']."\">".$L['ReadMore']."</a>"; } else { $pag['page_text'] = substr($pag['page_text'], 0, 200)."... (<a href=\"".$pag['page_pageurl']."\">>></a>)";} $pag['page_text'] = "<a href=\"".$pag['page_pageurl']."\">".$pag['page_text']."</a>"; $etkinlik->assign("PAGE_ROW_TEXT", sed_parse($pag['page_text'], $cfg['parsebbcodepages'], $cfg['parsesmiliespages'], 1)); break; } $etkinlik->parse("ETKINLIK.PAGE_ROW"); } $etkinlik->parse("ETKINLIK"); $t->assign("HEADER_ETKINLIK", $etkinlik->text("ETKINLIK")); } ?> etkinlik.setup.php Code: <?PHP
/* ==================== Seditio - Website engine Copyright Neocrome http://www.neocrome.net [BEGIN_SED] File=plugins/etkinlik/etkinlik.setup.php Version=101 Updated=2006-mar-15 Type=Plugin Author=Neocrome Description= [END_SED] [BEGIN_SED_EXTPLUGIN] Code=etkinlik Name=News Description=Pick up pages from a category and display the newest in the home page Version=100 Date=2006-mar-10 Author=Neocrome Copyright= Notes= SQL= Auth_guests=R Lock_guests=W12345A Auth_members=R Lock_members=W12345A [END_SED_EXTPLUGIN] [BEGIN_SED_EXTPLUGIN_CONFIG] category=01:string::etkinlik:Category code of the parent category maxpages=02:select:0,1,2,3,4,5,6,7,8,9,10,15,20,25,30,50,100:10:Recent pages displayed [END_SED_EXTPLUGIN_CONFIG] ==================== */ if (!defined('SED_CODE')) { die('Wrong URL.'); } ?> |
|
Madwolf
216 posts |
#25791 2008-05-04 14:13 GMT |
|
etkinlik.php bune şimdi eklentimi yapmaya çalıştın
|
|
|
WWW.SPYSECURITY.ORG // WWW.SPYFRM.ORG THE LEGEND |
|
BlackqaN
79 posts |
#25792 2008-05-04 14:54 GMT |
|
Senden böyle bi cevap gelmesine şaşırmadım.Bilgili üyesin tamam kabul de . neden soruma cevap değilde alaycı bi cümle kurdun anlamadım.Ben eklenti felan yapmaya çalışmadım.Sadece news eklentisinin headerde çalışması için adını değiştirdim. Seditio senden başka kimse bilmiyor ya valla |
|
Kaan
2,151 posts |
#25802 2008-05-04 20:09 GMT |
|
Kodlar çakışıyor olabilir ne gibi bozulma var sitede mesela veya $sql ile başlayan yerleri $kaan olarak degiştir dene
|
|
BlackqaN
79 posts |
#25860 2008-05-05 00:39 GMT |
|
Dediğini yaptım fakat gene aynı hatayı verdi.O eklentiyi çalıştırdğım zaman anasayfada haber metni gözüküyor fakat tıkladığında haber çıkmıyor.
|
|
Madwolf
216 posts |
#25861 2008-05-05 00:50 GMT |
Quote Ne bileyim be kodır abi eklentinin hiçbiyerinde "news" yazısını görmeyince kodır bülükcan eklenti yazmaya çalışmış heralde dedim |
|
|
WWW.SPYSECURITY.ORG // WWW.SPYFRM.ORG THE LEGEND |
|
BlackqaN
79 posts |
#25862 2008-05-05 00:54 GMT |
|
Tamam sensin med.Hadi konuyu cevapla . .
This post was edited by BlackqaN (2008-05-05 01:00 GMT, 214 Gün ago) |
|
Apocalips
24 posts |
#26083 2008-05-07 01:31 GMT |
|
arkadaşım etkinlik.setup.php de
aşagıdaki kodlamada Name=News Yazıyor ve senin sitende News eklentisi kullanıyorsan etkinlikler dışında o yüzden çakışıyor ve görmüyor olabilir Code: [BEGIN_SED_EXTPLUGIN] Code=etkinlik Name=News <<<<==== >>>> "burada News yerine etkinlik yazarsan düzelebilir belki" Description=Pick up pages from a category and display the newest in the home page Version=100 Date=2006-mar-10 Author=Neocrome Copyright= Notes= SQL= Auth_guests=R Lock_guests=W12345A Auth_members=R Lock_members=W12345A [END_SED_EXTPLUGIN] umarım işini görür |
|
Benzer konular (Similar topics) #BETA
| Konular | Mesajlar | Son Yazar | Güncelleme |
| takvim(calendar) eklentisi headere geçince sorun | 5 | muko | 245 Gün |
| Çin'in Dokusu Bozuluyor | 1 | KonuMatik | 313 Gün |
| sayfa bozuluyor tam açılmıyor | 3 | HuKuM | 246 Gün |
| Bütün Çöpler yer Altına | 1 | KonuMatik | 304 Gün |
| Dini Bütün Hidayet | 1 | KonuMatik | 309 Gün |





