UzmanWeb.Net
  ANA SAYFA   FORUM   RESİMLER   GÖRSEL DERSLER   TOPLİST   DERSLER   İLETİŞİM

Mayıs 16, 2008, 13:23:24 ÖS *
Merhaba, Ziyaretçi. Lütfen giriş yapın veya üye olun.

Kullanıcı adınızı, parolanızı ve aktif kalma süresini giriniz
 
   Forum   Yardım Oyun Giriş Yap Kayıt  
Sayfa: [1]   Aşağı git
  Yazdır  
Gönderen Konu: SMF Default Temada İşinize Yarayacak Değişiklikler  (Okunma Sayısı 1460 defa)
0 Üye ve 1 Ziyaretçi konuyu incelemekte.
AdmiN
Genel Sorumlu
Administrator
*

Puan: 287
Offline Offline

Cinsiyet: Bay
İsim: Adem TÜRK
Meslek: Öğretmen
Mesaj Sayısı: 2816


~|| Bilginin Gücü ||~

Aktiflik
Deneyim
Seviye
WWW Stats
« : Mart 25, 2007, 19:18:53 ÖS »
Aşağıdaki listedeki kullanıcılar bu konu için teşekkür ediyorlar!Teşekkür Et

Buradaki kodlar ve modüller Linkleri Görebilmek İçin
Kayıt Olun veya Giriş Yapın
www.simplemachines.org
, smf.gen.tr ve diğer smf destek sitelerinden alnmıştır.Amacım buradaki smf kullanan arkadaşlara yardımcı olmaktır.

-- Images Hack'ı foruma entegre etmek --

Temanız/Post.template.php i açın

Kod:
<textarea class="editor" name="', $context['post_box_name'], '" rows="', $context['post_box_rows'], '" cols="', $context['post_box_columns'], '" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);" onchange="storeCaret(this);" tabindex="', $context['tabindex']++, '"', isset($context['post_error']['no_message']) || isset($context['post_error']['long_message']) ? ' style="border: 1px solid red;"' : '', '>', $message, '</textarea>

Altına ekleyin

Kod:
<table><tr>
<td><b>ImageShack Imaj Yükleme</b></td>
<td><iframe src="http://imageshack.us/iframe.php?txtcolor=111111" scrolling="no" frameborder="0" width="345" height="80">
Bu özelliği kullanabilmeniz için browser\'ınızın Iframe\'i desteklemesi gerekmektedir..</iframe></td>
   </tr></table>


"Bu Konuya Teşekkür Edenler":
Kadir_21, retry, ZaFeRySb, qaTh ., gevv
Logged

Soru sormadan ve yeni konu açmadan önce arama yapınız.
Konulara teşekkür mesajı yazmayın, teşekkür et düğmesine tıklayınız.
AdmiN
Genel Sorumlu
Administrator
*

Puan: 287
Offline Offline

Cinsiyet: Bay
İsim: Adem TÜRK
Meslek: Öğretmen
Mesaj Sayısı: 2816


~|| Bilginin Gücü ||~

Aktiflik
Deneyim
Seviye
WWW Stats
« Yanıtla #1 : Mart 25, 2007, 19:24:10 ÖS »
Aşağıdaki listedeki kullanıcılar bu konu için teşekkür ediyorlar!Teşekkür Et

-- Profil Alanını Çerçeve içine Alma  --

Display.template.php yi açın aşağıdaki kodu bulun

Kod:
         // 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 '

Bu şekilde değiştirin.

Kod:
// 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>

Tüm çerçeveyi oluşturan kod bu.Sadece bunu gerekli yere ekleyerek te aynı işlemi yapabilirsiniz.

Kod:
<fieldset>
<legend><b>Üye Bilgileri</b></legend>

örneğin :
// Show information about the poster of this message.

kodundan sonra 3-5 tane

echo ' kodlarına rastlıyacaksınız . yukarıdaki çerçeve kodunu bu

