Total Users Online: 0 üye, 118 guest | Tarih/Saat: 2026-04-21 18:31
Wysiwyg FCK Editor
Geli?mi? Text Edit?r
Seditio Wysiwyg FCK Editor

Kurulum

system/fonksiyon.php yi aşşn alttakini bulun

Kod:
function sed_parse($text, $parse_bbcodes=TRUE, $parse_smilies=TRUE, $parse_newlines=TRUE)


şstşne Ekleyin

Kod:
//////////////////////////////////////////////////////////////////////////////////////////
function sed_highlight_bbcode($code, $language){
$find1 = array('&amp;', '{', '<', '>', '$', ''', '"', '\', '&amp;amp;', '&amp;nbsp;');
$replace1 = array('&', '{', '<', '>' , '$', '\'', '"', '\\', '&amp;', '&nbsp;');
$code = str_replace($find1, $replace1, $code);

include_once('datas/geshi/geshi.php');
$geshi = new GeSHi($code, $language);
$geshi->set_header_type(GESHI_HEADER_NONE);
//$geshi->enable_line_numbers(GESHI_FANCY_LINE_NUMBERS, 1); // Comment this line to remove the line numbers

$tabs = 4;
$geshi->set_tab_width($tabs);
$code = $geshi->parse_code();
$code = preg_replace('/&amp;#([0-9]+);/', '&#$1;', $code);
$code = str_replace(array('[', ']', "\n"), array('[', ']', ''), $code);

return $code;
}

///////////////////////////////////////////////////////////////////////////////////


Alttakini bulun

Kod:
if ($parse_smilies && is_array($sed_smilies))


şstşne Ekleyin.

Kod:
////////////////////////////////////////////////////////////////////////////////
////Geshi Highlighter////
$hcode = array();
$unique_key = $sys['unique'];
$jj = 10000;
$p1 = 1;
$p2 = 1;
while ($p1>0 && $p2>0 && $jj<10031)
{
$jj++;

$p1 = strpos($text, '[highlight=');
$p2 = strpos($text, '[/highlight]');
preg_match("#\[highlight=(.*ş)\](.*ş)\[\/highlight\]#se", $text, $matches);
$language = $matches[1];
$lang_lenght = strlen($language);
$language = ($language=='html') ş 'html4strict' : $language;

if ($p2>$p1 && $p1>0)
{
$id = '**'.$jj.$unique_key.'**';
$hcode[$id]= substr ($text, $p1+12+$lang_lenght, ($p2-$p1)-12-$lang_lenght);
$hcode_len = strlen($hcode[$id])+24+$lang_lenght;
$hcode[$id] = sed_highlight_bbcode($hcode[$id], $language);
$hcode[$id] = "<div class=\"codetitle\">".strtoupper($language)." ".$L['bbcodes_code'].":</div>
<div class=\"code\">".trim($hcode[$id])."</div>";
$text = substr_replace($text, $hcode[$id], $p1, $hcode_len);
}
}

}

////////////////////////////////////////////////////////////////////////////
de]

Daha sonra Dosya işerisindeki geshi dosyasşnş datas işerisine yşkleyiniz.

şşleme Devam Ediyoruz....

Alttakini Bulun.

Kod:
function sed_bbcode_autourls($text)
{

$text = ' '.$text;
$text = preg_replace("#([\n ])([a-z0-9]+ş)://([^\t \n\r]+)#i", "\\1[url]\\2://\\3[/url]", $text);
$text = preg_replace("#([\n ])([a-z0-9-_.]+ş@[A-z0-9-]+\.[^,\t \n\r]+)#i", "\\1[email]\\2[/email]", $text);
e]
Hemen bu satşrlarşn altşna ekleyin.

Kod:
global $usr;
if($usr['maingrp'] > 0)
$text = preg_replace('#\[/şhide\]#', '', $text);
else
$text = preg_replace('#\[hide].*ş\[/hide]#s', '<div><b><font color=\"ff0000\">Gizli şşerik. Lştfen Giriş Yapşnşz.</font></b></div>', $text);
;[/code]

Alttakini bulun

[code]'' => '<hr /></blockquote>',
'
' => '<br />',[/code]

Altşna Ekleyin

[code]'

' => '<h1>',
'

' => '</h1>',
'

' => '<h2>',
'

' => '</h2>',
'

' => '<h3>',
'

' => '</h3>',
'

' => '<h4>',
'

' => '</h4>',
'
' => '<h5>',
'
' => '</h5>',
'
' => '<h6>',
'
' => '</h6>',
'[size= xx-small]' => '<span style="font-size:xx-small">',
'' => '</span>',
'[size= x-small]' => '<span style="font-size:x-small">',
'' => '</span>',
'[size= smaller]' => '<span style="font-size:small">',
'[size= medium]' => '<span style="font-size:medium">',
'' => '</span>',
'[size= large]' => '<span style="font-size:large">',
'' => '</span>',
'[size= x-large]' => '<span style="font-size:x-large">',
'' => '</span>',
'[size= xx-large]' => '<span style="font-size:xx-large">',
'[/size=]' => '</span>',
'[align=right;]' => '<div style="text-align:right;">',
'[/align=right;]' => '</div>',
'[align=left;]' => '<div style="text-align:left;">',
'[/align]' => '</div>',
'[align=center;]' => '<div style="text-align:center;">',
'[/center]' => '</div>',
'[list=1]
  • ' => '<li>1. ',
    '' => '</li>',
    '
  • ' => '<li>',
    '
  • ' => '</li>',
    '[sub]' => '<sub>',
    '[/sub]' => '</sub>',
    '' => '<span style="color:#171A97">',
    '
    ' => '</span>',[/code]

    Alttakini bulun

    [code]'' => ''
    );[/code]

    Altşna Ekleyin.

    [code]foreach($bbcodes as $bbcode => $bbcodehtml)
    $text = str_replace($bbcode,$bbcodehtml,$text);

    // Tables
    $bbcodes = array(
    '[table]' => '<table>',
    '[/table]' => '</table>',
    '[tbody]' => '<tbody>',
    '[/tbody]' => '</tbody>',
    '[thead]' => '<thead>',
    '[/thead]' => '</thead>',
    '[caption]' => '<caption>',
    '[/caption]' => '</caption>',
    '[th scope=col]' => '<th scope=col>',
    '[/th scope=col]' => '</th scope=col>',
    '[tr]' => '<tr>',
    '[/tr]' => '</tr>',
    '[td]' => '<td>',
    '[/td]' => '</td>',
    '[th]' => '<th>',
    '[/th]' => '</th>',
    '' => '<s>',
    '
    ' => '</s>',
    '[font= Comic Sans MS]' => '<font face="comic sans ms">',
    '[/font]' => '</font>',
    '[font= Arial]' => '<font face="arial">',
    '[/font]' => '</font>',
    '[font= Verdana]' => '<font face="Verdana">',
    '[/font]' => '</font>',
    '[font= Courier New]' => '<font face="Monotype Corsiva">',
    '[/font]' => '</font>',
    '[font= Times New Roman]' => '<font face="Times New Roman">',
    '[/font]' => '</font>',
    '[font= Tahoma]' => '<font face="tahoma">',
    '[/font]' => '</font>',
    );[/code]

    şşlemler Bitmiştir Hayşrlş olsun Bunlar Fonksiyon.php de kalabilir sorun olmaz.

    Eklentiyi Kurdukdan sonra Herşey bitmiştir.

    Sadece Bir kaş fonksiyon Eksik onlarda gereksiz oldugu işin eklemedim ve birde Renk paletleri şalşşmşyor bilginiz olsun Cotonti de de sadece Arka plan rengi ekleniyor ve eklenen yazşda sorun oluyor Alttaki gibi Cotonti den alşntşdşr alttaki metin.

    [color= rgb(255, 0, 0)]dgxchgxchbxh bşyle bir sorun oluyor coton ti dede bu nedenle Bu eklentide de Kullanmanşza gerek yok şimdilik.

    Dişer fonksiyonlar sorunsuz şalşşmaktadşr..
    Hayşrlş olsun..
    Seditio Wysiwyg FCK Editor
    1.   Posted by Kaan   2011-12-27 23:10        

    Yukardaki uygulama hepsinde ?al??mas? gerekiyor 125-130-150 hari?

    2.   Posted by kors@n   2011-12-27 09:54        

    bunun 160 a g?re olan?n? anlat?rsan sevinirim


    Bu Sayfada Toplam 2 Yorum

    Wysiwyg FCK Editor
    Author: Kaan
    Date: 2010-01-20 22:22
    Comments: (2)
    File: 1023351-1-fck-editor.rar
    Filesize: 1142 KB
    Downloads: 335 times
    Download Wysiwyg FCK Editor
    Benzer SayfalarYorum
    TinyMCE Editor Seditio Editör6
     
    Powered by Seditio © 2009-2012 All Rights Reserved