Tekil Mesaj gösterimi
Alt 24 Ocak 2026, 20:49   #3
aSpeNDos
aSpeNDos - ait Kullanıcı Resmi (Avatar)

Standart

Güncelleme ;

ÖRNEK GÖRÜNÜM



ÖRNEK GÖRÜNÜM



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


Kod

<!-- message area -->

<div class="smallfont">$vbphrase[message]:</div>

$messagearea

<!-- / message area -->
kodun altına..

Kod

</p>

<!-- CUSTOM BBCODE SELECTOR TOOLBAR - COLLAPSIBLE -->
<div style="background: #f8f9fa; padding: 0; border-radius: 6px; margin-bottom: 12px; border: 1px solid #dee2e6; overflow: hidden;">
	<!-- Başlık / Açma Kapama Butonu -->
	<div style="background: #34495e; padding: 12px; cursor: pointer; display: flex; align-items: center; justify-content: space-between;" onclick="toggleBBCodeMenu()">
		<div style="color: white; font-weight: bold; display: flex; align-items: center; gap: 8px;">
			<i class="fa fa-star"></i> Ozel BBCode Etiketleri
		</div>
		<div style="color: white; font-size: 18px;" id="bbcode_menu_toggle">
			<i class="fa fa-chevron-down"></i>
		</div>
	</div>

	<!-- Menü İçeriği -->
	<div id="bbcode_menu_content" style="padding: 12px; display: none;">
		<div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin-bottom: 10px;">
			<!-- SORU -->
			<button type="button" class="bbcode-quick-btn" onclick="insertQuickBBCode('{$editorid}', 'soru', '50', 'Sorunuzu yaziniz'); return false;" style="padding: 8px 12px; background: #3498db; color: white; border: none; border-radius: 4px; cursor: pointer; font-weight: bold; transition: all 0.3s; font-size: 12px;">
				<i class="fa fa-lightbulb-o"></i> Soru
			</button>
			
			<!-- TARTISMA -->
			<button type="button" class="bbcode-quick-btn" onclick="insertQuickBBCode('{$editorid}', 'tartisma', 'Genel', 'Tartisma konusu'); return false;" style="padding: 8px 12px; background: #9b59b6; color: white; border: none; border-radius: 4px; cursor: pointer; font-weight: bold; transition: all 0.3s; font-size: 12px;">
				<i class="fa fa-comments"></i> Tartisma
			</button>
			
			<!-- BILGI -->
			<button type="button" class="bbcode-quick-btn" onclick="insertQuickBBCode('{$editorid}', 'bilgi', 'Konu', 'Bilgi yaziniz'); return false;" style="padding: 8px 12px; background: #16a085; color: white; border: none; border-radius: 4px; cursor: pointer; font-weight: bold; transition: all 0.3s; font-size: 12px;">
				<i class="fa fa-book"></i> Bilgi
			</button>
			
			<!-- HIKAYE -->
			<button type="button" class="bbcode-quick-btn" onclick="insertQuickBBCode('{$editorid}', 'hikaye', 'Baslik', 'Hikayenizi yaziniz'); return false;" style="padding: 8px 12px; background: #e67e22; color: white; border: none; border-radius: 4px; cursor: pointer; font-weight: bold; transition: all 0.3s; font-size: 12px;">
				<i class="fa fa-feather"></i> Hikaye
			</button>
			
			<!-- ZORLUK -->
			<button type="button" class="bbcode-quick-btn" onclick="insertQuickBBCode('{$editorid}', 'zorluk', 'orta', 'Icerik yaziniz'); return false;" style="padding: 8px 12px; background: #f39c12; color: white; border: none; border-radius: 4px; cursor: pointer; font-weight: bold; transition: all 0.3s; font-size: 12px;">
				<i class="fa fa-fire"></i> Zorluk
			</button>
			
			<!-- IPUCU -->
			<button type="button" class="bbcode-quick-btn" onclick="insertQuickBBCode('{$editorid}', 'ipucu', 'dikkat', 'Ipucu yaziniz'); return false;" style="padding: 8px 12px; background: #c0392b; color: white; border: none; border-radius: 4px; cursor: pointer; font-weight: bold; transition: all 0.3s; font-size: 12px;">
				<i class="fa fa-exclamation-triangle"></i> Ipucu
			</button>
			
			<!-- BASARI -->
			<button type="button" class="bbcode-quick-btn" onclick="insertQuickBBCode('{$editorid}', 'basari', 'Unvan', 'Basari hikayesi'); return false;" style="padding: 8px 12px; background: #27ae60; color: white; border: none; border-radius: 4px; cursor: pointer; font-weight: bold; transition: all 0.3s; font-size: 12px;">
				<i class="fa fa-trophy"></i> Basari
			</button>
			
			<!-- CTA -->
			<button type="button" class="bbcode-quick-btn" onclick="insertQuickBBCode('{$editorid}', 'cta', 'Katil', 'Katilim cagrisi'); return false;" style="padding: 8px 12px; background: #e74c3c; color: white; border: none; border-radius: 4px; cursor: pointer; font-weight: bold; transition: all 0.3s; font-size: 12px;">
				<i class="fa fa-bullhorn"></i> CTA
			</button>
			
			<!-- KAYNAK -->
			<button type="button" class="bbcode-quick-btn" onclick="insertQuickBBCode('{$editorid}', 'kaynak', 'link', 'Kaynak aciklamasi'); return false;" style="padding: 8px 12px; background: #2980b9; color: white; border: none; border-radius: 4px; cursor: pointer; font-weight: bold; transition: all 0.3s; font-size: 12px;">
				<i class="fa fa-link"></i> Kaynak
			</button>
			
			<!-- ETKINLIK -->
			<button type="button" class="bbcode-quick-btn" onclick="insertQuickBBCode('{$editorid}', 'etkinlik', '01.01.2025', 'Etkinlik aciklamasi'); return false;" style="padding: 8px 12px; background: #34495e; color: white; border: none; border-radius: 4px; cursor: pointer; font-weight: bold; transition: all 0.3s; font-size: 12px;">
				<i class="fa fa-calendar"></i> Etkinlik
			</button>
			
			<!-- UZMAN -->
			<button type="button" class="bbcode-quick-btn" onclick="insertQuickBBCode('{$editorid}', 'uzman', 'Uzman Adi', 'Gorusu yaziniz'); return false;" style="padding: 8px 12px; background: #8e44ad; color: white; border: none; border-radius: 4px; cursor: pointer; font-weight: bold; transition: all 0.3s; font-size: 12px;">
				<i class="fa fa-user"></i> Uzman
			</button>
			
			<!-- COZUM -->
			<button type="button" class="bbcode-quick-btn" onclick="insertQuickBBCode('{$editorid}', 'cozum', 'Problem', 'Cozum yaziniz'); return false;" style="padding: 8px 12px; background: #16a085; color: white; border: none; border-radius: 4px; cursor: pointer; font-weight: bold; transition: all 0.3s; font-size: 12px;">
				<i class="fa fa-wrench"></i> Cozum
			</button>
			
			<!-- KONU -->
			<button type="button" class="bbcode-quick-btn" onclick="insertQuickBBCode('{$editorid}', 'konu', 'Baslik', 'Konu aciklamasi'); return false;" style="padding: 8px 12px; background: #7f8c8d; color: white; border: none; border-radius: 4px; cursor: pointer; font-weight: bold; transition: all 0.3s; font-size: 12px;">
				<i class="fa fa-comments"></i> Konu
			</button>
			
			<!-- REHBER -->
			<button type="button" class="bbcode-quick-btn" onclick="insertQuickBBCode('{$editorid}', 'rehber', 'Konu', 'Rehber adimlarini yaziniz'); return false;" style="padding: 8px 12px; background: #d35400; color: white; border: none; border-radius: 4px; cursor: pointer; font-weight: bold; transition: all 0.3s; font-size: 12px;">
				<i class="fa fa-graduation-cap"></i> Rehber
			</button>
			
			<!-- ODUL -->
			<button type="button" class="bbcode-quick-btn" onclick="insertQuickBBCode('{$editorid}', 'odul', '100', 'Odul aciklamasi'); return false;" style="padding: 8px 12px; background: #2c3e50; color: white; border: none; border-radius: 4px; cursor: pointer; font-weight: bold; transition: all 0.3s; font-size: 12px;">
				<i class="fa fa-gift"></i> Odul
			</button>
		</div>
		
		<div style="font-size: 11px; color: #555; padding: 10px; background: #ecf0f1; border-radius: 4px; border-left: 3px solid #34495e;">
			<i class="fa fa-info-circle"></i> <strong>Ipucu:</strong> Metni seciniz ve butona tiklayin, secili metin otomatik olarak etikete alinacak!
		</div>
	</div>
