mirror of
https://github.com/phpbb/phpbb.git
synced 2025-01-19 07:08:09 +01:00
[ticket/12233] Allow profile fields to be contact fields
Contact fields are displayed with in the contact section of the user profile and are displayed differently in the mini profile next to posts and private messages PHPBB3-12233
This commit is contained in:
parent
620f2840d7
commit
a823205403
@ -79,6 +79,12 @@
|
||||
<dt><label for="field_hide">{L_HIDE_PROFILE_FIELD}{L_COLON}</label><br /><span>{L_HIDE_PROFILE_FIELD_EXPLAIN}</span></dt>
|
||||
<dd><input type="checkbox" class="radio" id="field_hide" name="field_hide" value="1"<!-- IF S_FIELD_HIDE --> checked="checked"<!-- ENDIF --> /></dd>
|
||||
</dl>
|
||||
<dl>
|
||||
<dt><label for="field_is_contact">{L_FIELD_IS_CONTACT}{L_COLON}</label><br /><span>{L_FIELD_IS_CONTACT_EXPLAIN}</span></dt>
|
||||
<dd><input type="checkbox" class="radio" id="field_is_contact" name="field_is_contact" value="1"<!-- IF S_FIELD_CONTACT --> checked="checked"<!-- ENDIF --> /></dd>
|
||||
<dd><input class="text medium" type="text" name="field_contact_desc" id="field_contact_desc" value="{FIELD_CONTACT_DESC}" /> <label for="field_contact_desc">{L_FIELD_CONTACT_DESC}</label></dd>
|
||||
<dd><input class="text medium" type="text" name="field_contact_url" id="field_contact_url" value="{FIELD_CONTACT_URL}" /> <label for="field_contact_url">{L_FIELD_CONTACT_URL}</label></dd>
|
||||
</dl>
|
||||
</fieldset>
|
||||
|
||||
<!-- IF S_EDIT_MODE -->
|
||||
|
@ -386,6 +386,9 @@ class acp_profile
|
||||
'field_show_on_pm' => 0,
|
||||
'field_show_on_vt' => 0,
|
||||
'field_show_on_ml' => 0,
|
||||
'field_is_contact' => 0,
|
||||
'field_contact_desc'=> '',
|
||||
'field_contact_url' => '',
|
||||
'lang_name' => utf8_normalize_nfc(request_var('field_ident', '', true)),
|
||||
'lang_explain' => '',
|
||||
'lang_default_value'=> '')
|
||||
@ -396,7 +399,7 @@ class acp_profile
|
||||
|
||||
// $exclude contains the data we gather in each step
|
||||
$exclude = array(
|
||||
1 => array('field_ident', 'lang_name', 'lang_explain', 'field_option_none', 'field_show_on_reg', 'field_show_on_pm', 'field_show_on_vt', 'field_show_on_ml', 'field_required', 'field_show_novalue', 'field_hide', 'field_show_profile', 'field_no_view'),
|
||||
1 => array('field_ident', 'lang_name', 'lang_explain', 'field_option_none', 'field_show_on_reg', 'field_show_on_pm', 'field_show_on_vt', 'field_show_on_ml', 'field_required', 'field_show_novalue', 'field_hide', 'field_show_profile', 'field_no_view', 'field_is_contact', 'field_contact_desc', 'field_contact_url'),
|
||||
2 => array('field_length', 'field_maxlen', 'field_minlen', 'field_validation', 'field_novalue', 'field_default_value'),
|
||||
3 => array('l_lang_name', 'l_lang_explain', 'l_lang_default_value', 'l_lang_options')
|
||||
);
|
||||
@ -411,21 +414,24 @@ class acp_profile
|
||||
'field_show_on_ml',
|
||||
'field_show_profile',
|
||||
'field_hide',
|
||||
'field_is_contact',
|
||||
);
|
||||
|
||||
$options = $profile_field->prepare_options_form($exclude, $visibility_ary);
|
||||
|
||||
$cp->vars['field_ident'] = ($action == 'create' && $step == 1) ? utf8_clean_string(request_var('field_ident', $field_row['field_ident'], true)) : request_var('field_ident', $field_row['field_ident']);
|
||||
$cp->vars['lang_name'] = utf8_normalize_nfc(request_var('lang_name', $field_row['lang_name'], true));
|
||||
$cp->vars['lang_explain'] = utf8_normalize_nfc(request_var('lang_explain', $field_row['lang_explain'], true));
|
||||
$cp->vars['lang_default_value'] = utf8_normalize_nfc(request_var('lang_default_value', $field_row['lang_default_value'], true));
|
||||
$cp->vars['lang_name'] = $request->variable('lang_name', $field_row['lang_name'], true);
|
||||
$cp->vars['lang_explain'] = $request->variable('lang_explain', $field_row['lang_explain'], true);
|
||||
$cp->vars['lang_default_value'] = $request->variable('lang_default_value', $field_row['lang_default_value'], true);
|
||||
$cp->vars['field_contact_desc'] = $request->variable('field_contact_desc', $field_row['field_contact_desc'], true);
|
||||
$cp->vars['field_contact_url'] = $request->variable('field_contact_url', $field_row['field_contact_url'], true);
|
||||
|
||||
foreach ($visibility_ary as $val)
|
||||
{
|
||||
$cp->vars[$val] = ($submit || $save) ? request_var($val, 0) : $field_row[$val];
|
||||
$cp->vars[$val] = ($submit || $save) ? $request->variable($val, 0) : $field_row[$val];
|
||||
}
|
||||
|
||||
$cp->vars['field_no_view'] = request_var('field_no_view', (int) $field_row['field_no_view']);
|
||||
$cp->vars['field_no_view'] = $request->variable('field_no_view', (int) $field_row['field_no_view']);
|
||||
|
||||
// If the user has submitted a form with options (i.e. dropdown field)
|
||||
if ($options)
|
||||
@ -626,6 +632,9 @@ class acp_profile
|
||||
'S_FIELD_HIDE' => ($cp->vars['field_hide']) ? true : false,
|
||||
'S_SHOW_PROFILE' => ($cp->vars['field_show_profile']) ? true : false,
|
||||
'S_FIELD_NO_VIEW' => ($cp->vars['field_no_view']) ? true : false,
|
||||
'S_FIELD_CONTACT' => $cp->vars['field_is_contact'],
|
||||
'FIELD_CONTACT_DESC'=> $cp->vars['field_contact_desc'],
|
||||
'FIELD_CONTACT_URL' => $cp->vars['field_contact_url'],
|
||||
|
||||
'L_LANG_SPECIFIC' => sprintf($user->lang['LANG_SPECIFIC_OPTIONS'], $config['default_lang']),
|
||||
'FIELD_TYPE' => $profile_field->get_name(),
|
||||
@ -886,7 +895,10 @@ class acp_profile
|
||||
'field_show_on_ml' => $cp->vars['field_show_on_ml'],
|
||||
'field_hide' => $cp->vars['field_hide'],
|
||||
'field_show_profile' => $cp->vars['field_show_profile'],
|
||||
'field_no_view' => $cp->vars['field_no_view']
|
||||
'field_no_view' => $cp->vars['field_no_view'],
|
||||
'field_is_contact' => $cp->vars['field_is_contact'],
|
||||
'field_contact_desc' => $cp->vars['field_contact_desc'],
|
||||
'field_contact_url' => $cp->vars['field_contact_url'],
|
||||
);
|
||||
|
||||
if ($action == 'create')
|
||||
|
@ -777,6 +777,9 @@ $schema_data['phpbb_profile_fields'] = array(
|
||||
'field_no_view' => array('BOOL', 0),
|
||||
'field_active' => array('BOOL', 0),
|
||||
'field_order' => array('UINT', 0),
|
||||
'field_is_contact' => array('BOOL', 0),
|
||||
'field_contact_desc' => array('VCHAR', ''),
|
||||
'field_contact_url' => array('VCHAR', ''),
|
||||
),
|
||||
'PRIMARY_KEY' => 'field_id',
|
||||
'KEYS' => array(
|
||||
|
@ -926,7 +926,10 @@ CREATE TABLE phpbb_profile_fields (
|
||||
field_hide INTEGER DEFAULT 0 NOT NULL,
|
||||
field_no_view INTEGER DEFAULT 0 NOT NULL,
|
||||
field_active INTEGER DEFAULT 0 NOT NULL,
|
||||
field_order INTEGER DEFAULT 0 NOT NULL
|
||||
field_order INTEGER DEFAULT 0 NOT NULL,
|
||||
field_is_contact INTEGER DEFAULT 0 NOT NULL,
|
||||
field_contact_desc VARCHAR(255) CHARACTER SET NONE DEFAULT '' NOT NULL,
|
||||
field_contact_url VARCHAR(255) CHARACTER SET NONE DEFAULT '' NOT NULL
|
||||
);;
|
||||
|
||||
ALTER TABLE phpbb_profile_fields ADD PRIMARY KEY (field_id);;
|
||||
|
@ -1132,7 +1132,10 @@ CREATE TABLE [phpbb_profile_fields] (
|
||||
[field_hide] [int] DEFAULT (0) NOT NULL ,
|
||||
[field_no_view] [int] DEFAULT (0) NOT NULL ,
|
||||
[field_active] [int] DEFAULT (0) NOT NULL ,
|
||||
[field_order] [int] DEFAULT (0) NOT NULL
|
||||
[field_order] [int] DEFAULT (0) NOT NULL ,
|
||||
[field_is_contact] [int] DEFAULT (0) NOT NULL ,
|
||||
[field_contact_desc] [varchar] (255) DEFAULT ('') NOT NULL ,
|
||||
[field_contact_url] [varchar] (255) DEFAULT ('') NOT NULL
|
||||
) ON [PRIMARY]
|
||||
GO
|
||||
|
||||
|
@ -664,6 +664,9 @@ CREATE TABLE phpbb_profile_fields (
|
||||
field_no_view tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
|
||||
field_active tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
|
||||
field_order mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
|
||||
field_is_contact tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
|
||||
field_contact_desc varbinary(255) DEFAULT '' NOT NULL,
|
||||
field_contact_url varbinary(255) DEFAULT '' NOT NULL,
|
||||
PRIMARY KEY (field_id),
|
||||
KEY fld_type (field_type),
|
||||
KEY fld_ordr (field_order)
|
||||
|
@ -664,6 +664,9 @@ CREATE TABLE phpbb_profile_fields (
|
||||
field_no_view tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
|
||||
field_active tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
|
||||
field_order mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
|
||||
field_is_contact tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
|
||||
field_contact_desc varchar(255) DEFAULT '' NOT NULL,
|
||||
field_contact_url varchar(255) DEFAULT '' NOT NULL,
|
||||
PRIMARY KEY (field_id),
|
||||
KEY fld_type (field_type),
|
||||
KEY fld_ordr (field_order)
|
||||
|
@ -1236,6 +1236,9 @@ CREATE TABLE phpbb_profile_fields (
|
||||
field_no_view number(1) DEFAULT '0' NOT NULL,
|
||||
field_active number(1) DEFAULT '0' NOT NULL,
|
||||
field_order number(8) DEFAULT '0' NOT NULL,
|
||||
field_is_contact number(1) DEFAULT '0' NOT NULL,
|
||||
field_contact_desc varchar2(255) DEFAULT '' ,
|
||||
field_contact_url varchar2(255) DEFAULT '' ,
|
||||
CONSTRAINT pk_phpbb_profile_fields PRIMARY KEY (field_id)
|
||||
)
|
||||
/
|
||||
|
@ -872,6 +872,9 @@ CREATE TABLE phpbb_profile_fields (
|
||||
field_no_view INT2 DEFAULT '0' NOT NULL CHECK (field_no_view >= 0),
|
||||
field_active INT2 DEFAULT '0' NOT NULL CHECK (field_active >= 0),
|
||||
field_order INT4 DEFAULT '0' NOT NULL CHECK (field_order >= 0),
|
||||
field_is_contact INT2 DEFAULT '0' NOT NULL CHECK (field_is_contact >= 0),
|
||||
field_contact_desc varchar(255) DEFAULT '' NOT NULL,
|
||||
field_contact_url varchar(255) DEFAULT '' NOT NULL,
|
||||
PRIMARY KEY (field_id)
|
||||
);
|
||||
|
||||
|
@ -644,7 +644,10 @@ CREATE TABLE phpbb_profile_fields (
|
||||
field_hide INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
field_no_view INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
field_active INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
field_order INTEGER UNSIGNED NOT NULL DEFAULT '0'
|
||||
field_order INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
field_is_contact INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
field_contact_desc varchar(255) NOT NULL DEFAULT '',
|
||||
field_contact_url varchar(255) NOT NULL DEFAULT ''
|
||||
);
|
||||
|
||||
CREATE INDEX phpbb_profile_fields_fld_type ON phpbb_profile_fields (field_type);
|
||||
|
@ -82,6 +82,8 @@ $lang = array_merge($lang, array(
|
||||
'EVERYTHING_OK' => 'Everything OK',
|
||||
|
||||
'FIELD_BOOL' => 'Boolean (Yes/No)',
|
||||
'FIELD_CONTACT_DESC' => 'Contact description',
|
||||
'FIELD_CONTACT_URL' => 'Contact link',
|
||||
'FIELD_DATE' => 'Date',
|
||||
'FIELD_DESCRIPTION' => 'Field description',
|
||||
'FIELD_DESCRIPTION_EXPLAIN' => 'The explanation for this field presented to the user.',
|
||||
@ -90,6 +92,8 @@ $lang = array_merge($lang, array(
|
||||
'FIELD_IDENT_ALREADY_EXIST' => 'The chosen field identification already exist. Please choose another name.',
|
||||
'FIELD_IDENT_EXPLAIN' => 'The field identification is a name to identify the profile field within the database and the templates.',
|
||||
'FIELD_INT' => 'Numbers',
|
||||
'FIELD_IS_CONTACT' => 'Display field as a contact field',
|
||||
'FIELD_IS_CONTACT_EXPLAIN' => 'Contact fields are displayed with in the contact section of the user profile and are displayed differently in the mini profile next to posts and private messages.',
|
||||
'FIELD_LENGTH' => 'Length of input box',
|
||||
'FIELD_NOT_FOUND' => 'Profile field not found.',
|
||||
'FIELD_STRING' => 'Single text field',
|
||||
|
@ -0,0 +1,51 @@
|
||||
<?php
|
||||
/**
|
||||
*
|
||||
* @package migration
|
||||
* @copyright (c) 2014 phpBB Group
|
||||
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
|
||||
*
|
||||
*/
|
||||
|
||||
namespace phpbb\db\migration\data\v310;
|
||||
|
||||
class profilefield_contact_field extends \phpbb\db\migration\migration
|
||||
{
|
||||
public function effectively_installed()
|
||||
{
|
||||
return $this->db_tools->sql_column_exists($this->table_prefix . 'profile_fields', 'field_is_contact');
|
||||
}
|
||||
|
||||
static public function depends_on()
|
||||
{
|
||||
return array(
|
||||
'\phpbb\db\migration\data\v310\profilefield_on_memberlist',
|
||||
);
|
||||
}
|
||||
|
||||
public function update_schema()
|
||||
{
|
||||
return array(
|
||||
'add_columns' => array(
|
||||
$this->table_prefix . 'profile_fields' => array(
|
||||
'field_is_contact' => array('BOOL', 0),
|
||||
'field_contact_desc' => array('VCHAR', ''),
|
||||
'field_contact_url' => array('VCHAR', ''),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
public function revert_schema()
|
||||
{
|
||||
return array(
|
||||
'drop_columns' => array(
|
||||
$this->table_prefix . 'profile_fields' => array(
|
||||
'field_is_contact',
|
||||
'field_contact_desc',
|
||||
'field_contact_url',
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
@ -353,21 +353,40 @@ class manager
|
||||
continue;
|
||||
}
|
||||
|
||||
$field_desc = $this->user->lang($ident_ary['data']['field_contact_desc']);
|
||||
if (strpos($field_desc, '%s') !== false)
|
||||
{
|
||||
$field_desc = sprintf($field_desc, $value);
|
||||
}
|
||||
$contact_url = '';
|
||||
if (strpos($ident_ary['data']['field_contact_url'], '%s') !== false)
|
||||
{
|
||||
$contact_url = sprintf($ident_ary['data']['field_contact_url'], $value);
|
||||
}
|
||||
|
||||
$tpl_fields['row'] += array(
|
||||
'PROFILE_' . strtoupper($ident) . '_IDENT' => $ident,
|
||||
'PROFILE_' . strtoupper($ident) . '_VALUE' => $value,
|
||||
'PROFILE_' . strtoupper($ident) . '_CONTACT'=> $contact_url,
|
||||
'PROFILE_' . strtoupper($ident) . '_DESC' => $field_desc,
|
||||
'PROFILE_' . strtoupper($ident) . '_TYPE' => $ident_ary['data']['field_type'],
|
||||
'PROFILE_' . strtoupper($ident) . '_NAME' => $this->user->lang($ident_ary['data']['lang_name']),
|
||||
'PROFILE_' . strtoupper($ident) . '_EXPLAIN'=> $this->user->lang($ident_ary['data']['lang_explain']),
|
||||
|
||||
'S_PROFILE_' . strtoupper($ident) . '_CONTACT' => $ident_ary['data']['field_is_contact'],
|
||||
'S_PROFILE_' . strtoupper($ident) => true,
|
||||
);
|
||||
|
||||
$tpl_fields['blockrow'][] = array(
|
||||
'PROFILE_FIELD_IDENT' => $ident,
|
||||
'PROFILE_FIELD_VALUE' => $value,
|
||||
'PROFILE_FIELD_CONTACT' => $contact_url,
|
||||
'PROFILE_FIELD_DESC' => $field_desc,
|
||||
'PROFILE_FIELD_TYPE' => $ident_ary['data']['field_type'],
|
||||
'PROFILE_FIELD_NAME' => $this->user->lang($ident_ary['data']['lang_name']),
|
||||
'PROFILE_FIELD_EXPLAIN' => $this->user->lang($ident_ary['data']['lang_explain']),
|
||||
|
||||
'S_PROFILE_CONTACT' => $ident_ary['data']['field_is_contact'],
|
||||
'S_PROFILE_' . strtoupper($ident) => true,
|
||||
);
|
||||
}
|
||||
|
@ -29,7 +29,11 @@
|
||||
<!-- IF S_USER_INACTIVE --><dt>{L_USER_IS_INACTIVE}{L_COLON}</dt> <dd>{USER_INACTIVE_REASON}</dd><!-- ENDIF -->
|
||||
<!-- IF AGE !== '' --><dt>{L_AGE}{L_COLON}</dt> <dd>{AGE}</dd><!-- ENDIF -->
|
||||
<!-- IF S_GROUP_OPTIONS --><dt>{L_USERGROUPS}{L_COLON}</dt> <dd><select name="g">{S_GROUP_OPTIONS}</select> <input type="submit" name="submit" value="{L_GO}" class="button2" /></dd><!-- ENDIF -->
|
||||
<!-- BEGIN custom_fields --><dt>{custom_fields.PROFILE_FIELD_NAME}{L_COLON}</dt> <dd>{custom_fields.PROFILE_FIELD_VALUE}</dd><!-- END custom_fields -->
|
||||
<!-- BEGIN custom_fields -->
|
||||
<!-- IF not custom_fields.S_PROFILE_CONTACT -->
|
||||
<dt>{custom_fields.PROFILE_FIELD_NAME}{L_COLON}</dt> <dd>{custom_fields.PROFILE_FIELD_VALUE}</dd>
|
||||
<!-- ENDIF -->
|
||||
<!-- END custom_fields -->
|
||||
<!-- IF S_USER_LOGGED_IN and S_ZEBRA -->
|
||||
<!-- IF U_REMOVE_FRIEND -->
|
||||
<dt> </dt> <dd class="zebra"><a href="{U_REMOVE_FRIEND}" data-ajax="zebra"><strong>{L_REMOVE_FRIEND}</strong></a></dd>
|
||||
@ -64,6 +68,11 @@
|
||||
<!-- IF U_AIM or USER_AIM --><dt>{L_AIM}{L_COLON}</dt> <dd><!-- IF U_AIM --><a href="{U_AIM}" onclick="popup(this.href, 550, 320); return false;">{L_SEND_AIM_MESSAGE}</a><!-- ELSE -->{USER_AIM}<!-- ENDIF --></dd><!-- ENDIF -->
|
||||
<!-- IF U_ICQ or USER_ICQ --><dt>{L_ICQ}{L_COLON}</dt> <dd><!-- IF U_ICQ --><a href="{U_ICQ}" onclick="popup(this.href, 550, 320); return false;">{L_SEND_ICQ_MESSAGE}</a><!-- ELSE -->{USER_ICQ}<!-- ENDIF --></dd><!-- ENDIF -->
|
||||
<!-- IF U_JABBER and S_JABBER_ENABLED --><dt>{L_JABBER}{L_COLON}</dt> <dd><a href="{U_JABBER}" onclick="popup(this.href, 550, 320); return false;">{L_SEND_JABBER_MESSAGE}</a></dd><!-- ELSEIF USER_JABBER --><dt>{L_JABBER}{L_COLON}</dt> <dd>{USER_JABBER}</dd><!-- ENDIF -->
|
||||
<!-- BEGIN custom_fields -->
|
||||
<!-- IF custom_fields.S_PROFILE_CONTACT -->
|
||||
<dt>{custom_fields.PROFILE_FIELD_NAME}{L_COLON}</dt> <dd><a href="{custom_fields.PROFILE_FIELD_CONTACT}">{custom_fields.PROFILE_FIELD_DESC}</a></dd>
|
||||
<!-- ENDIF -->
|
||||
<!-- END custom_fields -->
|
||||
<!-- IF S_PROFILE_FIELD1 -->
|
||||
<!-- NOTE: Use a construct like this to include admin defined profile fields. Replace FIELD1 with the name of your field. -->
|
||||
<dt>{PROFILE_FIELD1_NAME}{L_COLON}</dt> <dd>{PROFILE_FIELD1_VALUE}</dd>
|
||||
|
@ -27,7 +27,9 @@
|
||||
|
||||
<!-- EVENT ucp_pm_viewmessage_custom_fields_before -->
|
||||
<!-- BEGIN custom_fields -->
|
||||
<dd><strong>{custom_fields.PROFILE_FIELD_NAME}{L_COLON}</strong> {custom_fields.PROFILE_FIELD_VALUE}</dd>
|
||||
<!-- IF not custom_fields.S_PROFILE_CONTACT -->
|
||||
<dd><strong>{custom_fields.PROFILE_FIELD_NAME}{L_COLON}</strong> {custom_fields.PROFILE_FIELD_VALUE}</dd>
|
||||
<!-- ENDIF -->
|
||||
<!-- END custom_fields -->
|
||||
<!-- EVENT ucp_pm_viewmessage_custom_fields_after -->
|
||||
|
||||
@ -35,6 +37,7 @@
|
||||
<!-- IF U_PM or U_EMAIL or U_WWW or U_MSN or U_ICQ or U_YIM or U_AIM or U_JABBER -->
|
||||
<dd>
|
||||
<ul class="profile-icons">
|
||||
<!-- EVENT ucp_pm_viewmessage_contact_fields_before -->
|
||||
<!-- IF U_PM --><li class="pm-icon"><a href="{U_PM}" title="{L_PRIVATE_MESSAGE}"><span>{L_PRIVATE_MESSAGE}</span></a></li><!-- ENDIF -->
|
||||
<!-- IF U_EMAIL --><li class="email-icon"><a href="{U_EMAIL}" title="{L_SEND_EMAIL_USER} {MESSAGE_AUTHOR}"><span>{L_SEND_EMAIL_USER} {MESSAGE_AUTHOR}</span></a></li><!-- ENDIF -->
|
||||
<!-- IF U_WWW --><li class="web-icon"><a href="{U_WWW}" title="{L_VISIT_WEBSITE}{L_COLON} {U_WWW}"><span>{L_WEBSITE}</span></a></li><!-- ENDIF -->
|
||||
@ -43,6 +46,12 @@
|
||||
<!-- IF U_YIM --><li class="yahoo-icon"><a href="{U_YIM}" onclick="popup(this.href, 780, 550); return false;" title="{L_YIM}"><span>{L_YIM}</span></a></li><!-- ENDIF -->
|
||||
<!-- IF U_AIM --><li class="aim-icon"><a href="{U_AIM}" onclick="popup(this.href, 550, 320); return false;" title="{L_AIM}"><span>{L_AIM}</span></a></li><!-- ENDIF -->
|
||||
<!-- IF U_JABBER --><li class="jabber-icon"><a href="{U_JABBER}" onclick="popup(this.href, 550, 320); return false;" title="{L_JABBER}"><span>{L_JABBER}</span></a></li><!-- ENDIF -->
|
||||
<!-- BEGIN custom_fields -->
|
||||
<!-- IF custom_fields.S_PROFILE_CONTACT -->
|
||||
<li class="{custom_fields.PROFILE_FIELD_IDENT}-icon"><a href="{custom_fields.PROFILE_FIELD_CONTACT}"><span>{custom_fields.PROFILE_FIELD_NAME}</span></a></li>
|
||||
<!-- ENDIF -->
|
||||
<!-- END custom_fields -->
|
||||
<!-- EVENT ucp_pm_viewmessage_contact_fields_after -->
|
||||
</ul>
|
||||
</dd>
|
||||
<!-- ENDIF -->
|
||||
|
@ -137,7 +137,9 @@
|
||||
|
||||
<!-- EVENT viewtopic_body_postrow_custom_fields_before -->
|
||||
<!-- BEGIN custom_fields -->
|
||||
<dd><strong>{postrow.custom_fields.PROFILE_FIELD_NAME}{L_COLON}</strong> {postrow.custom_fields.PROFILE_FIELD_VALUE}</dd>
|
||||
<!-- IF not postrow.custom_fields.S_PROFILE_CONTACT -->
|
||||
<dd><strong>{postrow.custom_fields.PROFILE_FIELD_NAME}{L_COLON}</strong> {postrow.custom_fields.PROFILE_FIELD_VALUE}</dd>
|
||||
<!-- ENDIF -->
|
||||
<!-- END custom_fields -->
|
||||
<!-- EVENT viewtopic_body_postrow_custom_fields_after -->
|
||||
|
||||
@ -153,6 +155,11 @@
|
||||
<!-- IF postrow.U_YIM --><li class="yahoo-icon"><a href="{postrow.U_YIM}" onclick="popup(this.href, 780, 550); return false;" title="{L_YIM}"><span>{L_YIM}</span></a></li><!-- ENDIF -->
|
||||
<!-- IF postrow.U_AIM --><li class="aim-icon"><a href="{postrow.U_AIM}" onclick="popup(this.href, 550, 320); return false;" title="{L_AIM}"><span>{L_AIM}</span></a></li><!-- ENDIF -->
|
||||
<!-- IF postrow.U_JABBER --><li class="jabber-icon"><a href="{postrow.U_JABBER}" onclick="popup(this.href, 550, 320); return false;" title="{L_JABBER}"><span>{L_JABBER}</span></a></li><!-- ENDIF -->
|
||||
<!-- BEGIN custom_fields -->
|
||||
<!-- IF postrow.custom_fields.S_PROFILE_CONTACT -->
|
||||
<li class="{postrow.custom_fields.PROFILE_FIELD_IDENT}-icon"><a href="{postrow.custom_fields.PROFILE_FIELD_CONTACT}"><span>{postrow.custom_fields.PROFILE_FIELD_NAME}</span></a></li>
|
||||
<!-- ENDIF -->
|
||||
<!-- END custom_fields -->
|
||||
</ul>
|
||||
</dd>
|
||||
<!-- ENDIF -->
|
||||
|
@ -138,6 +138,14 @@
|
||||
<td class="gen" nowrap="nowrap" align="{S_CONTENT_FLOW_END}">{L_JABBER}{L_COLON} </td>
|
||||
<td><!-- IF U_JABBER --><a href="{U_JABBER}" onclick="popup(this.href, 550, 320); return false" class="imageset">{JABBER_IMG}</a><!-- ELSEIF USER_JABBER -->{USER_JABBER_IMG}<!-- ENDIF --></td>
|
||||
</tr>
|
||||
<!-- BEGIN custom_fields -->
|
||||
<!-- IF custom_fields.S_PROFILE_CONTACT -->
|
||||
<tr>
|
||||
<td class="gen" align="{S_CONTENT_FLOW_END}" nowrap="nowrap">{custom_fields.PROFILE_FIELD_NAME}{L_COLON} </td>
|
||||
<td><b class="genmed">{custom_fields.PROFILE_FIELD_VALUE}</b></td>
|
||||
</tr>
|
||||
<!-- ENDIF -->
|
||||
<!-- END custom_fields -->
|
||||
</table>
|
||||
</td>
|
||||
<td class="row1">
|
||||
@ -164,10 +172,12 @@
|
||||
</tr>
|
||||
<!-- ENDIF -->
|
||||
<!-- BEGIN custom_fields -->
|
||||
<!-- IF not custom_fields.S_PROFILE_CONTACT -->
|
||||
<tr>
|
||||
<td class="gen" align="{S_CONTENT_FLOW_END}" nowrap="nowrap">{custom_fields.PROFILE_FIELD_NAME}{L_COLON} </td>
|
||||
<td><b class="genmed">{custom_fields.PROFILE_FIELD_VALUE}</b></td>
|
||||
</tr>
|
||||
<!-- ENDIF -->
|
||||
<!-- END custom_fields -->
|
||||
</table>
|
||||
</td>
|
||||
|
@ -210,7 +210,9 @@
|
||||
|
||||
<!-- EVENT viewtopic_body_postrow_custom_fields_before -->
|
||||
<!-- BEGIN custom_fields -->
|
||||
<!-- IF not postrow.custom_fields.S_PROFILE_CONTACT -->
|
||||
<br /><b>{postrow.custom_fields.PROFILE_FIELD_NAME}{L_COLON}</b> {postrow.custom_fields.PROFILE_FIELD_VALUE}
|
||||
<!-- ENDIF -->
|
||||
<!-- END custom_fields -->
|
||||
<!-- EVENT viewtopic_body_postrow_custom_fields_after -->
|
||||
</span>
|
||||
|
Loading…
x
Reference in New Issue
Block a user