Total Users Online: 0 üye, 224 guest | Tarih/Saat: 2026-04-17 18:23
 
Seditio 125 + Sürümlerde Bbcode Ekleme.
2010-09-15 17:39 GMT  oklu Alnt
Kaan

User is: Online status   Gender_M
Posts: 2772
Ülke: İstanbul - 34
Meslek: Serbest Meslek
Age: 43

Seditio 125 + S?r?mlerde Bbcode Ekleme.

Seditio 125 ve ?st? s?r?mlerde bbcode yi Parseman eklentisinden ayr? olarak kullanma ve manuel eklemek i?in Seditio 125 alt? s?r?mlerdeki bbcode ?zelli?ine geri d?nmek i?in alttaki uygulamalar? Seditio 125 ve ?zeri s?r?mlerde kullanabilirsiniz..

Seditio 125 ve ?st? S?r?mler i?in Ge?erlidir.
system/fonksiyon.php yi a??n alttakini bulun.
Kod:
function sed_bbcode_urls($text)
    {
    global $cfg;
    // Deprecated
    return($text);
    }

Alttakiyle de?i?tirin.
Kod:
function sed_bbcode_urls($text)
    {
    global $cfg;
    $bbcodes = array(
    '\\[img\\]([^\\\'\;\?([]*)\.(jpg|jpeg|gif|png)\\[/img\\]' => '\\1.\\2',
    '\\[thumb=([^\\\'\;\?([]*)\.(jpg|jpeg|gif|png)\\]([^\\[]*)\.(jpg|jpeg|gif|png)\\[/thumb\\]' => '\\1.\\2',
    '\\[pfs]([^\\[]*)\\[/pfs\\]' => $cfg['pfs_dir'].'\\1',
        );

    foreach($bbcodes as $bbcode => $bbcodehtml)
        { $text = eregi_replace($bbcode,$bbcodehtml,$text); }

    return($text);
    }

Alttakini bulun
Kod:
function sed_bbcode($text)
    {
    global $L, $skin, $sys, $cfg, $sed_groups, $sed_parser;

    $text = sed_bbcode_autourls($text);
    $text = " ".$text;

    foreach($sed_parser[0] as $bbcode => $bbcodehtml)
        {
        if (!empty($bbcodehtml['bb1']))
            { $text = str_replace($bbcodehtml['bb1'], $bbcodehtml['code1'], $text); }
        if (!empty($bbcodehtml['bb2']))
            { $text = str_replace($bbcodehtml['bb2'], $bbcodehtml['code2'], $text); }
        }

    foreach($sed_parser[1] as $bbcode => $bbcodehtml)
        {
        if (!empty($bbcodehtml['bb1']))
            { $text = preg_replace($bbcodehtml['bb1'], $bbcodehtml['code1'], $text); }
        if (!empty($bbcodehtml['bb2']))
            { $text = preg_replace($bbcodehtml['bb2'], $bbcodehtml['code2'], $text); }
        }

    return(substr($text,1));
    }

Alttaki ile De?i?tirin.
Kod:
/* ------------------ */

