Gönderen Konu: SMF Default Temada İşinize Yarayacak Değişiklikler  (Okunma sayısı 10136 defa)

0 Üye ve 1 Ziyaretçi konuyu incelemekte.

Çevrimiçi AdmiN

  • Genel Sorumlu
  • Administrator
  • *
  • İleti: 7919
  • Puan: 747
  • Cinsiyet: Bay
  • ~|| Bilginin Gücü ||~
    • Kişisel Web Sitem
SMF Default Temada İşinize Yarayacak Değişiklikler
« : Mart 25, 2007, 18:18:53 ÖS »
Buradaki kodlar ve modüller 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: [Seç]
<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: [Seç]
<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>

Konuyu Paylaş:
  delicious  facebook  twitter  google

Çevrimiçi AdmiN

  • Genel Sorumlu
  • Administrator
  • *
  • İleti: 7919
  • Puan: 747
  • Cinsiyet: Bay
  • ~|| Bilginin Gücü ||~
    • Kişisel Web Sitem
-SMF Default Temada İşinize Yarayacak Değişiklikler
« Yanıtla #1 : Mart 25, 2007, 18:24:10 ÖS »
-- Profil Alanını Çerçeve içine Alma  --

Display.template.php yi açın aşağıdaki kodu 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 '

Bu şekilde 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>

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

Kod: [Seç]
<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.

Çevrimiçi AdmiN

  • Genel Sorumlu
  • Administrator
  • *
  • İleti: 7919
  • Puan: 747
  • Cinsiyet: Bay
  • ~|| Bilginin Gücü ||~
    • Kişisel Web Sitem
-SMF Default Temada İşinize Yarayacak Değişiklikler
« Yanıtla #2 : Mart 25, 2007, 18:35:50 ÖS »
-- 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: [Seç]
// 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: [Seç]

// 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: [Seç]
// 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: [Seç]
// 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: [Seç]
<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: [Seç]
(¯`•.(¯`•.Duyurular.•´¯).•´¯)   
 
 

Çevrimiçi AdmiN

  • Genel Sorumlu
  • Administrator
  • *
  • İleti: 7919
  • Puan: 747
  • Cinsiyet: Bay
  • ~|| Bilginin Gücü ||~
    • Kişisel Web Sitem
-SMF Default Temada İşinize Yarayacak Değişiklikler
« Yanıtla #3 : Mart 25, 2007, 18:37:10 ÖS »
-- Mesaj Başlıklarının üstüne Reklam --

Messageindex.template.php'yi açın

Kod: [Seç]
   global $context, $settings, $options, $scripturl, $modSettings, $txt;
altına ekleyin


Kod: [Seç]
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>';

Çevrimiçi AdmiN

  • Genel Sorumlu
  • Administrator
  • *
  • İleti: 7919
  • Puan: 747
  • Cinsiyet: Bay
  • ~|| Bilginin Gücü ||~
    • Kişisel Web Sitem
-SMF Default Temada İşinize Yarayacak Değişiklikler
« Yanıtla #4 : Mart 25, 2007, 18:51:17 ÖS »
-- konu içinde extra yeni konu butonu  --

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


Kod: [Seç]
'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: [Seç]
'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, 18:55:06 ÖS Gönderen: AdmiN »

Çevrimiçi AdmiN

  • Genel Sorumlu
  • Administrator
  • *
  • İleti: 7919
  • Puan: 747
  • Cinsiyet: Bay
  • ~|| Bilginin Gücü ||~
    • Kişisel Web Sitem
-SMF Default Temada İşinize Yarayacak Değişiklikler
« Yanıtla #5 : Mart 25, 2007, 19:17:01 ÖS »
-- 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: [Seç]
<td><a href="', $context['member']['website']['url'], '" target="_blank">', $context['member']['website']['title'], '</a></td>

sonrasına ekleyin

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

bulun

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

Kod: [Seç]
</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: [Seç]
// Done with the information about the poster... on to the post itself.
aşağıdaki kodların yukarıdaki kodun üstüne ekleyin

Kod: [Seç]
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 />';


Çevrimiçi AdmiN

  • Genel Sorumlu
  • Administrator
  • *
  • İleti: 7919
  • Puan: 747
  • Cinsiyet: Bay
  • ~|| Bilginin Gücü ||~
    • Kişisel Web Sitem
-SMF Default Temada İşinize Yarayacak Değişiklikler
« Yanıtla #6 : Mart 25, 2007, 19:20:37 ÖS »
-- 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: [Seç]
<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>';

Çevrimiçi AdmiN

  • Genel Sorumlu
  • Administrator
  • *
  • İleti: 7919
  • Puan: 747
  • Cinsiyet: Bay
  • ~|| Bilginin Gücü ||~
    • Kişisel Web Sitem
-SMF Default Temada İşinize Yarayacak Değişiklikler
« Yanıtla #7 : Mart 25, 2007, 19:23:47 ÖS »
-- 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: [Seç]
// Show the menu here, according to the menu sub template.
template_menu();

Altına Ekleyin.

Kod: [Seç]
// 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

Çevrimdışı cynext

  • İleti: 1
  • Puan: 0
-SMF Default Temada İşinize Yarayacak Değişiklikler
« Yanıtla #8 : Mayıs 01, 2007, 13:05:10 ÖS »
Ş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?

Çevrimiçi AdmiN

  • Genel Sorumlu
  • Administrator
  • *
  • İleti: 7919
  • Puan: 747
  • Cinsiyet: Bay
  • ~|| Bilginin Gücü ||~
    • Kişisel Web Sitem
-SMF Default Temada İşinize Yarayacak Değişiklikler
« Yanıtla #9 : Mayıs 01, 2007, 16:38:11 ÖS »
Kullandığın temanın Display.template.php   dosyasında yapacaksın bu değişiklikleri. 

Seo4Smf Tagleri:
 

Benzer Konular

  Konu / Başlatan Yanıt Son İleti
1 Yanıt
2498 Gösterim
Son İleti Şubat 19, 2007, 05:27:37 ÖÖ
Gönderen: pcalav
1 Yanıt
1136 Gösterim
Son İleti Mart 03, 2008, 01:13:59 ÖÖ
Gönderen: AdmiN
0 Yanıt
415 Gösterim
Son İleti Nisan 06, 2010, 21:47:27 ÖS
Gönderen: burajan
0 Yanıt
893 Gösterim
Son İleti Nisan 14, 2010, 14:23:37 ÖS
Gönderen: Ozgur Hicyilmaz
2 Yanıt
932 Gösterim
Son İleti Aralık 21, 2010, 17:42:33 ÖS
Gönderen: rambos