</div>
2 ; ekleyin ve aynı dosya içersinde..

</head> öncesine aşağıdaki style kodunu ekleyin.


Kod

<style type="text/css">

.bbcode-quick-btn {

    transition: all 0.3s ease !important;

    box-shadow: 0 2px 4px rgba(0,0,0,0.1);

}

.bbcode-quick-btn:hover {

    transform: translateY(-2px) !important;

    box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;

}

.bbcode-quick-btn:active {

    transform: scale(0.95) !important;

}

.bbcode-selector-container {

    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);

    padding: 15px;

    border-radius: 8px;

    margin-bottom: 15px;

    border-left: 4px solid #667eea;

}

.bbcode-selector-title {

    font-weight: bold;

    margin-bottom: 12px;

    color: #333;

    font-size: 13px;

}

.bbcode-selector-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));

    gap: 8px;

    margin-bottom: 10px;

}

.bbcode-selector-hint {

    margin-top: 10px;

    font-size: 11px;

    color: #666;

    padding: 8px;

    background: #fff;

    border-radius: 4px;

    border-left: 2px solid #f39c12;

}

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

</form> kodundan önce aşağıdaki script ( js ) kodunu ekliyoruz.

Kod

<script type="text/javascript">

<!--

// Toggle BBCode Menu

