Bedavadan mesaj verme

phpBB 2.0.x sürümleri için yapılmasını istediğiniz veya arayıpta bulamadığınız MODları buraya yazabilirsiniz.
Kullanıcı avatarı
pikachu
Kayıtlı Kullanıcı
Mesajlar: 3062
Kayıt: 16.07.2006, 15:32
Konum: ağandon /
İletişim:

Mesaj gönderen pikachu »

arkadaşlar bu mod bana uzun gibi geldi alın size daha basit ve türkçe bir mod. zaten türkçeleştirilecek 1 satır var. yönetimden kullanıcı yönetiminden girdiğinizde üye mesaj sayısını da istediğiniz gibi değiştirrebiliyorsunuz.

hakkatten çok basit bir mod.

Kod: Tümünü seç

##########################################################################################
##
## Hack Title:    Edit user posts via ACP
## Hack Version:  1.0.3 (ex phpBB 2.0.4)
## Author:        Acid
## Support:     http://www.phpbbhacks.com/forums
##
## Description:   A hack to have the ability to edit the count of
##        user_posts per admin panel.
##
## Files to edit:       3
##         language/lang_english/lang_admin.php
##         admin/admin_users.php
##         templates/xxx/admin/user_edit_body.tpl
##
##########################################################################################
##
## Notes:
## First always make a back-up from the files that you're going to edit.
##
##########################################################################################
##
## Versions:
##
## 1.0.3 - added style sheet to post field
## 1.0.2 - fixed a typo
## 1.0.1 - fixed a bug (user_posts will be display in field now ;))
## 1.0   - Release
##
##########################################################################################
#
#-----[ AÇ ]------------------------------------------
# language/lang_turkish/lang_admin.php
#
#-----[ BUL-SADECE BİR BÖLÜMÜ] ]---------------------------------------------------
#
$lang['User_special_explain'] = '...

#
#-----[SONRASINA EKLE ]---------------------------------------------------
#
$lang['Set_posts'] = 'Mesaj Sayısı';
 



#
#-----[ AÇ]------------------------------------------
# admin/admin_users.php
#
#-----[ BUL ]---------------------------------------------------
#
      $location = ( !empty($HTTP_POST_VARS['location']) ) ? trim(strip_tags( $HTTP_POST_VARS['location'] ) ) : '';

#
#-----[ SONRASINA EKLE ]---------------------------------------------------
#
      $user_posts = ( !empty($HTTP_POST_VARS['user_posts']) ) ? trim(strip_tags( $HTTP_POST_VARS['user_posts'] ) ) : 0;


#
#-----[ BUL ]---------------------------------------------------
#
         $location = htmlspecialchars(stripslashes($location));

#
#-----[ SONRASINA EKLE ]---------------------------------------------------
#
         $user_posts = htmlspecialchars(stripslashes($user_posts));


#
#-----[ BUL ]---------------------------------------------------
#
            $sql = "UPDATE " . USERS_TABLE . "
               SET " . $username_sql . $passwd_sql . "user_email = '" . str_replace("\'", "''", $email) . "', user_icq = '" . str_replace("\'", "''", $icq) . "', user_website = '" . str_replace("\'", "''", $website) . "', user_occ = '" . str_replace("\'", "''", $occupation) . "', user_from = '" . str_replace("\'", "''", $location) . "', user_interests = '" . str_replace("\'", "''", $interests) . "', user_sig = '" . str_replace("\'", "''", $signature) . "', user_viewemail = $viewemail, user_aim = '" . str_replace("\'", "''", $aim) . "', user_yim = '" . str_replace("\'", "''", $yim) . "', user_msnm = '" . str_replace("\'", "''", $msn) . "', user_attachsig = $attachsig, user_sig_bbcode_uid = '$signature_bbcode_uid', user_allowsmile = $allowsmilies, user_allowhtml = $allowhtml, user_allowavatar = $user_allowavatar, user_allowbbcode = $allowbbcode, user_allow_viewonline = $allowviewonline, user_notify = $notifyreply, user_allow_pm = $user_allowpm, user_notify_pm = $notifypm, user_popup_pm = $popuppm, user_lang = '" . str_replace("\'", "''", $user_lang) . "', user_style = $user_style, user_timezone = $user_timezone, user_dateformat = '" . str_replace("\'", "''", $user_dateformat) . "', user_active = $user_status, user_rank = $user_rank" . $avatar_sql .  "
               WHERE user_id = $user_id";

