[MOD] Imzada Kalan Karakter Bilgisi

Eklentiler ile ilgili gelişmeler. Yeni modlar, güncellemeler.

[MOD] Imzada Kalan Karakter Bilgisi

İleti SaNaL_CiHaD 29.09.2006, 22:43

Turkcelestirme tarafimdan yapildi
surc-i lisan eylediysek affola..!

Kod: Tümünü seç
##############################################################
## MOD Title: Count Left Characters For Signature
## MOD Author: RCTycooner < rc-techs@wuyts.org > (Tom Wuyts) http://www.wuyts.org/tom/
## MOD Description: Bu MOD imzada kalan karakter bilgisini vermektedir.
## MOD Version: 1.1.0
##
## Kurulum Seviyesi: Kolay
## Kurulum Süresi: 5 Dakika
## Değişecek Dosyalar:    includes/page_header.php
##         includes/usercp_register.php
##         templates/senin_tema/profile_add_body.tpl
##
## Eklenecek Dosyalar:   n/a
##############################################################
## For Security Purposes, Please Check: http://www.wuyts.org/tom/ for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum. As such, RCTycooner will not offer support for MOD's not offered
## in our MOD-Database, located at: http://www.wuyts.org/tom/
##############################################################
## Author Notes:
##   - The user must have JavaScript enabled in order for this to work!
##
##############################################################
## MOD History:
##
##   2005-05-21 - Version 1.1.0
##   - The counter will now count the characters in the sig when the page is loaded
##   2005-05-06 - Version 1.0.0
##      - First Release
##
##############################################################
## Bu MOD'u Forumunuza Kurmadan Önce Değişiklik Yapacağınız Dosyaların Yedeğini Almanız Önerilir.
##############################################################
#
#
#
#
#-----[ AÇ ]------------------------------------------
#

includes/page_header.php

#
#-----[ BUL ]------------------------------------------
#

   'PRIVATE_MESSAGE_NEW_FLAG' => $s_privmsg_new,

#
#-----[ SONRASINA EKLE ]------------------------------------------
#

   'MAX_SIG_CHARS' => $board_config['max_sig_chars'],

#
#-----[ AÇ ]------------------------------------------
#

includes/usercp_register.php

#
#-----[ BUL ]------------------------------------------
#

      'SIGNATURE' => str_replace('<br />', "\n", $signature),

#
#-----[ SONRASINA EKLE ]------------------------------------------
#

      'SIGLENGTH' => $board_config['max_sig_chars'] - strlen($signature),

#
#-----[ AÇ ]------------------------------------------
# Not: Bu Degisikligi Elinizde Bulunan Butun Temalara Uygulamaniz Gerekmektedir.

templates/senin_tema/profile_add_body.tpl

#
#-----[ BUL ]------------------------------------------
#

<form action="{S_PROFILE_ACTION}" {S_FORM_ENCTYPE} method="post">

#
#-----[ ÖNCESİNE EKLE ]------------------------------------------
#

<script language="JavaScript">
<!--
   function textCounter(field, countfield, maxlimit) {
      if (field.value.length > maxlimit) {      
         field.value = field.value.substring(0, maxlimit);
      } else {                           
         countfield.value = maxlimit - field.value.length;
      };
   };
-->
</script>

#
#-----[ BUL ]------------------------------------------
#

<textarea name="signature"

#
#-----[ SATIR İÇİNDE BUL ]------------------------------------------
#

>

#
#-----[ SATIR İÇİNDE ÖNCESİNE EKLE ]------------------------------------------
#

onKeyDown="textCounter(this.form.signature,this.form.remLen,{MAX_SIG_CHARS});" onKeyUp="textCounter(this.form.signature,this.form.remLen,{MAX_SIG_CHARS});"

#
#-----[ BUL ]------------------------------------------
# on the next line !!

</td>

#
#-----[ ÖNCESİNE EKLE ]------------------------------------------
#

<br /><span class="gensmall"><input readonly type="text" name="remLen" size="3" maxlength="4" value="{SIGLENGTH}"> karakter kaldı.</span>

#
#-----[ KAYDET/BUTUN DOSYALARI KAPAT ]------------------------------------------
#
# SoN
SaNaL_CiHaD
Üye
Üye
 
İleti: 50
Kayıt: 16.09.2006, 13:20
Konum: İstanbul

Duyurular & Güncellemeler



Kimler çevrimiçi

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