Announcement

Collapse
No announcement yet.

Conditionals?

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

  • princeedward
    replied
    hmmm...well thanks anyway for thinking and trying to help me out...

    all the best...

    Leave a comment:


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

    Leave a comment:


  • princeedward
    replied
    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...

    Leave a comment:


  • Lynne
    replied
    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.

    Leave a comment:


  • princeedward
    started a topic [Forum] Conditionals?

    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...

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