Jump to content

Featured Replies

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

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.

  • Author

Got them both there, and the options for the profile field to show.

 

Gonna ask for support from where I bought the skin and see whats up.

  • IPS Staff

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...