![]() |
Help with Review Hack
I am writing my own vBulletin Integrated Review Script for my anime site which outputs a modified thread with new fields and places all the variables on a non-vb page, along with all necessary vBulletin things, such as vBCode and Smilies. One problem i have with my script however is that i have no way in defining an average review score. Can someone tell me how i would be able to do this?
I have added "animerating" into my "post" table. What i want to do is get all the scores from the fields in the post table, make them an average, and place the final score into the thread table under, say "averagerating". Where and how would i place this? |
bump -_-
(seems to be a reoccuring thing) |
You could do something like this:
SELECT AVG(column) AS number FROM reviews Craig |
how would this work exactly?
|
You would first have to select all the fields from the post, ie.
PHP Code:
Regards, g-force2k2 |
What file is this intended for? I have placed it in my non-vb file and i don't get anything come from it.
|
All times are GMT. The time now is 02:00 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:
|