 |
 |
 |
 |
Registered: 04/22/10
Posts: 5
|
|
|
 |
 |
 |
 |
|
 |
 |
 |
 |
|
Express Hosting
"We are the official hosting company of UBB.threads. Ask us about our free migration services to migrate your UBB.threads installation."
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#238316 - 07/30/10 02:59 PM
Re: Recent Posts - Exclude Specific Ones
[Re: Dunny]
|
addict
|
Registered: 06/12/06
Posts: 515
|
|
OK I think it's not quite working correctly? My code reads: and t1.TOPIC_ID NOT IN (440794,613732,613731,613729,464338,528073,440794,396215,379866,613475) I put that in yesterday. However when I look at the forum today, one of the featured threads is this one - http://forums.bellaonline.com/ubbthreads.php/topics/528073/Town_ABC_Game#Post528073That shouldn't be showing up in the list, right?
|
|
Top
|
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#238317 - 07/30/10 03:03 PM
Re: Recent Posts - Exclude Specific Ones
[Re: BellaOnline]
|
addict
|
Registered: 06/12/06
Posts: 515
|
|
|
|
|
Top
|
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#238323 - 07/30/10 04:14 PM
Re: Recent Posts - Exclude Specific Ones
[Re: BellaOnline]
|

|
Registered: 12/20/03
Posts: 4268
Loc: Lutz,FL
|
|
I assume you are referring to the "Brand New Posts" island on your site. It seems okay now possibly the cache was in play at the time. There is a topic called food game but it is not on your list. On the one month value. All it does is exclude anything older than a month. Even if you allowed 2000 posts in the island the default would only go back 30 days to display. In your case you limit it to ten posts. And you have quite a bit of traffic. If you want to change it search for. $one_month = $html->get_date() - (86400 *30); Around line 70 on the same file. The 86400 is the number of seconds per day. the value of 30 makes it days. So if you want say 14days change the 30 to 14. If you start seeing less that ten posts in the island then it is because there are less than ten in 14 days.
_________________________
Blue Man Group
|
|
Top
|
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#238379 - 07/31/10 03:35 PM
Re: Recent Posts - Exclude Specific Ones
[Re: SD]
|
addict
|
Registered: 06/12/06
Posts: 515
|
|
I did think about the whole topic ID / post ID issue, so in each case I went back to the very first post in the thread to see what its ID was. So let's take the "Word Association Game" in the walking forum. If you click on it to see the latest entry, you get sent to http://forums.bellaonline.com/ubbthreads.php/topics/613941/Word_Association_Game#Post613941So then I go to the Walking forum's main page, and I click on the thread from there, to see its main entry from the beginning. which is this - http://forums.bellaonline.com/ubbthreads.php/topics/379866/Word_Association_Game#Post379866I can see the post ID number in the top right corner of that very first post, and indeed its ID is 379866. The second post has an ID of 380329, the third one has an ID of 380322, and so on. So the very first post is definitely the 379866 number. The last posts in that thread are up in the 600,000 range. So if you look at my SQL statement, the line currently reads: and t1.TOPIC_ID NOT IN (440794,613732,613731,613729,464338,528073,440794,396215,379866,613475) So the 379866 is definitely there in that list. But yet looking at the sidebar, that thread is being featured. Now this still might bring up a different issue. I am comfortable that I am giving the post ID of the very first post in the entire thread - and I assumed this matched the topic ID for the whole thread. Could it be that the topic ID is NOT the post ID for the very first entry? When I go to Topic Options and use the "Add Topic to your watched Topics" for this walking thread, the URL it gives is: http://forums.bellaonline.com/ubbthreads...1/what/showflatSo I see the 379866 in there - but I also see a 58239. Is that 58239 the topic ID? I'll give that a shot right now and see if that does the trick!
|
|
Top
|
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#238382 - 07/31/10 03:39 PM
Re: Recent Posts - Exclude Specific Ones
[Re: BellaOnline]
|
|
Registered: 04/19/07
Posts: 4031
Loc: SoCal, USA
|
|
Could it be that the topic ID is NOT the post ID for the very first entry? yes, and my post says to change the SQL from ( i highlighted it in different color above): t1.TOPIC_ID NOT IN ... to to t1. POST_ID NOT IN ... there is both a TOPIC_ID and a POST_ID in a ubbt_TOPICS record.. they are two distinct things.. - from what you have above - just change to: and t1.POST_ID NOT IN (440794,613732,613731,613729,464338,528073,440794,396215,379866,613475) Scott's post (sql syntax) is correct, if you know the topic ids, but that value isn't easy to see and POST_ID suffices just the same and is stored in the ubbt_TOPICS table as the POST_ID of the 1st post in that topic 
|
|
Top
|
|
|
|
|
 |
 |
 |
 |
|
|