-
PHPBB .

,
:D


#
#-----[ ]------------------------------------------
#
admin/admin_board.php

#
#-----[ ]------------------------------------------
#
message_die(GENERAL_ERROR, "Failed to update general configuration for $config_name", "", __LINE__, __FILE__, $sql);
}

#
#-----[ , ]------------------------------------------
#

//
// MOD: Style Under Username
//
if( $config_name == 'default_style' )
{
$sql = 'UPDATE ' . USERS_TABLE . " SET user_style='" . $config_value . "'
WHERE user_id='" . ANONYMOUS . "'";
if( !$db->sql_query($sql) )
{
message_die(GENERAL_ERROR, 'Failed to update anonymous user board style', '', __LINE__, __FILE__, $sql);
}
}
//
// MOD: -END-
//

#
#-----[ ]------------------------------------------
#
viewtopic.php

#
#-----[ ]------------------------------------------
#

//
// Go ahead and pull all data for this topic
//

#
#-----[ , ]------------------------------------------
#

//
// MOD: Style Under Username
//

$style_counts = get_style_counts();

//
// MOD: -END-
//

#
#-----[ ]------------------------------------------
#

$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


#
#-----[ ]------------------------------------------
#

, u.user_style, t.style_name

#
#-----[ ]------------------------------------------
#

FROM " . POSTS_TABLE . " p, " . USERS_TABLE . " u, " . POSTS_TEXT_TABLE . " pt

#
#-----[ ]------------------------------------------
#

, " . THEMES_TABLE . " t

#
#-----[ ]------------------------------------------
#

AND u.user_id = p.poster_id

#
#-----[ ]------------------------------------------
#

AND t.themes_id = u.user_style

#
#-----[ ]------------------------------------------
#
$post_subject = ( $postrow[$i]['post_subject'] != '' ) ? $postrow[$i]['post_subject'] : '';

#
#-----[ ]------------------------------------------
#

//
// MOD: Style Under Username
//

$style_name = $postrow[$i]['style_name'];
$theme_id = $postrow[$i]['user_style'];
$theme_num = sprintf($lang['Style_theme_num'], $style_counts[$postrow[$i]['user_style'>);
$l_style = $lang['Style'];

//
// MOD: -END-
//

#
#-----[ ]------------------------------------------
#

'U_MINI_POST' => $mini_post_url,


#
#-----[ ]------------------------------------------
#

//
// MOD: Style Under Username
//

'L_STYLE' => $l_style,
'STYLE_NAME' => $style_name,
'THEME_ID' => $theme_id,
'THEME_NUM' => $theme_num,

//
// MOD: -END-
//

#
#-----[ ]------------------------------------------
#
includes/functions.php

#
#-----[ ]------------------------------------------
#
?>

#
#-----[ ]------------------------------------------
#
//
// MOD: Style Under Username
//

function get_style_counts()
{
global $db, $lang;

$style_counts = array();

$sql = 'SELECT user_style, COUNT(*) as total FROM ' . USERS_TABLE . ' GROUP BY user_style';
if ( !$result = $db->sql_query($sql) )
{
message_die(GENERAL_ERROR, 'Style_counts_error', '', __LINE__, __FILE__, $sql);
}
while( $style_row = $db->sql_fetchrow($result) )
{
$style_counts[$style_row['user_style'> = $style_row['total'];
}
return $style_counts;
}

//
// MOD: -END-
//


#
#-----[ ]------------------------------------------
#
includes/usercp_viewprofile.php

#
#-----[ ]------------------------------------------
#
//
// Output page header and profile_view template
//

#
#-----[ ]------------------------------------------
#

//
// MOD: Style Under Username
//
$sql = 'SELECT style_name
FROM ' . THEMES_TABLE . '
WHERE themes_id = ' . $profiledata['user_style'];

if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Style_profile_error', '', __LINE__, __FILE__, $sql);
}

$stylerow = array();
while ( $row = $db->sql_fetchrow($result) )
{
$stylerow = $row;
}
$db->sql_freeresult($result);

$style_counts = get_style_counts();

$user_style = $stylerow['style_name'];

//
// MOD: -END-
//

#
#-----[ ]------------------------------------------
#
'L_INTERESTS' => $lang['Interests'],

#
#-----[ ]------------------------------------------
#

//
// MOD: Style Under Username
//

'L_USER_STYLE' => $lang['Style'],
'USER_STYLE' => $user_style,
'STYLE_NUM' => sprintf($lang['Style_theme_num'], $style_counts[$profiledata['user_style'>),
'THEME_ID' => $profiledata['user_style'],

//
// MOD: -END-
//


#
#-----[ ]------------------------------------------
#
language/lang_english/lang_main.php


#
#-----[ FIND ]------------------------------------------
#

//
// That's all, Folks!
// -------------------------------------------------

#
#-----[ ]------------------------------------------
#

//
// MOD: Style Under Username
//

$lang['Style'] = 'Style: ';
$lang['Style_theme_num'] = '(%d)';
$lang['Style_profile_error'] = 'Could not obtain style information';
$lang['Style_counts_error'] = 'Could not obtain user style counts.';

//
// MOD: -END-
//

#
#-----[ ]------------------------------------------
#
templates/subSilver/viewtopic_body.tpl


#
#-----[ ]------------------------------------------
#
{postrow.POSTER_POSTS}<br />

#
#-----[ ]------------------------------------------
#
# : :
#

{postrow.L_STYLE}{postrow.STYLE_NAME} {postrow.THEME_NUM}<br />

#
#-----[ ]------------------------------------------
#
# : :
#

{postrow.L_STYLE}<a href="changestyle.php?s={postrow.THEME_ID}">{postrow.STYLE_NAME}</a> {postrow.THEME_NUM}<br />

#
#-----[ ]------------------------------------------
#
templates/subSilver/profile_view_body.tpl

#
#-----[ ]------------------------------------------
#
<tr>
<td valign="top" align="right" nowrap="nowrap"><span class="gen">{L_INTERESTS}:</span></td>
<td> <b><span class="gen">{INTERESTS}</span></b></td>
</tr>

#
#-----[ ]------------------------------------------
#
# : :
#

<tr>
<td valign="top" align="right" nowrap="nowrap"><span class="gen">{L_USER_STYLE}</span></td>
<td><span class="gen"><b>{USER_STYLE} {STYLE_NUM}</b></span></td>
</tr>

#
#-----[ ]------------------------------------------
#
# : :
#
<tr>
<td valign="top" align="right" nowrap="nowrap"><span class="gen">{L_USER_STYLE}</span></td>
<td><span class="gen"><b><a href="changestyle.php?s={THEME_ID}">{USER_STYLE}</a> {STYLE_NUM}</b></span></td>
</tr>


#
#-----[ SAVE & ]------------------------------------------
#
#


:





,
!

/ /