![]() |
V3Arcade - Game Rating addon
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 ; -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 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. 3. Edit arcade.php -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Find: Code:
$phrasegroups = array(); Code:
$phrasegroups = array('arcade','showthread'); Find: Code:
Add right after: Code:
Code:
Add right after: Code:
Save arcade.php 4. Edit arcade templates to place the voting form in play control panel -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ In arcade_play template find: Code:
Add right after: Code:
<tr> Find: Code:
Add right after: Code:
5. At last find the right place to show the game rating I placed in arcade_main_games_bit temlate : -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Code:
<if condition="$game['rating'] > 0"><img class="inlineimg" src="$stylevar[imgdir_rating]/rating_$game[rating].gif" alt="<phrase 1="$game[votenum]" 2="$game[voteavg]">$vbphrase[thread_rating_x_votes_y_average]</phrase>" border="0" /> Thats all! I hope it works :classic: |
Awesome! I'll certainly have a look at this one later tonight..
Thanks for sharing your work. :) |
Quote:
game size, champion, record, played games, personal record... |
cool, when you say game rating, does this include your arcade home layout, too? That looks very organized!
let us know :) |
Rick Sample.
No. The rest was made before. And it's mush more hard for me to make clear instructions than to make the code :) Generally it's templates modification. Because my board in russian it needs to translate back :ermm: |
thanks for sharing looks like a very nice addon.
|
you beat frankenberrie at that one!
|
Where are the phrases?
|
you've got one extra space in your alter table games query for votetotal and votenum on this page that gives a database column not found error. Removing the space fixes that.
|
where are the spaces to be removed?
|
All times are GMT. The time now is 03:19 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:
|