echo ' kodların altına deneme yanılma yoluyla yedek alarak yapıştırn. nasıl hoşunuza gidiyorsa öyle kullanın.
Logged

Soru sormadan ve yeni konu açmadan önce arama yapınız.
Konulara teşekkür mesajı yazmayın, teşekkür et düğmesine tıklayınız.
AdmiN
Genel Sorumlu
Administrator
*

Puan: 287
Offline Offline

Cinsiyet: Bay
İsim: Adem TÜRK
Meslek: Öğretmen
Mesaj Sayısı: 2816


~|| Bilginin Gücü ||~

Aktiflik
Deneyim
Seviye
WWW Stats
« Yanıtla #2 : Mart 25, 2007, 19:35:50 ÖS »
Aşağıdaki listedeki kullanıcılar bu konu için teşekkür ediyorlar!Teşekkür Et

-- Forum Ana Sayfadki Duyurular Kısmıdını Düzenlemek -- 

avatarın altındaki Duyuru Yazısını Ortalama :

index.template.php'de Bunu BUlup



Kod:
// Show a random news item? (or you could pick one from news_lines...)
if (!empty($settings['enable_news']))
echo '
<td width="90%" class="titlebg2">
<span class="smalltext"><b>', $txt[102], '</b>: ', $context['random_news_line'], '</span>
</td>';
echo '

Buradaki kodlarla değiştirin.

Kod:

// Show a random news item? (or you could pick one from news_lines...)
if (!empty($settings['enable_news']))
echo '
<td width="90%" class="titlebg2">
<span class="smalltext"><center><b>', $txt[102], '</b>:</center> ', $context['random_news_line'], '</span>
</td>';
echo '

kategorilerin üstündeki tablo olan duyurulardaki yazıyı ortalamak için

Boardİndex.template.php 'yi açın
BU KODLARI BULUN

Kod:
// Show the news fader?  (assuming there are things to show...)
if ($settings['show_newsfader'] && !empty($context['fader_news_lines']))
{
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;', $txt[102], '</td>
</tr>

BUNUNLA DEĞİŞTİRİN

Kod:
// Show the news fader?  (assuming there are things to show...)
if ($settings['show_newsfader'] && !empty($context['fader_news_lines']))
{
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"><center> &nbsp;', $txt[102], '</center></td>
</tr>

Duyurular yazısını düzenlemek için: Ör:
(¯`•.(¯`•.Duyurular.•´¯).•´¯)


Kod:
<td class="catbg"><center>(¯`•.(¯`•. &nbsp;', $txt[102], '.•´¯).•´¯)</center></td>

veya

default\languages index.turkish.php da bul Duyurular yazısını. böyle değiştirin 

Kod:
(¯`•.(¯`•.Duyurular.•´¯).•´¯)   

 
 
Logged

Soru sormadan ve yeni konu açmadan önce arama yapınız.
Konulara teşekkür mesajı yazmayın, teşekkür et düğmesine tıklayınız.
AdmiN
Genel Sorumlu
Administrator
*

Puan: 287
Offline Offline

Cinsiyet: Bay
İsim: Adem TÜRK
Meslek: Öğretmen
Mesaj Sayısı: 2816


~|| Bilginin Gücü ||~

Aktiflik
Deneyim
Seviye
WWW Stats
« Yanıtla #3 : Mart 25, 2007, 19:37:10 ÖS »
Aşağıdaki listedeki kullanıcılar bu konu için teşekkür ediyorlar!Teşekkür Et

-- Mesaj Başlıklarının üstüne Reklam --

Messageindex.template.php'yi açın

Kod:
   global $context, $settings, $options, $scripturl, $modSettings, $txt;

altına ekleyin


