Condition for new and old post ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Dagonvalker
    New Member
    • Aug 2009
    • 3
    • 3.8.x

    [Forum] Condition for new and old post ?

    Hi.

    I would like to change the navigation bar this way:

    if there is a new post the "New Posts" will be highlighted,
    and if there is no new one the link should be changed into "Nothing new" or something like that.

    so

    i´ll have to search for this template part:

    HTML Code:
    <vb:if condition="$show['member']">
    <li><a href="search.php?{vb:raw session.sessionurl}do=getnew&amp;contenttype=vBForum_Post">{vb:rawphrase new_posts_nav}</a></li>
    <vb:else />
    <li>&nbsp;&nbsp;<a href="search.php?{vb:raw session.sessionurl}do=getdaily&amp;contenttype=vBForum_Post">{vb:rawphrase todays_posts}</a></li>
    </vb:if>
    to:

    HTML Code:
    <vb:if condition="$?????">
        <vb:if condition="$show['member']">
       <li><a href="search.php?{vb:raw  session.sessionurl}do=getnew&amp;contenttype=vBForum_Post">{vb:rawphrase  new_posts_nav}</a></li>
       <vb:else />
       <li>&nbsp;&nbsp;<a href="search.php?{vb:raw  session.sessionurl}do=getdaily&amp;contenttype=vBForum_Post">{vb:rawphrase  todays_posts}</a></li>
       </vb:if>
    <vb:else />
    nothing new
     </vb:if>
    but to change this the way i want, i´ll have to know the conition for new threads and how this works.
    Is there a condition that works this way ?

    thanks anyway
  • Dagonvalker
    New Member
    • Aug 2009
    • 3
    • 3.8.x

    #2
    i found this great mod http://www.vbulletin.org/forum/showthread.php?t=233310 which save this request

    Comment

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