[Solved] Disable header message for members (Fury)

TheMichtoXF

Active member
Registered
Joined
Aug 30, 2022
Messages
34
Points
18

Reputation:

Hello, it's me again for a new problem!

With the fury theme we have the possibility to display a header message. Which is really good, the problem is that I would like to disable it when the member logs in.
I looked in the style properties but I only see the following options:

*Enable Header Message with (Guest Message Content)
*Enable Header Message on Forum Index Only with (Users Message Content)


So that's not what I want. Is there a way to fix this problem?
 
Solution
ok i test it work

2022-10-19_16-10-22.jpg


2022-10-19_16-10-50.jpg


to user Template modification

Appearance >> Template modifications >> Edit template modification: PAGE_CONTAINER

2022-10-19_16-14-56.jpg


search
CSS:
<div class="p-body">
   <xf:if is="property('dt_guest_message')">
        <div class="p-guest--message">
            <div class="p-guest--message--container">
                <div class="p-guest--message--inner">
                    <xf:if is="!$xf.visitor.user_id">
                        {{ property('dt_guest_message_content') }}
                    <xf:else />
                        {{ property('dt_user_message_content') }}
                    </xf:if>
                </div>
            </div>
        </div>  
    </xf:if>

replace
CSS:
<div...

TheMichtoXF

Active member
Registered
Joined
Aug 30, 2022
Messages
34
Points
18

Reputation:

No idea ? :unsure:
 

BattleKing

Spirit of darkness
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P Member
Collaborate
Registered
Joined
May 24, 2020
Messages
3,520
Points
523

Reputation:

one_finger_man

Well-known member
Registered
Joined
Jan 20, 2022
Messages
392
Points
53

Reputation:

just remove these codes and it should be gone the guest message will still be there

Code:
<h1>Welcome!</h1>
<p>By registering with us, you'll be able to discuss, share and private message with other members of our community.</p>
<a href="#" class="button--cta button button--icon button--icon--write"><span class="button-text">
Read More!
</span></a>
 

TheMichtoXF

Active member
Registered
Joined
Aug 30, 2022
Messages
34
Points
18

Reputation:

just remove these codes and it should be gone the guest message will still be there

Code:
<h1>Welcome!</h1>
<p>By registering with us, you'll be able to discuss, share and private message with other members of our community.</p>
<a href="#" class="button--cta button button--icon button--icon--write"><span class="button-text">
Read More!
</span></a>
one_finger_manThanks for your answer,
I have delete the code like you say but the background still here.

Sans titre2.png
 

thomsa

Moderator
Staff member
Moderator
S.V.I.P Member
Collaborate
Registered
Joined
Jun 22, 2019
Messages
1,072
Points
173

Reputation:

ok i test it work

2022-10-19_16-10-22.jpg


2022-10-19_16-10-50.jpg


to user Template modification

Appearance >> Template modifications >> Edit template modification: PAGE_CONTAINER

2022-10-19_16-14-56.jpg


search
CSS:
<div class="p-body">
   <xf:if is="property('dt_guest_message')">
        <div class="p-guest--message">
            <div class="p-guest--message--container">
                <div class="p-guest--message--inner">
                    <xf:if is="!$xf.visitor.user_id">
                        {{ property('dt_guest_message_content') }}
                    <xf:else />
                        {{ property('dt_user_message_content') }}
                    </xf:if>
                </div>
            </div>
        </div>  
    </xf:if>

replace
CSS:
<div class="p-body">
<xf:if is="!$xf.visitor.user_id">
    <xf:if is="property('dt_guest_message')">
        <div class="p-guest--message">
            <div class="p-guest--message--container">
                <div class="p-guest--message--inner">
                        {{ property('dt_guest_message_content') }}
                </div>
            </div>
        </div>  
</xf:if>
<xf:else />
</xf:if>
 
Last edited:
Solution

TheMichtoXF

Active member
Registered
Joined
Aug 30, 2022
Messages
34
Points
18

Reputation:

Thanks for this answer !

I found "Page_Container" in appearance / style / template and I replaced the original code with the code you gave me just before and it works perfectly!
 

one_finger_man

Well-known member
Registered
Joined
Jan 20, 2022
Messages
392
Points
53

Reputation:

Thanks for this answer !

I found "Page_Container" in appearance / style / template and I replaced the original code with the code you gave me just before and it works perfectly!
TheMichtoXFwhat codes did you replace and how! so if a member runs in the same issue they kno what to do
 
View previous replies…

TheMichtoXF

Active member
Registered
Joined
Aug 30, 2022
Messages
34
Points
18

Reputation:

what codes did you replace and how! so if a member runs in the same issue they kno what to do
one_finger_manJust go to appearance > Style > Fury template > page_container

to research :
HTML:
<div class="p-guest--message">
<div class="p-guest--message--container">
<div class="p-guest--message--inner">
<xf:if is="!$xf.visitor.user_id">
{{ property('dt_guest_message_content') }}
<xf:else />
{{ property('dt_guest_message_content') }}
</xf:if>

</div>
</div>
</div>

And replace with:

HTML:
<xf:if is="!$xf.visitor.user_id">
<xf:if is="property('dt_guest_message')">
<div class="p-guest--message">
<div class="p-guest--message--container">
<div class="p-guest--message--inner">
{{ property('dt_guest_message_content') }}
</div>
</div>
</div>
</xf:if>
<xf:else />
</xf:if>

And it work :)
 

one_finger_man

Well-known member
Registered
Joined
Jan 20, 2022
Messages
392
Points
53

Reputation:

Just go to appearance > Style > Fury template > page_container

to research :
HTML:
<div class="p-guest--message">
<div class="p-guest--message--container">
<div class="p-guest--message--inner">
<xf:if is="!$xf.visitor.user_id">
{{ property('dt_guest_message_content') }}
<xf:else />
{{ property('dt_guest_message_content') }}
</xf:if>

</div>
</div>
</div>

And replace with:

HTML:
<xf:if is="!$xf.visitor.user_id">
<xf:if is="property('dt_guest_message')">
<div class="p-guest--message">
<div class="p-guest--message--container">
<div class="p-guest--message--inner">
{{ property('dt_guest_message_content') }}
</div>
</div>
</div>
</xf:if>
<xf:else />
</xf:if>

And it work :)
TheMichtoXFyou should make this a tutorial for xenforo 2
 
Top