XF 1.1 how to remove the HOMEPAGE textbox in personal details info

swatme

Well-known member
Hi,

how can i remove the HOMEPAGE textbox in personal details info of the members.

thanks
 
Admin Control Panel -> Appearance -> Styles & Templates -> Templates -> account_personal_details

Find and remove :

Code:
<dl class="ctrlUnit">
<dt><label for="ctrl_homepage">{xen:phrase home_page}:</label></dt>
<dd><input type="url" name="homepage" value="{$visitor.homepage}" id="ctrl_homepage" class="textCtrl" /></dd>
</dl>

Also, you might want to remove it from displaying on the member's profiles as well, ;)

Admin Control Panel -> Appearance -> Styles & Templates -> Templates ->member_view

Find and remove :

Code:
<xen:if is="{$user.homepage}">
<dt>{xen:phrase home_page}:</dt>
<dd><a href="{xen:string censor, $user.homepage, 'x'}" rel="nofollow" target="_blank" itemprop="url">{xen:string censor, $user.homepage}</a></dd>
</xen:if>
 
How can I show content to a specific user group?
Code:
<xen:if is="{xen:helper ismemberof, $visitor, x}">
<dl class="ctrlUnit">
<dt><label for="ctrl_homepage">{xenhrase home_page}:</label></dt>
<dd><input type="url" name="homepage" value="{$visitor.homepage}" id="ctrl_homepage" class="textCtrl" /></dd>
</dl></xen:if>
How can I show content to more than one user group?
Code:
<xen:if is="{xen:helper ismemberof, $visitor, x, y}">
<dl class="ctrlUnit">
<dt><label for="ctrl_homepage">{xenhrase home_page}:</label></dt>
<dd><input type="url" name="homepage" value="{$visitor.homepage}" id="ctrl_homepage" class="textCtrl" /></dd>
</dl></xen:if>

change the x and y to your member group id
 
EDIT - Oooops! I see you have kindly added that info already :D

Cheers kkm323.

Where would that go, considering the code please?
Admin Control Panel -> Appearance -> Styles & Templates -> Templates -> account_personal_details

Find and remove :

Code:
<dl class="ctrlUnit">
<dt><label for="ctrl_homepage">{xen:phrase home_page}:</label></dt>
<dd><input type="url" name="homepage" value="{$visitor.homepage}" id="ctrl_homepage" class="textCtrl" /></dd>
</dl>

Also, you might want to remove it from displaying on the member's profiles as well, ;)

Admin Control Panel -> Appearance -> Styles & Templates -> Templates ->member_view

Find and remove :

Code:
<xen:if is="{$user.homepage}">
<dt>{xen:phrase home_page}:</dt>
<dd><a href="{xen:string censor, $user.homepage, 'x'}" rel="nofollow" target="_blank" itemprop="url">{xen:string censor, $user.homepage}</a></dd>
</xen:if>
 
Top Bottom