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

Etiketler: download ilgili

Author Message

Sender

Members


Online status

334 posts

Location: Turkey
Occupation:
Age:

#4593   2007-07-16 01:17 GMT      

Siteyede downloadlara kullanıcının girmesini ama üye olmadan download etmemesini istiyorum.Yani üye olmadan download edemeyecek.Kaanın sitesindeki gibi.

s3tt1ng_bytr

Members


Online status

8 posts

Location: Turkey
Occupation:
Age:

#4597   2007-07-16 09:13 GMT      
kardeş o saman posthide yi b1r dene istersen .... tam olaraq anlamadım ama herhalde bunu demeq istiosun !!!

Kaan

Moderators


Online status

1,988 posts
http://www.ntka.org
Pagerank: 3

Location: Turkey
Occupation: Destek
Age: 25

#4602   2007-07-16 13:46 GMT      

Bunun için eklenti vardı yayınlamıştım burada page.php diye aratırsan bulursun..

Xiao

Moderators


Online status

866 posts
http://www.seditione.com
Pagerank: 0

Location: Turkey Trabzon
Occupation: Orman Mühendisi
Age: 30

#4606   2007-07-16 16:10 GMT      
system/core/page/page.inc.php yi aç
bul:
Code:
if($pag['page_file'])
{
if (!empty($pag['page_url']))
{
$dotpos = strrpos($pag['page_url'],".")+1;
$pag['page_fileicon'] = "system/img/pfs/".strtolower(substr($pag['page_url'], $dotpos, 5)).".gif";
if (!file_exists($pag['page_fileicon']))
{ $pag['page_fileicon'] = "system/img/admin/page.gif"; }
$pag['page_fileicon'] = "<img src=\"".$pag['page_fileicon']."\" alt=\"\">";
}
else
{ $pag['page_fileicon'] = ''; }

$t->assign(array(
"PAGE_FILE_URL" => "page.php?id=".$pag['page_id']."&a=dl",
"PAGE_FILE_SIZE" => $pag['page_size'],
"PAGE_FILE_COUNT" => $pag['page_filecount'],
"PAGE_FILE_ICON" => $pag['page_fileicon']
));
$t->parse("MAIN.PAGE_FILE");
}

Değiştir:
Code:
if($pag['page_file'])
{
if($usr['maingrp'] > 1) {
if (!empty($pag['page_url']))
{
$dotpos = strrpos($pag['page_url'],".")+1;
$pag['page_fileicon'] = "system/img/pfs/".strtolower(substr($pag['page_url'], $dotpos, 5)).".gif";
if (!file_exists($pag['page_fileicon']))
{ $pag['page_fileicon'] = "system/img/admin/page.gif"; }
$pag['page_fileicon'] = "<img src=\"".$pag['page_fileicon']."\" alt=\"\">";
}
else
{ $pag['page_fileicon'] = ''; }

$t->assign(array(
"PAGE_FILE_URL" => "page.php?id=".$pag['page_id']."&amp;a=dl",
"PAGE_FILE_SIZE" => $pag['page_size'],
"PAGE_FILE_COUNT" => $pag['page_filecount'],
"PAGE_FILE_ICON" => $pag['page_fileicon']
));
$t->parse("MAIN.PAGE_FILE");
} else {
$t->parse("MAIN.PAGE_FILE_ERROR");
}
}

skins/temaadi/page.tpl yi aç
bul:
Code:
<!-- BEGIN: PAGE_FILE -->

üstüne ekle
Code:
<!-- BEGIN: PAGE_FILE_ERROR -->
  <div class="error">Giriş yapmadan dosyayı indiremezsiniz.</div>
  <!-- END: PAGE_FILE_ERROR -->
Haziran 2008 Seditio Site Yar??mas? >> http://www.seditione.com

Sender

Members


Online status

334 posts

Location: Turkey
Occupation:
Age:

#4607   2007-07-16 16:19 GMT      
ya bu sanırım seditio için ldu kullanıorum ben :S

Kaan

Moderators


Online status