function toggleBBCodeMenu() {

    var content = document.getElementById('bbcode_menu_content');

    var toggle = document.getElementById('bbcode_menu_toggle');

    

    if (content.style.display === 'none') {

        content.style.display = 'block';

        toggle.innerHTML = '<i class="fa fa-chevron-up"></i>';

    } else {

        content.style.display = 'none';

        toggle.innerHTML = '<i class="fa fa-chevron-down"></i>';

    }

}

function insertQuickBBCode(editorid, tagname, option, content) {

    var textarea = document.getElementById(editorid + '_textarea');

    

    if (!textarea) {

        alert('Editor bulunamadi!');

        return false;

    }

    var bbcode = '';

    var selectedText = '';


    // Seçili metni al

    if (textarea.selectionStart !== undefined) {

        var startPos = textarea.selectionStart;

        var endPos = textarea.selectionEnd;

        selectedText = textarea.value.substring(startPos, endPos);

        

        if (selectedText) {

            bbcode = '[' + tagname + '=' + option + ']' + selectedText + '[/' + tagname + ']';

            textarea.value = textarea.value.substring(0, startPos) + bbcode + textarea.value.substring(endPos);

            textarea.selectionStart = startPos + bbcode.length;

            textarea.selectionEnd = startPos + bbcode.length;

        } else {

            bbcode = '[' + tagname + '=' + option + ']' + content + '[/' + tagname + ']';

            textarea.value = textarea.value.substring(0, startPos) + bbcode + textarea.value.substring(endPos);

            textarea.selectionStart = startPos + bbcode.length;

            textarea.selectionEnd = startPos + bbcode.length;

        }

    } else {

        // IE eski versiyon desteği

        textarea.focus();

        var range = document.selection.createRange();

        selectedText = range.text;

        

        if (selectedText) {

            bbcode = '[' + tagname + '=' + option + ']' + selectedText + '[/' + tagname + ']';

        } else {

            bbcode = '[' + tagname + '=' + option + ']' + content + '[/' + tagname + ']';

        }

        

        range.text = bbcode;

    }

    

    textarea.focus();

    

    // Buton efekti

    if (event && event.target) {

        event.target.style.transform = 'scale(0.95)';

        setTimeout(function() {

            event.target.style.transform = 'scale(1)';

        }, 100);

    }

    

    return false;

}



// Buton hover efektleri

document.addEventListener('DOMContentLoaded', function() {

    var buttons = document.querySelectorAll('.bbcode-quick-btn');

    if (buttons.length > 0) {

        buttons.forEach(function(btn) {

            btn.addEventListener('mouseenter', function() {

                this.style.transform = 'translateY(-2px)';

                this.style.boxShadow = '0 4px 12px rgba(0,0,0,0.2)';

            });

            btn.addEventListener('mouseleave', function() {

                this.style.transform = 'translateY(0)';

                this.style.boxShadow = 'none';

            });

        });

    }

});

//-->

</script>
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 '<div class="bbcode-soru"><div style="color: #667eea; font-weight: bold;"><i class="fa fa-lightbulb-o"></i> Soru (+' . htmlspecialchars_uni($puan) . ' Puan)</div><div style="padding: 10px; background: #f0f3ff; border-radius: 4px; margin-top: 8px;">' . $text . '</div></div>';

}



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

{

    return '<div class="bbcode-tartisma"><div style="color: #f5576c; font-weight: bold;"><i class="fa fa-comments"></i> Tartisma - ' . htmlspecialchars_uni($kategori) . '</div><div style="padding: 10px; background: #ffe5eb; border-radius: 4px; margin-top: 8px;">' . $text . '</div></div>';

}



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

{

    return '<div class="bbcode-bilgi"><div style="color: #4facfe; font-weight: bold;"><i class="fa fa-book"></i> ' . htmlspecialchars_uni($konu) . '</div><div style="padding: 10px; background: #e0f7ff; border-radius: 4px; margin-top: 8px;">' . $text . '</div></div>';

}



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

