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

XF 1.4 Message "Hello" Message "good nights"

Discussion in 'XenForo Questions and Support' started by Flo0975, Apr 22, 2015.

  1. Flo0975

    Flo0975 Member

    <xen:if is="{xen:time $serverTime, 'G:i'} >= '06:40' AND {xen:time $serverTime, 'G:i'} < '17:00'">
    <div class="bonjour">
    <center><p><span style="text-shadow: 1px 1px rgba(0, 0, 0, 0.1); font-size: 14px;"><b><i class="fa fa-smile-o fa-lg"></i> Bonjour</span>, {xen:helper username, $visitor, 'NoOverlay'}</b></p></center>
    </div>
    </xen:if>
    <xen:if is="{xen:time $serverTime, 'G:i'} >= '17:00' AND {xen:time $serverTime, 'G:i'} < '06:40'">
    <div class="bonjour">
    <p><span style="text-shadow: 1px 1px rgba(0, 0, 0, 0.1); font-size: 13px;"><b><i class="fa fa-smile-o fa-lg"></i> Bonsoir</span>, {xen:helper username, $visitor, 'NoOverlay'}</b></p>
    </div>
    </xen:if>
    I want to display the first message from 06:30 until 18:00 and from 18:00 to deuxiemme 6:30.
    It's time for Central Europe;)
     

Share This Page