1,988 posts
http://www.ntka.org
Pagerank: 3

Location: Turkey
Occupation: Destek
Age: 25

#4608   2007-07-16 16:56 GMT      
Bende onu Ldu ya çevirdimde Kullanıyorum Ldu için öyle bir özellik yok..

Yayınladım http://ntka.org/page.php?id=116 burayı incele ve uygula

Sender

Members


Online status

334 posts

Location: Turkey
Occupation:
Age:

#4609   2007-07-16 17:07 GMT      
kaan yaptım ama olmadı.Lütfen üye olun felan demiyor :S

page.tplde <!-- END: PAGE_MULTI --> diye bir şey yoktu benim tpl.de ekledim onu birde altına gelecek olan
<!-- BEGIN: PAGE_FILE_ERROR -->
<div class="error">Dosyayı indirmek için <a href="auth.php?m=auth" title="Register">Giriş </a>, yapın yada <a href="auth.php?m=register" title="Register">Kayıt</a> oLun Lütfen.</div>
<!-- END: PAGE_FILE_ERROR -->

birde benim üyelerin seviye 1 yani ordaki page.inc deki 5'i bir yaptım

page.inc'de tmm ama olmadı :S

Kaan

Moderators


Online status

1,988 posts
http://www.ntka.org
Pagerank: 3

Location: Turkey
Occupation: Destek
Age: 25

#4610   2007-07-16 17:20 GMT      
Guest olarak denedin mi. denemişsindir. sanırım ama bende sorunsuz çalışıyor.

Code:
<!-- BEGIN: PAGE_MULTI -->

<div class="paging">

{PAGE_MULTI_TABNAV}

</div>

<div class="block">
<h5>Summary :</h5>

{PAGE_MULTI_TABTITLES}

</div>

<!-- END: PAGE_MULTI -->



<!-- BEGIN: PAGE_FILE_ERROR -->
<div class="error">Dosyayı indirmek için <a href="auth.php?m=auth" title="Register">Giriş </a>, yapın yada <a href="auth.php?m=register" title="Register">Kayıt</a> oLun Lütfen.</div>
<!-- END: PAGE_FILE_ERROR -->

<!-- BEGIN: PAGE_FILE -->

Sender

Members


Online status

334 posts

Location: Turkey
Occupation:
Age:

#4611   2007-07-16 17:32 GMT      

<!-- BEGIN: PAGE_MULTI -->

diye bir şey yok benim tplde yaw :S

onu nereye koyayım?

Kaan

Moderators


Online status

1,988 posts
http://www.ntka.org
Pagerank: 3

Location: Turkey
Occupation: Destek
Age: 25

#4621   2007-07-16 20:35 GMT      
Code:
<!-- END: PAGE_ADMIN -->

</div>

<div id="main">


{PAGE_TEXT}
</table>



Yukardakilerin Altına ekle Alttakileri.
Quote
Kaan :
Guest olarak denedin mi. denemişsindir. sanırım ama bende sorunsuz çalışıyor.

Code:
<!-- BEGIN: PAGE_MULTI -->

<div class="paging">

{PAGE_MULTI_TABNAV}

</div>

<div class="block">
<h5>Summary :</h5>

{PAGE_MULTI_TABTITLES}

</div>

<!-- END: PAGE_MULTI -->



<!-- BEGIN: PAGE_FILE_ERROR -->
<div class="error">Dosyayı indirmek için <a href="auth.php?m=auth" title="Register">Giriş </a>, yapın yada <a href="auth.php?m=register" title="Register">Kayıt</a> oLun Lütfen.</div>
<!-- END: PAGE_FILE_ERROR -->

<!-- BEGIN: PAGE_FILE -->


Sender

Members


Online status

334 posts

Location: Turkey
Occupation:
Age:

#4626   2007-07-17 09:11 GMT      
Kaan bu benim page.tpl bi eklersen sevinirim.Olmuyor bir türlü :S

Code:
<!-- BEGIN: MAIN -->
<table cellspacing="0" cellpadding="0" class="backgrtop">
<tr>
<td>&nbsp;</td>
</tr>
</table>
<table cellspacing="0" cellpadding="0" class="main">
  <tr>
    <td class="backgr">
