David McHenry Posted February 24, 2010 Posted February 24, 2010 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. Quote
Administrators AWS Posted February 24, 2010 Administrators Posted February 24, 2010 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. Quote
David McHenry Posted February 25, 2010 Author Posted February 25, 2010 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. Quote
IPS Staff MattM Posted February 25, 2010 IPS Staff Posted February 25, 2010 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> Quote
David McHenry Posted February 25, 2010 Author Posted February 25, 2010 Thanks Matt, It actually was a problem with the userInfopane template! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.