ist es möglich den Beruf vom Profil eines Mitglied im Beitrag (links) anzuziegen? wenn ja wie?

Ist es möglich im Profil neue Felder hinzuzufügen? Wenn ja wie?

Danke im Voraus
http://www.phpbb.de/viewtopic.php?t=9372 ..dieses Beispiel is mit user_interests . Beruf wäre user_occ .Gast01 hat geschrieben:Hallo,
ist es möglich den Beruf vom Profil eines Mitglied im Beitrag (links) anzuziegen? wenn ja wie?
cyberalfa hat geschrieben:add a new field to profile MOD :
http://www.phpbbhacks.com/download.php?id=193
Code: Alles auswählen
$sql = "SELECT u.username, u.user_id, u.user_posts, u.user_from, u.user_website, u.user_email, u.user_icq, u.user_aim, u.user_yim, u.user_regdate, u.user_msnm, u.user_viewemail, u.user_rank, u.user_sig, u.user_sig_bbcode_uid, u.user_avatar, u.user_avatar_type, u.user_allowavatar, u.user_allowsmile, p.*, pt.post_text, pt.post_subject, pt.bbcode_uid
Code: Alles auswählen
$sql = "SELECT u.username, u.user_id, u.user_posts, u.user_from, u.user_website, u.user_email, u.user_icq, u.user_aim, u.user_yim, u.user_occ, u.user_regdate, u.user_msnm, u.user_viewemail, u.user_rank, u.user_sig, u.user_sig_bbcode_uid, u.user_avatar, u.user_avatar_type, u.user_allowavatar, u.user_allowsmile, p.*, pt.post_text, pt.post_subject, pt.bbcode_uid
Code: Alles auswählen
$poster_from = ( $postrow[$i]['user_from'] && $postrow[$i]['user_id'] != ANONYMOUS ) ? $lang['Location'] . ': ' . $postrow[$i]['user_from'] : '';
Code: Alles auswählen
$poster_occ = ( $postrow[$i]['user_occ'] && $postrow[$i]['user_id'] != ANONYMOUS ) ? $lang['Occupation'] . ': ' . $postrow[$i]['user_occ'] : '';
Code: Alles auswählen
'POSTER_POSTS' => $poster_posts,
Code: Alles auswählen
'POSTER_OCC' => $poster_occ,
Code: Alles auswählen
<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>
Code: Alles auswählen
<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_OCC}<br />{postrow.POSTER_FROM}</span><br /></td>
raumplaner hat geschrieben:(auch wenn du beim letzten hint die quote-boxen vertauscht hast
Code: Alles auswählen
##############################################################
## MOD Title: Direct user link
## MOD Author: Niels < ncr@db9.dk > (Niels Chr. Rød) http://mods.db9.dk
## MOD Description: Makes the users name as a link when viewing
## topic's - that whay more intuitive to get users
## profile. If the viewing user have admin rigths
## then the link is to the administration profile
## MOD Version: 1.0.6
## MOD Compatibility: 2.0.x
##
## Installation Level: Easy
## Installation Time: 2 Minutes (1mn by EasyMOD of Nuttzy)
## Files To Edit: 2
## viewtopic.php
## templates/subSilver/viewtopic_body.tpl
##
## Included Files: 0
##
##############################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ 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, phpBB will not offer support for MOD's not offered
## in our MOD-Database, located at: http://www.phpbb.com/mods/
##############################################################
## Author Notes:
##
## 1. EasyMOD
## -----------
## This MOD is compatible and can be installed by EasyMOD
## of Nuttzy (but is not officially EasyMOD Compliant)!
## http://area51.phpbb.com/phpBB22/viewforum.php?sid=&f=15
##
## 2. Official last version link
## -----------
## Meanwhile the phpBB group validation and as the MOD is not yet
## in the phpBB MOD database, check this official link for updates...
## http://mods.db9.dk/viewtopic.php?t=28
##
##############################################################
## MOD History:
##
## 2003-12-10 - Version 1.0.6
## - phpBB template & EasyMOD compliance enhancement
##
## 2003-10-10 - Version 1.0.5
## - change into viewtopic.php
##
## 2003-08-24 - Version 1.0.4
## - history started
## - rewrite how-to to be EM ready
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ OPEN ]------------------------------------------------
#
viewtopic.php
#
#-----[ FIND ]------------------------------------------------
#
$sql = "SELECT u.username,
FROM " . POSTS_TABLE . "
WHERE p.topic_id
#
#-----[ IN-LINE FIND ]----------------------------------------
#
, u.user_allowsmile
#
#-----[ IN-LINE AFTER, ADD ]----------------------------------
#
, u.user_level
#
#-----[ FIND ]------------------------------------------------
#
$template->assign_block_vars('postrow', array(
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
// Start add - Direct user link MOD
switch ($postrow[$i]['user_level'])
{
case ADMIN :
$poster = "<b>$poster</b>";
$poster_style_color = 'style="color:#' . $theme['fontcolor3'] . '"';
break;
case MOD :
$poster = "<b>$poster</b>";
$poster_style_color = 'style="color:#' . $theme['fontcolor2'] . '"';
break;
default : $poster_style_color = '';
}
// End add - Direct user link MOD
#
#-----[ FIND ]------------------------------------------------
#
'U_MINI_POST' =>
#
#-----[ AFTER, ADD ]------------------------------------------
#
// Start add - Direct user link MOD
'U_VIEW_POSTER_PROFILE' => ($userdata['user_level'] != ADMIN)? append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=" . $poster_id) : append_sid("admin/admin_users.$phpEx?mode=edit&u=" . $poster_id) ,
'POSTER_STYLE' => $poster_style_color,
// End add - Direct user link MOD
#
#-----[ OPEN ]------------------------------------------------
#
# Make sure to edit this file for every theme your board uses
#
templates/subSilver/viewtopic_body.tpl
#
#-----[ FIND ]------------------------------------------------
#
<b>{postrow.POSTER_NAME}</b>
#
#-----[ IN-LINE FIND ]----------------------------------------
#
<b>{postrow.POSTER_NAME}
#
#-----[ IN-LINE BEFORE, ADD ]---------------------------------
#
<a href="{postrow.U_VIEW_POSTER_PROFILE}" class="name" {postrow.POSTER_STYLE}>
#
#-----[ IN-LINE FIND ]----------------------------------------
#
{postrow.POSTER_NAME}</b>
#
#-----[ IN-LINE AFTER, ADD ]----------------------------------
#
</a>
#
#-----[ SAVE/CLOSE ALL FILES ]--------------------------------
#
# EoM