function sed_bbcode($text)
    {
    global $L, $skin, $sys, $cfg, $sed_groups;

    $text = sed_bbcode_autourls($text);
    $text = " ".$text;

    $bbcodes1 = array(
    '$' => '$',
    '[b]' => '<strong>',
    '[/b]' => '</strong>',
    '[p]' => '<p>',
    '[/p]' => '</p>',
    '[u]' => '<u>',
    '[/u]' => '</u>',
    '[i]' => '<em>',
    '[/i]' => '</em>',
    '[hr]' => '<hr />',
    '[_]' => '&nbsp;',
    '[__]' => '&nbsp; &nbsp;',
    '[list]' => '<ul type="square">',
    '[/list]' => '</ul>',
    '[red]' => '<span style="color:#F93737">',
    '[/red]' => '</span>',
    '[white]' => '<span style="color:#FFFFFF">',
    '[/white]' => '</span>',
    '[green]' => '<span style="color:#09DD09">',
    '[/green]' => '</span>',
    '[blue]' => '<span style="color:#018BFF">',
    '[/blue]' => '</span>',
    '[orange]' => '<span style="color:#FF9900">',
    '[/orange]' => '</span>',
    '[yellow]' => '<span style="color:#FFFF00">',
    '[/yellow]' => '</span>',
    '[purple]' => '<span style="color:#A22ADA">',
    '[/purple]' => '</span>',
    '[black]' => '<span style="color:#000000">',
    '[/black]' => '</span>',
    '[grey]' => '<span style="color:#B9B9B9">',
    '[/grey]' => '</span>',
    '[pink]' => '<span style="color:#FFC0FF">',
    '[/pink]' => '</span>',
    '[sky]' => '<span style="color:#D1F4F9">',
    '[/sky]' => '</span>',
    '[sea]' => '<span style="color:#171A97">',
    '[/sea]' => '</span>',
    '[quote]' => '<blockquote>'.$L['bbcodes_quote'].'<hr />',
    '[/quote]' => '<hr /></blockquote>',
    '[br]' => '<br />'
        );

    $bbcodes2 = array(
    '\\[img\\]([^\\\'\;\?([]*)\.(jpg|jpeg|gif|png)\\[/img\\]' => '<img src="\\1.\\2" alt="" />',
    '\\[img=([^\\\'\;\?([]*)\.(jpg|jpeg|gif|png)\\]([^\\[]*)\.(jpg|jpeg|gif|png)\\[/img\\]' => '<a href="\\1.\\2"><img src="\\3.\\4" alt="" /></a>',
    '\\[thumb=([^\\\'\;\?([]*)\.(jpg|jpeg|gif|png)\\]([^\\[]*)\.(jpg|jpeg|gif|png)\\[/thumb\\]' => ' <a href="pfs.php?m=view&amp;v=\\3.\\4"><img src="\\1.\\2" alt="" /></a>',
    '\\[pfs]([^\\[]*)\\[/pfs\\]' => '<a href="'.$cfg['pfs_dir'].'\\1"><img src="system/img/admin/pfs.gif" alt="" /> \\1</a>',
    '\\[t=([^\\\'\;\?([]*)\.(jpg|jpeg|gif|png)\\]([^\\[]*)\.(jpg|jpeg|gif|png)\\[/t\\]' => '<a href="\\3.\\4"><img src="\\1.\\2" alt="" /></a>',
    '\\[url=([^\\\'\;([]*)\\]([^\\[]*)\\[/url\\]' => '<a href="\\1"'.$cfg['exttarget'].'>\\2</a>',
    '\\[url\\]([^\\([]*)\\[/url\\]' => '<a href="\\1"'.$cfg['exttarget'].'>\\1</a>',
    '\\[color=([0-9A-F]{6})\\]([^\\[]*)\\[/color\\]' => '<span style="color=#\\1">\\2</span>',
    '\\[style=([1-9]{1})\\]([^\\[]*)\\[/style\\]' => '<span class="bbstyle\\1">\\2</span>',
    '\\[email=([._A-z0-9-]+@[A-z0-9-]+\.[.a-z]+)\\]([^\\[]*)\\[/email\\]' => '<a href="mailto:\\1">\\2</a>',
    '\\[email\\]([._A-z0-9-]+@[A-z0-9-]+\.[.a-z]+)\\[/email\\]' => '<a href="mailto:\\1">\\1</a>',
    '\\[user=([0-9]+)\\]([A-z0-9_\. ]+)\\[/user\\]' => '<a href="users.php?m=details&amp;id=\\1">\\2</a>',
    '\\[page=([0-9]+)\\]([^\\[]*)\\[/page\\]' => '<a href="page.php?id=\\1">\\2</a>',
    '\\[page\\]([0-9]+)\\[/page\\]' => '<a href="page.php?id=\\1">'.$L['Page'].' #\\1</a>',
    '\\[group=([0-9]+)\\]([^\\([]*)\\[/group\\]' => '<a href="users.php?g=\\1">\\2</a>',
    '\\[topic\\]([0-9]+)\\[/topic\\]' => '<a href="forums.php?m=posts&amp;q=\\1"'.$cfg['exttarget'].'>'.$L['Topic'].' #\\1</a>',
    '\\[post\\]([0-9]+)\\[/post\\]' => '<a href="forums.php?m=posts&amp;p=\\1#\\1"'.$cfg['exttarget'].'>'.$L['Post'].' #\\1</a>',
    '\\[pm\\]([0-9]+)\\[/pm\\]' => '<a href="pm.php?m=send&amp;to=\\1"><img src="skins/'.$skin.'/img/system/icon-pm.gif" alt=""></a>',
    '\\[f\\]([a-z][a-z])\\[/f\\]' => '<a href="users.php?f=country_\\1"><img src="system/img/flags/f-\\1.gif" alt="" /></a>',
    '\\[ac=([^\\[]*)\\]([^\\[]*)\\[/ac\\]' => '<acronym title="\\1">\\2</acronym>',
    '\\[quote=([^\\[]*)\\]' => '<blockquote>\\1<hr />',
    '\\[colleft\\]([^\\[]*)\\[/colleft\\]' => '<div class="colleft">\\1</div>',
    '\\[colright\\]([^\\[]*)\\[/colright\\]' => '<div class="colright">\\1</div>',
    '\\[center\\]([^\\[]*)\\[/center\\]' => '<div style="text-align:center;">\\1</div>',
    '\\[right\\]([^\\[]*)\\[/right\\]' => '<div style="text-align:right;">\\1</div>',
    '\\[left\\]([^\\[]*)\\[/left\\]' => '<div style="text-align:left;">\\1</div>'
        );

    foreach($bbcodes1 as $bbcode => $bbcodehtml)
        { $text = str_replace($bbcode,$bbcodehtml,$text); }

    foreach($bbcodes2 as $bbcode => $bbcodehtml)
        { $text = eregi_replace($bbcode,$bbcodehtml,$text); }

    return(substr($text,1));
    }

