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

Etiketler: arşiv eklentisi yardım

Author Message

samba

Members


Online status

64 posts

Location: Turkey
Occupation:
Age:

#19469   2008-03-19 16:00 GMT      

ldu arşiv eklentisi : http://uploaded.to/?id=fsin7g

benim sed e çevirdiğim
archives.php
Code:
<?PHP

/* ====================
Seditio - Website engine
Copyright Neocrome
http://www.neocrome.net

[BEGIN_Sed]
File=plugins/archives/archives.php
Version=801
Updated=2005-oct-10
Type=Plugin
Author=Neocrome
Description=
[END_SED]

[BEGIN_SED_EXTPLUGIN]
Code=archives
Part=main
File=archives
Hooks=standalone
Tags=
Minlevel=0
Order=10
[END_SED_EXTPLUGIN]

==================== */

if (!defined('SED_CODE') || !defined('SED_PLUG')) { die('Wrong URL.'); }

$month = sed_import('month','G','INT');
$year = sed_import('year','G','INT');

if (empty($month) || empty($year))
{
$plugin_title = "<a href=\"plug.php?e=archives\">".$L['plu_title']."</a>";

$table = array();
$prevyear = '';

$plugin_body = '<h4>'.$L['plu_bydate'].' :</h4>';

$sql = sed_sql_query("SELECT news_date FROM $db_news
WHERE news_minlevel<='".$usr['level']."'
AND news_date<'".$sys['now_offset']."'
AND news_state=0
AND news_cat IN ('".sed_sql_prep("','", $sed_catacc)."')
ORDER BY news_date DESC");

while ($row = sed_sql_fetcharray($sql))
{
$now = $row['news_date'] + $usr['timezone'] * 3600;
$year = date('Y', $now);
$month_str = date('F', $now);
$month_str = ereg_replace($month_str, $L[$month_str], $month_str);

$month = date('n', $now);

if ($prevyear!=$year)
{
$plugin_body .= "<p>".$year."</p>";
$prevyear = $year;
}

if (!$table[$year][$month])
{
$table[$year][$month]++;
$plugin_body .= "&nbsp; <a href=\"plug.php?e=archives&amp;year=".$year."&amp;month=".$month."\">".$month_str."</a><br />";
}
}

$plugin_body .= '<h4>'.$L['plu_bycategory'].' :</h4>';

$sql = sed_sql_query("SELECT DISTINCT news_cat FROM $db_news WHERE 1 ORDER BY news_cat");

while ($row = sed_sql_fetcharray($sql))
{
$sql1 = sed_sql_query("SELECT COUNT(*) FROM $db_news WHERE news_cat='".$row['news_cat']."'");

$plugin_body .= "&nbsp; <a href=\"index.php?c=".$row['news_cat']."&amp;m=all\">".$sed_cat[$row['news_cat']]['tpath']."</a> (".sed_result($sql1,0,"COUNT(*)").")<br />";
}

$sql = sed_sql_query("SELECT news_id, news_title, news_date FROM $db_news
WHERE news_minlevel<='".$usr['level']."'
AND news_date<'".$sys['now_offset']."'
AND news_state=0
AND news_cat IN ('".implode("','", $sed_catacc)."')
ORDER BY news_date DESC");

$plugin_body .= '<h4>'.$L['plu_bytitle'].' :</h4><table>';

while ($row = sed_sql_fetcharray($sql))
{
$plugin_body .= "<tr><td><a href=\"index.php?m=single&amp;id=".$row['news_id']."\">";
$plugin_body .= stripslashes($row['news_title'])."</td>";
$plugin_body .= "<td>".date($cfg['dateformat'], $row['news_date']+$usr['timezone']*3600)."</a></td></tr>";
}

$plugin_body .= '</table>';
}

elseif ($month>0 && $month<13 && $year>1980 && $year<2010)

{
$month_str = date("F", sed_mktime(0, 0, 0, $month, 1, $year));
$month_str = ereg_replace($month_str, $L[$month_str], $month_str);

$plugin_title = "<a href=\"plug.php?e=archives\">".$L['plu_title']."</a> ".$cfg['separator']." <a href=\"plug.php?e=archives&amp;year=".$year."&amp;month=".$month."\">".$month_str." ".$year."</a>";

$start = sed_mktime(0, 0, 0, $month, 1, $year);
$end = sed_mktime(23, 59, 59, $month, 31, $year);

$sql = sed_sql_query("SELECT news_id, news_title, news_cat, news_date
FROM $db_news
WHERE news_minlevel<='".$usr['level']."'
AND news_date>='$start'
AND news_date<='$end'
AND news_state=0
AND news_cat IN ('".implode("','", $sed_catacc)."')
ORDER BY news_date DESC");

while ($row = sed_sql_fetcharray($sql))
{
$plugin_body .= date($cfg['dateformat'], $row['news_date'] + $usr['timezone'] * 3600);
$plugin_body .= " : <a href=\"index.php?m=single&amp;id=".$row['news_id']."\">";
$plugin_body .= stripslashes($row['news_title'])."</a><br />";
}
}

?>






archives.setup.php
Code:
<?PHP

/* ====================
Seditio - Website engine
Copyright Neocrome
http://www.neocrome.net

[BEGIN_SED]
File=plugins/archives/archives.setup.php
Version=802
Updated=2005-dec-12
Type=Plugin
Author=Neocrome
Description=
[END_SED]

[BEGIN_SED_EXTPLUGIN]
Code=archives
Name=Archives
Description=Displays old news topics
Version=1.0
Date=2005-oct-10
Author=Neocrome
Copyright=
Notes=
SQL=
[END_SED_EXTPLUGIN]

==================== */

if (!defined('SED_CODE')) { die('Wrong URL.'); }

?>



archives.tr.lang.php
Code:
<?PHP

/* ====================
Seditio - Website engine
Copyright Neocrome
http://www.neocrome.net

[BEGIN_SED]
File=plugins/archives/lang/archives.tr.lang.php
Version=802
Updated=2005-dec-12
Type=
Author=Neocrome
Description=
[END_SED]

==================== */

$L['plu_title'] = "News archives";
$L['plu_bydate'] = "By date";
$L['plu_bycategory'] = "By category";
$L['plu_bytitle'] = "All Headlines";

?>


ldu daki archives eklentisini sed e uyarlamaya çalıştımda sql hatası verdi;
Site.com
2008-03-19 15:59
Fatal error : SQL error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE news_minlevel<='99' AND news_date<'1205935171' AND news_state=0 A' at line 2
sambacı

TheRaskol

Members


Online status

166 posts
http://www.raskolserna.com
Pagerank: 0

Location: Argentina Rosario
Occupation:
Age: 20

#19498   2008-03-19 16:13 GMT      
seditio için bir arşiv eklentisi yok mu?

samba

Members


Online status

64 posts

Location: Turkey
Occupation:
Age:

#19503   2008-03-19 16:28 GMT      

yapmaya çalışıyoruz işte
sambacı

samba

Members


Online status

64 posts

Location: Turkey
Occupation:
Age:

#19987   2008-03-22 20:43 GMT      
dvdbil, kaan, math1ens hiç bir çözüm öneriniz yok mu?
sambacı

Kaan

Moderators


Online status

1,911 posts
http://www.ntka.org
Pagerank: 0

Location: Turkey
Occupation: Destek
Age: 25

#20038   2008-03-22 23:17 GMT      
Resim

archives.php biraz düzenleme yaptım umarım sorun cıkmaz sadece katagorileri listeliyor içerik yok.

Code:
<?PHP

/* ====================
Land Down Under - Website engine
Copyright Neocrome
http://www.neocrome.net

[BEGIN_SED]
File=plugins/extended/archives/archives.php
Version=801
Updated=2005-oct-10
Type=Plugin
Author=Neocrome
Description=
[END_SED]

[BEGIN_SED_EXTPLUGIN]
Code=archives
Part=main
File=archives
Hooks=standalone
Tags=
Minlevel=0
Order=10
[END_SED_EXTPLUGIN]

==================== */

if (!defined('SED_CODE') || !defined('SED_PLUG')) { die('Wrong URL.'); }

$month = sed_import('month','G','INT');
$year = sed_import('year','G','INT');

if (empty($month) || empty($year))
{
$plugin_title = "<a href=\"plug.php?e=archives\">".$L['plu_title']."</a>";



$plugin_body .= '<h4>'.$L['plu_bycategory'].' :</h4>';

$sql = sed_sql_query("SELECT DISTINCT page_cat FROM $db_pages WHERE 1 ORDER BY page_cat");

while ($row = sed_sql_fetcharray($sql))
{
$sql1 = sed_sql_query("SELECT COUNT(*) FROM $db_pages WHERE

page_cat='".$row['page_cat']."'");

$plugin_body .= "&nbsp; <a

href=\"list.php?c=".$row['page_cat']."&amp;n=all\">".$sed_cat[$row['page_cat']]['tpath']."</a>

(".sed_sql_result($sql1,0,"COUNT(*)").")<br />";
}

$sql = sed_sql_query("SELECT page_id, page_title, page_date FROM $db_pages
WHERE page_date<'".$sys['now_offset']."'
AND page_state=0
AND page_cat IN ('".implode("','", $sed_cat)."')
ORDER BY page_date DESC");

}


?>


Setup.php

Code:
<?PHP

/* ====================
Land Down Under - Website engine
Copyright Neocrome
http://www.neocrome.net

[BEGIN_SED]
File=plugins/extended/archives/archives.setup.php
Version=802
Updated=2005-dec-12
Type=Plugin
Author=Neocrome
Description=
[END_SED]

[BEGIN_SED_EXTPLUGIN]
Code=archives
Name=Archives
Description=Displays old news topics
Version=1.0
Date=2005-oct-10
Author=Neocrome
Copyright=
Notes=
SQL=

Auth_guests=R
Lock_guests=A
Auth_members=R
Lock_members=A
[END_SED_EXTPLUGIN]

==================== */

if (!defined('SED_CODE')) { die('Wrong URL.'); }

?>


Lang.php

Code:
<?PHP

/* ====================
Land Down Under - Website engine
Copyright Neocrome
http://www.neocrome.net

[BEGIN_SED]
File=plugins/archives/lang/archives.tr.lang.php
Version=802
Updated=2005-dec-12
Type=
Author=Neocrome
Description=
[END_SED]

==================== */

$L['plu_title'] = "News archives";
$L['plu_bycategory'] = "By category";


?>

This post was edited by Kaan (2008-03-23 00:15 GMT, 106 Gün ago)
Tıkla Anında Sende Kazan!
UIygun Fiyata Seditio Tasarımı Yapılır..
Sitemap Yenilendi

core1

Members


Online status

129 posts

Location: Turkey
Occupation:
Age:

#20047   2008-03-23 10:29 GMT      
peki bunu nasıl footer.tpl de gösteririz

Kaan

Moderators


Online status

1,911 posts
http://www.ntka.org
Pagerank: 0

Location: Turkey
Occupation: Destek
Age: 25

#20057   2008-03-23 12:44 GMT      
Senin istediğin forum arşiv sistemi onu şimdilik alamassın yapabilirsen kendi çabalarınla yap.

Yukardakinide footer da göstermen için yeniden kodlanması gerek.
Tıkla Anında Sende Kazan!
UIygun Fiyata Seditio Tasarımı Yapılır..
Sitemap Yenilendi

samba

Members


Online status

64 posts

Location: Turkey
Occupation:
Age:

#20329   2008-03-24 15:39 GMT      
teşekkürler
sambacı
> 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] [228] [229] [230] [231] [232] [233] [234] [235] [236] [237] [238] [239] [240] [241] [242] [243] [244] [245] [246] [247] [248] [249] [250] [251] [252] [253] [254] [255] [256] [257] [258] [259] [260] [261] [262] [263] [264] [265] [266] [267] [268] [269] [270] [271] [272] [273] [274] [275] [276] [277] [278] [279] [280] [281] [282] [283] [284] [285] [286] [287] [288] [289] [290] [291] [292] [293] [294] [295] [296] [297] [298] [299] [300] [301] [302] [303] [304] [305] [306] [307] [308] [309] [310] [311] [312] [313] [314] [315] [316] [317] [318] [319] [320] [321] [322] [323] [324] [325] [326] [327] [328] [329] [330] [331] [332] [333]