Back to vBulletin 3.5 Add-ons

getnew/getdaily and subscribed forums
Mod Version: 1.00, by erond

This modification is in the archives.
vB Version: 3.5.4 Rating: (0 vote - 0 average) Installs: 1
Released: 29 Mar 2006 Last Update: Never Downloads: 0
Not Supported Code Changes Is in Beta Stage  

There were several hacks in previous versions to limit getnew/getdaily searches to forums that users had subscribed to. I waited to see this appear in 3.5, but never saw it. There is the option in Advanced Search to limit searches to subscribed forums, but I wanted something on the menu bar without needing to add text to search for.

So, if I've totally missed a thread on this, feel free to point me at it. What I ended up doing was modifying search.php so the addition of &subscribed to the search URL would limit searches to subscribed forums.

In search.php, above
Code:
        // forumid is not specified, get list of all forums user can view
I added
Code:
// getnew/getdaily for subscribed forums only?
        else if(isset($_REQUEST['subscribed']) &&
               ($_REQUEST['do']=='getdaily' || $_REQUEST['do']=='getnew'))
          {
          $sublist=array('subscribed');
          $forumids=fetch_search_forumids($sublist,1);
          }
I then modified the navbar template to add '&subscribed' as additional search options, based on the "New Posts" and "Today's Posts" menu items.

I don't know if I've done it right, or of there is a simpler way that I'm not aware of, but it works for me.

Download

No files for download.


vblts.ru supports vBulletin®, 2022-2025