![]() |
isnt??? what you mean......yes;)
|
I am not sure I understand the "last poster" thing.
My "last poster" rarely seems to be correct. I read this entire thread and I am not sure if this has been answered specifically or not. |
I have the same problem with the last poster thing. Sometimes it's right, other times it's not. Not sure what to do with it at this point.
|
grog6, are you still supporting this hack. There are a few of us that are having problems with the lastposter not being right in a few forums. Any solution for this?
|
grog6 how to do top x stats of each forum??
do u have any idea? :bunny: |
@ Boofo : Yup, I still support this hack, but I had problems such as a lot of other members to access vbulletin.org, it's now 3 days I couldn't access to this site ;)
For the last poster, You're right, a query seems to not be 100% correct ... I'll take a look at it during the evening and will try to fix this bug ;) |
@ squawell : Don't understand what you want to do .. ;)
|
Quote:
|
@ Boofo : I'll take a loot at it too for you ;) But it seems to me this query is OK
|
Quote:
|
Installed and running well on 2.2.9! :D
Haven't had any prolems with the average rating, or last poster, but I have been making a few modifications. ;) |
Check the last poster in your Frat House forum. ;)
|
Also, check your average rating in the Dean's List. ;)
|
Mononoke is a bot but Im sure you already noticed that and I saw the Dean's List rating that is hilarious. This is one of those times where we say......ooops. ;)
Thanks Boofo! :) |
Still the last poster should have been updated right if the query was working ok. ;)
It's nice to see that I am not the only one having the Average Rating problem. ;) |
The Bot doesn't update the forum info, so I'm not all that suprised.(although, now that you bring it up; I think I'll update that :D)
As for the average rating... oops. :D |
Which Bot are you using?
|
Ok, here is the fix for the lastposter problem. Thanks goes out to Logician for providing the basis of this code in one of his hacks. ;)
In forumdisplay.php, change the last poster query to: PHP Code:
Quote:
|
It's the TomBot. There is a way to make it appear as the last poster, but it got overwritten(IIRC think it was by another hack) it and I have been too lazy to put it back. :)
BTW, the query that runs the average rating is: Code:
SELECT AVG(vote) AS moythread FROM thread,threadrate WHERE (thread.forumid='$forumid' AND |
I'm working on that one now. I just posted the fix for the last poster above. Try it and let me know if it fixes it for you. ;)
|
Okay thanks.
FYI: There is nothing wrong with the average rating. Something must be wrong with in the vote section for each thread in forumdisplay, because there are several threads in the Dean's List that ARE rated 4~5. It's pretty weird. :nervous: |
Installed seems to working OK.
One question though. Would it not be better for the Average Rating to use the formula; (total stars divided by total threads in the forum),rather than only including threads that have been rated. Just a thought. ;) |
I think that would be better. How do we go about doing that?
|
Ok, I was told that the query I posted earlier for the last poster fix, might give false information at a point in the future. Here is the updated one. This one works, I've tested it.
PHP Code:
|
Code:
$dposteurs=$DB_site->query_first("SELECT post.dateline AS lastpostminute, thread.threadid, user.username, user.userid Edit: Okay, looks good. Thanks! :banana: |
Umm, it is user.userid not post.userid.
:nervous: |
You're right. I just got verification on the userid. The code is good at this:
PHP Code:
|
What forums is it not working on?
|
One of my Total Commander Forums.
|
Sorry, I haven't a lot of time for the moment, sorry for not having helped you ...
Really big thanks to Boofo for the support I'll add these modifications to the archive as soon as I could Thx to Boofo and other members to fix this hack :) |
grog6, any more fixes or updates for this hack?
|
Well, since no one else seems to be supporting this hack now, I have an update that will knock 2 queries off of the stats.
Find these 3 queries and delete them: PHP Code:
PHP Code:
PHP Code:
PHP Code:
|
Thanks for the update, Boofo! Any way to save a few queries, I'm all over it. :)
|
You're very welcome. ;)
|
Sorry :(
I really have too work for the moment, and can't provide any support for this hack. As soon as possible, I'll look, udpate the hack with your work Boofo, and try to help for support here. Sorry but I can't now :( |
Since Grog6 has not had time to support this hack, an updated (with his permission) and expanded version of this has been released in this thread:
https://vborg.vbsupport.ru/showthrea...threadid=53138 |
excellent .. :)
|
All times are GMT. The time now is 06:34 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|