Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online
7 registered (SteveS, mcasado, Mike L, Gizmo, SD, Bjab, driv), 18 Guests and 14 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 06/05/06
Posts: 255
Top Posters (30 Days)
Ruben 63
SD 54
Gizmo 48
gliderdad 33
Dunny 21
driv 18
dbremer 16
Iann128 16
Stan 14
Mark S 13
Latest Photos
Testing
Basildon Train Station
Basildon Town Centre looking from the rounderbout
Basildon Town Square
Gizzo Marx
Page 1 of 2 1 2 >
Topic Options
#238240 - 07/27/10 05:11 AM Recent Posts - Exclude Specific Ones
BellaOnline Offline
addict
Registered: 06/12/06
Posts: 515
I've been trying to wait on this request for Version 8 to come out, to see if it would handle it, but I think I really need to find SOME way to get this working on 7. It is really killing our traffic.

We used to have the sidebar of our BellaOnline.com forum show all recent posts. It really made for lively conversations and back-and-forth. However, we have a few 'games' that run in the forums and they would often end up being the ones that featured, which then interrupted the actual discussion forums. After a number of discussions in here about ways we could handle this, we finally went to a layout where we showed recent brand new topics, not just posts. That way the games, which were begun years ago, wouldn't show up.

However, it now means you have no quick way of seeing when a discussions is going on. You have to go digging them out of the actual forums (we have 400 forum areas). So the forum traffic has really dropped as a result. Which is not good.

I need *some* way of having that sidebar show all the recent posts - but exclude the specific threads that have the games in them. There must be some way to edit the code so it doesn't update that list if a thread matches a certain set of IDs.

Any thoughts?
_________________________
Lisa Shea, owner, BellaOnline.com
BellaOnline Website
BellaOnline Forums
Top
Express Hosting
Express Hosting "We are the official hosting company of UBB.threads. Ask us about our free migration services to migrate your UBB.threads installation."
#238241 - 07/27/10 09:18 AM Re: Recent Posts - Exclude Specific Ones [Re: BellaOnline]
Dunny Online   coffee
addict
Registered: 01/16/08
Posts: 427
Loc: DE USA
Bella I am not sure if this can be done (as many things that you do on your site I don't have on mine) however, could you set permissions up for those game forums where they are not in the recent posts box? I seem to remember that there is a way to make a forum not be reported as a featured forum... I will look and see if I can find the button in the control panel..but seems to me that with all the permissions we can edit there, that there is something there either in forum permissions or in site permissions that does this. (though I could be wrong, as I have never actually had to do any of that).

Dunny
_________________________
Dunny

http://forums.iskirra.net

Dawn of Iskirra
Top
#238243 - 07/27/10 09:59 AM Re: Recent Posts - Exclude Specific Ones [Re: Dunny]
Scott Young Offline
newbie
Registered: 01/03/10
Posts: 35
Loc: Virginia
It's possible. If you're just using the standard post islands, then what you'll need to do is get the list of TOPIC IDs that you want to exclude. You then need to edit the cache_builders/post_island.php file. Look for a query around line 70 or so. You'll see a portion that has the following code:

Code:
        and t1.TOPIC_LAST_REPLY_TIME > $one_month
        and t1.TOPIC_STATUS <> 'M'


Right after that, add the following. A comma delimited list of your TOPIC IDs that you want to exclude. I'm using 2,4,6,8 as an example.

Code:
and t1.TOPIC_ID NOT IN (2,4,6,8)

Top
#238274 - 07/28/10 01:55 PM Re: Recent Posts - Exclude Specific Ones [Re: Scott Young]
BellaOnline Offline
addict
Registered: 06/12/06
Posts: 515
Awesome!! Thank you so much, this will make a huge difference in our forum traffic!
_________________________
Lisa Shea, owner, BellaOnline.com
BellaOnline Website
BellaOnline Forums
Top
#238307 - 07/30/10 04:04 AM Re: Recent Posts - Exclude Specific Ones [Re: BellaOnline]
BellaOnline Offline
addict
Registered: 06/12/06
Posts: 515
Dunny -

I've done a lot of customization on my forums over the years - most of the code should be here in the forums. If you have a question about something feel free to ask!
_________________________
Lisa Shea, owner, BellaOnline.com
BellaOnline Website
BellaOnline Forums
Top
#238311 - 07/30/10 06:25 AM Re: Recent Posts - Exclude Specific Ones [Re: BellaOnline]
Dunny Online   coffee
addict
Registered: 01/16/08
Posts: 427
Loc: DE USA
Thanks Bella! smile
_________________________
Dunny

http://forums.iskirra.net

Dawn of Iskirra
Top
#238316 - 07/30/10 02:59 PM Re: Recent Posts - Exclude Specific Ones [Re: Dunny]
BellaOnline Offline
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#Post528073

That shouldn't be showing up in the list, right?
_________________________
Lisa Shea, owner, BellaOnline.com
BellaOnline Website
BellaOnline Forums
Top
#238317 - 07/30/10 03:03 PM Re: Recent Posts - Exclude Specific Ones [Re: BellaOnline]
BellaOnline Offline
addict
Registered: 06/12/06
Posts: 515
Another featured post is this one -

http://forums.bellaonline.com/ubbthreads.php/topics/379866/Word_Association_Game#Post379866

which is also in the ID list.
_________________________
Lisa Shea, owner, BellaOnline.com
BellaOnline Website
BellaOnline Forums
Top
#238319 - 07/30/10 03:06 PM Re: Recent Posts - Exclude Specific Ones [Re: BellaOnline]
BellaOnline Offline
addict
Registered: 06/12/06
Posts: 515
OK just to cause a bit more trouble, that query there we're playing with is bringing back and entire MONTH of data, which is HUGE. So every time the database is creating that query it's working with gobs of data, while all it wants is the last 10 entries, which happened within the last hour.

Can I at least change this so it only works with the last day? Surely that would speed up the query vastly, and not unnecessarily bring in the other 29 solid days worth of data in the results set.

Is this query used for anything else besides that "recent posts" island?
_________________________
Lisa Shea, owner, BellaOnline.com
BellaOnline Website
BellaOnline Forums
Top
#238323 - 07/30/10 04:14 PM Re: Recent Posts - Exclude Specific Ones [Re: BellaOnline]
Ruben Online   hyper

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.
Quote:
$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
Page 1 of 2 1 2 >



Moderator:  AllenAyres, Harold, Ian, Ron M 
Shout Box

Today's Birthdays
No Birthdays
Recent Topics
Edit Post
by Bert
01:19 PM
A positive note
by SteveS
09:36 PM
How to locate links to particular site if they are only used in images?
by Conrad
02/10/12 09:41 PM
Pictures not displaying
by Marker23
02/09/12 10:04 PM
Issue with logging out constantly
by Flanuva
02/09/12 07:05 PM
Forum Stats
10213 Members
36 Forums
33667 Topics
180917 Posts

Max Online: 978 @ 06/24/07 11:19 PM
Random Image