Jump to content

Recommended Posts

Posted
Anyone know the code to add profile fields back to the postbit area? I'm using a custom skin and apparently it's missing from it, and I've tried to find the code from a default template but wasn't successful on it.
  • Administrators
Posted

Make sure you have this in your topicView template

 

<div class='author_info'>
{parse template="userInfoPane" group="global" params="$post['author'], $post['post']['pid'], array()"}
</div>

just under this block of code.

 

<a href="{parse url="app=core&module=usercp&tab=members&area=mod_ipaddress&do=custom&ip={$post['post']['ip_address']}" base="public"}" title='{$this->lang->words['info_about_this_ip']}'>{$post['post']['ip_address']}</a>
					</if>
					)</span>
				</if>
			</h3>

Also make sure in the profile fields group you have the field enabled to be shown in the user info pane and then edit the html for the field.

  • IPS Staff
Posted

David,

 

Check in the Global skin, template bit "userInfoPane"

 

Make sure it has this:

 

<if test="authorcfields:|:$author['custom_fields'] != """>
	<foreach loop="customFieldsOuter:$author['custom_fields'] as $group => $data">
		<foreach loop="customFields:$author['custom_fields'][ $group ] as $field">
			<if test="$field != ''">
				<li>
					{$field}
				</li>
			</if>
		</foreach>
	</foreach>
</if>

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...