Version: 1.00, by GenSec
Developer Last Online: Jun 2010
Version: 3.0.3
Rating:
Released: 11-06-2004
Last Update: Never
Installs: 24
No support by the author.
These hack adds rating system for your arcade games.
Files to edit: 1
Templates to edit: 2
Files to add: 1
Add 1 new db table + 2 changes for games table
Very easy to install...
################################################## ##############################################
Before the installation!
Please make a Backup of your database and the changed files!
################################################## ##############################################
1. ADD this to MySQL DB using phpmyadmin or admincp :
Code:
ALTER TABLE `games` ADD `votetotal` smallint(5) UNSIGNED DEFAULT '0' NOT NULL ;
ALTER TABLE `games` ADD `votenum` smallint(5) UNSIGNED DEFAULT '0' NOT NULL ;
CREATE TABLE `game_rate` (
`gamerateid` int(11) NOT NULL auto_increment,
`gameid` int(11) NOT NULL default '0',
`userid` int(10) NOT NULL default '0',
`vote` smallint(5) default NULL,
`ipaddress` char(15) NOT NULL default '',
PRIMARY KEY (`gamerateid`)
) TYPE=MyISAM AUTO_INCREMENT=8 ;
2. Upload gamerate.php to your forumroot directory.
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
There are somу redirects phrases like "redirect_threadrate_add", "error_threadratevoted" etc.
You саn change them to similar with the word "game" instead of "thread".
I didn't. And it works fine on my board.
If I remove the style="display:none", I can see the rating hack in the game screen, but it does not display anything beside the radio buttons other than terrible.
I have gone back and rechecked and rechecked again what I have done with no success. Any ideas?
You want the second instance. The first is in the challenge system and the second in regular play. Now to try to find some phrases as I am missing some of those...
I did have some trouble installing it because I am a complete novice at this sort of thing, but from a few of the posts I've read here other people had the same problem I did with sql errors after editing arcade.php - this was for two reasons.
1 - as already pointed out, removing 'arcade' from the line
Code:
$phrasegroups = array('arcade','showthread');
when changing arcade.php
2 - the code for creating a table assumes that there is no prefix on the database and so creates a table called 'game_rate' - however, if your vbulletin database is prefixed then you need to change the following code to reflect that:
Code:
CREATE TABLE `game_rate` (
`gamerateid` int(11) NOT NULL auto_increment,
`gameid` int(11) NOT NULL default '0',
`userid` int(10) NOT NULL default '0',
`vote` smallint(5) default NULL,
`ipaddress` char(15) NOT NULL default '',
PRIMARY KEY (`gamerateid`)
) TYPE=MyISAM AUTO_INCREMENT=8 ;
example: should your database be prefixed vbx_ then the first line of that code should read
Code:
CREATE TABLE `vbx_game_rate` (
Obviously you need to replace 'vbx_' with whatever your database prefix is (you can find that through phpmyadmin or whatever.
I hope that helps someone as I nearly had a heart attack when it all went pear shaped
*_*_*_*_*_*_*_*_*_*_*_*_*_*_*
Now, can some one explain to me what files to change so that it says "rate game" rather than "rate thread"?
the code is there, but the rating area doesn't appear in the arcade_play bit, or nowhere else on that page?
any suggestions
I have been through this thread and the install file three times and done all the suggested fixes and double and triple checked everything and I have the same issue.
it simply shows nothing at all as tho hack was never even installed.
it also states in the code "if ratings are enabled" where do we enbable them as there do not appear to be any admin panel changes to turn ratings on or off