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

XF 1.4 i need the ABOUT part of personal details not to be visible, help please

Ian S

Active member
#1
ok its just been bought to my attention that since ive done a import from vb the "about" box in personal details has the persons address in it and is on public view to everyone, can i use a bit of code in extra.css to remove the about box all together??

on a previous version of the dev site done by someone else this was removed, but this is a new import and is in view

as always your help is appreciated thanx
 

Brogan

XenForo moderator
Staff member
#2
Using CSS will only hide it and it will still be possible to view it by using the browser tools.

I would recommend editing the template to remove it or comment it out.
The template is member_view.
 

batpool52!

Well-known member
#4
In template 'member_view', find
Code:
                <xen:if is="{$user.location}">
                    <dl><dt>{xen:phrase location}:</dt>
                        <dd><a href="{xen:link misc/location-info, '', 'location={xen:string censor, $user.location, 'x'}'}" rel="nofollow" target="_blank" itemprop="address">{xen:string censor, $user.location}</a></dd></dl>
                </xen:if>
replace with
Code:
                <xen:if is="{$user.location} AND {$user.user_id} == {$visitor.user_id}">
                    <dl><dt>{xen:phrase location}:</dt>
                        <dd><a href="{xen:link misc/location-info, '', 'location={xen:string censor, $user.location, 'x'}'}" rel="nofollow" target="_blank" itemprop="address">{xen:string censor, $user.location}</a></dd></dl>
                </xen:if>
In template 'message_user_info', find
Code:
<xen:if is="@messageShowLocation AND {$user.location}">
                    <dl class="pairsJustified">
                        <dt>{xen:phrase location}:</dt>
                        <dd><a href="{xen:link 'misc/location-info', '', 'location={xen:string censor, $user.location, '-'}'}" target="_blank" rel="nofollow" itemprop="address" class="concealed">{xen:string censor, $user.location}</a></dd>
                    </dl>
                </xen:if>
replace with
Code:
<xen:if is="@messageShowLocation AND {$user.location} AND {$user.user_id} == {$visitor.user_id}">
                    <dl class="pairsJustified">
                        <dt>{xen:phrase location}:</dt>
                        <dd><a href="{xen:link 'misc/location-info', '', 'location={xen:string censor, $user.location, '-'}'}" target="_blank" rel="nofollow" itemprop="address" class="concealed">{xen:string censor, $user.location}</a></dd>
                    </dl>
                </xen:if>
These edit will make sure the location is visible only yo the profile owner and post/conversation owner.
 

Liam W

Well-known member
#5
In template 'member_view', find
Code:
                <xen:if is="{$user.location}">
                    <dl><dt>{xen:phrase location}:</dt>
                        <dd><a href="{xen:link misc/location-info, '', 'location={xen:string censor, $user.location, 'x'}'}" rel="nofollow" target="_blank" itemprop="address">{xen:string censor, $user.location}</a></dd></dl>
                </xen:if>
replace with
Code:
                <xen:if is="{$user.location} AND {$user.user_id} == {$visitor.user_id}">
                    <dl><dt>{xen:phrase location}:</dt>
                        <dd><a href="{xen:link misc/location-info, '', 'location={xen:string censor, $user.location, 'x'}'}" rel="nofollow" target="_blank" itemprop="address">{xen:string censor, $user.location}</a></dd></dl>
                </xen:if>
In template 'message_user_info', find
Code:
<xen:if is="@messageShowLocation AND {$user.location}">
                    <dl class="pairsJustified">
                        <dt>{xen:phrase location}:</dt>
                        <dd><a href="{xen:link 'misc/location-info', '', 'location={xen:string censor, $user.location, '-'}'}" target="_blank" rel="nofollow" itemprop="address" class="concealed">{xen:string censor, $user.location}</a></dd>
                    </dl>
                </xen:if>
replace with
Code:
<xen:if is="@messageShowLocation AND {$user.location} AND {$user.user_id} == {$visitor.user_id}">
                    <dl class="pairsJustified">
                        <dt>{xen:phrase location}:</dt>
                        <dd><a href="{xen:link 'misc/location-info', '', 'location={xen:string censor, $user.location, '-'}'}" target="_blank" rel="nofollow" itemprop="address" class="concealed">{xen:string censor, $user.location}</a></dd>
                    </dl>
                </xen:if>
These edit will make sure the location is visible only yo the profile owner and post/conversation owner.
They're not talking about the location field, they're talking about the 'About' field.

Remove this line from the member_view template:

Code:
<xen:if is="{$user.about}"><div class="baseHtml ugc">{xen:raw $user.aboutHtml}</div></xen:if>
Liam
 

Ian S

Active member
#6
They're not talking about the location field, they're talking about the 'About' field.

Remove this line from the member_view template:

Code:
<xen:if is="{$user.about}"><div class="baseHtml ugc">{xen:raw $user.aboutHtml}</div></xen:if>
Liam
this worked fine liam, appreciate that sir excellent