Kod:
if ($message['id'] == $context['first_message'])
echo '
<tr><td class="windowbg1">
<table width="100%" cellpadding="5" cellspacing="0" style="table-layout: fixed;">
<tr><td height="100%" valign="top" style="overflow: hidden;">
<table width="100%" border="0">
  <tr>
  <td align="left" valign="middle" width="25"><img src="' . $settings['images_url'] . '/post/xx.gif" alt="" border="0" /></td>
  <td align="left" valign="middle"><b>Sponsor Bağlantı </b></td>
  <td align="right" valign="bottom" height="20" nowrap="nowrap" style="font-size: smaller;"></td>
  </tr>
</table>
  <hr width="100%" size="1" class="hrcolor" />
<div style="overflow: auto; width: 100%;">
 
  REKLAM KODLARINI BURAYA EKLEYİN </div>
            <table width="100%" border="0" style="table-layout: fixed;">
<tr><td align="left" colspan="2" class="smalltext" width="100%"></td></tr>
<tr><td align="left" valign="bottom" class="smalltext"></td>
<td align="right" valign="bottom" class="smalltext"><img src="' . $settings['images_url'] . '/ip.gif" alt="" border="0" />
Logged </td>
</tr>
            </table></td>
  </tr>
</table>
</td></tr>';
Logged

Soru sormadan ve yeni konu açmadan önce arama yapınız.
Konulara teşekkür mesajı yazmayın, teşekkür et düğmesine tıklayınız.
AdmiN
Genel Sorumlu
Administrator
*

Puan: 287
Offline Offline

Cinsiyet: Bay
İsim: Adem TÜRK
Meslek: Öğretmen
Mesaj Sayısı: 2816


~|| Bilginin Gücü ||~

Aktiflik
Deneyim
Seviye
WWW Stats
« Yanıtla #4 : Mart 25, 2007, 19:51:17 ÖS »
Aşağıdaki listedeki kullanıcılar bu konu için teşekkür ediyorlar!Teşekkür Et

-- konu içinde extra yeni konu butonu  --

Display.template.php de aşağıdaki kodu bulun.


Kod:
'reply' => array('test' => 'can_reply', 'text' => 146, 'image' => 'reply.gif', 'lang' => true, 'url' => $scripturl . '?action=post;topic=' . $context['current_topic'] . '.' . $context['start'] . ';num_replies=' . $context['num_replies']),

altına ekle buradaki kodu ekleyin.

Kod:
'new_topic' => array((allowedTo('post_new')) ? 1 : 'test' => 'nothinglol', 'text' => 'smf258', 'image' => 'new_topic.gif', 'lang' => true, 'url' => $scripturl . '?action=post;board=' . $context['current_board'] . '.0'),

« Son Düzenleme: Mart 25, 2007, 19:55:06 ÖS Gönderen: AdmiN » Logged

Soru sormadan ve yeni konu açmadan önce arama yapınız.
Konulara teşekkür mesajı yazmayın, teşekkür et düğmesine tıklayınız.
AdmiN
Genel Sorumlu
Administrator
*

Puan: 287
Offline Offline

Cinsiyet: Bay
İsim: Adem TÜRK
Meslek: Öğretmen
Mesaj Sayısı: 2816


~|| Bilginin Gücü ||~

Aktiflik
Deneyim
Seviye
WWW Stats
« Yanıtla #5 : Mart 25, 2007, 20:17:01 ÖS »
Aşağıdaki listedeki kullanıcılar bu konu için teşekkür ediyorlar!Teşekkür Et

-- Profil Alanında Durumum Modu--

Durumum modu (profilde) resim açıklıyor zaten. ekte bulunan zip içindeki resimleri temanızın default/imagese upload edin önce

sonra Profile.template.php yi açın bulun

Kod:
<td><a href="', $context['member']['website']['url'], '" target="_blank">', $context['member']['website']['title'], '</a></td>

sonrasına ekleyin

            
Kod:
', !empty($context['member']['options']['durumum_tab']) ? '</tr><tr>
<td><b>Durumum: </b></td>
<td>' . $context['member']['options']['durumum_tab'] . '</td>' : '', '

bulun

