Gönderen Konu: SMF' de Çok Sık Aranan ve İstenen Konular  (Okunma sayısı 703 defa)

0 Üye ve 1 Ziyaretçi konuyu incelemekte.

Çevrimdışı romeoo

  • İleti: 508
  • Puan: 31
    • A'dan Z'ye Photoshop Dersleri ve Eklentileri
SMF' de Çok Sık Aranan ve İstenen Konular
« : Mayıs 05, 2009, 17:50:30 ÖS »
Merhaba arkadaşlar. Bu konuların bir kısmı sitede ayrı ayrı mevcut olabilir. Ben hepsini bir başlık altında toplayarak yeni başlayan arkadaşlara bir kaynak olması açısından bu şekilde bir çalışma yapmak istedim. Öğrendiklerimi bir dosya da topladım ve burada paylaşıyorum. Umarım faydalı olur. ( Konunun devamı ilgi ve isteklere göre gelecektir. ) Konu sabitlenirse daha kolay ulaşılabilir bir hale gelir.

1-) Profil Alanındaki "online" "offline" Yazılarını Silmek

Temanızın Display.template.php dosyasında bulun ve silin;

Kod: [Seç]
<span class="smalltext"> ' . $message['member']['online']['text'] . '</span>
2-) Ana Sayfa Altına " Her saniye Büyümekteyiz " Kurulumu; ( www.horbil.com/index.php sayfa altında görebilirsiniz.)

Temanızın Boardindex.template.php dosyasında bulun;

Kod: [Seç]
', $txt['most_online_ever'], ': ', $modSettings['mostOnline'], ' (' , timeformat($modSettings['mostDate']), ')
</span>

Altına Ekleyin;

Kod: [Seç]
<br/>
<font color="#FF0000"><script language="JavaScript">

function setcountup(theyear,themonth,theday){
yr=theyear;mo=themonth;da=theday
}
//////////CONFIGURE THE countup SCRIPT HERE//////////////////
//STEP 1: Configure the date to count up from, in the format year, month, day:
//This date should be less than today
setcountup(2006,12,01)
//STEP 2: Configure text to be attached to count up
var displaymessage=" [Her saniye büyümekteyiz] "
//STEP 3: Configure the below 5 variables to set the width, height, background color, and text style of the countup area
var countupwidth=\'95%\'
var countupheight=\'20px\' //applicable only in NS4
var countupbgcolor=\'alt1\'
var opentags=\'<span class="smallfont">\'
var closetags=\'</span>\'
//////////DO NOT EDIT PASS THIS LINE//////////////////
var montharray=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec")
var crosscount=\'\'
function start_countup(){
if (document.layers)
document.countupnsmain.visibility="show"
else if (document.all||document.getElementById)
crosscount=document.getElementById&&!document.all?document.getElementById("countupie") : countupie
countup()
}
if (document.all||document.getElementById)
document.write(\'<span id="countupie" style="width:\'+countupwidth+\'; background-color:\'+countupbgcolor+\'"></span>\')
window.onload=start_countup

function countup(){
var today=new Date()
var todayy=today.getYear()
if (todayy < 1000)
todayy+=1900
var todaym=today.getMonth()
var todayd=today.getDate()
var todayh=today.getHours()
var todaymin=today.getMinutes()
var todaysec=today.getSeconds()
var todaystring=montharray[todaym]+" "+todayd+", "+todayy+" "+todayh+":"+todaymin+":"+todaysec
paststring=montharray[mo-1]+" "+da+", "+yr
dd=Date.parse(todaystring)-Date.parse(paststring)
dday=Math.floor(dd/(60*60*1000*24)*1)
dhour=Math.floor((dd%(60*60*1000*24))/(60*60*1000)*1)
dmin=Math.floor(((dd%(60*60*1000*24))%(60*60*1000))/(60*1000)*1)
dsec=Math.floor((((dd%(60*60*1000*24))%(60*60*1000))%(60*1000))/1000*1)
if (document.layers){
document.countupnsmain.document.countupnssub.document.write(opentags+dday+ " gün, "+dhour+" saat, "+dmin+" dakika ve "+dsec+" saniyedir sizlerleyiz... "+displaymessage+closetags)
document.countupnsmain.document.countupnssub.document.close()
}
else if (document.all||document.getElementById)
crosscount.innerHTML=opentags+dday+ " gün, "+dhour+" saat, "+dmin+" dakika ve "+dsec+" saniye "+displaymessage+closetags
setTimeout("countup()",1000)
}
</script></font>

Kodlardaki setcountup(2006,12,01) kısmını bulun ve sitenizin yayın tarihini yazın.

3-) Ana Sayfadaki Duyurular şeklinde Reklamlar alanı oluşturmak;

