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

Etiketler: dosyalar dökümanlar hakkında

Author Message

core1

Members


Online status

137 posts

Location: Turkey
Occupation:
Age:

#18702   2008-03-14 15:33 GMT      

dvdbil in yaptıgı son dosyalar ve dokumanlar'a ben mp3 ler diye bi bölüm açmak istiyorum yani dosyalar , dokumanlar , mp3 gibi nasıl yaparım ?

Dvdbil

Administrator


Online status

2,178 posts
http://www.seditio-tr.com
Pagerank: 0

Location: Turkey istanbul
Occupation: Web Site(ler) İşletmeciliği :)
Age: 28

#18712   2008-03-14 20:14 GMT      
sonsayfalar.php dosyasını alttaki ile değiştir:
Code:
<?PHP

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

[BEGIN_SED]
File=plugins/sonsayfalar/sonsayfalar.php
Version=102+ (110 - 120 - 121)
Updated=2007-may-09
Type=Plugin
Author=Dvdbil
Description=
[END_SED]

[BEGIN_SED_EXTPLUGIN]
Code=sonsayfalar
Part=main
File=sonsayfalar
Hooks=index.tags
Tags=index.tpl:{INDEX_DOKUMANLAR},{INDEX_DOSYALAR}
Minlevel=0
Order=10
[END_SED_EXTPLUGIN]

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

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

if (!$dokumanlar)
{
$sql = sed_sql_query("SELECT page_id, page_alias, page_ownerid, page_title, page_date, page_author, page_count FROM $db_pages WHERE page_state=0 AND page_file=0 ORDER by ".$cfg["plugin"]["sonsayfalar"]["dokumanorder"]." DESC LIMIT ".$cfg["plugin"]["sonsayfalar"]["dokumanlimit"]."");

$dokumanlar = "<h4>Son Eklenen Dökümanlar</h4>";
$dokumanlar .= "<table class=\"cells\"><tr>";
$dokumanlar .= "<td class=\"coltop\">Döküman Adı</td>";
$dokumanlar .= "<td class=\"coltop\">Eklenme Tarihi</td>";
$dokumanlar .= "<td class=\"coltop\">Hit</td>";
$dokumanlar .= "<td class=\"coltop\">Gönderen</td></tr>";

while ($row = sed_sql_fetcharray($sql))
{
$sqluser = sed_sql_query("SELECT user_id, user_name FROM $db_users WHERE user_id='".$row['page_ownerid']."' LIMIT 1");
$rowuser = sed_sql_fetcharray($sqluser);
$row['page_pageurl'] = (empty($row['page_alias'])) ? "page.php?id=".$row['page_id'] : "page.php?al=".$row['page_alias'];
$dokumanlar .= "<tr><td><img src=\"skins/$skin/img/system/arrow-follow.gif\" alt=\"\" /> <a href=\"page.php?id=".$row['page_id']."\">".sed_cc(sed_cutstring(stripslashes($row['page_title']), $cfg["plugin"]["sonsayfalar"]["dokumanbaslik"]))."</a></td>";
$dokumanlar .= "<td>".date($cfg['dateformat'], $row['page_date'] + $usr['timezone'] * 3600)."</a></td>";
$dokumanlar .= "<td style=\"text-align:center;\">".$row['page_count']."</td>";
$dokumanlar .= "<td style=\"text-align:center;\">".sed_build_user($rowuser['user_id'], sed_cc(stripslashes($rowuser['user_name'])))."</td></tr>";
}
$dokumanlar .= "</table>";

sed_cache_store('dokumanlar', $dokumanlar, $cfg["plugin"]["sonsayfalar"]["dokumancache"]);
}

