text till vänster
Moderatorer: Moderatorgrupp, Supportgrupp
text till vänster
Här är en bild på vad jag menar
Jag la in en mod som heter "Add new field to profile"
Description:
Just a simple way to add a new field to profile. "info" can be
changed to "whatever" of course but be aware of the spelling (e.g.
"INFO", "info", "user_info").
If you want to add more than one field duplicate the following
steps and change "info" to "whatever" (be aware of the spelling).
The field "info" is just an example.
Sen ändrade jag dessa filer
Files to edit: 8
admin/admin_users.php
language/lang_english/lang_main.php
includes/usercp_viewprofile.php
includes/usercp_register.php
includes/usercp_avatar.php
templates/xxx/admin/user_edit_body.tpl
templates/xxx/profile_add_body.tpl
templates/xxx/profile_view_body.tpl
Nu syns extra fältet i profilen men jag vill också ha det ute till vänster.
Tackar på förhand
Frederik H
The Complete phpBB Template Design Guide (phpBB 2.x): http://archive.jakob-persson.com/articl ... index.html
Någonstans gör ? dom om värden till postrow, se nedan
<!-- BEGIN postrow -->
<tr>
<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_AGE}<br />{postrow.POSTER_JOINED}<br />{postrow.POSTER_POSTS}<br />{postrow.POSTER_FROM}<br />{postrow.POSTER_INFO}</span><br /></td>
Någon som vet hur jag skall fixa detta, viewtopic visar det i
'INFO' => ( $profiledata['user_info'] ) ? $profiledata['user_info'] : ' ',
'L_INFO' => $lang['Info'],
#-----[ OPEN ]------------------------------------------
#
# viewtopic.php
#
#-----[ FIND (just a quote) ]---------------------------------------------------
# $sql = "SELECT u.
#
#-----[ IN-LINE FIND ]---------------------------------------------------
#
u.user_from
#
#-----[ IN-LINE ADD ]---------------------------------------------------
#
, u.user_info
#
#-----[ FIND ]---------------------------------------------------
#
$poster_from = ( $postrow[$i]['user_from'] && $postrow[$i]['user_id'] != ANONYMOUS ) ? $lang['Location'] . ': ' . $postrow[$i]['user_from'] : '';
#
#-----[ BELOW ADD ]---------------------------------------------------
#
// only if you´re using an option field (delete // before the next 2 lines)
// $info = ( $postrow[$i]['user_info'] == '0' ) ? $lang['No'] : $lang['Yes'];
// $poster_info = ( $info && $postrow[$i]['user_id'] != ANONYMOUS ) ? $lang['Info'] . ': ' . $info : '';
// and uncomment the next line (add // before)
$poster_info = ( $postrow[$i]['user_info'] && $postrow[$i]['user_id'] != ANONYMOUS ) ? $lang['Info'] . ': ' . $postrow[$i]['user_info'] : '';
#
#-----[ FIND ]---------------------------------------------------
#
'POSTER_FROM' => $poster_from,
#
#-----[ BELOW ADD ]---------------------------------------------------
#
'POSTER_INFO' => $poster_info,
Det i rött tog jag bort annars blev det dubbelt
templates/xxx/viewtopic_body.tpl
#
#-----[ FIND ]---------------------------------------------------
#
{postrow.POSTER_FROM}
#
#-----[ AFTER ADD ]---------------------------------------------------
#
<br />{postrow.POSTER_INFO}
Det var allt
Vilka är online
Användare som besöker denna kategori: 5 och 0 gäster




