Announcement

Collapse
No announcement yet.

Conditional - Target only first post in thread

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

  • Colin F
    replied
    You also mixed up your conditional.
    Use this instead:
    <if condition="$post[postcount] != 1 AND $thread[forumid] == 152">

    Leave a comment:


  • Zachery
    replied
    for the postbit use $thread[forumid]

    Leave a comment:


  • smnet
    replied
    Hmmm...

    It's not working....

    I am doing this:-
    <if condition="!($post[postcount] == 1 AND $foruminfo[forumid] == 152)">
    // do the following only if it's not the thread starting post in forum 152
    </if>

    It aint working.... :S

    Leave a comment:


  • smnet
    replied
    Wicked....

    Thank you.

    Leave a comment:


  • Colin F
    replied
    I think you'll need to use $foruminfo[forumid]

    Leave a comment:


  • smnet
    replied
    Thanks...

    Do you also know how to say if the forumid is x?
    is it $post[forumid] ??

    Leave a comment:


  • Colin F
    replied
    Use this condition:
    Code:
    <if condition="$post[postcount] == 1">

    Leave a comment:


  • smnet
    started a topic Conditional - Target only first post in thread

    Conditional - Target only first post in thread

    Hi, I have a conditional:-
    <if condition="(!$GLOBALS['FIRSTPOSTID'])

    This targets the first post shown on each page of a thread....

    I need to be more specific and limit it to the very post in the thread only (the thread starting post)

    Can anyone give me the correct conditional statement I need to use?

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