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

M@rc

Well-known member
#2
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>
 

lazer

Well-known member
#4
Is it possible to wrap group conditionals around this? So that members of a higher group can see and use it?
 

kkm323

Well-known member
#5
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
 

lazer

Well-known member
#6
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>
 

lazer

Well-known member
#8
It would be interesting to know if this could be done for the rest of the profile..maybe the "About You" box?
 
Top