Make "New Posts" and "Today's Posts" display results only for current forum

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sysadm
    New Member
    • Jan 2009
    • 1

    Make "New Posts" and "Today's Posts" display results only for current forum

    I had to modify vBulletin to display only results from current forum when using “Today’s Posts” (when not logged in) or “New Posts” (when logged in) link on the top.

    I made the following changes to header template in the appropriate style:

    Code:
                    <td><a href="search.php?$session[sessionurl]do=getnew[U][B]&forumid=$foruminfo[forumid][/B][/U]" accesskey="2">$vbphrase[new_posts_nav]</a></td>
                    <else />
                    <td><a href="search.php?$session[sessionurl]do=getdaily[U][B]&forumid=$foruminfo[forumid][/B][/U]" accesskey="2">$vbphrase[todays_posts]</a></td>
    Also made the following changes to navbar template in the appropriate style:

    Code:
            <if condition="$vboptions['enablesearches']"><tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getdaily[U][B]&forumid=$foruminfo[forumid][/B][/U]">$vbphrase[todays_posts]</a></td></tr></if>
    No plugin is required for this functionality.
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Working...