Форумы / National / Turkish / Eski Konular / Textboxer entegre

fedai
#1 10.03.2009 01:00
Arkadaşlar mesela moviegallery eklentisi textboxer2 eklentisine ihtiyaç duyuyor. Ama cotonti'de bu eklenti yok, texboxer bölümünü nasıl entegre edeceğiz eklentilere veya moviegallery eklentisine.
moviegallery.php de
        //Textboxer 2 integration
        require_once("plugins/textboxer2/inc/textboxer2.lang.php");
        require_once("plugins/textboxer2/inc/textboxer2.inc.php");
böyle entegre edilmiş.

Bu konu açılmışken böyle seditio eklentilerini cotontiye uygun hale getirmek lazım.
"peace in the homeland, peace in the world" K.ATATÜRK

personal blog:
http://www.sametbal.net
oc
#2 10.03.2009 01:12
Eklenti adresini verebilir misiniz ?
fedai
#3 10.03.2009 01:17
"peace in the homeland, peace in the world" K.ATATÜRK

personal blog:
http://www.sametbal.net
oc
#4 12.03.2009 00:32
Eklentiye baktım, textboxer koymak kolay iş, daha doğrusu textboxer'lı yerleri silip yerine şimdiki editörü koymak zor değil.

Ama zamanı geçmiş (deprecated) bir fonksiyon var (sed_bbcode_urls($str)) bu fonksiyon olmadan tam çalışmıyor, ama cotonti de bu fonksiyonu desteklemiyor.

Ayrıca şunu da belirteyim, eklenti tasarım olarak da pek uyuşmuyor yeni nesille.

Neyse, dediğim gibi aşırı uyumsuz ama, birkaç düzenlemeyle çalışır hâle gelebilir belki, buradan:
moviegallery_12.rar
fedai
#5 12.03.2009 00:39
Ya gelişmiş(ajaxla desteklenmiş son teknoloji) bir video galeri eklentisi lazım cotontiye

oc, bu entegrenin nasıl yapıldığını anlatsaydın daha iyi olacaktı; bunun gibi bir sürü eklenti var çünkü.
Örneğin bu: http://subs.com.ru/datas/tmp/soft/neocrome/sed_plugins/guestbook-100.rar
"peace in the homeland, peace in the world" K.ATATÜRK

personal blog:
http://www.sametbal.net
Отредактировано: fedai (13.03.2009 21:44, 15 лет назад)
oc
#6 13.03.2009 22:37
Çok basit. Textboxer'la ilgili bölümlerde textboxer plugin dosyaları çağırılıyor, genelde:

require_once('textboxer2.php');

