![]() |
Best way to exclude forums in new posts/todays posts?
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 |
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. |
Quote:
|
Quote:
|
maybe i did not either, I cannot seem to find the code this should be added to, is it in navbar template?
--------------- Added [DATE]1207784065[/DATE] at [TIME]1207784065[/TIME] --------------- Doh my mistake, found it, amended as you said, works a charm, thank you very much :) |
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/showthrea...rums+new+posts https://vborg.vbsupport.ru/showthrea...rums+new+posts Please use the search engine to find more. |
thanks mate these will help also for members :)
|
Worked a Treat.
Basically. We amended it thus: PHP Code:
Works a treat thanks guys |
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? |
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) |
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. |
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! |
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.
|
"Include" works for me. With forums, anyway.
|
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.ph...aveprefs=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!) |
All times are GMT. The time now is 10:29 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|