vBadvanced Forums  
Go Back   vBadvanced Forums > vBadvanced Products > vBadvanced CMPS > Add-On Modules & Modifications > Module & Modification Discussion & Requests

Reply
 
Thread Tools Display Modes
  #1  
Old 01-28-2009, 08:13 AM
lukem lukem is offline
Junior Member
 
Join Date: Mar 2008
Posts: 27
Default Filter News Module by Thread Prefix

I am having problems with this. In the news module, I replaced:

PHP Code:
WHERE thread.threadid IN(" . implode(',', $newstids) . "
with

PHP Code:
WHERE thread.threadid IN(" . implode(',', $newstids) . ") AND thread.prefixid 'NEWS' 
The problem is that it isn't showing any threads with the NEWS prefix other than threads posted today. I've tried setting the cutoff to 0 or 120 and neither seem to make a difference.

Can anyone here help me with this?
__________________
USA Carry - Open and Concealed Carry Information and Community
Reply With Quote
  #2  
Old 01-29-2009, 11:31 AM
lukem lukem is offline
Junior Member
 
Join Date: Mar 2008
Posts: 27
Default

I posted a couple of news threads today and they are showing up on the homepage. There's no one that can help me with this problem? I'm willing to pay for it!
__________________
USA Carry - Open and Concealed Carry Information and Community
Reply With Quote
  #3  
Old 02-03-2009, 01:35 PM
Alfa1 Alfa1 is offline
Senior Member
 
Join Date: Dec 2005
Posts: 144
Default

Why not move each thread to a forum dedicated to the prefix topic?
Reply With Quote
  #4  
Old 02-03-2009, 01:39 PM
lukem lukem is offline
Junior Member
 
Join Date: Mar 2008
Posts: 27
Default

Quote:
Originally Posted by Alfa1 View Post
Why not move each thread to a forum dedicated to the prefix topic?
That is how I had it before but basically I have news broken down by state. I also had a forum where people from that state could talk. Most people go to the latter forum and not the news. I merged them and now just post the NEWS prefix in front of any news threads. I've posted a few other places to see if I can pay someone to look into this problem since it doesn't seem like I'm getting any fixes from here.
__________________
USA Carry - Open and Concealed Carry Information and Community
Reply With Quote
  #5  
Old 02-04-2009, 05:02 AM
lukem lukem is offline
Junior Member
 
Join Date: Mar 2008
Posts: 27
Default

bump for support
__________________
USA Carry - Open and Concealed Carry Information and Community
Reply With Quote
  #6  
Old 02-05-2009, 11:37 AM
Zexsi's Avatar
Zexsi Zexsi is offline
Junior Member
 
Join Date: Jan 2009
Posts: 7
Default

Submit a query to your sqlserver first, (my forum has a base prefix of vb, yours will probably have something different, change as needed)

Quote:
select prefixid from vb_thread group by prefixid;
Now, what do you see? is it just 1 row of nothing?
Reply With Quote
  #7  
Old 02-05-2009, 11:54 AM
lukem lukem is offline
Junior Member
 
Join Date: Mar 2008
Posts: 27
Default

Code:
select NEWS from thread group by prefixid;
Quote:
Error

SQL query: Documentation

SELECT NEWS
FROM thread
GROUP BY prefixid
LIMIT 0 , 30;

MySQL said: Documentation
#1054 - Unknown column 'NEWS' in 'field list'
Does that help at all or did I do something wrong?
__________________
USA Carry - Open and Concealed Carry Information and Community
Reply With Quote
  #8  
Old 02-05-2009, 12:27 PM
Zexsi's Avatar
Zexsi Zexsi is offline
Junior Member
 
Join Date: Jan 2009
Posts: 7
Default

Try this instead (exactly as I show it, copy/paste)

Code:
SELECT prefixid from thread group by prefixid;
Reply With Quote
  #9  
Old 02-05-2009, 12:35 PM
lukem lukem is offline
Junior Member
 
Join Date: Mar 2008
Posts: 27
Default

Sorry, I'm not sure why I changed it. I get a list of all my prefixes:

Quote:
Edit Delete
Edit Delete Group_Buy
Edit Delete NEWS
Edit Delete SOLD
Edit Delete TRADED
Edit Delete WTB
Edit Delete WTS
Edit Delete WTS_WTT
Edit Delete WTT
__________________
USA Carry - Open and Concealed Carry Information and Community
Reply With Quote
  #10  
Old 02-05-2009, 12:46 PM
Zexsi's Avatar
Zexsi Zexsi is offline
Junior Member
 
Join Date: Jan 2009
Posts: 7
Default

based on what I'm seeing from your results,
Quote:
AND thread.prefixid = 'NEWS'
should have worked. I am starting to think the problem might be elsewhere, such as time limit ranges or something else.

Just one last thing to try would be to use this instead, if this doesnt work, then you'll know for sure its something else:

Quote:
AND thread.prefixid like '%NEWS%'
Reply With Quote
  #11  
Old 02-05-2009, 01:03 PM
lukem lukem is offline
Junior Member
 
Join Date: Mar 2008
Posts: 27
Default

I don't think this worked as there's no more showing than before. Only today's NEWS threads are showing up but no breadcrumbs or past days.

Cutoff is set to 0.

As soon as I remove:
Quote:
AND thread.prefixid like '%NEWS%'
All other threads show up, the news archive shows up, and the breadcrumbs show up. I don't get it at all.
__________________
USA Carry - Open and Concealed Carry Information and Community
Reply With Quote
  #12  
Old 02-05-2009, 01:13 PM
Zexsi's Avatar
Zexsi Zexsi is offline
Junior Member
 
Join Date: Jan 2009
Posts: 7
Default

How about instead of 0, use 90 or 180 and see if that affects the results. You could be on to a bug when using zero maybe.
Reply With Quote
  #13  
Old 02-05-2009, 01:16 PM
lukem lukem is offline
Junior Member
 
Join Date: Mar 2008
Posts: 27
Default

Nope, just tried that. It still just shows only the ones I've posted today. I did notice that the news archive shows up because I posted more than 5 news threads today. But with 0, 90, 180, etc, the breadcrumbs should be showing up with ones before today.
__________________
USA Carry - Open and Concealed Carry Information and Community
Reply With Quote
  #14  
Old 03-05-2009, 12:49 PM
tavenger5 tavenger5 is offline
Member
 
Join Date: Apr 2008
Posts: 74
Default

I'm trying to do something similar. Have you found the solution?
Reply With Quote
  #15  
Old 03-30-2009, 02:41 PM
alt3rnate alt3rnate is offline
Junior Member
 
Join Date: May 2006
Posts: 2
Default

I have exactly the same issue :/ bump for support
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
Filter News Module by Thread Prefix Shelby Modifications (version 3.x & 2.x) 39 02-02-2012 10:09 AM
News - Filter by Users/Specific thread? edto Module & Modification Discussion & Requests 5 06-10-2008 12:56 PM
Show News by Thread Prefix and/or Tags? Typhon Pre-Installation Questions 1 04-30-2008 11:42 PM
Rich Text display of Thread Prefix in Recent Threads Module trbothead Bugs From 3.0.0 4 02-14-2008 01:21 PM
Possibilities of filtering news by THREAD PREFIX JohnBee Module & Modification Discussion & Requests 0 09-14-2007 06:59 AM


All times are GMT -4. The time now is 06:48 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.