• Welcome to Simple Machines Community Forum. Please login or sign up.
October 20, 2021, 08:47:53 AM

News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord


Kendi sayfamızı nasıl oluştururuz? /index.php?action=sayfa gibi

Started by Elmacik, December 07, 2005, 07:45:59 PM

Previous topic - Next topic

Hkan

İlk yöntem ile bir sayfa yaptım. action=news diye. Bunu nasıl subAction'lara bölebilirim? action=news;sa=economy, action=news;sa=sport gibi? SMF'in subAction içeren kendi sayfalarına baktım; ancak yapamadım. :(

Alpay

Quote from: biggboss on August 08, 2009, 09:38:35 AM
İlk yöntem ile bir sayfa yaptım. action=news diye. Bunu nasıl subAction'lara bölebilirim? action=news;sa=economy, action=news;sa=sport gibi? SMF'in subAction içeren kendi sayfalarına baktım; ancak yapamadım. :(

http://custom.simplemachines.org/mods/index.php?mod=1347

bu modifikasyon o işe yarıyordu ama tam incelemedim :)

Hkan

Ben 1.1.10 kullanıyorum. Bu sadece 2.x sürümleri için geçerli. :(

a11

Smf 2.0 RC2'de yeni bir sayfa nasıl yaratabilirim ?
action=sayfa şeklinde değil de sayfa.php şeklinde ?

Yağız...

Quote from: Mavice on November 12, 2009, 04:10:28 PM
Smf 2.0 RC2'de yeni bir sayfa nasıl yaratabilirim ?
action=sayfa şeklinde değil de sayfa.php şeklinde ?

$ssi_layers = array('main'); olan yeri $ssi_layers = array('html', 'body'); olarak değiştirin.

a11

Dediğiniz gibi yaptım, oldu.
Teşekkür ederim. ;)


title vermek istesek ?



Ebu_Davud

Tema Ayrıştırma Hatası

Alıyorum nerede yanlış yapıyorum acaba

<?php

function template_main()

{

echo 
'


<body bgcolor="#fafafa">

                  <div align="left">
                    <table style="border-width: 0pt; border-collapse: collapse;" width="217" border="1" bordercolor="#111111" cellpadding="0" cellspacing="0" height="29">

                      <tbody><tr>
                        <td style="border-style: none; border-width: medium;" width="217" height="29">&nbsp;
                        

                                      





</td>

                      </tr>
                    </tbody></table>
                  </div>

                  <div align="left">

                  <table style="border-collapse: collapse;" border="0" bordercolor="#111111" cellpadding="0" cellspacing="0" height="100%">
                    <tbody><tr>
                      <td style="font-size: 11px; vertical-align: top; color: rgb(74, 74, 74); font-family: Tahoma; text-align: left;" width="497" height="2" valign="top">
                        <table style="border-collapse: collapse;" width="637" border="0" bordercolor="#111111" cellpadding="3" cellspacing="3">

                          <tbody>
                          <tr>
                            <td class="verdana11" width="678" valign="top">
                            <p style="text-align: center;"><b><font size="3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; KPSS/</font><font size="2">1</font><font size="3"> 
                            Puan 
                            Hesaplama Sistemi </font>
                            <font color="#fafafa" size="1">oss-sbs.bilgisi.gen.tr</font></b><br>&nbsp;</p>
                              <form>

                              <div style="width: 448px; height: 218px;" align="center">
                              <center>
                              <table class="verdana11" style="border: 1px solid rgb(51, 102, 153);" width="612" align="center" height="84">
                                <tbody>
                                <tr>
                                <td style="font-size: 11px; vertical-align: top; color: rgb(74, 74, 74); font-family: Tahoma; text-align: left;" width="55" bgcolor="#eaeaea" height="44">&nbsp;</td>
                                <td style="font-size: 11px; vertical-align: top; color: rgb(74, 74, 74); font-family: Tahoma; text-align: left;" width="97" align="middle" bgcolor="#eaeaea" height="44">
                                <p style="text-align: center;"><b>
                                <span class="verdana10"><font size="2">Genel 
                                Yetenek</font></span></b></p></td>

                                <td style="font-size: 11px; vertical-align: top; color: rgb(74, 74, 74); font-family: Tahoma; text-align: left;" width="104" align="middle" bgcolor="#eaeaea" height="44">
                                <p style="text-align: center;"><b>
                                <span class="verdana10"><font size="2">Genel 
                                Kültür</font></span></b></p></td>
                                <td style="font-size: 11px; vertical-align: top; color: rgb(74, 74, 74); font-family: Tahoma; text-align: left;" width="41" align="middle" bgcolor="#eaeaea" height="44">
                                <p style="text-align: center;">
                                <span class="verdana10"><font size="2"><b>Eğitim 
                                Bilimleri</b></font></span></p></td>
                                </tr>
                                <tr>

                                <td style="font-size: 11px; vertical-align: top; color: rgb(74, 74, 74); font-family: Tahoma; text-align: left;" width="55" align="middle" bgcolor="#eaeaea" height="32">
                                <b><font color="#cc0033">Netleriniz</font></b></td>
                                <td style="font-size: 11px; vertical-align: top; color: rgb(74, 74, 74); font-family: Tahoma; text-align: left;" width="97" align="middle" bgcolor="#f9f9f9" height="32">
                                <p style="text-align: center;"><font color="#808000" face="Verdana"><input class="kutu_genel" style="text-align: center;" onfocus="this.value='';" tabindex="5" maxlength="5" size="4" value="0" name="tur1"> </font></p></td>
                                <td style="font-size: 11px; vertical-align: top; color: rgb(74, 74, 74); font-family: Tahoma; text-align: left;" width="104" align="middle" bgcolor="#f9f9f9" height="32">
                                <p style="text-align: center;"><font color="#808000" face="Verdana"><input class="kutu_genel" style="text-align: center;" onfocus="this.value='';" tabindex="5" maxlength="5" size="4" value="0" name="sos1"> </font></p></td>
                                <td style="font-size: 11px; vertical-align: top; color: rgb(74, 74, 74); font-family: Tahoma;" width="41" align="middle" bgcolor="#f9f9f9" height="32">

                                <p style="text-align: center;"><font color="#808000">
                                <input class="kutu_genel" style="text-align: center;" onfocus="this.value='';" tabindex="5" maxlength="5" size="7" value="0" name="mat1"></font></p></td>
                                </tr></tbody></table>
                              <p><b><input onclick="textln(this.form)" value="Hesapla" name="button" type="button"> 
<input value="Temizle" name="B1" type="reset"> </b></p>
                              <p>
                              ---------------------------------------------------------------------------------</p>
                              <p>

                              &nbsp;

</p>
                              <table class="verdana11" id="table1" style="border: 1px solid rgb(51, 102, 153);" width="386" align="center" height="63">
                                <tbody>
                                <tr>
                                <td style="font-size: 11px; vertical-align: top; color: rgb(74, 74, 74); font-family: Tahoma; text-align: left;" width="70" bgcolor="#eaeaea" height="22">&nbsp;</td>
                                <td style="font-size: 11px; vertical-align: top; color: rgb(74, 74, 74); font-family: Tahoma;" width="73" align="middle" bgcolor="#eaeaea" height="22">
                                <p style="text-align: center;">
                                <b>

                                <span class="verdana10"><font size="2">kpss10
                                </font></span></b></p></td>
                                <td style="font-size: 11px; vertical-align: top; color: rgb(74, 74, 74); font-family: Tahoma;" width="60" align="middle" bgcolor="#eaeaea" height="22">
                                <p style="text-align: center;">
                                <b>
                                <span class="verdana10"><font size="2">kpss1</font></span></b></p></td>
                                <td style="font-size: 11px; vertical-align: top; color: rgb(74, 74, 74); font-family: Tahoma;" width="60" align="middle" bgcolor="#eaeaea" height="22">
                                <p style="text-align: center;">
                                <b>

                                <span class="verdana10"><font size="2">kpss2</font></span></b></p></td>
                                </tr>
                                <tr>
                                <td style="font-size: 11px; vertical-align: top; color: rgb(74, 74, 74); font-family: Tahoma; text-align: left;" width="70" align="middle" bgcolor="#eaeaea">
                                <b><font color="#cc0033">Puanlarınız</font></b></td>
                                <td style="font-size: 11px; vertical-align: top; color: rgb(74, 74, 74); font-family: Tahoma;" width="73" align="middle" bgcolor="#f9f9f9">
                                <p style="text-align: center;"><font color="#808000" face="Verdana"><input class="kutu_genel" style="text-align: center;" onfocus="this.value='';" tabindex="5" maxlength="5" size="5" value="0" name="soz1"> </font></p></td>

                                <td style="font-size: 11px; vertical-align: top; color: rgb(74, 74, 74); font-family: Tahoma;" width="60" align="middle" bgcolor="#f9f9f9">
                                <p style="text-align: center;"><font color="#808000" face="Verdana"><input class="kutu_genel" style="text-align: center;" onfocus="this.value='';" tabindex="5" maxlength="5" size="5" value="0" name="ea1"> </font></p></td>
                                <td style="font-size: 11px; vertical-align: top; color: rgb(74, 74, 74); font-family: Tahoma;" width="60" align="middle" bgcolor="#f9f9f9">
                                <p style="text-align: center;"><font color="#808000"><input class="kutu_genel" style="text-align: center;" onfocus="this.value='';" tabindex="5" maxlength="5" size="5" value="0" name="say1"> </font></p></td>
                                </tr></tbody></table></center></div>
                              <div align="center">
                              <center>
                              <p></p></center></div></form>

                              <script language="JavaScript">

function textln(form) {

form.soz1.value =(11.991 +0.3* form.tur1.value + 0.3* form.sos1.value+ 0.4*form.mat1.value);
    form.ea1.value =(31.472+ 0.7 * form.tur1.value + 0.3 * form.sos1.value + 0* form.mat1.value);
form.say1.value =(31.721+ 0.6 * form.tur1.value + 0.4 * form.sos1.value + 0* form.mat1.value);


}


                            </script>
                              <p>
                              &nbsp;</p>
                              <p>
                              <b><font color="#cc0033">Not :</font></b> Bu KPSS 
                              Puan hesabı modülü 2004, 2005, 2006, 2007 standart 
                              puanlarının ortalaması olarak hesaplanmış olup 
                              puanlar&nbsp; <b>-4 </b>ve<b> +4</b> arasındadır 
                              ve kesinlikle&nbsp; kendi uğraşlarım sonucu 
                              oluşturulmuştur katsayılar aob ye göre 
                              değiştiğinden&nbsp; -+4 sınırı dışında da 
                              çıkabilmektedir. 2007 sonuçlarında -+3 yaklaşık 
                              değere ulaşmıştır. Türkiye de şimdiye kadar ilk 
                              kez oluşturulan bu modülde puanlarınızın her zaman 
                              yüksek çıkması dileklerimle...</p>
                            <p>

                            

<script language="JavaScript">
<!--
if (document.all)
document.onmousedown=new Function("if (event.button==2||event.button==3)alert(\'Öss-Sbs.bilgisi.gen.tr\')")
// -->
</script>
                  
                    </div> '
;


}
?>
Hatim Yap [nofollow]
İlahi Dinle [nofollow]
Rss [nofollow]
İslami Forum [nofollow]

Hkan

Sanırım hata bu değil ama yine de söyleyeyim dedim; kodun içinde body etiketi kullanmışsınız. index.template.php'de zaten tanımlanıyor daha önce bu etiket. Onu silip de deneyin.

Advertisement: