vBadvanced Forums  
Go Back   vBadvanced Forums > vBadvanced Products > vBadvanced CMPS > vBa CMPS v3.0 Support > "How Do I..." Questions

Reply
 
Thread Tools Display Modes
  #1  
Old 03-04-2010, 12:31 AM
NickName NickName is offline
Junior Member
 
Join Date: Mar 2010
Posts: 3
Default Display Only Threads From Specific Users/Groups to News Module

This might be a noob question, but How do I set vbadvanced news module to display only threads from specific users/usergroups, rather than specific forums?

I have a group of writers, and a group of moderators that I want ONLY their posts going to the front page news module, but I can only see an option to choose specific threads. Any help is appreciated.

Thanks for your time and help!
Reply With Quote
  #2  
Old 03-07-2010, 03:14 AM
NickName NickName is offline
Junior Member
 
Join Date: Mar 2010
Posts: 3
Default

Anyone? Please... lol
Reply With Quote
  #3  
Old 03-08-2010, 10:47 AM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default

There's not really going to be an easy way to filter the news by usergroup. You could filter it by userid by looking in your modules/news.php file for this code:
PHP Code:
                WHERE visible 1
                    
AND open != 10
                    
AND (thread.forumid IN(" . implode(',', $mods['inforums']) . ")
                    
" . iif(!empty($newstids), ' OR threadid IN(' . implode(',', $newstids) . ')') . "
                    

And replacing it with this:
PHP Code:
                WHERE visible 1
                    
AND open != 10
                    
AND thread.postuserid IN (XYZ
Replace X, Y, Z there at the end with the userids you want to pull news posts from. Also, make sure you still have a forum selected in the 'News Forum(s)' setting. It shouldn't matter what forum since you're replacing the code that pulls threads from specific forums with the code to base it on the userid, but the script will still need to think there's some forums selected so that query will be executed.
__________________
Frequently Asked Questions
CMPS Users Manual

For vBadvanced software assistance, please use the support forums.
Unsolicted PMs, IMs, and email will not be responded to.
If you have a non-software related question or problem with your account, please submit a support ticket.
Reply With Quote
  #4  
Old 09-07-2012, 12:58 PM
wotws wotws is offline
Junior Member
 
Join Date: Sep 2011
Posts: 6
Default

how can we do it for the posts not the threads?
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Deleting News Threads from front page ... rotor Troubleshooting & Problems 6 12-31-2007 01:31 AM
Sending specific threads to News on front page seo_consultant "How Do I..." Questions 5 05-17-2007 12:37 PM
2 Forums on front page using the news module? aggiefan "How Do I..." Questions 3 01-28-2007 12:30 PM
News Module for Front Page? Necrosaro420 Module & Modification Discussion & Requests 7 01-11-2007 11:50 AM
Post icons not showing up in news on front page... Torqued Bugs From 2.0 RC1 5 06-06-2005 11:54 AM


All times are GMT -4. The time now is 07:39 PM.

Forums Powered by vBulletin, Copyright ©2000-2009, Jelsoft Enterprises Ltd.
Please note that vBadvanced is in no way affiliated with Jelsoft Enterprises Ltd, nor will Jelsoft be able to provide any support for our products.