Announcement

Collapse
No announcement yet.

How do I use "if condition" for a specific time?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How do I use "if condition" for a specific time?

    For example between 8pm and 9pm, I want to give a message to users like "we have started to radio broadcast"

    can it be similar with this?
    PHP Code:
    <if condition="is_time('20','21')">
    hi therewe have started to radio broadcast
    <else />
    currently shout down
    </if> 
    (for europan time)

    Thank you..

  • #2
    I could be wrong but I seriously doubt there is a conditional to do this. You may have to ask over at www.vbulletin.org for a plugin.
    Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
    Change CKEditor Colors to Match Style (for 4.1.4 and above)

    Steve Machol Photography


    Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


    Comment


    • #3
      You'll need to adjust the test depending on your time format set in the ACP, but this works for me...
      Code:
      <if condition="$timenow > '07:45 AM' AND $timenow < '08:00 AM'">Within the time frame</if>
      Lats...

      Comment


      • #4
        Good one Lats.
        Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
        Change CKEditor Colors to Match Style (for 4.1.4 and above)

        Steve Machol Photography


        Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


        Comment

        widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
        Working...
        X