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.
I keep getting this error when i try to run the query in Admincp =(
Query
ALTER TABLE `vb3_games` ADD `votetotal` smallint(5) UNSIGNED DEFAULT '0' NOT NULL ;
ALTER TABLE `vb3_games` ADD `votenum` smallint(5) UNSIGNED DEFAULT '0' NOT NULL ;
CREATE TABLE `vb3_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
vBulletin Message
An error occurred while attempting to execute your query. The following information was returned.
error number: 1064
error desc: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ';
ALTER TABLE `vb3_games` ADD `votenum` smallint(5) UNSIGNED
I ran into the same problems, and being a php-noob it took a while to see the problems.
First of all, you can't run all of the queries at once (there's actually 3 there) and 2nd: if you are running version 3 or higher there is no table just called "games" (someone else pointed this out here - thanks!)
Here's the 3 that I ran separate:
PHP Code:
ALTER TABLE `vb3_games` ADD `votetotal` smallint(5) UNSIGNED DEFAULT '0' NOT NULL ;
PHP Code:
ALTER TABLE `vb3_games` ADD `votenum` smallint(5) UNSIGNED DEFAULT '0' NOT NULL ;
PHP Code:
CREATE TABLE `vb3_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 ;
That part helped with my pucker-factor which was caused when the arcade would not run.
I don't know about the catagories mod, but the kind of works on mine and I'm running 3.0.7.
I say "kind of" because of several issues that I am pulling my hair out on (and I'm already going bald, so this is a bad thing):
I'd like the rating option to be available on the main arcade.php page, but the rate drop down screen only appears when someone selects a specific game.... at at that point it's labeled Rate Thread. I saw where someone else asked about this but did not see where to fix it.
I have the standard v3arcade layout - can the star ratings be placed on the main arcade page rather than the individual game page?
Is this an option that I screwed up on? :ermm: Other screenshots make it look like it's on the arcade.php page.
at that point it's labeled Rate Thread. I saw where someone else asked about this but did not see where to fix it.
The mod was made that way for the "ease" factor. It's fairly easy to create your own phrases for it and update the code and templates to display this..
Quote:
Originally Posted by sim tech
I have the standard v3arcade layout - can the star ratings be placed on the main arcade page rather than the individual game page?
Is this an option that I screwed up on? :ermm: Other screenshots make it look like it's on the arcade.php page.
By default, you can only rate games on an individual game's play page. If you've seen different elsewhere, it's likely to be a custom job that they've done themselves.
One (more) question though... is there a query to reset all of the existing game ratings? I had some bogus rates and I'd rather just wipe them all out.
Is there a way to change the display order on the arcade.php page? I would like to display the most played first so you don't have to dig through several pages for the games which are most fun.
I am sorry, but I made all the changes explain and I do not have any rating which appears has to games, nor in the principal main, an idea of the problem??