Temanızın index.template.php dosyasında bulun;

Kod: [Seç]
// The main content should go here.
echo '
<div id="bodyarea" style="padding: 1ex 0px 2ex 0px;">';
}

Öncesine ekleyin;


Kod: [Seç]
echo '
<br>
<table border="0" width="100%" class="tborder" cellspacing="' , ($context['browser']['is_ie'] || $context['browser']['is_opera6']) ? '1' : '0' , '" cellpadding="4" style="margin-bottom: 2ex;">
<tr>
<td class="catbg">Reklamlar</td>
</tr>
<tr>
<td valign="middle" align="center" height="60">';
echo'

Reklam kodu buraya koyulacak.

</table>';

4-) Mesaj Alanını Daraltıp, Profil Alanını Genişletmek;

Temanızın Display.template.php dosyasında bulun ;

Kod: [Seç]
// Done with the information about the poster... on to the post itself.
echo '
</div>
</td>
<td valign="top" width="85%" height="100%">

Burada gördüğünüz width="85%"  değerini azaltırsanız profil alanı genişler. Arttırırsanız mesaj alanı genişler.

5-) Üye Profil Alanını Çerçeve İçine Almak;

Display.template.php' de bulun;

Kod: [Seç]
        // Show the post group if and only if they have no other group or the option is on, and they are in a post group.
         if ((empty($settings['hide_post_group']) || $message['member']['group'] == '') && $message['member']['post_group'] != '')
            echo '

Bununla değiştirin;

Kod: [Seç]
         // Show the post group if and only if they have no other group or the option is on, and they are in a post group.
         if ((empty($settings['hide_post_group']) || $message['member']['group'] == '') && $message['member']['post_group'] != '')
            echo '
    <fieldset>
<legend><b>Üye Bilgileri</b></legend>

Çerçeveyi oluşturan kod gördüğünüz üzere şu kısım;


Kod: [Seç]
<fieldset>
<legend><b>Üye Bilgileri</b></legend>

Bu çerçeveyi çeşitli yerlere koyabilirsiniz. Örneğin;

"// Show information about the poster of this message" kodundan sonra birkaç tane "echo"  kodu bulunmakta. Yukarıdaki çerçeve kodunu bu "echo" kodların altına deneme yanılma yoluyla yedek alarak yapıştırın.

6-) Sitenizdeki Yazı Boyutlarını Ayarlamak;

style.css' de bu kodu bulun, small yazan yeri kendiniz ayarlayın.

Kod: [Seç]
/* By default (td, body..) use Tahoma in black. */
body, td, th
{
   color: #000000;
   font-size: small;
   font-family: tahoma, sans-serif;

Çöl Ateşi teması kullananlar bu kısmı düzenleyecek;

Kod: [Seç]
/* By default (td, body..) use verdana in black. */
body, td, th, tr
{
color: #000000;
font-size: small;
font-family: verdana, sans-serif;
}

7-) Sabit ve Normal Konuları Ayırma;

MessageIndex.template.php' de bulun;

