XF 1.2 Remove visitor home page

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>
 

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>
 

tommydamic68

Well-known member
Tommy, are you wanting to remove the home page because of spammers?
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?
 

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
 

Jeremy

Well-known member
Chris' code is correct and should work. Have you surrounded all instances of .homepage} in all your templates?
 

Jeremy

Well-known 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.
 

Jeremy

Well-known 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.
 

tommydamic68

Well-known 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>
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>
 

Chris D

XenForo developer
Staff member
The syntax I posted is correct...

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

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" ?
 
Top