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

XF 1.2 Remove visitor home page

Discussion in 'Styling and Customization Questions' started by tommydamic68, Sep 4, 2013.

  1. tommydamic68

    tommydamic68 Well-Known Member

    i found instructions online to remove home page of member with no avail. please help. is this the correct placement of <xen:comment>?

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

    Chris D XenForo Developer Staff Member

    Code:
    <xen:comment>
        <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>
    </xen:comment>
     
  3. tommydamic68

    tommydamic68 Well-Known Member

    is it account_personal_details in templates? if so, it does not remove it.
     
  4. Jeremy

    Jeremy XenForo Moderator Staff Member

    Where are you trying to remove it?
     
  5. tommydamic68

    tommydamic68 Well-Known Member

    Anywhere it is, the member home page for one. Is there multiple places?
     
  6. AndyB

    AndyB Well-Known Member

    Tommy, are you wanting to remove the home page because of spammers?
     
  7. tommydamic68

    tommydamic68 Well-Known Member

    Perhaps - I just don't want outgoing links to other same like forums or vendors similar to my paying vendors on my site. i'm sure this is an easy fix?
     
  8. tommydamic68

    tommydamic68 Well-Known Member

    im trying to remove this. The home page. Screen Shot 2013-09-05 at 5.35.16 AM.png
     
  9. tommydamic68

    tommydamic68 Well-Known Member

    here is the link i am trying to remove, the members home page link I have tried all the steps above and it does not work.

    Screen Shot 2013-09-06 at 7.24.59 AM.png
     
  10. Jeremy

    Jeremy XenForo Moderator Staff Member

    Chris' code is correct and should work. Have you surrounded all instances of .homepage} in all your templates?
     
  11. tommydamic68

    tommydamic68 Well-Known Member

    Would you need to do it in multiple places for one specific template?
     
  12. Jeremy

    Jeremy XenForo Moderator Staff Member

    I'm fairly sure every where you've listed isn't in a single template, but regardless there's going to be multiple places where the home page is shown.
     
  13. tommydamic68

    tommydamic68 Well-Known Member

    Do you know that specific template I attached?
     
  14. Jeremy

    Jeremy XenForo Moderator Staff Member

    Not off the top of my head no. Do a template search for .homepage} and you should get a list of templates you'll need to edit.
     
  15. tommydamic68

    tommydamic68 Well-Known Member

    Thanks for your help @Jeremy
     
  16. tommydamic68

    tommydamic68 Well-Known Member

    It will not let me add the comment out to this template - i get a syntax error

    <xen:if is="{$user.homepage}">
    <dl><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></dl>
    </xen:if>
     
  17. Chris D

    Chris D XenForo Developer Staff Member

    The syntax I posted is correct...

    You need to paste here what code you're trying to use.
     
  18. tommydamic68

    tommydamic68 Well-Known Member

    Idid it, its like 4 templates .Thanks @Chris Deeming Also - it's in two spots on member_view

    Screen Shot 2013-09-07 at 9.13.49 AM.png

    Screen Shot 2013-09-07 at 9.14.11 AM.png
     
    Chris D likes this.
  19. limboclub

    limboclub Member

    How would you go about removing the homepage field on the member_view page ONLY if the member is valid, not banned, confirmed etc?

    So for users who are email unconfirmed, banned, spam cleaned etc, the homepage field on THEIR OWN member_view does not show?

    Alternatively, I don't know, would you make the homepage link rel="nofollow" ?
     

Share This Page