1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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

Discussion in 'XenForo Questions and Support' started by swatme, Nov 18, 2011.

  1. swatme

    swatme Well-Known Member

    Hi,

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

    thanks
     
  2. M@rc

    M@rc Well-Known Member

    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>
     
    Jake Bunce, swatme and Fuhrmann like this.
  3. swatme

    swatme Well-Known Member

    great! thanks mate.

    this will be another step to discourage spammers as theres no homepage info :D
     
  4. lazer

    lazer Well-Known Member

    Is it possible to wrap group conditionals around this? So that members of a higher group can see and use it?
     
  5. kkm323

    kkm323 Well-Known Member

    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
     
    Jake Bunce and lazer like this.
  6. lazer

    lazer Well-Known Member

    EDIT - Oooops! I see you have kindly added that info already :D

    Cheers kkm323.

    Where would that go, considering the code please?
     
  7. kkm323

    kkm323 Well-Known Member

    "Admin Control Panel -> Appearance -> Styles & Templates -> Templates -> account_personal_details"-M@rc
     
  8. lazer

    lazer Well-Known Member

    It would be interesting to know if this could be done for the rest of the profile..maybe the "About You" box?
     
  9. kkm323

    kkm323 Well-Known Member

    It should work but I don't recommend the use of template edit for this. Since users can get access to using another styles
    You should look at this

    Custom User Fields in XenForo 1.1
     
    lazer likes this.

Share This Page