SMF Support > SMF 2.0.x Support
smf change place
satinof:
how to change place?
i need to "Banned" be after name, not after ranks, avatar..
Display.template.php
Find:
--- Code: ---// Show avatars, images, etc.?
if (!empty($settings['show_user_images']) && empty($options['show_no_avatars']) && !empty($message['member']['avatar']['image']))
echo '
<li class="avatar">
<a href="', $scripturl, '?action=profile;u=', $message['member']['id'], '">
', $message['member']['avatar']['image'], '
</a>
</li>';
--- End code ---
Replaced
--- Code: ---// Show avatars, images, etc.?
if (!empty($settings['show_user_images']) && empty($options['show_no_avatars']) && !empty($message['member']['avatar']['image']))
echo '
<li class="avatar">
<a href="', $scripturl, '?action=profile;u=', $message['member']['id'], '">
', $message['member']['avatar']['image'], '
</a>
</li>';
// Show banned message in topics & posts
if ($message['member']['is_banned'])
echo '<li><span style="color:red;">', $txt['banned'], '!</span> <img src="', $settings['theme_url'], '/images/pinkdead.gif" /></li>';
--- End code ---
-
i just added this code maybe its will help.
you see its arrow (red) and black area(bolded)
So,....
i need "Banned :-X" change place. to black area
Kindred:
you seem to have made the code changes.... so what is your support question?
satinof:
i just added this code maybe its will help.
you see its arrow (red) and black area(bolded)
So,....
i need "Banned :-X" change place. to black area
Kindred:
well, obviously, you need to move your inserted code to before the avatar section...
satinof:
--- Quote from: Kindred on June 25, 2012, 12:29:06 PM ---well, obviously, you need to move your inserted code to before the avatar section...
--- End quote ---
where? how?...
i done now:
--- Code: --- // Show banned message in topics & posts
if ($message['member']['is_banned'])
echo '<li><span style="color:red;">', $txt['banned'], '!</span> <img src="', $settings['theme_url'], '/images/pinkdead.gif" /></li>';
// Show avatars, images, etc.?
if (!empty($settings['show_user_images']) && empty($options['show_no_avatars']) && !empty($message['member']['avatar']['image']))
echo '
<li class="avatar">
<a href="', $scripturl, '?action=profile;u=', $message['member']['id'], '">
', $message['member']['avatar']['image'], '
</a>
</li>';
--- End code ---
but nothing :(
Navigation
[0] Message Index
[#] Next page
Go to full version