MyBB Community Forums

Full Version: Profile Additional Field
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have read about this [wiki]http://wiki.mybboard.net/index.php/Help:Customizing_Postbit#Custom_Profile_Fields[/wiki]

but I would like to have something(a image actually) like that to appear on the profile field instead.

So for e.g, the new profile field I have is the following:

Name: ABCXYZ - ({$post['fid4']})

but I do not want it to be appeared out as ABC only, I would like to use the following image code as I want to generate their image.

So I should have something like this as HTML, but the problem is where do I put it in to display it out on the profile page?

<img src="http://www.test5.co.uk/test5-imaging/avatarimage?user={$post['fid4']}&action=wav&direction=2&head_direction=2&gesture=sml&size=s>
I think I follow you Undecided

If you need to hard-code something onto the profile page, you need to edit the Member Templates (specifically, the member_profile templates).

For example, to get your "Name" field to appear below the "Additional Information About ???" heading, edit the "member_profile_customfields" template and do something like this:

<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder"><tr><td colspan="2" class="thead"><strong>{$lang->users_additional_info}</strong></td></tr><tr><td class="{$bgcolor}" width="40%"><strong>Name:</strong></td><td class="{$bgcolor}" width="60%"><img src="http://www.test5.co.uk/test5-imaging/avatarimage?user={$memprofile['uid']}&action=wav&direction=2&head_direction=2&gesture=sml&size=s" alt="Alt Text" title="Title Text" /></td></tr>{$customfields}</table>

That should work... I think...

Shy
but what if I have more than 1 of these custom profile fields?
I suppose it's just a simple quick-fix, but just repeat the custom table rows:

<tr><td class="{$bgcolor}" width="40%"><strong>Field Name:</strong></td><td class="{$bgcolor}" width="60%">Custom Content</td></tr>

I have no idea how to alter the custom profile fields to allow anything other than the presets, sorry... but saying that I don't think it can be done without anything short of a plugin or code a new fieldtype to accept <img> tags...
Thanks anyway!

This should be the easiest way out though.