benzeri bir olay ile oluyor bu. Onu kaldıracaksınız, ya da yorum haline (kodun önüne // koyarak) getireceksiniz, sonra bir de textboxer'ın textboxer yaratma fonksiyonu var, atıyorum

textboxer('ryazi', $yazi_icerigi);

gibi. bu genelde şöyle ekrana yazdırılıyor:

"PLUGIN_TEXTBOXER" => $fonksiyon;

siz bunun yerine

"PLUGIN_TEXTBOXER" = > '<textarea name='ryazi' class='editor'>'.$yazi_icerik.'</textarea>',

gibi birşey yazacaksınız ve editör tamamen değişecek.
fedai
#7 14.03.2009 01:32
# oc : Çok basit. Textboxer'la ilgili bölümlerde textboxer plugin dosyaları çağırılıyor, genelde:

require_once('textboxer2.php');

benzeri bir olay ile oluyor bu. Onu kaldıracaksınız, ya da yorum haline (kodun önüne // koyarak) getireceksiniz, sonra bir de textboxer'ın textboxer yaratma fonksiyonu var, atıyorum

textboxer('ryazi', $yazi_icerigi);

gibi. bu genelde şöyle ekrana yazdırılıyor:

"PLUGIN_TEXTBOXER" => $fonksiyon;

siz bunun yerine

"PLUGIN_TEXTBOXER" = > '<textarea name='ryazi' class='editor'>'.$yazi_icerik.'</textarea>',

gibi birşey yazacaksınız ve editör tamamen değişecek.
Teşekkürler

Peki bunu nasıl yapacaz?
<?PHP
/* ====================
Seditio - Website engine
Copyright Neocrome
http://www.neocrome.net

[BEGIN_SED]
File=plugins/textboxer2/tb2.faq.php
Version=2.5
Updated=2008-Apr-21
Author=Arkkimaagi
Description=Textboxer extension for T3 Faq
[END_SED]
==================== */

if (!defined('SED_CODE')) { die('Wrong URL.'); }

require_once("plugins/textboxer2/inc/textboxer2.lang.php");
require_once("plugins/textboxer2/inc/textboxer2.inc.php");

	$tb2Buttons = array(
		'tb_ieOnlyStart',
			2,
				'copy',
				'cut',
				'paste',
			'}',
		'tb_ieOnlyEnd',

		'bold',
		'underline',
		'italic',

		3,
			'left',
			'center',
			'right',
		'}',

		4,
			'quote',
			'spoiler',			
			'code',
			'list',
			'hr',
			'spacer',
			'ac',
			'p',
		'}',

		5,
			'image',
			'thumb',
			'colleft',
			'colright',
		'}',

		6,
			'url',
//			'urlp',
			'email',
//			'emailp',
		'}',

		7,
			'black',
			'grey',
			'sea',
			'blue',
			'sky',
			'green',
			'yellow',
			'orange',
			'red',
			'white',
			'pink',
			'purple',
		'}',

		8,
			'page',
//			'pagep',
			'user',
//			'link',
//			'linkp',
			'flag',
			'pfs',
			'topic',
			'post',
			'pm',
		'}',

		1,
			'smilies',
		'}',
		'more',
		//'title',
		'preview'
	);

$tb2DropdownIcons = array(-1,49,1,7,10,15,19,23,35);
$tb2MaxSmilieDropdownHeight = 300; 	// Height in px for smilie dropdown
$tb2InitialSmilieLimit = 20;		// Smilies loaded by default to dropdown
$tb2TextareaRows = 10;				// Rows of the textarea
$tb2ParseBBcodes = T3FAQ_BBCODE;
$tb2ParseSmilies = T3FAQ_SMILIES;
$tb2ParseBR = T3FAQ_LINEBRAKE;
?>


Added 291 days later:

if (!defined('SED_CODE')) { die('Wrong URL.'); }
require_once("plugins/textboxer2/inc/textboxer2.lang.php");
require_once("plugins/textboxer2/inc/textboxer2.inc.php");

	$tb2Buttons = array(
		'tb_ieOnlyStart',
			2,
				'copy',
				'cut',
				'paste',
			'}',
		'tb_ieOnlyEnd',

		'bold',
		'underline',
		'italic',

		3,
			'left',
			'center',
			'right',
		'}',

		4,
			'quote',
			'code',
			'list',
			'hr',
			'spacer',
			'ac',
			'p',
		'}',

		5,
			'image',
			'thumb',
			'colleft',
			'colright',
		'}',

		6,
			'url',
//			'urlp',
			'email',
//			'emailp',
		'}',

		7,
			'black',
			'grey',
			'sea',
			'blue',
			'sky',
			'green',
			'yellow',
			'orange',
			'red',
			'white',
			'pink',
			'purple',
		'}',

		8,
			'page',
//			'pagep',
			'user',
//			'link',
//			'linkp',
			'flag',
			'pfs',
			'topic',
			'post',
			'pm',
		'}',

		1,
			'smilies',
		'}',
		'more',
		//'title',
		'preview'
	);

$tb2DropdownIcons = array(-1,49,1,7,10,15,19,23,35);
$tb2MaxSmilieDropdownHeight = 300; 	// Height in px for smilie dropdown
$tb2InitialSmilieLimit = 20;		// Smilies loaded by default to dropdown
$tb2TextareaRows = 10;				// Rows of the textarea
Bir eklentiye bu dosya tanımlanmış, bunu nasıl entegre edicem?
"peace in the homeland, peace in the world" K.ATATÜRK

personal blog:
http://www.sametbal.net
Отредактировано: fedai (09.01.2010 21:43, 14 лет назад)