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

Etiketler: news headere alınca bütün newsler bozuluyor

Author Message

BlackqaN

Members


Online status

79 posts
http://rapdream.us
Pagerank: 0

Location: Turkey Antalya
Occupation: ??siz
Age: 17

#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']."&amp;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

Bilgili Üye


Online status

214 posts
http://www.facebook.com
Pagerank: 9

Location: Turkey izmir
Occupation: PIMP
Age: 20

#25791   2008-05-04 14:13 GMT      
etkinlik.php bune şimdi eklentimi yapmaya çalıştın
WWW.SPYSECURITY.ORG
THE LEGEND

BlackqaN

Members


Online status

79 posts
http://rapdream.us
Pagerank: 0

Location: Turkey Antalya
Occupation: ??siz
Age: 17

#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

Moderators


Online status

2,075 posts
http://www.ntka.org
Pagerank: 2

Location: Turkey
Occupation: Destek
Age: 25

#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

Members


Online status

79 posts
http://rapdream.us
Pagerank: 0

Location: Turkey Antalya
Occupation: ??siz
Age: 17

#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

Bilgili Üye


Online status

214 posts
http://www.facebook.com
Pagerank: 9

Location: Turkey izmir
Occupation: PIMP
Age: 20

#25861   2008-05-05 00:50 GMT      
Quote
BlackqaN :
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



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
THE LEGEND

BlackqaN

Members


Online status

79 posts
http://rapdream.us
Pagerank: 0

Location: Turkey Antalya
Occupation: ??siz
Age: 17

#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, 155 Gün ago)

Apocalips

Members


Online status

24 posts
http://localhost/seditio :D
Pagerank: 0

Location: Turkey Sanal Alem
Occupation: Gezgin
Age:

#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
> 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] [208] [209] [210] [211] [212] [213] [214] [215] [216] [217] [218] [219] [220] [221] [222] [223] [224] [225] [226] [227]