Kod:
<td><input type="text" name="websiteUrl" size="50" value="', $context['member']['website']['url'], '" /></td>

sonrasına ekleyin

Kod:
</tr><tr>
<td><b>Durumum: </b></td>
<td><select name="default_options[durumum_tab]">
<option', @$context['member']['options']['durumum_tab'] == 'agliyom' ? ' selected="selected"' : '', '>agliyom</option>
<option', @$context['member']['options']['durumum_tab'] == 'alayci' ? ' selected="selected"' : '', '>alayci</option>
<option', @$context['member']['options']['durumum_tab'] == 'artiz' ? ' selected="selected"' : '', '>artiz</option>
<option', @$context['member']['options']['durumum_tab'] == 'asabi' ? ' selected="selected"' : '', '>asabi</option>
<option', @$context['member']['options']['durumum_tab'] == 'bravo' ? ' selected="selected"' : '', '>bravo</option>
<option', @$context['member']['options']['durumum_tab'] == 'capkin' ? ' selected="selected"' : '', '>capkin</option>
<option', @$context['member']['options']['durumum_tab'] == 'dans' ? ' selected="selected"' : '', '>dans</option>
<option', @$context['member']['options']['durumum_tab'] == 'deli' ? ' selected="selected"' : '', '>deli</option>
<option', @$context['member']['options']['durumum_tab'] == 'doferim' ? ' selected="selected"' : '', '>doferim</option>
<option', @$context['member']['options']['durumum_tab'] == 'gozkirp' ? ' selected="selected"' : '', '>gozkirp</option>
<option', @$context['member']['options']['durumum_tab'] == 'honk' ? ' selected="selected"' : '', '>honk</option>
<option', @$context['member']['options']['durumum_tab'] == 'katildim' ? ' selected="selected"' : '', '>katildim</option>
<option', @$context['member']['options']['durumum_tab'] == 'acaba' ? ' selected="selected"' : '', '>acaba</option>
<option', @$context['member']['options']['durumum_tab'] == 'kus' ? ' selected="selected"' : '', '>kus</option>
<option', @$context['member']['options']['durumum_tab'] == 'yasasin' ? ' selected="selected"' : '', '>yasasin</option>
<option', @$context['member']['options']['durumum_tab'] == 'uzgun' ? ' selected="selected"' : '', '>uzgun</option>
<option', @$context['member']['options']['durumum_tab'] == 'utanc' ? ' selected="selected"' : '', '>utanc</option>
<option', @$context['member']['options']['durumum_tab'] == 'tehlikeli' ? ' selected="selected"' : '', '>tehlikeli</option>
<option', @$context['member']['options']['durumum_tab'] == 'sirit' ? ' selected="selected"' : '', '>sirit</option>
<option', @$context['member']['options']['durumum_tab'] == 'shock' ? ' selected="selected"' : '', '>shock</option>
<option', @$context['member']['options']['durumum_tab'] == 'sevimli' ? ' selected="selected"' : '', '>sevimli</option>
<option', @$context['member']['options']['durumum_tab'] == 'saskin' ? ' selected="selected"' : '', '>saskin</option>
<option', @$context['member']['options']['durumum_tab'] == 'saldirgan' ? ' selected="selected"' : '', '>saldirgan</option>
<option', @$context['member']['options']['durumum_tab'] == 'korkmus' ? ' selected="selected"' : '', '>korkmus</option>
<option', @$context['member']['options']['durumum_tab'] == 'komik' ? ' selected="selected"' : '', '>komik</option>
<option', @$context['member']['options']['durumum_tab'] == 'kizgin' ? ' selected="selected"' : '', '>kizgin</option>
</select></td>


Display.template.php yi açın aşağıdaki kodu bulun

Kod:
// Done with the information about the poster... on to the post itself.

aşağıdaki kodların yukarıdaki kodun üstüne ekleyin