#
#-----[ SATIRDA BUL ]---------------------------------------------------
#
user_from = '" . str_replace("\'", "''", $location) . "'

#
#-----[ SONRASINA EKLE ]---------------------------------------------------
#
, user_posts = '" . str_replace("\'", "''", $user_posts) . "'


#
#-----[ BUL ]---------------------------------------------------
#
         $location = htmlspecialchars(stripslashes($location));

#
#-----[ SONRASINA EKLE ]---------------------------------------------------
#
         $user_posts = htmlspecialchars(stripslashes($user_posts));


#
#-----[ BUL ]---------------------------------------------------
#
      $location = htmlspecialchars($this_userdata['user_from']);

#
#-----[ SONRASINA EKLE ]---------------------------------------------------
#
      $user_posts = htmlspecialchars($this_userdata['user_posts']);


#
#-----[ BUL ]---------------------------------------------------
#
         $s_hidden_fields .= '<input type="hidden" name="location" value="' . str_replace("\"", """, $location) . '" />';

#
#-----[ SONRASINA EKLE ]---------------------------------------------------
#
         $s_hidden_fields .= '<input type="hidden" name="user_posts" value="' . str_replace("\"", """, $user_posts) . '" />';


#
#-----[ BUL ]---------------------------------------------------
#
         'LOCATION' => $location,

#
#-----[ SONRASINA EKLE ]---------------------------------------------------
#
         'USER_POSTS' => $user_posts,


#
#-----[ BUL ]---------------------------------------------------
#
         'L_LOCATION' => $lang['Location'],

#
#-----[ SONRASINA EKLE ]---------------------------------------------------
#
         'L_SET_POSTS' => $lang['Set_posts'],
 



#
#-----[ AÇ ]------------------------------------------
# templates/xxx/admin/user_edit_body.tpl

#
#-----[ BUL ]---------------------------------------------------
#
   <tr>
     <td class="row1" colspan="2"><span class="gensmall">{L_SPECIAL_EXPLAIN}</span></td>
   </tr>

#
#-----[ SONRASINA EKLE ]---------------------------------------------------
#
   <tr>
     <td class="row1"><span class="gen">{L_SET_POSTS}</span></td>
     <td class="row2"><input class="post" type="text" name="user_posts" value="{USER_POSTS}" size="10" maxlength="10" /></td>
   </tr>

##########################################################################################
##########################################################################################
################################################################################
En son pikachu tarafından 27.02.2007, 22:44 tarihinde düzenlendi, toplamda 1 kere düzenlendi.
Kullanıcı avatarı
Pendikli
Kayıtlı Kullanıcı
Mesajlar: 48
Kayıt: 20.02.2007, 02:03
İletişim:

Mesaj gönderen Pendikli »

Aslında Şu İngilizce Ekle Yerleride Türkçe Yapsanız Süper Olacak.Az Buçuk İngilizce Var ama Garanti Olsun Diye Sürekli Makaleyi Okuyorum :D
Kullanıcı avatarı
pikachu
Kayıtlı Kullanıcı
Mesajlar: 3062
Kayıt: 16.07.2006, 15:32
Konum: ağandon /
İletişim:

Mesaj gönderen pikachu »

tamam şimdi oralarıda düzenlerim, zaten artık alışkın olmanız lazım. add ekle falan filan.
Kilitli

“2.0.x MOD İstekleri” sayfasına dön

Kimler çevrimiçi

Bu forumu görüntüleyen kullanıcılar: Hiç bir kayıtlı kullanıcı yok ve 1 misafir