Exclude specific forums from Today's Posts

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bplinson
    Senior Member
    • Mar 2004
    • 290
    • 6.X

    Exclude specific forums from Today's Posts

    Since upgrading to 3.7.0 I am having trouble excluding certain forum IDs from the Today's Post search.

    I have it working for NEW POSTS but the forum catagories I don't wnat are still showing in Today's Posts.

    Here is what I have in the NAVBAR template (see RED text).

    Am I doing something wrong or is there now some other template I need to modify.

    Code:
    <!-- nav buttons bar -->
    <div class="tborder" style="padding:$stylevar[cellspacing]px; border-top-width:0px">
        <table cellpadding="0" cellspacing="0" border="0" width="100%" align="center">
        <tr align="center">
            <td class="vbmenu_control"><a href="$vboptions[portalhome]">$vboptions[portaltitle]</a></td>
            <if condition="$show['member']">
                <td class="vbmenu_control"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_cp]</a></td>
            </if>
            <if condition="$show['registerbutton']">
                <td class="vbmenu_control"><a href="register.php$session[sessionurl_q]" rel="nofollow">$vbphrase[register]</a></td>
            </if>
            $template_hook[navbar_buttons_left]
            <td class="vbmenu_control"><a href="faq.php$session[sessionurl_q]" accesskey="5">$vbphrase[faq]</a></td>
            <if condition="$vboptions['enablememberlist']">
                <td class="vbmenu_control"><a href="memberlist.php$session[sessionurl_q]">$vbphrase[members_list]</a></td>
            </if>
            <td class="vbmenu_control"><a href="calendar.php$session[sessionurl_q]">$vbphrase[calendar]</a></td>
            <if condition="$show['popups']">
                <if condition="$show['searchbuttons']">
                    <if condition="$show['member']">
                    <td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getnew[COLOR=Red]&exclude=277,279,280,281,282,287,290,291,292,293"[/COLOR] accesskey="2">$vbphrase[new_posts_nav]</a></td>
                    <else />
                    <td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
                    </if>
                    <td id="navbar_search" class="vbmenu_control"><a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[search]</a> <if condition="$show['quicksearch']"><script type="text/javascript"> vbmenu_register("navbar_search"); </script></if></td>
                </if>
                <if condition="$show['member']">
                    <td id="usercptools" class="vbmenu_control"><a href="$show[nojs_link]#usercptools" accesskey="3">$vbphrase[quick_links]</a> <script type="text/javascript"> vbmenu_register("usercptools"); </script></td>
                <else />
                    <if condition="$show['switchdisplay']">
                        <td class="vbmenu_control">$switchdisplay</td>
                    </if>
                </if>
            <else />
                <if condition="$show['searchbuttons']">
                    <td class="vbmenu_control"><a href="search.php$session[sessionurl_q]" accesskey="4">$vbphrase[search]</a></td>
                    <if condition="$show['member']">
                    <td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getnew[COLOR=Red]&exclude=277,279,280,281,282,287,290,291,292,293"[/COLOR] accesskey="2">$vbphrase[new_posts_nav]</a></td>
                    <else />
                    <td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
                    </if>
                </if>
                <td class="vbmenu_control"><a href="forumdisplay.php?$session[sessionurl]do=markread" rel="nofollow">$vbphrase[mark_forums_read]</a></td>
                <if condition="$show['member']">
                    <td class="vbmenu_control"><a href="#" onclick="window.open('misc.php?$session[sessionurl]do=buddylist&amp;focus=1','buddylist','statusbar=no,menubar=no,toolbar=no,scrollbars=yes,resizable=yes,width=250,height=300'); return false;">$vbphrase[open_contacts]</a></td>
                </if>
                <if condition="$show['switchdisplay']">
                    <td class="vbmenu_control">$switchdisplay</td>
                </if>
            </if>
            $template_hook[navbar_buttons_right]
            <if condition="$show['member']">
                <td class="vbmenu_control"><a href="login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]" onclick="return log_out('$vbphrase[sure_you_want_to_log_out]')">$vbphrase[log_out]</a></td>
            </if>
        </tr>
        </table>
    </div>
    <!-- / nav buttons bar -->
  • Andy
    Senior Member
    • Jan 2002
    • 5886
    • 4.1.x

    #2
    Enter the red code after "do=getdaily"

    Comment

    • bplinson
      Senior Member
      • Mar 2004
      • 290
      • 6.X

      #3
      Thanks. Figured it right after posting this thread.

      Comment

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