Quote:
Originally posted by Stallion
Hmm, after looking through the code, the killer lies here:
Code:
$pollidcheck=$DB_site->query_first("SELECT pollid FROM post WHERE threadid=$threadid");
That SQL query is issued for each table row displayed in forumdisplay, so if you have 50 threads listed per page, thats 50 extra queries.
|
Sorry for this confusion, I was working fast to fix that spce in name thing that I messed some stuff up. argghhh
that is need however, as forumdisplay checks threads, not posts. And users wanted to have the poll icon showed without it being choosen. I could add a table to thread which would help. You can remove that code, but the custom icon won't show then.
http://www.naboonline.com/pollhack/pollmodule.php has the fix for the nonescaped showresults, it regressed cause of trying to fix the space thing at 1 AM here, and I was not thinking correctly.
I'll fix the pollidcheck thing today and add a column to the thread table.
Sorry again for this, I shoudl have tested this more, but I had 30 people email me last week requesting this hack.