Kod:
if (empty($message['member']['options']['durumum_tab'])) {
    $message['member']['options']['durumum_tab']='sirit';
}
echo '
   <br><b>Durumum:</b> <br><img src="', $settings['default_images_url'], '/', $message['member']['options']['durumum_tab'], '.gif" /> <br />';

Logged

Soru sormadan ve yeni konu açmadan önce arama yapınız.
Konulara teşekkür mesajı yazmayın, teşekkür et düğmesine tıklayınız.
AdmiN
Genel Sorumlu
Administrator
*

Puan: 287
Offline Offline

Cinsiyet: Bay
İsim: Adem TÜRK
Meslek: Öğretmen
Mesaj Sayısı: 2816


~|| Bilginin Gücü ||~

Aktiflik
Deneyim
Seviye
WWW Stats
« Yanıtla #6 : Mart 25, 2007, 20:20:37 ÖS »
Aşağıdaki listedeki kullanıcılar bu konu için teşekkür ediyorlar!Teşekkür Et

-- Connection Problems Yazısını Değiştirmek  --

Connection Problems Yazısı smf mysql sunucusuna bağlanamadığında veya  hosting firmanızdaki mysql sunucunuz çalışmadığında çıkan uyarıdır..Bu uyarıyı verdiğim bu açıklamaya göre değiştirmek  ya da izah etmek isteyenler aşağıda verdiğim kodları bulup oradaki yazıyı kafanıza göre düzenleyin.

sources/subs-auth.php dosyasını açın aşağıdaki kodu bulun ve hata mesajını istediğiniz gibi düzenleyin.

Kod:
<html>
<head>
<title>Connection Problems</title>
</head>
<body>
<h3>Connection Problems</h3>
Sorry, SMF was unable to connect to the database.  This may be caused by the server being busy.  Please try again later.
</body>
</html>';
Logged

Soru sormadan ve yeni konu açmadan önce arama yapınız.
Konulara teşekkür mesajı yazmayın, teşekkür et düğmesine tıklayınız.
AdmiN
Genel Sorumlu
Administrator
*

Puan: 287
Offline Offline

Cinsiyet: Bay
İsim: Adem TÜRK
Meslek: Öğretmen
Mesaj Sayısı: 2816


~|| Bilginin Gücü ||~

Aktiflik
Deneyim
Seviye
WWW Stats
« Yanıtla #7 : Mart 25, 2007, 20:23:47 ÖS »
Aşağıdaki listedeki kullanıcılar bu konu için teşekkür ediyorlar!Teşekkür Et

-- Duyuruları Bütün Kategorilerde Göstermek --

Duyuruları Bütün Kategorilerde Göstermek(vb deki gibi)

index.template.php dosyasında aşağıdaki kodu bulun.


Kod:
// Show the menu here, according to the menu sub template.
template_menu();

Altına Ekleyin.

