Conditional Need Help Pls!

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • princeedward
    Senior Member
    • Jan 2007
    • 180

    [Forum] Conditional Need Help Pls!

    is there any conditional list to show something only if the said member is offline?
    it means the below code belong to the user...so i want to hide it when they are online...
    it can only be seen once that they are offline...is that possible guys?
    Code:
    <vb:if condition="$post['lastactivity']">
    <dt>{vb:rawphrase last_online_activity}</dt><dd>{vb:raw post.lastactivity_date} {vb:raw post.lastactivity_time}</dd>
    </vb:if>
    appreciate any possible help on this guys...

    thanks and best regards...

  • princeedward
    Senior Member
    • Jan 2007
    • 180

    #2
    anyone to advice or know something about this please...

    Comment

    • princeedward
      Senior Member
      • Jan 2007
      • 180

      #3
      Bump!-Bump!-Bump!

      Comment

      • Lynne
        Former vBulletin Support
        • Oct 2004
        • 26255

        #4
        What template are you wanting to do this in? Did you look at the variable used to show your little green/red online/offline status? Use that.

        Please don't PM or VM me for support - I only help out in the threads.
        vBulletin Manual & vBulletin 4.0 Code Documentation (API)
        Want help modifying your vbulletin forum? Head on over to vbulletin.org
        If I post CSS and you don't know where it goes, throw it into the additional.css template.

        W3Schools &lt;- awesome site for html/css help

        Comment

        • princeedward
          Senior Member
          • Jan 2007
          • 180

          #5
          thanks Lynne sorry about the bump thing... the problem is i manage to show to postbit legacy the user's last activity date and time but i only want to see it to those offline user not to online users...so i want to know if there is some kind of conditional on this or i might add some code like conditional to my plugin...any idea please about that...

          do you mean i can use this conditional

          <vb:if condition="$onlinestatus==0"> and <vb:if condition="$onlinestatus==1">

          best regards

          Comment

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