<table cellspacing="0" cellpadding="0" class="maintable">
              <tr>
                <td class="backimg1"></td>
              </tr>
</table>
<table cellspacing="0" cellpadding="5" class="maintable">
        <tr>
          <td class="back1"><span class="text2b">{PAGE_TITLE}</span><br />
            {PAGE_DESC}</td>
        </tr>
</table>
<table cellspacing="0" cellpadding="0" class="maintable">
              <tr>
                <td class="backimg1"></td>
              </tr>
</table>
<table cellspacing="0" cellpadding="5" class="maintable">
        <tr>
          <td class="back2">Yazar: {PAGE_AUTHOR}<br />
            Tarih: {PAGE_DATE}<br />
            Ekstra anahtar: {PAGE_KEY}<br />
            Ekleyen: {PAGE_OWNER}<br />
            Göster veya ekle: {PAGE_COMMENTS}<br />
            Ortalama beğeni: {PAGE_RATING} {PAGE_RATE}
            <!-- BEGIN: PAGE_ADMIN -->
            <br />{PAGE_ADMIN_UNVALIDATE} | {PAGE_ADMIN_EDIT}  ({PAGE_ADMIN_COUNT})  |
            <!-- END: PAGE_ADMIN -->
            {BOOKMARK} | <a href="plug.php?e=moderation&t=page&u={PAGE_ID}">Bu sayfayı Yöneticiye Bildir</a>
          </td>
        </tr>
</table>
<!-- BEGIN: PAGE_FILE -->
<table cellspacing="0" cellpadding="0" class="maintable">
              <tr>
                <td class="backimg2"></td>
              </tr>
</table>
<table cellspacing="0" cellpadding="5" class="maintable">
        <tr>
          <td class="pagedl"><br /><img src="skins/{PHP.skin}/img/system/icon-pfs.gif" alt="" />
            <span class="text2b">  İndir:  <a href="{PAGE_FILE_URL}">{PAGE_SHORTTITLE}</a></span><br />
            Size: {PAGE_FILE_SIZE} MB - Hits: {PAGE_FILE_COUNT}<br />
             </td>
        </tr>
</table>
        <!-- END: PAGE_FILE -->
<table cellspacing="0" cellpadding="0" class="maintable">
              <tr>
                <td class="backimg2"></td>
              </tr>
</table>
<table cellspacing="0" cellpadding="5" class="maintable">
        <tr>
          <td><br />
            {PAGE_TEXT}<br />
             </td>
        </tr>
      </table>
<table cellspacing="0" cellpadding="0" class="maintable">
              <tr>
                <td class="backimg1"></td>
              </tr>
</table>
    </td>
  </tr>
</table>
<table cellspacing="0" cellpadding="0" class="backgrbot">
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>
<!-- END: MAIN -->

Kaan

Moderators


Online status

1,988 posts
http://www.ntka.org
Pagerank: 3

Location: Turkey
Occupation: Destek
Age: 25

#4643   2007-07-18 10:34 GMT      
Hangi temayı kullanıyorsun onda test edeyim..

Sender

Members


Online status

334 posts

Location: Turkey
Occupation:
Age:

#4653   2007-07-18 14:53 GMT      

Kaan sen koydun mu benim page.tpl'ye.Koyduysan yayınla deniyim

Kaan

Moderators


Online status

1,988 posts
http://www.ntka.org
Pagerank: 3

Location: Turkey
Occupation: Destek
Age: 25

#4656   2007-07-18 17:12 GMT      
Page.inc.php ye kodları eksiksiz eklediysen aşagıdaki kodlarıda page.tpl olarak kullanabilirsin..

Code:
<!-- BEGIN: MAIN -->
<table cellspacing="0" cellpadding="0" class="backgrtop">
<tr>
<td>&nbsp;</td>
</tr>
</table>
<table cellspacing="0" cellpadding="0" class="main">
  <tr>
    <td class="backgr">
