Customizing SMF > SMF Coding Discussion
from forum post to profile
satinof:
NOTE BY K@: I totally misunderstood what was wanted, here. Probably best to scroll past all my rubbish. ;)
i installed mods and its showing only in forum posts, how to add to profile?
i have edited themes/default/profile.template.php but just nickname appear :(
What i need to do?
I need to slash nickname
i have found that:
--- Quote from: 127.0.0.1 on December 28, 2006, 10:35:22 AM ---Well, you said you wanted it on their profile page and under their posts.
So you'd edit Profile.template.php, Display.template.php and PersonalMessage.template.php.
Profile.template.php
Find this code:
--- Code: --- // Now print the second column where the members avatar/text is shown.
echo '
<td class="windowbg" valign="middle" align="center" width="150">
', $context['member']['avatar']['image'], '<br /><br />
', $context['member']['blurb'], '
</td>
</tr>';
--- End code ---
Change it to:
--- Code: --- // Now print the second column where the members avatar/text is shown.
echo '
<td class="windowbg" valign="middle" align="center" width="150">
', $context['member']['avatar']['image'], '<br /><br />',
($context['member']['is_banned'] ? '<div><b>This user is banned.</b></div>' : ''),
$context['member']['blurb'], '
</td>
</tr>';
--- End code ---
Display.template.php and PersonalMessage.template.php
Find this code:
--- Code: --- // Show their personal text?
--- End code ---
Add before it:
--- Code: --- // Show ban status?
if ($message['member']['is_banned'])
echo '<div><b>This user is banned!</b></div>';
--- End code ---
Please backup those three files before you modify them. I did this quickly and it's possibly I made a syntax error.
--- End quote ---
i have found that
but i cant find in profile.template.php like that lines :{
-
MOd:
http://custom.simplemachines.org/mods/index.php?mod=2960
working only in forum posts, i need too add it to profile.
#1 fixed, thx Vyorel
satinof:
bump
K@:
As you require assistance with mods, the best place to ask is in those mod's suppor topics, satinof.
http://www.simplemachines.org/community/index.php?topic=429447.0
http://www.simplemachines.org/community/index.php?topic=474631.0
Read through the topics, before posting, though, because this problem may have already been discussed.
satinof:
K@ -> nothing
satinof:
i have found that:
--- Quote from: 127.0.0.1 on December 28, 2006, 10:35:22 AM ---Well, you said you wanted it on their profile page and under their posts.
So you'd edit Profile.template.php, Display.template.php and PersonalMessage.template.php.
Profile.template.php
Find this code:
--- Code: --- // Now print the second column where the members avatar/text is shown.
echo '
<td class="windowbg" valign="middle" align="center" width="150">
', $context['member']['avatar']['image'], '<br /><br />
', $context['member']['blurb'], '
</td>
</tr>';
--- End code ---
Change it to:
--- Code: --- // Now print the second column where the members avatar/text is shown.
echo '
<td class="windowbg" valign="middle" align="center" width="150">
', $context['member']['avatar']['image'], '<br /><br />',
($context['member']['is_banned'] ? '<div><b>This user is banned.</b></div>' : ''),
$context['member']['blurb'], '
</td>
</tr>';
--- End code ---
Display.template.php and PersonalMessage.template.php
Find this code:
--- Code: --- // Show their personal text?
--- End code ---
Add before it:
--- Code: --- // Show ban status?
if ($message['member']['is_banned'])
echo '<div><b>This user is banned!</b></div>';
--- End code ---
Please backup those three files before you modify them. I did this quickly and it's possibly I made a syntax error.
--- End quote ---
i have found that
but i cant find in profile.template.php like that lines :{
Navigation
[0] Message Index
[#] Next page
Go to full version