Kod: [Seç]
foreach ($context['topics'] as $topic)
{

Bununla değiştirin;

Kod: [Seç]
$stickybar = false;
$normalbar = false;

foreach($context['topics'] as $topic)
{
if($topic['is_sticky'] && !$stickybar)
{
echo'<tr class="titlebg"><td colspan="', empty($options['display_quick_mod']) ? '7' : '8', '"><center><img src="', $settings['images_url'], '/icons/quick_sticky.gif" width="16"  /><b> Sabit Konular</b></center></td></tr>';
$stickybar = true;
}
else if(!$topic['is_sticky'] && $stickybar && !$normalbar)
{
echo'<tr class="titlebg"><td colspan="', empty($options['display_quick_mod']) ? '7' : '8', '"><center><img src="' . $settings['images_url'] . '/post/xx.gif" alt="" align="middle" /><b> Normal Konular</b></center></td></tr>';
$normalbar = true;
}

Dilbermc teması kullananlar için; bunu bulun;

Kod: [Seç]
foreach ($context['topics'] as $topic)
{

Bununla değiştirin;

Kod: [Seç]
$stickybar = false;
$normalbar = false;

foreach($context['topics'] as $topic)
{
if($topic['is_sticky'] && !$stickybar)
{
echo'<tr class="titlebg"><td colspan="', empty($options['display_quick_mod']) ? '7' : '8', '"><center><img src="', $settings['images_url'], '/icons/quick_sticky.gif" width="16"  /><b> Sabit Konular</b></center></td></tr>';
$stickybar = true;
}
else if(!$topic['is_sticky'] && $stickybar && !$normalbar)
{
echo'<tr class="titlebg"><td colspan="', empty($options['display_quick_mod']) ? '7' : '8', '"><center><img src="' . $settings['images_url'] . '/post/xx.gif" alt="" align="middle" /><b> Normal Konular</b></center></td></tr>';
$normalbar = true;
}

Not : Modifikasyon Sonucu Renk Bozukluğu Yaşarsanız Style.css de Aşağıdaki Kodu Bulup Kendinize göre Editleyin;

Kod: [Seç]
.windowbg3
{
color: #000000;
background-color: #ECECEC;
background-image: url('images/windowbg.gif');
background-repeat: repeat-x;
}

8-) Üye Profil Alanını Ortalamak;

display.template.php içinde bulun;

Kod: [Seç]
// Show information about the poster of this message.
      echo '
            <table width="100%" cellpadding="5" cellspacing="0" style="table-layout: fixed;">
               <tr>
                  <td valign="top"width="16%" rowspan="2" style="overflow: hidden;">
                     <b>', $message['member']['link'], '</b>
                     <div class="smalltext">';

Bununla değiştirin;

Kod: [Seç]
// Show information about the poster of this message.
      echo '
            <table width="100%" cellpadding="5" cellspacing="0" style="table-layout: fixed;">
               <tr>
                  <td valign="top" align="center" width="16%" rowspan="2" style="overflow: hidden;">
                     <b>', $message['member']['link'], '</b>
                     <div class="smalltext">';

9-) Bbc Editöre Hide butonu Eklemek ( Hide Tag modu kullananlar için );

Post.template.php içerisinde bulun;


Kod: [Seç]
'list' => array('code' => 'list', 'before' => '[list]\n[li]', 'after' => '[/li]\n[li][/li]\n[/list]', 'description' => $txt[261]),
Altına Ekleyin;

Kod: [Seç]
'hide' => array('code' => 'hide', 'before' => '[hide]', 'after' => '', 'description' => 'Gizle'),

Bunları yaptıktan sonra images/bbc klasörüne hide.gif isimli bir resim yükleyin.

10-) Ana Sayfaya Anket Koymak ;

BoardIndex.template.php' de bulun:


Kod: [Seç]
// Show the news fader?  (assuming there are things to show...)
Üzerine ekleyin:


Kod: [Seç]
echo '
<table border="0" width="100%" class="tborder" cellspacing="' , ($context['browser']['is_ie'] || $context['browser']['is_opera6']) ? '1' : '0' , '" cellpadding="4" style="margin-bottom: 2ex;">
<tr>
<td class="catbg"> &nbsp;Anket</td>
</tr>
<tr>
<td valign="middle" align="center" height="60">';
include('./SSI.php');
ssi_recentPoll();
echo '
</td>
</tr>
</table>';

Ziyaretçilerin görmesini istemiyorsanız asağıdaki kodu ekleyin:


Kod: [Seç]
echo '
<table border="0" width="100%" class="tborder" cellspacing="' , ($context['browser']['is_ie'] || $context['browser']['is_opera6']) ? '1' : '0' , '" cellpadding="4" style="margin-bottom: 2ex;">
<tr>
<td class="catbg"> &nbsp;Anket</td>
</tr>
<tr>';
if ($context['user']['is_logged'])
{
        echo '
<td valign="middle" align="center" height="60">';
include('./SSI.php');
ssi_recentPoll();
echo '
</td>';
}
        else
        {
        echo '
<td valign="middle" align="center" height="60">
<b>Üzgünüm ziyaretçi,Anketi göremessiniz.</b>
</td>';
}echo '
</tr>
</table>';
Konuyu Paylaş:
  delicious  facebook  twitter  google
PROFESYONEL LOGO YAPILIR...

 

Benzer Konular

  Konu / Başlatan Yanıt Son İleti
3 Yanıt
4080 Gösterim
Son İleti Eylül 07, 2009, 12:09:30 ÖS
Gönderen: AdmiN
31 Yanıt
7497 Gösterim
Son İleti Mayıs 29, 2011, 19:08:00 ÖS
Gönderen: mert_om
3 Yanıt
1443 Gösterim
Son İleti Kasım 01, 2009, 20:57:50 ÖS
Gönderen: Taslibayir
0 Yanıt
1067 Gösterim
Son İleti Temmuz 29, 2009, 12:09:34 ÖS
Gönderen: AdmiN
3 Yanıt
1000 Gösterim
Son İleti Eylül 23, 2011, 17:48:40 ÖS
Gönderen: WhisperSuLtaN