Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Topic started by: CLICKBANKS.NET on May 15, 2006, 01:01:05 PM

Title: About me
Post by: CLICKBANKS.NET on May 15, 2006, 01:01:05 PM
SMF Version: SMF 1.0.7
Is't possible to add "about me" something like biography about members on "Profile" ?
Title: Re: About me
Post by: Prasad007 on May 15, 2006, 01:02:46 PM
heyya gr8 point brought up! :)
Something like this should be in SMF... its in all other bb's.
And it should be a default SMF feature.


This should be in feature requests.
Title: Re: About me
Post by: CLICKBANKS.NET on May 15, 2006, 01:04:16 PM
Yup, it's very important so member could write about their data on the profile :)


is there any code for this?
Title: Re: About me
Post by: Skipdawg on May 15, 2006, 04:36:51 PM
There is this http://www.simplemachines.org/community/index.php?topic=24728.0
But I've never used it. But you could look to see if it would work for you.
Title: Re: About me
Post by: gamesmad on May 15, 2006, 05:01:19 PM
Ive not tried it, but http://mods.simplemachines.org/index.php?mod=319 looks like it might help.

Will
Title: Re: About me
Post by: woden on May 15, 2006, 06:26:00 PM
On the default theme Profile.template.php

Look for:

// Some more information.
echo '
</td>
</tr><tr>
<td><b>', $txt[96], ': </b></td>
<td><a href="', $context['member']['website']['url'], '" target="_blank">', $context['member']['website']['title'], '</a></td>
</tr>


and after that add this:


<tr><td colspan="2"><hr size="1" width="100%" class="hrcolor" /></td>
</tr><tr>
<td><b>About Me: </b></td>
<td>', parse_bbc (@$context['member']['options']['about_me']), '</td>
</tr><tr>
<td colspan="2"><hr size="1" width="100%" class="hrcolor" /></td>



The look for:

// Website details.
echo '
<tr>
<td colspan="2"><hr width="100%" size="1" class="hrcolor" /></td>
</tr>
<tr>
<td width="40%"><b>', $txt[83], ': </b><div class="smalltext">', $txt[598], '</div></td>
<td><input type="text" name="websiteTitle" size="50" value="', $context['member']['website']['title'], '" /></td>
</tr><tr>
<td width="40%"><b>', $txt[84], ': </b><div class="smalltext">', $txt[599], '</div></td>
<td><input type="text" name="websiteUrl" size="50" value="', $context['member']['website']['url'], '" /></td></tr>';


And after that add:


echo '<tr>
<td><b>About Me: </b></td>
<td><textarea name="default_options[about_me]" rows="4" cols="80" class="editor">', @$context['member']['options']['about_me'], '</textarea></td>
</tr>';


It's that easy. Please make backups before you change things. ;D