{

    return '<div class="bbcode-hikaye"><div style="color: #fa709a; font-weight: bold;"><i class="fa fa-feather"></i> ' . htmlspecialchars_uni($baslik) . '</div><div style="padding: 10px; background: #ffe8f0; border-radius: 4px; margin-top: 8px;">' . $text . '</div></div>';

}



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 '<div class="bbcode-zorluk" style="border-left: 4px solid ' . $renk . '; padding: 10px; background: #f8f9fa; border-radius: 4px;"><div style="color: ' . $renk . '; font-weight: bold;"><i class="fa fa-fire"></i> Zorluk: ' . htmlspecialchars_uni(ucfirst($seviye)) . '</div><div style="margin-top: 8px;">' . $text . '</div></div>';

}



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 '<div class="bbcode-ipucu" style="border-left: 4px solid ' . $renk . '; padding: 10px; background: ' . $renk . '15; border-radius: 4px;"><div style="color: ' . $renk . '; font-weight: bold;"><i class="fa fa-lightbulb-o"></i> ' . htmlspecialchars_uni(ucfirst($tip)) . '</div><div style="margin-top: 8px;">' . $text . '</div></div>';

}



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

{

    return '<div class="bbcode-basari"><div style="color: #11998e; font-weight: bold;"><i class="fa fa-trophy"></i> ' . htmlspecialchars_uni($unvan) . '</div><div style="padding: 10px; background: #d4f8f5; border-radius: 4px; margin-top: 8px;">' . $text . '</div></div>';

}



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

{

    return '<div class="bbcode-cta" style="background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%); color: white; padding: 15px; border-radius: 6px; text-align: center;"><div style="font-weight: bold; margin-bottom: 8px;"><i class="fa fa-bullhorn"></i> ' . $text . '</div><button style="background: white; color: #ff6b6b; padding: 8px 20px; border: none; border-radius: 4px; font-weight: bold; cursor: pointer;">' . htmlspecialchars_uni($aksiyon) . '</button></div>';

}



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 '<div class="bbcode-kaynak" style="border-top: 3px solid ' . $renk . '; padding: 10px; background: #f8f9fa; border-radius: 4px;"><div style="color: ' . $renk . '; font-weight: bold;"><i class="fa fa-link"></i> Kaynak</div><div style="margin-top: 8px;">' . $text . '</div></div>';

}



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

{

    return '<div class="bbcode-etkinlik"><div style="color: #667eea; font-weight: bold;"><i class="fa fa-calendar"></i> ' . htmlspecialchars_uni($tarih) . '</div><div style="padding: 10px; background: #f0f3ff; border-radius: 4px; margin-top: 8px;">' . $text . '</div></div>';

}



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

{

    return '<div class="bbcode-uzman" style="background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%); color: #333; padding: 15px; border-left: 4px solid #ff9a56; border-radius: 6px;"><div style="color: #ff9a56; font-weight: bold;"><i class="fa fa-user"></i> ' . htmlspecialchars_uni($uzman_adi) . '</div><div style="font-style: italic; margin-top: 10px;">"' . $text . '"</div></div>';

}



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

{

    return '<div class="bbcode-cozum"><div style="color: #11998e; font-weight: bold;"><i class="fa fa-wrench"></i> ' . htmlspecialchars_uni($problem) . ' Cozumu</div><div style="padding: 10px; background: #d4f8f5; border-radius: 4px; margin-top: 8px;">' . $text . '</div></div>';

}



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

{

    return '<div class="bbcode-konu"><div style="color: #333; font-weight: bold;"><i class="fa fa-comments"></i> ' . htmlspecialchars_uni($baslik) . '</div><div style="padding: 10px; background: #f0f8ff; border-radius: 4px; margin-top: 8px;">' . $text . '</div></div>';

}



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

{

    return '<div class="bbcode-rehber"><div style="color: #333; font-weight: bold;"><i class="fa fa-graduation-cap"></i> ' . htmlspecialchars_uni($konu) . ' - Baslangic Rehberi</div><div style="padding: 10px; background: #fff8e1; border-radius: 4px; margin-top: 8px;">' . $text . '</div></div>';

}



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

{

    return '<div class="bbcode-odul" style="background: linear-gradient(135deg, #ffd89b 0%, #19547b 100%); color: white; padding: 15px; border-radius: 6px;"><div style="font-weight: bold;"><i class="fa fa-gift"></i> Odul: ' . htmlspecialchars_uni($puan) . ' Puan</div><div style="margin-top: 8px;">' . $text . '</div></div>';

}


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

*

* @[Üye Olmadan Linkleri Göremezsiniz. Lütfen Üye Olmak için TIKLAYIN...]
    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' => '<a href="' . $prepend_path . 'showthread.php?' . $vbulletin->session->vars['sessionurl'] . 'p=%2$s#post%2$s" title="' . htmlspecialchars_uni($vbulletin->options['bbtitle']) . ' - ' . $vbphrase['post'] . ' %2$s">%1$s</a>',

                '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

________________

S & S