Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online
2 registered (Gizmo, SteveS), 38 Guests and 14 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 06/07/07
Posts: 4
Top Posters (30 Days)
Ruben 50
DennyP 24
Gizmo 23
Dunny 15
SteveS 13
AllenAyres 12
dbremer 10
SD 10
drkknght00 9
doug 8
Latest Photos
OK Corral Shoot Out
Testing
Basildon Train Station
Basildon Town Centre looking from the rounderbout
Basildon Town Square
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 Offline
addict
Registered: 01/16/08
Posts: 460
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

Removed link due to bleedover spammers

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 Offline
addict
Registered: 01/16/08
Posts: 460
Loc: DE USA
Thanks Bella! smile
_________________________
Dunny

Removed link due to bleedover spammers

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 Offline

Registered: 12/20/03
Posts: 4424
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
Temporary Password email not being received
by
05/24/12 10:02 PM
Ability to "like" individual posts (not Facebook "likes)
by doug
05/23/12 09:03 AM
Island Permissions
by ThreadsUser
05/22/12 03:03 PM
streaming video
by prkrgrp
05/20/12 07:02 PM
New Posts Corrupted? Can someone help?
by PianoWorld
05/19/12 09:41 AM
Forum Stats
10492 Members
36 Forums
33842 Topics
181709 Posts

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