profilde yeni alan modu var mı?
-
- Kayıtlı Kullanıcı
- Mesajlar: 26
- Kayıt: 05.01.2007, 18:24
- İletişim:
profilde yeni alan modu var mı?
arkadaşlar profile ad soyad ve bölüm eklemem lazım bu nodu aradım forumda ama bulamadım yardımcı olursanız sevinirim.
- Most Wanted
- Kayıtlı Kullanıcı
- Mesajlar: 132
- Kayıt: 03.05.2007, 15:17
- İletişim:
Re: profilde yeni alan modu var mı?
kardes profile yeni alan ekleme modu bu ama senin istedigin bumu bilmiyorum bi kurup kontrol et istersen ben kurmadım.

Kod: Tümünü seç
##############################################################
## MOD Ismi TR: Profile Yeni Alan Ekleme
## MOD Ismi EN: Add new field to profile
## MOD Sürümü: v1.2.3 (phpBB 2.0.4 itibaren)
## MOD Yazari: Acid
## MOD Açiklamasi: Profile yeni bir alan eklemenin en basit yolu. Tabiki siz "info" yazan
## kisimlari "herseyolabilir" seklinde istediginiz herhangi bir kelime ile
## degistirebilirsiniz. Dikkat etmeniz gereken, bu kelimelerin degisik yazilis
## sekilleri (Örnegin: "INFO", "info", "user_info"). "Info" sadece bir örnektir.
##
##
## MOD Ismi TR: Kullanici profiline yeni bir alan ekleyip, viewtopicte gösterme...
## MOD Ismi EN: Add a Custom Field User Data Bank and Show in VIEWTOPIC ...
## MOD Sürümü: v1.0.1
## MOD Yazari: Cyber ( Hyper ) < webmaster@pptforum.com , dornabox@yahoo.com > < http://www.pptforum.com >
##
## MOD Düzenleme: türkphpbb < admin@********** > http://www.**********
##
## Notlar: "modify profile" ve "Add a Custom Field" modlari ********** tarafindan birlestirilmistir.
##
## Kurulum Seviyesi: Kolay
## Kurulum Süresi: 15 Dakika
##
## Degisecek Dosyalar: 10
## viewtopic.php
## admin/admin_users.php
## language/lang_turkish/lang_main.php
## includes/usercp_viewprofile.php
## includes/usercp_register.php
## includes/usercp_avatar.php
## templates/senin_tema/admin/user_edit_body.tpl
## templates/senin_tema/profile_add_body.tpl
## templates/senin_tema/profile_view_body.tpl
## templates/senin_tema/viewtopic_body.tpl
##
## Eklenecek Dosyalar: Yok
##
#################################################################
## Lütfen güvenlik açisindan ve MOD un son sürümüne sahip olmak için, devamli
## http://www.phpbb.com/mods/ adresini takip edin. Bu MOD u baska sitelerden indirdiginizde
## çok dikkatli olun, içerisinde phpBB forumunuza zarar verebilecek kodlar bulunabilir.
## http://www.phpbb.com/mods/ da bulunmayan MOD lar phpBB tarafindan desteklenmez.
##############################################################
## Bu MOD u kurmadan önce, degisecek tüm dosyalarin yedegini almaniz tavsiye edilir.
##############################################################
#
#-----[ SQL ]-------------------------------------------
#
# Asagidaki kodlari kopyalayip phpmyadmin de sql sorgulamasi yapin (tablo ön ekini gerektiginde uyarlayiniz).
ALTER TABLE phpbb_users ADD user_info VARCHAR(255) AFTER user_interests;
# Profile birden fazla alan eklemek istiyorsaniz, yukardaki sql kodunu ekleyeceginiz alan
# sayisina göre cogaltmalisiniz. Kod dizininde bulunan "user_info" bölümünü düzenlemelisiniz.
#
#
#-----[ AÇ ]------------------------------------------
#
language/lang_turkish/lang_main.php
#
#-----[ BUL ]---------------------------------------------------
#
$lang['Interests'] = 'İlgi alanları';
#
#-----[ SONRASINA EKLE ]---------------------------------------------------
#
$lang['Info'] = 'Info';
#
#-----[ AÇ ]------------------------------------------
#
includes/usercp_viewprofile.php
#
#-----[ BUL ]---------------------------------------------------
#
'INTERESTS' => ( $profiledata['user_interests'] ) ? $profiledata['user_interests'] : ' ',
#
#-----[ SONRASINA EKLE ]---------------------------------------------------
#
'INFO' => ( $profiledata['user_info'] ) ? $profiledata['user_info'] : ' ',
'L_INFO' => $lang['Info'],
#
#-----[ AÇ ]------------------------------------------
#
includes/usercp_register.php
#
#-----[ BUL ]---------------------------------------------------
#
$strip_var_list = array('username' => 'username', 'email' => 'email', 'icq' => 'icq', 'aim' => 'aim', 'msn' => 'msn', 'yim' => 'yim', 'website' => 'website', 'location' => 'location', 'occupation' => 'occupation', 'interests' => 'interests');
#
#-----[ ÇIZGININ IÇERISINDE BUL ]---------------------------------------------------
#
'interests'
#
#-----[ ÇIZGININ IÇERISINDE SONRASINA EKLE ]---------------------------------------------------
#
, 'info' => 'info'
#
#-----[ BUL (2x) ]---------------------------------------------------
#
$interests = stripslashes($interests);
#
#-----[ her ikisinin SONRASINA EKLE ]---------------------------------------------------
#
$info = stripslashes($info);
#
#-----[ BUL ]---------------------------------------------------
#
$sql = "UPDATE " . USERS_TABLE . "
#
#-----[ ÇIZGININ IÇERISINDE BUL ]---------------------------------------------------
#
$interests) . "'
#
#-----[ ÇIZGININ IÇERISINDE SONRASINA EKLE ]---------------------------------------------------
#
, user_info = '" . str_replace("\'", "''", $info) . "'
#
#-----[ BUL ]---------------------------------------------------
#
$sql = "INSERT INTO " . USERS_TABLE . "
#
#-----[ ÇIZGININ IÇERISINDE BUL ]---------------------------------------------------
#
user_interests
#
#-----[ ÇIZGININ IÇERISINDE SONRASINA EKLE ]---------------------------------------------------
#
, user_info
#
#-----[ ÇIZGININ IÇERISINDE BUL ]---------------------------------------------------
#
$interests) . "'
#
#-----[ ÇIZGININ IÇERISINDE SONRASINA EKLE ]---------------------------------------------------
#
, '" . str_replace("\'", "''", $info) . "'
#
#-----[ BUL ]---------------------------------------------------
#
$interests = $userdata['user_interests'];
#
#-----[ SONRASINA EKLE ]---------------------------------------------------
#
$info = $userdata['user_info'];
#
#-----[ BUL ]---------------------------------------------------
#
display_avatar_gallery($mode, $avatar_category
#
#-----[ ÇIZGININ IÇERISINDE BUL ]---------------------------------------------------
#
$interests
#
#-----[ ÇIZGININ IÇERISINDE SONRASINA EKLE ]---------------------------------------------------
#
, $info
#
#-----[ BUL ]--------------------------
#
$template->assign_vars(array(
.
.
.
.
'INTERESTS' => $interests,
#
#-----[ SONRASINA EKLE ]---------------------------------------------------
#
'INFO' => $info,
'L_INFO' => $lang['Info'],
#
#-----[ AÇ ]------------------------------------------
#
includes/usercp_avatar.php
#
#-----[ BUL ]---------------------------------------------------
#
function display_avatar_gallery($mode, &$category
#
#-----[ ÇIZGININ IÇERISINDE BUL ]---------------------------------------------------
#
&$interests
#
#-----[ ÇIZGININ IÇERISINDE SONRASINA EKLE ]---------------------------------------------------
#
, &$info
#
#-----[ BUL ]---------------------------------------------------
#
$params = array('coppa', 'user_id'
#
#-----[ ÇIZGININ IÇERISINDE BUL ]---------------------------------------------------
#
'dateformat'
#
#-----[ ÇIZGININ IÇERISINDE SONRASINA EKLE ]---------------------------------------------------
#
, 'info'
#
#-----[ AÇ ]------------------------------------------
#
admin/admin_users.php
#
#-----[ BUL ]---------------------------------------------------
#
$interests = ( !empty($HTTP_POST_VARS['interests']) ) ? trim(strip_tags( $HTTP_POST_VARS['interests'] ) ): '';
#
#-----[ SONRASINA EKLE ]---------------------------------------------------
#
$info = ( !empty($HTTP_POST_VARS['info']) ) ? trim(strip_tags( $HTTP_POST_VARS['info'] ) ) : '';
#
#-----[ BUL (2x) ]-------------------------------------------
#
$interests = htmlspecialchars(stripslashes($interests));
#
#-----[ her ikisinin SONRASINA EKLE ]---------------------------------------------------
#
$info = htmlspecialchars(stripslashes($info));
#
#-----[ BUL ]---------------------------------------------------
#
$sql = "UPDATE " . USERS_TABLE . "
#
#-----[ ÇIZGININ IÇERISINDE BUL ]---------------------------------------------------
#
$interests) . "'
#
#-----[ ÇIZGININ IÇERISINDE SONRASINA EKLE ]---------------------------------------------------
#
, user_info = '" . str_replace("\'", "''", $info) . "'
#
#-----[ BUL ]---------------------------------------------------
#
$interests = htmlspecialchars($this_userdata['user_interests']);
#
#-----[ SONRASINA EKLE ]---------------------------------------------------
#
$info = htmlspecialchars($this_userdata['user_info']);
#
#-----[ BUL ]---------------------------------------------------
#
$s_hidden_fields .= '<input type="hidden" name="interests" value="' . str_replace("\"", """, $interests) . '" />';
#
#-----[ SONRASINA EKLE ]---------------------------------------------------
#
$s_hidden_fields .= '<input type="hidden" name="info" value="' . str_replace("\"", """, $info) . '" />';
#
#-----[ BUL ]---------------------------------------------------
#
'INTERESTS' => $interests,
#
#-----[ SONRASINA EKLE ]---------------------------------------------------
#
'INFO' => $info,
'L_INFO' => $lang['Info'],
#
#-----[ AÇ ]------------------------------------------
#
templates/senin_tema/profile_add_body.tpl
#
#-----[ BUL ]---------------------------------------------------
#
<tr>
<td class="row1"><span class="gen">{L_INTERESTS}:</span></td>
<td class="row2">
<input type="text" class="post"style="width: 200px" name="interests" size="35" maxlength="150" value="{INTERESTS}" />
</td>
</tr>
#
#-----[ SONRASINA EKLE ]---------------------------------------------------
#
<tr>
<td class="row1"><span class="gen">{L_INFO}:</span></td>
<td class="row2"> <input type="text" class="post"style="width: 200px" name="info" size="35" maxlength="150" value="{INFO}" /> </td>
</tr>
#
#-----[ AÇ ]------------------------------------------
#
templates/senin_tema/profile_view_body.tpl
#
#-----[ BUL ]---------------------------------------------------
#
<tr>
<td valign="top" align="right"><span class="gen">{L_INTERESTS}:</span></td>
<td> <b><span class="gen">{INTERESTS}</span></b></td>
</tr>
#
#-----[ SONRASINA EKLE ]---------------------------------------------------
#
<tr>
<td valign="top" align="right"><span class="gen">{L_INFO}:</span></td>
<td> <b><span class="gen">{INFO}</span></b></td>
</tr>
#
#-----[ AÇ ]------------------------------------------
#
templates/senin_tema/admin/user_edit_body.tpl
#
#-----[ BUL ]---------------------------------------------------
#
<tr>
<td class="row1"><span class="gen">{L_INTERESTS}</span></td>
<td class="row2">
<input type="text" name="interests" size="35" maxlength="150" value="{INTERESTS}" />
</td>
</tr>
#
#-----[ SONRASINA EKLE ]---------------------------------------------------
#
<tr>
<td class="row1"><span class="gen">{L_INFO}</span></td>
<td class="row2"> <input class="post" type="text" name="info" size="35" maxlength="50" value="{INFO}" /> </td>
</tr>
#
#-----[ AÇ ]------------------------------------------
# buradan itibaren "Add a Custom Field" modundan alinmistir.
# Bu kodlar eklediginiz alana yazilanlarin avatar altinda görünmesini saglar.
#
viewtopic.php
#
#-----[ BUL ]------------------------------------------
#
//
// Go ahead and pull all data for this topic
//
$sql = "SELECT u.username, u.user_id, u.user
#
#-----[ ÇIZGININ IÇERISINDE BUL ]------------------------------------------
#
pt.bbcode_uid
#
#-----[ ÇIZGININ IÇERISINDE SONRASINE EKLE ]------------------------------------------
#
, u.user_info
#
#-----[ BUL ]------------------------------------------
#
$poster_from = ( $postrow[$i]['user_from'] && $postrow[$i]['user_id'] != ANONYMOUS ) ? $lang['Location'] . ': ' . $postrow[$i]['user_from'] : '';
#
#-----[ SONRASINA EKLE ]------------------------------------------
#
$user_info = ( $postrow[$i]['user_info'] && $postrow[$i]['user_id'] != ANONYMOUS ) ? $lang['Info'] . ': ' . $postrow[$i]['user_info'] : '';
#
#-----[ BUL ]------------------------------------------
#
'POSTER_FROM' => $poster_from,
#
#-----[ SONRASINA EKLE ]------------------------------------------
#
'POSTER_INFO' => $user_info,
#
#-----[ AÇ ]------------------------------------------
#
templates/senin_tema/viewtopic_body.tpl
#
#-----[ BUL ]------------------------------------------
#
<td width="150" align="left" valign="top" class="{postrow.ROW_CLASS}"><span class="name"><a name="{postrow.U_POST_ID}"></a><b>{postrow.POSTER_NAME}</b></span><br /><span class="postdetails">{postrow.POSTER_RANK}<br />{postrow.RANK_IMAGE}{postrow.POSTER_AVATAR}<br /><br />{postrow.POSTER_JOINED}<br />{postrow.POSTER_POSTS}<br />{postrow.POSTER_FROM}</span><br /></td>
#
#-----[ ÇIZGININ IÇERISINDE BUL ]------------------------------------------
#
<br />{postrow.POSTER_POSTS}<br />
#
#-----[ ÇIZGININ IÇERISINDE SONRASINA EKLE ]------------------------------------------
#
{postrow.POSTER_INFO}<br />
#
#-----[ TÜM DOSYALARI KAPAT/KAYDET ]------------------------------------------
#
# SoN
-
- Kayıtlı Kullanıcı
- Mesajlar: 26
- Kayıt: 05.01.2007, 18:24
- İletişim:
Re: profilde yeni alan modu var mı?
sağol kardeş umarım budur
Kimler çevrimiçi
Bu forumu görüntüleyen kullanıcılar: Ahrefs [Bot] ve 0 misafir