/* ------------------ */

B?ylelikle ?stedi?iniz Bbcode ?zelli?ini rahatl?kla ekleyebilirsiniz.
Yeni versionlarda Bbcode ler Sql sorgusu ile ?al??t?g? i?in kullan?c?lar?n sql sorgusu haz?rlamada zorluk ?ekmesini ?nlemek i?in yukar?daki uygulay? haz?rlam?? bulunmaktay?z..
Konuyla İlgili Diğer Başlıklar
Yeni Site Aktif Edildi. www.seditio.com.tr
Plugins Editör New Seditio 171
Seditio 171 Geliştirmesi.
Seditio
Seditio Eklenti Nasıl Kurulur Video
Emlak, Oto Galeri, Rent A Car, ?iir, Edebiyat Script Sipari?lerinizi Verebilirsiniz.
Detaylar ??in: kaan@ntka.org

Seditio 170 ?ndir
Capte M?zik ?ndir
Seditio Toolbar ?ndir

 

Seditio 125 + Sürümlerde Bbcode Ekleme.
2010-11-23 20:21 GMT  oklu Alnt
Kaan

User is: Online status   Gender_M
Posts: 2772
Ülke: İstanbul - 34
Meslek: Serbest Meslek
Age: 43

1-bbcode.txt ekdeki not defterindeki kodlar? kullan?n..
Emlak, Oto Galeri, Rent A Car, ?iir, Edebiyat Script Sipari?lerinizi Verebilirsiniz.
Detaylar ??in: kaan@ntka.org

Seditio 170 ?ndir
Capte M?zik ?ndir
Seditio Toolbar ?ndir

 

Powered by Seditio © 2009-2012 All Rights Reserved