PlanetZ search

Please remember the terms of your membership agreement.

Moderators: valis, garyb

User avatar
roy thinnes
Posts: 651
Joined: Thu Jan 09, 2003 4:00 pm
Location: Graz
Contact:

Post by roy thinnes »

hey, when I want to get the latest news here on PlanetZ, I'm getting this strange error message:
"phpBB was unable to query the forums database
Got error 28 from storage engine
SELECT u.user_id,f.forum_id, p.topic_id, u.username, p.post_time,t.topic_title,f.forum_name FROM posts p, posts_text pt, users u, forums f,topics t WHERE p.post_id = pt.post_id AND p.topic_id = t.topic_id AND p.forum_id = f.forum_id AND p.poster_id = u.user_id AND f.forum_type != 1 ORDER BY p.post_time desc LIMIT 200 " (...)
Am I missing something (sic!)?
User avatar
roy thinnes
Posts: 651
Joined: Thu Jan 09, 2003 4:00 pm
Location: Graz
Contact:

Post by roy thinnes »

mmh, can someone confirm this? Just hit the "search" button above and press "search" without typing in anything. Do you get an error message?
hubird

Post by hubird »

I get that message too, not surprising btw. :smile:
you want too much...it says: I did not find any post without any author and without any keywords in any forum...
what would you expect :grin:

<font size=-1>[ This Message was edited by: hubird on 2006-02-23 19:23 ]</font>
User avatar
roy thinnes
Posts: 651
Joined: Thu Jan 09, 2003 4:00 pm
Location: Graz
Contact:

Post by roy thinnes »

but that way it worked before. It was the usual method to get the latest PlanetZ news.
hubird

Post by hubird »

that's new to me :smile:
I'm afraid you'll have to use cookies plus planetz folder colours instead :smile:
User avatar
John Cooper
Moderator
Posts: 1182
Joined: Thu Mar 22, 2001 4:00 pm
Location: Planet Z
Contact:

Post by John Cooper »

Huh! It never occured to me to use the search feature to see just the newest posts. Nice idea :smile:

I'm not seeing that error. Are you still seeing it?

Perhaps I should add something to the search page to limit the number of results, or to give a date range.

Cheers,
-John
User avatar
roy thinnes
Posts: 651
Joined: Thu Jan 09, 2003 4:00 pm
Location: Graz
Contact:

Post by roy thinnes »

aah, everything's ok again! Maybe it was a server issue. John: I have to admit that it was someone else (atOm?) who posted this trick some years ago.
User avatar
at0m
Posts: 4743
Joined: Sat Jun 30, 2001 4:00 pm
Location: Bubble Metropolis
Contact:

Post by at0m »

I'd think this is a rather server CPU/disk intense way just to get the most recent topics... I don't think I'd advise on that eh.

I've bookmarked Adern's like this, it has a php module to show posts since last visit. This is far more efficient on the server I think, and shows just what I need really quick. Not sure if that's possible here on z, since John's modified the php extensively back in the days...
more has been done with less
https://soundcloud.com/at0m-studio
samplaire
Posts: 2464
Joined: Tue Jun 05, 2001 4:00 pm
Location: Warsaw to Szczecin, Poland
Contact:

Post by samplaire »

On 2006-02-23 19:51, hubird wrote:
that's new to me :smile:
I'm afraid you'll have to use cookies plus planetz folder colours instead :smile:
When I'm on a particular computer for the first time all the folders are red (I mean PlanetZ folders) and that's ok. And then, after logging in, all the folders become yellow unabling me to see what's new. So the way you suggest (which works fine for me on my everyday computers) is not 100% usable.
User avatar
John Cooper
Moderator
Posts: 1182
Joined: Thu Mar 22, 2001 4:00 pm
Location: Planet Z
Contact:

Post by John Cooper »

Hey guys,

I too have noticed some database errors on doing a big search. I think our database is getting so large that we're maxing out the server. The search code in the original phpBB uses a very inefficient sql query. bummer.

So I was inspired to write a new little search routine that might come in handy:

See the new "What's new?" link at next to the search button. It does a simpler search, just for the items that are new since your last visit date.

(This link is only visible when you're logged in).

Cheers,
-John
User avatar
wayne
Posts: 2377
Joined: Sun Dec 23, 2001 4:00 pm
Location: Australia

Post by wayne »

Nice one, John :smile:
User avatar
garyb
Moderator
Posts: 23380
Joined: Sun Apr 15, 2001 4:00 pm
Location: ghetto by the sea

Post by garyb »

nice one.
User avatar
roy thinnes
Posts: 651
Joined: Thu Jan 09, 2003 4:00 pm
Location: Graz
Contact:

Post by roy thinnes »

thanks a lot,john! Works perfectly!
hubird

Post by hubird »

good one John! :smile:
User avatar
at0m
Posts: 4743
Joined: Sat Jun 30, 2001 4:00 pm
Location: Bubble Metropolis
Contact:

Post by at0m »

Excellent, that'll save some time and page reloads when checking the z :cool:

Thanks John :smile:
more has been done with less
https://soundcloud.com/at0m-studio
User avatar
at0m
Posts: 4743
Joined: Sat Jun 30, 2001 4:00 pm
Location: Bubble Metropolis
Contact:

Post by at0m »

How was it when you first tried it?
more has been done with less
https://soundcloud.com/at0m-studio
User avatar
John Cooper
Moderator
Posts: 1182
Joined: Thu Mar 22, 2001 4:00 pm
Location: Planet Z
Contact:

Post by John Cooper »

The limit is currently at 200.

Enough?
-John
hubird

Post by hubird »

Does it work on email address or on login data?
In case of the latter this new function is great when you visit Planetz from different places like at work.
I'm afraid tho it is the email addres that matters.
hubird

Post by hubird »

Cookies are always involved then?
So on another IP addres you always have to check all forum pages?
I hoped the new function worked different :smile:
Post Reply