Kod:
// Show the news fader?  (assuming there are things to show...)
if ($settings['show_newsfader'] && !empty($context['fader_news_lines']))
{
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"> &nbsp;', $txt[102], '</td>
</tr>
<tr>
<td valign="middle" align="center" height="60">';

// Prepare all the javascript settings.
echo '
<div id="smfFadeScroller" style="width: 90%; padding: 2px;"><b>', $context['news_lines'][0], '</b></div>
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
// The fading delay (in ms.)
var smfFadeDelay = ', empty($settings['newsfader_time']) ? 5000 : $settings['newsfader_time'], ';
// Fade from... what text color? To which background color?
var smfFadeFrom = {"r": 0, "g": 0, "b": 0}, smfFadeTo = {"r": 255, "g": 255, "b": 255};
// Surround each item with... anything special?
var smfFadeBefore = "<b>", smfFadeAfter = "</b>";

var foreColor, backEl, backColor;

if (typeof(document.getElementById(\'smfFadeScroller\').currentStyle) != "undefined")
{
foreColor = document.getElementById(\'smfFadeScroller\').currentStyle.color.match(/#([\da-f][\da-f])([\da-f][\da-f])([\da-f][\da-f])/);
smfFadeFrom = {"r": parseInt(foreColor[1]), "g": parseInt(foreColor[2]), "b": parseInt(foreColor[3])};

backEl = document.getElementById(\'smfFadeScroller\');
while (backEl.currentStyle.backgroundColor == "transparent" && typeof(backEl.parentNode) != "undefined")
backEl = backEl.parentNode;

backColor = backEl.currentStyle.backgroundColor.match(/#([\da-f][\da-f])([\da-f][\da-f])([\da-f][\da-f])/);
smfFadeTo = {"r": eval("0x" + backColor[1]), "g": eval("0x" + backColor[2]), "b": eval("0x" + backColor[3])};
}
else if (typeof(window.opera) == "undefined" && typeof(document.defaultView) != "undefined")
{
foreColor = document.defaultView.getComputedStyle(document.getElementById(\'smfFadeScroller\'), null).color.match(/rgb\((\d+), (\d+), (\d+)\)/);
smfFadeFrom = {"r": parseInt(foreColor[1]), "g": parseInt(foreColor[2]), "b": parseInt(foreColor[3])};

backEl = document.getElementById(\'smfFadeScroller\');
while (document.defaultView.getComputedStyle(backEl, null).backgroundColor == "transparent" && typeof(backEl.parentNode) != "undefined" && typeof(backEl.parentNode.tagName) != "undefined")
backEl = backEl.parentNode;

backColor = document.defaultView.getComputedStyle(backEl, null).backgroundColor.match(/rgb\((\d+), (\d+), (\d+)\)/);
smfFadeTo = {"r": parseInt(backColor[1]), "g": parseInt(backColor[2]), "b": parseInt(backColor[3])};
}

// List all the lines of the news for display.
var smfFadeContent = new Array(
"', implode('",
"', $context['fader_news_lines']), '"
);
// ]]></script>
<script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/fader.js"></script>
</td>
</tr>
</table>';
}


Yalnız aynı kodu BoardIndex.template.php dosyasından silmeniz gerekir.yoksa duyurular iki tane alt alta gözükür
Logged

Soru sormadan ve yeni konu açmadan önce arama yapınız.
Konulara teşekkür mesajı yazmayın, teşekkür et düğmesine tıklayınız.
cynext
Yeni Üye
*

Puan: 0
Offline Offline

İsim: Serkan
Meslek: Öğrenci-Üni.
Mesaj Sayısı: 1


Aktiflik
Deneyim
Seviye
 Stats
« Yanıtla #8 : Mayıs 01, 2007, 14:05:10 ÖS »
Aşağıdaki listedeki kullanıcılar bu konu için teşekkür ediyorlar!Teşekkür Et

Şu -- Profil Alanını Çerçeve içine Alma  -- olayını bir türlü yapamadım.

<legend></legend> kodları hiç bir işe yaramıyor.

İnternet Gazette tema kullanıyorum

Bu tema yüzünden olabilir mi acaba?
Logged
AdmiN
Genel Sorumlu
Administrator
*

Puan: 287
Offline Offline

Cinsiyet: Bay
İsim: Adem TÜRK
Meslek: Öğretmen
Mesaj Sayısı: 2816


~|| Bilginin Gücü ||~

Aktiflik
Deneyim
Seviye
WWW Stats
« Yanıtla #9 : Mayıs 01, 2007, 17:38:11 ÖS »
Aşağıdaki listedeki kullanıcılar bu konu için teşekkür ediyorlar!Teşekkür Et

Kullandığın temanın Display.template.php   dosyasında yapacaksın bu değişiklikleri. 
Logged

Soru sormadan ve yeni konu açmadan önce arama yapınız.
Konulara teşekkür mesajı yazmayın, teşekkür et düğmesine tıklayınız.
havuc64
Yeni Üye
*

Puan: 0
Offline Offline

Cinsiy