Conditionals?

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

    [Forum] Conditionals?

    hi guys...is there any conditionals if let say i want to show something to a thread starter but not to his first post....but to all of his post inside the thread...

    ===========================

    same probelm i was thinking how can i implement that all starting 1 month + in-active members own avatars will be change automatic by my preferred in-active avatars

    i was about to do like this...

    Code:
    <vb:if condition="$show['avatar']">
    			<vb:if condition="$post['lastactivity'] > TIMENOW - 28*86400">
    <a class="postuseravatar" href="{vb:link member, {vb:raw post}}" title="{vb:rawphrase {vb:raw post['onlinestatusphrase']}, {vb:raw post.username}}">
    		<img src="{vb:raw post.avatarurl}" alt="{vb:rawphrase xs_avatar, {vb:raw post.username}}" title="{vb:rawphrase xs_avatar, {vb:raw post.username}}" />
    			</a>
    			</vb:if> 
                            </vb:if>
    appreciate any help on this please

    thanks and best regards...

  • Lynne
    Former vBulletin Support
    • Oct 2004
    • 26255

    #2
    I doubt you can use TIMENOW in your condition. It probably is not registered for use in the template. It may be better to use a plugin and define something like $show['preferredavatar'] to true if the condition is met for the user.

    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

      #3
      Muchos Gracias Lynne

      actually i use it already and i manage to make those 1 mo. inactive user's avatar disappear...now that i'm thinking about if how can i let any avatar to replace their own avatar with my preffered avatar? do we have any conditionals to that or any other way....

      and as my first question also...do we have any if conditonal syntax to show something to one members something like image but not only to his first post or to his own started thread...

      best regards...

      Comment

      • Lynne
        Former vBulletin Support
        • Oct 2004
        • 26255

        #4
        I don't know how you would easily determine if it is the users first post in the thread.

        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
          hmmm...well thanks anyway for thinking and trying to help me out...

          all the best...

          Comment

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