if (!$dosyalar)
{
$sql = sed_sql_query("SELECT page_id, page_alias, page_ownerid, page_title, page_date, page_author, page_count FROM $db_pages WHERE page_state=0 AND page_file=1 ORDER by ".$cfg["plugin"]["sonsayfalar"]["dosyaorder"]." DESC LIMIT ".$cfg["plugin"]["sonsayfalar"]["dosyalimit"]."");

$dosyalar = "<h4>Son Eklenen Dosyalar</h4>";
$dosyalar .= "<table class=\"cells\"><tr>";
$dosyalar .= "<td class=\"coltop\">Dosya Adı</td>";
$dosyalar .= "<td class=\"coltop\">İnidirilme</td>";
$dosyalar .= "<td class=\"coltop\">Eklenme Tarihi</td>";
$dosyalar .= "<td class=\"coltop\">Gönderen</td></tr>";

while ($row = sed_sql_fetcharray($sql))
{
$sqluser = sed_sql_query("SELECT user_id, user_name FROM $db_users WHERE user_id='".$row['page_ownerid']."' LIMIT 1");
$rowuser = sed_sql_fetcharray($sqluser);
$row['page_pageurl'] = (empty($row['page_alias'])) ? "page.php?id=".$row['page_id'] : "page.php?al=".$row['page_alias'];
$dosyalar .= "<tr><td><img src=\"skins/$skin/img/system/arrow-follow.gif\" alt=\"\" /> <a href=\"page.php?id=".$row['page_id']."\">".sed_cc(sed_cutstring(stripslashes($row['page_title']), $cfg["plugin"]["sonsayfalar"]["dosyabaslik"]))."</a></td>";
$dosyalar .= "<td style=\"text-align:center;\">".$row['page_count']."</td>";
$dosyalar .= "<td>".date($cfg['dateformat'], $row['page_date'] + $usr['timezone'] * 3600)."</a></td>";
$dosyalar .= "<td style=\"text-align:center;\">".sed_build_user($rowuser['user_id'], sed_cc(stripslashes($rowuser['user_name'])))."</td></tr>";
}
$dosyalar .= "</table>";

sed_cache_store('dosyalar', $dosyalar, $cfg["plugin"]["sonsayfalar"]["dosyacache"]);
}

$sql = sed_sql_query("SELECT page_id, page_alias, page_ownerid, page_title, page_date, page_author, page_count FROM $db_pages WHERE page_state=0 AND page_cat='mp3' ORDER by page_date DESC");

$mp3ler = "<h4>Son Eklenen Dosyalar</h4>";
$mp3ler .= "<table class=\"cells\"><tr>";
$mp3ler .= "<td class=\"coltop\">Dosya Adı</td>";
$mp3ler .= "<td class=\"coltop\">İnidirilme</td>";
$mp3ler .= "<td class=\"coltop\">Eklenme Tarihi</td>";
$mp3ler .= "<td class=\"coltop\">Gönderen</td></tr>";

while ($row = sed_sql_fetcharray($sql))
{
$sqluser = sed_sql_query("SELECT user_id, user_name FROM $db_users WHERE user_id='".$row['page_ownerid']."' LIMIT 1");
$rowuser = sed_sql_fetcharray($sqluser);
$row['page_pageurl'] = (empty($row['page_alias'])) ? "page.php?id=".$row['page_id'] : "page.php?al=".$row['page_alias'];
$mp3ler .= "<tr><td><img src=\"skins/$skin/img/system/arrow-follow.gif\" alt=\"\" /> <a href=\"page.php?id=".$row['page_id']."\">".sed_cc(sed_cutstring(stripslashes($row['page_title']), $cfg["plugin"]["sonsayfalar"]["dosyabaslik"]))."</a></td>";
$mp3ler .= "<td style=\"text-align:center;\">".$row['page_count']."</td>";
$mp3ler .= "<td>".date($cfg['dateformat'], $row['page_date'] + $usr['timezone'] * 3600)."</a></td>";
$mp3ler .= "<td style=\"text-align:center;\">".sed_build_user($rowuser['user_id'], sed_cc(stripslashes($rowuser['user_name'])))."</td></tr>";
}
$mp3ler .= "</table>";

$t->assign(array(
"INDEX_DOKUMANLAR" => $dokumanlar,
"INDEX_DOSYALAR" => $dosyalar,
"INDEX_MP3LER" => $mp3ler,
));
?>


Test etmeden yazdım kodları, ilgili yerleri kendine göre değiştirirsin.

core1

Members


Online status

137 posts

Location: Turkey
Occupation:
Age:

#18800   2008-03-15 10:11 GMT      

kardeş çok saol eline sağlık
> 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]