Sitemiz sadece phpBB 3.0 sürümüne destek vermektedir. Konu açmadan, ileti yazmadan önce lütfen site kuralları sayfamıza göz atınız.
viper_aykiri 20 Ekm 2007 17:55

#####################################################################################
## MOD Adı : url bbcode prompt [1.0.0b]
## Yazar : ALEXIS < N/A > (Sevdin Filiz) www.canversoft.net
## Orj yazar: Tsjakkaa < tsjakkaa@lycos.nl > (userfriendly URL-input while posting - phpBB2)
## Sürüm : 1.0.0b (phpBB3.RC7)
##
## Açıklama : URL bbcode butonuna basıldığında js promtu açılır ve URL yazmamız istenir.
##
## Kurulum zorluğu : kolay
## Kurulum süresi : ~3 dk.
##
## Düzenlenen dosyalar (3) : styles/template/prosilver/editor.js
## styles/template/prosilver/posting_layout.html
## language/tr/common.php
##
#####################################################################################
##
## Destek ve Yardım : http://www.phpbbturkiye.net
## Telif Hakkı : Copyleft © - Canver Software - www.canversoft.net
## Lisans : GNU Public License v2 http://opensource.org/licenses/gpl-license.php
##
#####################################################################################
## Güvenlik Uyarısı:
##
## Modun son sürümü için lütfen http://www.canversoft.net adresini kontrol ediniz.
## Modu başka siteden indirdiyseniz, içinde art niyetli kod olmadığını garanti edemeyiz.
## Modu eklemeden önce, güvenlik kopyası amacıyla lütfen dosyalarınızın yedeğini alınız.
##
#####################################################################################
## Yazar Notları:
##
## URL bbcode butonuna basıldığında js promtu açılır ve URL yazmamız istenir.
## Ardından linkin verileceği kelime/yazı istenir, işlemler bittiğinde yazı alanına
## bbcode otomatik işlenir
##
## Yapımında bir phpBB2 eklentisi olan "userfriendly URL-input while posting"
## (http://www.phpbb.com/community/viewtopic.php?t=257732) eklentisinin
## js kodlarından yararlanılmış, phpBB3 uyumlu hale getirilmiştir.
##
######################################################################################
## Mod Geçmişi:
##
## 21.10.2007 // v1.0.0b
## - ilk sürüm
##
######################################################################################
#
#
##-----[ AÇ ]-------------------------------------------------------------------------
#
styles/template/prosilver/editor.js
#
#------[ BUL ]------------------------------------------------------------------------
#
/**
* bbstyle
*/
function bbstyle(bbnumber)
{
#
#------[ SONRASINA EKLE ]-------------------------------------------------------------
#
// url bbcode prompt
if (bbnumber == 16)
{
var txtarea = document.post.message;
// inserting a new URL-tag
var URL = prompt('{L_BBCODE_URL_LOCATION}' , 'http://');
if (URL && URL != 'http://')
{
var linktext = prompt('{L_BBCODE_URL_TEXT}' , URL.replace("http://", ""));
if (linktext)
{
txtarea.value += "[url=" + URL + "]" + linktext + bbtags[bbnumber+1];
}
else
{
txtarea.value += bbtags[bbnumber] + URL + bbtags[bbnumber+1];
}
txtarea.focus();
return;
}
else
{
return;
}
}
#
##-----[ AÇ ]-------------------------------------------------------------------------
#
styles/template/prosilver/posting_layout.html
#
#------[ BUL ]------------------------------------------------------------------------
#
<form id="postform" method="post" action="{S_POST_ACTION}" onsubmit="return checkForm(this);"{S_FORM_ENCTYPE}>
#
#------[ BUNUNLA DEĞİŞTİR ]-----------------------------------------------------------
#
<form id="postform" method="post" name="post" action="{S_POST_ACTION}" onsubmit="return checkForm(this);"{S_FORM_ENCTYPE}>
#
##-----[ AÇ ]-------------------------------------------------------------------------
#
language/tr/common.php
#
#------[ BUL ]------------------------------------------------------------------------
#
?>
#
#------[ ÖNCESİNE EKLE ]--------------------------------------------------------------
#
// url bbcode prompt
$lang = array_merge($lang, array(
'BBCODE_URL_LOCATION' => 'URL yazın',
'BBCODE_URL_TEXT' => 'Link yazısı',
));
#
##-----[ TÜM DOSYALARI KAYDET/KAPAT ]-------------------------------------------------
#
# SON

#####################################################################################
## MOD Adı : url bbcode prompt
## Yazar : ALEXIS < N/A > (Sevdin Filiz) www.canversoft.net
## Orj yazar: Tsjakkaa < tsjakkaa@lycos.nl > (userfriendly URL-input while posting - phpBB2)
## Sürüm : 1.0.1b (phpBB3.RC7)
##
## Açıklama : URL bbcode butonuna basıldığında js promtu açılır ve URL yazmamız istenir.
##
## Kurulum zorluğu : kolay
## Kurulum süresi : ~5 dk.
##
## Düzenlenen dosyalar (4) : styles/template/prosilver/overall_header.html
## styles/template/prosilver/editor.js
## styles/template/prosilver/posting_layout.html
## language/tr/common.php
##
#####################################################################################
##
## Destek ve Yardım : http://www.phpbbturkiye.net
## Telif Hakkı : Copyleft © - Canver Software - www.canversoft.net
## Lisans : GNU Public License v2 http://opensource.org/licenses/gpl-license.php
##
#####################################################################################
## Güvenlik Uyarısı:
##
## Modun son sürümü için lütfen http://www.canversoft.net adresini kontrol ediniz.
## Modu başka siteden indirdiyseniz, içinde art niyetli kod olmadığını garanti edemeyiz.
## Modu eklemeden önce, güvenlik kopyası amacıyla lütfen dosyalarınızın yedeğini alınız.
##
#####################################################################################
## Yazar Notları:
##
## URL bbcode butonuna basıldığında js promtu açılır ve URL yazmamız istenir.
## Ardından linkin verileceği kelime/yazı istenir, işlemler bittiğinde yazı alanına
## bbcode otomatik işlenir
##
## Yapımında bir phpBB2 eklentisi olan "userfriendly URL-input while posting"
## (http://www.phpbb.com/community/viewtopic.php?t=257732) eklentisinin
## js kodlarından yararlanılmış, phpBB3 uyumlu hale getirilmiştir.
##
######################################################################################
## Mod Geçmişi:
##
## 21.10.2007 // v1.0.0b
## - ilk sürüm
##
## 22.10.2007 // v1.0.1b
## - dil hatası giderildi
##
######################################################################################
#
#
##-----[ AÇ ]-------------------------------------------------------------------------
#
styles/template/prosilver/overall_header.html
#
#------[ BUL ]------------------------------------------------------------------------
#
var onunload_functions = new Array();
#
#------[ SONRASINA EKLE ]-------------------------------------------------------------
#
// url bbcode prompt
var l_url_location = '{L_BBCODE_URL_LOCATION}';
var l_url_text = '{L_BBCODE_URL_TEXT}';
#
##-----[ AÇ ]-------------------------------------------------------------------------
#
styles/template/prosilver/editor.js
#
#------[ BUL ]------------------------------------------------------------------------
#
/**
* bbstyle
*/
function bbstyle(bbnumber)
{
#
#------[ SONRASINA EKLE ]-------------------------------------------------------------
#
if (bbnumber == 16)
{
var txtarea = document.post.message;
// inserting a new URL-tag
var URL = prompt(l_url_location , 'http://');
if (URL && URL != 'http://')
{
var linktext = prompt(l_url_text , URL.replace("http://", ""));
if (linktext)
{
txtarea.value += "[url=" + URL + "]" + linktext + bbtags[bbnumber+1];
}
else
{
txtarea.value += bbtags[bbnumber] + URL + bbtags[bbnumber+1];
}
txtarea.focus();
return;
}
else
{
return;
}
}
#
##-----[ AÇ ]-------------------------------------------------------------------------
#
styles/template/prosilver/posting_layout.html
#
#------[ BUL ]------------------------------------------------------------------------
#
<form id="postform" method="post" action="{S_POST_ACTION}" onsubmit="return checkForm(this);"{S_FORM_ENCTYPE}>
#
#------[ BUNUNLA DEĞİŞTİR ]-----------------------------------------------------------
#
<form id="postform" method="post" name="post" action="{S_POST_ACTION}" onsubmit="return checkForm(this);"{S_FORM_ENCTYPE}>
#
##-----[ AÇ ]-------------------------------------------------------------------------
#
language/tr/common.php
#
#------[ BUL ]------------------------------------------------------------------------
#
?>
#
#------[ ÖNCESİNE EKLE ]--------------------------------------------------------------
#
// url bbcode prompt
$lang = array_merge($lang, array(
'BBCODE_URL_LOCATION' => 'URL yazın',
'BBCODE_URL_TEXT' => 'Link yazısı',
));
#
##-----[ TÜM DOSYALARI KAYDET/KAPAT ]-------------------------------------------------
#
# SON

viper_aykiri 23 Ekm 2007 01:51

Bu forumu görüntüleyenler: Kayıtlı kullanıcı yok ve 1 misafir