View Full Version : Best way to exclude forums in new posts/todays posts?
surfjunkey
04-08-2008, 08:12 PM
Hi I have a bargain section, that recieves rss feeds 24 hours a day, its spamming the forums when people click on new threads/todays posts etc.
Members want the deals, but not all the new threads showing up!
Whats the best way to go about stopping these from showing when you click on today's posts/new threads(buttons)?
many thanks :D
Lynne
04-08-2008, 08:42 PM
You can go into the navbar and find the new posts link and add "&exclude=x" where x is the forum not to include. Like this -
search.php?do=getnew&exclude=4
for excluding forum 4.
angusv
04-08-2008, 09:05 PM
You can go into the navbar and find the new posts link and add "&exclude=x" where x is the forum not to include. Like this -
search.php?do=getnew&exclude=4
for excluding forum 4.
I tried this and it doesn't work. Is it the same for 3.7?
Lynne
04-08-2008, 10:09 PM
I tried this and it doesn't work. Is it the same for 3.7?
Well, it works perfectly fine on my test board running 3.7 beta 2. Perhaps you didn't put it in the right place?
surfjunkey
04-09-2008, 10:24 PM
maybe i did not either, I cannot seem to find the code this should be added to, is it in navbar template?
--------------- Added 1207784065 at 1207784065 ---------------
Doh my mistake, found it, amended as you said, works a charm, thank you very much :)
Alfa1
04-10-2008, 12:43 AM
There is a hack that lets your member select which forums they want to have in new posts and which ones they do not want to have included.
https://vborg.vbsupport.ru/showthread.php?t=91025&highlight=exclude+forums+new+posts
https://vborg.vbsupport.ru/showthread.php?t=98360&highlight=exclude+forums+new+posts
Please use the search engine to find more.
surfjunkey
04-10-2008, 05:18 PM
thanks mate these will help also for members :)
TimberFloorAu
06-19-2008, 05:31 AM
Worked a Treat.
Basically.
We amended it thus:
"><a href="search.php?$session[sessionurl]do=getnew&exclude=39">$vbphrase[todays_posts]</a>
Where 39 is forum id we wished to exclude.
Works a treat thanks guys
ProAzn
10-04-2008, 06:45 AM
I'm aware of this hack and have it downloaded. BUT how do you exclude a forum from the admin side so users don't have a choice to exclude it or not exclude it. That the forum is excluded from new posts permanently unless otherwise included by admin only not user?
Been pulling my hair out to find this. Did it before but having a brainfart right now. lol. I'm aware of the exclude code in editing the file method but there must be an easier way ..
Anyone?
trigatch4
10-05-2008, 10:49 PM
Three questions:
1) How do you exclude MULTIPLE categories?
2) How do you INCLUDE categories instead of EXCLUDING (say i want to only allow 2 out of 25 categories on new posts... INCLUDE would make more sense)
3) How do I include multiple categories (assumedly same approach as #1)
Lynne
10-05-2008, 11:38 PM
1) &exclude=x,y,z where x,y, and z are forumids
2) you can't
3) same as 2, you can only exclude
ProAnz, if you have questions regarding the modification, you need to ask them in the modification thread.
trigatch4
10-05-2008, 11:45 PM
Thanks so much for your quick reply, Lynn.
I have about 100 forums and would need to exclude 95 of them for my purposes hehe. Will this cause extra strain or resources on the server?
Also, do you know what template or php file "parses" this search query? I could probably pay one of my friends a couple dollars to rewrite it to utilize an INCLUDE query instead of EXCLUDE.
Thanks in advance, you're a life saver!
Lynne
10-05-2008, 11:56 PM
It's not a matter of rewriting the template, it's a matter of rewriting the search query and that is in the search.php page.
Videx
10-07-2008, 02:32 AM
"Include" works for me. With forums, anyway.
Lynne
10-07-2008, 02:38 AM
Include works?
Now that I think about it, can't you just add "&forumid=x,y,z" into the query like you do for the rss?
Or, now that I think again.... look at the vb.org page where it says "Click here to view latest topics" - https://vborg.vbsupport.ru/search.php?do=getdaily&forumid=92&childforums=1&saveprefs=false - so they use forumid and then childforums=1 to include the childforums.
Why didn't I think of that before? :o (Thanks for getting me to rethink this, Videx!)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.