<table cellspacing="0" cellpadding="0" class="maintable">
              <tr>
                <td class="backimg1"></td>
              </tr>
</table>
<table cellspacing="0" cellpadding="5" class="maintable">
        <tr>
          <td class="back1"><span class="text2b">{PAGE_TITLE}</span><br />
            {PAGE_DESC}</td>
        </tr>
</table>
<table cellspacing="0" cellpadding="0" class="maintable">
              <tr>
                <td class="backimg1"></td>
              </tr>
</table>
<table cellspacing="0" cellpadding="5" class="maintable">
        <tr>
          <td class="back2">Yazar: {PAGE_AUTHOR}<br />
            Tarih: {PAGE_DATE}<br />
            Ekstra anahtar: {PAGE_KEY}<br />
            Ekleyen: {PAGE_OWNER}<br />
            Göster veya ekle: {PAGE_COMMENTS}<br />
            Ortalama beğeni: {PAGE_RATING} {PAGE_RATE}
            <!-- BEGIN: PAGE_ADMIN -->
            <br />{PAGE_ADMIN_UNVALIDATE} | {PAGE_ADMIN_EDIT}  ({PAGE_ADMIN_COUNT})  |
            <!-- END: PAGE_ADMIN -->
            {BOOKMARK} | <a href="plug.php?e=moderation&t=page&u={PAGE_ID}">Bu sayfayı Yöneticiye

Bildir</a>
<!-- BEGIN: PAGE_FILE_ERROR -->
<div class="error">Dosyayı indirmek için <a href="auth.php?m=auth" title="Register">Giriş </a>,

yapın yada <a href="auth.php?m=register" title="Register">Kayıt</a> oLun Lütfen.</div>
<!-- END: PAGE_FILE_ERROR -->
<!-- BEGIN: PAGE_FILE -->
          </td>
        </tr>
</table>
<!-- BEGIN: PAGE_FILE -->
<table cellspacing="0" cellpadding="0" class="maintable">
              <tr>
                <td class="backimg2"></td>
              </tr>
</table>
<table cellspacing="0" cellpadding="5" class="maintable">
        <tr>
          <td class="pagedl">

<br /><img src="skins/{PHP.skin}/img/system/icon-pfs.gif" alt="" />
            <span class="text2b">  İndir:  <a

href="{PAGE_FILE_URL}">{PAGE_SHORTTITLE}</a></span><br />
            Size: {PAGE_FILE_SIZE} MB - Hits: {PAGE_FILE_COUNT}<br />
             </td>
        </tr>
</table>
        <!-- END: PAGE_FILE -->
<table cellspacing="0" cellpadding="0" class="maintable">
              <tr>
                <td class="backimg2"></td>
              </tr>
</table>
<table cellspacing="0" cellpadding="5" class="maintable">
        <tr>
          <td><br />
            {PAGE_TEXT}<br />
             </td>
        </tr>
      </table>
<table cellspacing="0" cellpadding="0" class="maintable">
              <tr>
                <td class="backimg1"></td>
              </tr>
</table>
    </td>
  </tr>
</table>
<table cellspacing="0" cellpadding="0" class="backgrbot">
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>
<!-- END: MAIN -->

Sender

Members


Online status

334 posts

Location: Turkey
Occupation:
Age:

#4702   2007-07-19 15:24 GMT      
kaan tpl oldu sanırım ama bu seferde page.inc de surası hata veriyor.

}
$pag['page_fileicon'] = "<img src="".$pag['page_fileicon']."" alt="">";
} else {

Kaan

Moderators


Online status

1,988 posts
http://www.ntka.org
Pagerank: 3

Location: Turkey
Occupation: Destek
Age: 25

#4720   2007-07-19 21:32 GMT      
Tekrar kontrol et eklediğin kodları ve yerlerini dogru yerlere eklediğinden emin ol.

Sender

Members


Online status

334 posts

Location: Turkey
Occupation:
Age:

#4785   2007-07-20 15:59 GMT      
yok kaan yaw aynı satırlar hata veriyor :S
> 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]