IRCDefteri.Net - En İyi IRCForum Sayfasi

IRCDefteri.Net - En İyi IRCForum Sayfasi (https://ircforumda.net/)
-   vB 3.8.x Şablon Değişiklikleri (https://ircforumda.net/vb-38x-sablon-degisiklikleri/)
-   -   Vbulletin 3.8.x Görsellere sabit değer vermek ( Eklentisiz ) (https://ircforumda.net/vb-38x-sablon-degisiklikleri/78797-vbulletin-38x-gorsellere-sabit-deger-vermek-eklentisiz.html)

aSpeNDos 14.Ocak.2026 21:58

Vbulletin 3.8.x Görsellere sabit değer vermek ( Eklentisiz )
 
Açıklama: Forum genelinde resimleri yeniden boyutlandırır ve yeni bir pencerede açar.

Hatirlatma ;

Çoğu forum sitesi eklentiler ile resimlere sabit değer veriyor ki buda işe yaramıyor doğrusu çünkü çoğu eklenti
ajax ile çalışıyor ve ajax da version dan dolayı çakışmalara sebep oluyor en garanti çözüm ise resimlere sabit değer atamak.
bunun forum kullanımına hem iyi yönde katkısı var ( eklentiye ) gerek yok hemde mobil de resim taşmalarının önüne geçer.

Bilgi ; Çoğu forum sitesinde mevcut eklentilerden dolayı kaymalar olduğunu çok kez gördüm ve bunuda sizlerle paylaşmayı düşündüm.

Tavsiye ; Ben sorunlu olarak resizer eklentisini gördüm ve şahsen kullanmıyorum.
güncellemeyi düşündüm ancak bu şekil de çözüm daha garanti ve temiz olacaktır eklentiye gerek duymadım.

Kurulum ;

Forumun ( FTP ) girin ve..

Kod:

includes/class_bbcode.php
dosyayı açın.

Kod:

return '';
bu kısmı bulup,

Kod:

return 'Tam boyutu goruntulemek icin tiklayin.';
bununla değiştirin.

Şimdi ise ;

Admincp girip mevcut temanızın CSS kısmına aşağıdaki CSS kodlarını ekleyin.

Kod:

/*Resim Boyutunu Değiştirme - Yeni Pencere*/
.ultra_resimx
{
max-width:500px;
max-height:400px;
}

İşlem bu kadar..

Örnek vermek gerekirse ;

max-width:500px ve max-height:400px; resmin max boyutlarını ifade eder.
Yani 800px ve 600px boyutuda bi resim var olduğunu düşünelim otomatik olarak forumda konu içersinde.
max-width:500px ve max-height:400px; sabitler bu boyutlarda gösterir.
bu sayede forumda taşma sorunu ortadan kalkmıs olur boyutları dilediğiniz gibi değiştirebilirsiniz.

Keyifli forumlar

aSpeNDos 24.Ocak.2026 21:51

Cevap: Vbulletin 3.8.x Görsellere sabit değer vermek ( Eklentisiz )
 
Güncelleme ;

ÖRNEK GÖRÜNÜM

https://resimyolu.com/images/2026/01...7dd14220ab.png

ÖRNEK GÖRÜNÜM

https://resimyolu.com/images/2026/01...cc98c3b62d.png

Düzenelecen alanlar ( newthread ) templates açın..


Kod:




$vbphrase[message]:


$messagearea


kodun altına..

Kod:






       
       

               

                        Ozel BBCode Etiketleri
               

               

                       
               

       


       
       

2 ; ekleyin ve aynı dosya içersinde..

öncesine aşağıdaki style kodunu ekleyin.


Kod:



3 ; şimdi ise script ( js ) kodunu ekliyoruz aynı dosya içersine.

kodundan önce aşağıdaki script ( js ) kodunu ekliyoruz.

Kod:



4 ; şimdi ise FTP den includes/class_bbcode.php açıyoruz.

Kod:


($hook = vBulletinHook::fetch_hook('bbcode_create')) ? eval($hook) : false;

kodun sonrasına aşağıdaki kodu ekliyoruz..

Kod:


function handle_bbcode_soru($text, $puan = '50')

{

    return '
Soru (+' . htmlspecialchars_uni($puan) . ' Puan)
' . $text . '
';

}



function handle_bbcode_tartisma($text, $kategori = 'Genel')

{

    return '
Tartisma - ' . htmlspecialchars_uni($kategori) . '
' . $text . '
';

}



function handle_bbcode_bilgi($text, $konu = 'Bilgi')

{

    return '
' . htmlspecialchars_uni($konu) . '
' . $text . '
';

}



function handle_bbcode_hikaye($text, $baslik = 'Deneyim')

{

    return '
' . htmlspecialchars_uni($baslik) . '
' . $text . '
';

}



function handle_bbcode_zorluk($text, $seviye = 'orta')

{

    $renkler = array('kolay' => '#27ae60', 'orta' => '#f39c12', 'zor' => '#e74c3c', 'uzman' => '#9b59b6');

    $renk = isset($renkler[$seviye]) ? $renkler[$seviye] : $renkler['orta'];

    return '
Zorluk: ' . htmlspecialchars_uni(ucfirst($seviye)) . '
' . $text . '
';

}



function handle_bbcode_ipucu($text, $tip = 'ipucu')

{

    $tipler = array('ipucu' => '#f39c12', 'dikkat' => '#e74c3c', 'basarili' => '#27ae60', 'hata' => '#c0392b', 'bilgi' => '#3498db');

    $renk = isset($tipler[$tip]) ? $tipler[$tip] : $tipler['ipucu'];

    return '
' . htmlspecialchars_uni(ucfirst($tip)) . '
' . $text . '
';

}



function handle_bbcode_basari($text, $unvan = 'Basarili Proje')

{

    return '
' . htmlspecialchars_uni($unvan) . '
' . $text . '
';

}



function handle_bbcode_cta($text, $aksiyon = 'Katil')

{

    return '
' . $text . '
';

}



function handle_bbcode_kaynak($text, $tur = 'link')

{

    $turler = array('link' => '#3498db', 'video' => '#e74c3c', 'pdf' => '#c0392b', 'github' => '#2c3e50', 'kitap' => '#8e44ad');

    $renk = isset($turler[$tur]) ? $turler[$tur] : $turler['link'];

    return '
Kaynak
' . $text . '
';

}



function handle_bbcode_etkinlik($text, $tarih = 'Yakinda')

{

    return '
' . htmlspecialchars_uni($tarih) . '
' . $text . '
';

}



function handle_bbcode_uzman($text, $uzman_adi = 'Uzman')

{

    return '
' . htmlspecialchars_uni($uzman_adi) . '
"' . $text . '"
';

}



function handle_bbcode_cozum($text, $problem = 'Problem')

{

    return '
' . htmlspecialchars_uni($problem) . ' Cozumu
' . $text . '
';

}



function handle_bbcode_konu($text, $baslik = 'Tartisma')

{

    return '
' . htmlspecialchars_uni($baslik) . '
' . $text . '
';

}



function handle_bbcode_rehber($text, $konu = 'Rehber')

{

    return '
' . htmlspecialchars_uni($konu) . ' - Baslangic Rehberi
' . $text . '
';

}



function handle_bbcode_odul($text, $puan = '100')

{

    return '
Odul: ' . htmlspecialchars_uni($puan) . ' Puan
' . $text . '
';

}



5 ; devam ediyoruz...



Kod:


function stripos($haystack, $needle, $offset = 0)

    {

        $foundstring = stristr(substr($haystack, $offset), $needle);

        return $foundstring === false ? false : strlen($haystack) - strlen($foundstring);

    }

}

koddan sonra aşağıdaki kodu ekliyoruz...

​​​​​
Kod:


/**

* Get available custom BBCode tags for editor toolbar

*

* @return    array    Array of available BBCode tags

*/

function get_custom_bbcode_tags()

{

    global $vbulletin;

   

    $custom_tags = array(

        array(

            'name' => 'soru',

            'label' => 'Soru Sor',

            'icon' => 'fa-lightbulb',

            'has_option' => true,

            'option_label' => 'Puan',

            'template' => '[soru=50]Sorunuzu yaziniz[/soru]',

            'description' => 'Soru sorarak puan kazanin'

        ),

        array(

            'name' => 'tartisma',

            'label' => 'Tartisma Ac',

            'icon' => 'fa-comments',

            'has_option' => true,

            'option_label' => 'Kategori',

            'template' => '[tartisma=Genel]Tartisma konusu[/tartisma]',

            'description' => 'Tartisma baslatin'

        ),

        array(

            'name' => 'bilgi',

            'label' => 'Bilgi Paylas',

            'icon' => 'fa-book',

            'has_option' => true,

            'option_label' => 'Konu',

            'template' => '[bilgi=Konu]Bilgi yaziniz[/bilgi]',

            'description' => 'Faydali bilgi paylasin'

        ),

        array(

            'name' => 'hikaye',

            'label' => 'Deneyim Hikayesi',

            'icon' => 'fa-feather',

            'has_option' => true,

            'option_label' => 'Baslik',

            'template' => '[hikaye=Baslik]Hikayenizi yaziniz[/hikaye]',

            'description' => 'Deneyim hikayenizi paylasin'

        ),

        array(

            'name' => 'zorluk',

            'label' => 'Zorluk Seviyesi',

            'icon' => 'fa-fire',

            'has_option' => true,

            'option_label' => 'Seviye',

            'template' => '[zorluk=orta]Icerik yaziniz[/zorluk]',

            'description' => 'Zorluk seviyesi belirtin'

        ),

        array(

            'name' => 'ipucu',

            'label' => 'Ipucu',

            'icon' => 'fa-lightbulb',

            'has_option' => true,

            'option_label' => 'Tip',

            'template' => '[ipucu=dikkat]Ipucu yaziniz[/ipucu]',

            'description' => 'Faydali ipucu verin'

        ),

        array(

            'name' => 'basari',

            'label' => 'Basarili Proje',

            'icon' => 'fa-trophy',

            'has_option' => true,

            'option_label' => 'Unvan',

            'template' => '[basari=Unvan]Basari hikayesi[/basari]',

            'description' => 'Basarili projenizi paylasin'

        ),

        array(

            'name' => 'cta',

            'label' => 'Katilim Cagrisi',

            'icon' => 'fa-bullhorn',

            'has_option' => true,

            'option_label' => 'Aksiyon',

            'template' => '[cta=Katil]Katilim cagrisi[/cta]',

            'description' => 'Katilim cagrisi yapin'

        ),

        array(

            'name' => 'kaynak',

            'label' => 'Kaynak Linki',

            'icon' => 'fa-link',

            'has_option' => true,

            'option_label' => 'Tur',

            'template' => '[kaynak=link]Kaynak aciklamasi[/kaynak]',

            'description' => 'Kaynak linki ekleyin'

        ),

        array(

            'name' => 'etkinlik',

            'label' => 'Etkinlik',

            'icon' => 'fa-calendar',

            'has_option' => true,

            'option_label' => 'Tarih',

            'template' => '[etkinlik=01.01.2025]Etkinlik aciklamasi[/etkinlik]',

            'description' => 'Etkinlik duyurusu yapin'

        ),

        array(

            'name' => 'uzman',

            'label' => 'Uzman Gorusu',

            'icon' => 'fa-user-tie',

            'has_option' => true,

            'option_label' => 'Uzman Adi',

            'template' => '[uzman=Uzman Adi]Gorusu yaziniz[/uzman]',

            'description' => 'Uzman gorusu ekleyin'

        ),

        array(

            'name' => 'cozum',

            'label' => 'Problem Cozumu',

            'icon' => 'fa-wrench',

            'has_option' => true,

            'option_label' => 'Problem',

            'template' => '[cozum=Problem]Cozum yaziniz[/cozum]',

            'description' => 'Problem cozumu sunun'

        ),

        array(

            'name' => 'konu',

            'label' => 'Tartisma Konusu',

            'icon' => 'fa-comments',

            'has_option' => true,

            'option_label' => 'Baslik',

            'template' => '[konu=Baslik]Konu aciklamasi[/konu]',

            'description' => 'Tartisma konusu aciniz'

        ),

        array(

            'name' => 'rehber',

            'label' => 'Baslangic Rehberi',

            'icon' => 'fa-graduation-cap',

            'has_option' => true,

            'option_label' => 'Konu',

            'template' => '[rehber=Konu]Rehber adimlarini yaziniz[/rehber]',

            'description' => 'Baslangic rehberi olusturun'

        ),

        array(

            'name' => 'odul',

            'label' => 'Odul Sistemi',

            'icon' => 'fa-gift',

            'has_option' => true,

            'option_label' => 'Puan',

            'template' => '[odul=100]Odul aciklamasi[/odul]',

            'description' => 'Odul sistemi ekleyin'

        )

    );

   

    return $custom_tags;

}

6 ; devam ediyoruz...

Kod:


// [POST=XXX]

            $tag_list['option']['post'] = array(

                'html' => '%1$s',

                'option_regex' => '#^\d+$#',

                'strip_empty' => true

            );

        }

koddan sonra aşağıdaki kodu ekliyoruz..

Kod:


// [SORU]

$tag_list['option']['soru'] = array(

    'callback' => 'handle_bbcode_soru',

    'strip_empty' => true

);



// [TARTISMA]

$tag_list['option']['tartisma'] = array(

    'callback' => 'handle_bbcode_tartisma',

    'strip_empty' => true

);



// [BILGI]

$tag_list['option']['bilgi'] = array(

    'callback' => 'handle_bbcode_bilgi',

    'strip_empty' => true

);



// [HIKAYE]

$tag_list['option']['hikaye'] = array(

    'callback' => 'handle_bbcode_hikaye',

    'strip_empty' => true

);



// [ZORLUK]

$tag_list['option']['zorluk'] = array(

    'callback' => 'handle_bbcode_zorluk',

    'strip_empty' => true

);



// [IPUCU]

$tag_list['option']['ipucu'] = array(

    'callback' => 'handle_bbcode_ipucu',

    'strip_empty' => true

);



// [BASARI]

$tag_list['option']['basari'] = array(

    'callback' => 'handle_bbcode_basari',

    'strip_empty' => true

);



// [CTA]

$tag_list['option']['cta'] = array(

    'callback' => 'handle_bbcode_cta',

    'strip_empty' => true

);



// [KAYNAK]

$tag_list['option']['kaynak'] = array(

    'callback' => 'handle_bbcode_kaynak',

    'strip_empty' => true

);



// [ETKINLIK]

$tag_list['option']['etkinlik'] = array(

    'callback' => 'handle_bbcode_etkinlik',

    'strip_empty' => true

);



// [UZMAN]

$tag_list['option']['uzman'] = array(

    'callback' => 'handle_bbcode_uzman',

    'strip_empty' => true

);



// [COZUM]

$tag_list['option']['cozum'] = array(

    'callback' => 'handle_bbcode_cozum',

    'strip_empty' => true

);



// [KONU]

$tag_list['option']['konu'] = array(

    'callback' => 'handle_bbcode_konu',

    'strip_empty' => true

);



// [REHBER]

$tag_list['option']['rehber'] = array(

    'callback' => 'handle_bbcode_rehber',

    'strip_empty' => true

);



// [ODUL]

$tag_list['option']['odul'] = array(

    'callback' => 'handle_bbcode_odul',

    'strip_empty' => true

);

Düzenlemeler bu kadar seçenek ve kodlarda dilediğiniz gibi değişiklik yapabilirsiniz.

Not ; Talep doğrultusunda yapılan bu değişiklikler ve eklemeler talep eden kişinin bilgisi dahilinde dağıtılmaktadır.

Bilgi ; Bu düzenlemeleri talep eden kişi sadece ( newthread ) için düzenleme istedi siz isterseniz diğer editörler de cevap ver + hizli cevap gibi templatesler de aynı sekilde entegre edebilirsiniz.​​

Keyifli Forumlar

Emre 24.Ocak.2026 22:21

Cevap: Vbulletin 3.8.x Görsellere sabit değer vermek ( Eklentisiz )
 
emeğine sağlık


Forum Saati: 10:18. Zaman dilimi GMT +4 olarak ayarlanmıştır.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.