Log in

View Full Version : [MOD] v3 Arcade Categories Mod 1.3a


Oxygen
06-07-2004, 10:00 PM
_/?\_/?\_/?\_/?\_/?\_/?\_/?\_/?\_/?\__/?\_

v3 Arcade Categories Mod
Version 1.3a
For v3Arcade - Wonderful Arcade Hack!

By Sean T. Boyette
[sboyette@tampabay.rr.com]

?\_/?\_/?\_/?\_/?\_/?\_/?\_/?\_/?\_/??\_/?

Thanks to John, and the work he has done on this hack.

insanctus
06-08-2004, 05:25 PM
Cool add in , I may use this one.

SaN-DeeP
06-08-2004, 06:03 PM
_/?\_/?\_/?\_/?\_/?\_/?\_/?\_/?\_/?\__/?\_

v3 Arcade Categories Mod
Version 1.1
For v3Arcade - Wonderful Arcade Hack!

By Sean T. Boyette
[sboyette@tampabay.rr.com]

?\_/?\_/?\_/?\_/?\_/?\_/?\_/?\_/?\_/??\_/?

Thanks to John, and the work he has done on this hack.
if things work well,
this is gonna be THE BEST mod for v3arcade ;)

will test it on my test board first ;)

* SaN-DeeP clicks install

Oxygen
06-08-2004, 06:14 PM
I just upped v1.2, there was a discrepancy in the instructions, and I resolved a issue with large categories and page navigation.

Let me know how it works out!

Alien
06-08-2004, 07:08 PM
Can we get a better example of this? like a full arcade page or something? ...and what it looks like if you click on one of the links? :)

Oxygen
06-08-2004, 07:38 PM
This mod allows you the ability to categorize each game in a particular category.

The new homepage of the arcade allows for the showing of these categories.
if you click on a category link you are taken to a normal arcade listing, although the only games listed in the listing are those in that particular arcade.

I have attached some more images.

Regs
06-08-2004, 09:04 PM
Works great, thanks!

~Regs.

FilmoreSlim
06-08-2004, 10:41 PM
Awesome Mod! Is there some way we could put Category Images next to each category?

Great work there ;)

ChuanSE
06-08-2004, 11:40 PM
Yeah, and how much game there are per category. It's a nice system, but it takes the charme of the acade a bit away. Would it be possible to see your categories between the news block and the games block on arcade main. With the options to get the whole list on one page (small icons), on multiple pages with the big icons and multiple pages ordered by category?

that would be great :D

deathemperor
06-09-2004, 01:56 AM
this is great. I was about to request this for my hundreds of arcade games ^^
it should be released sooner tho cuz we would have to edit 150+ games now and that's no easy >_<

msimplay
06-09-2004, 05:50 AM
i would say the arcade main page be kept as it is in terms of the original arcade 1.02 hack
and the catergories chosen in a drop down

Intex
06-09-2004, 06:15 AM
Oxygen - good to see you released it here also :). Good job :cool:.

Oxygen
06-09-2004, 01:09 PM
Awesome Mod! Is there some way we could put Category Images next to each category?

Great work there ;)
to add a category image, simply modify the arcade_main_category and the arcade_main_category_bit template to include a new column with your image!

Oxygen
06-09-2004, 01:10 PM
Oxygen - good to see you released it here also :). Good job :cool:.
I assumed that some users of vb.org may not travel over to vb3arcade.com.

I hope it is useful to some here as well.

Oxygen
06-09-2004, 01:11 PM
this is great. I was about to request this for my hundreds of arcade games ^^
it should be released sooner tho cuz we would have to edit 150+ games now and that's no easy >_<
Sorry it was not sooner! But it will make it easier when there are 250+ games! :)

gmarik
06-10-2004, 06:19 AM
Sounds cool. How long does it takes to instaall all the Arcade hack thing together? 30 minutes?

Oxygen
06-10-2004, 11:47 AM
If that..

Lionel
06-18-2004, 03:07 AM
You did a nice job. Thank you for releasing it.

mariannet
07-27-2004, 09:29 PM
I have installed v3 Arcade by John Warwick and are now trying to install this hack.

I have a problem when I get to edit the arcade.php. I cannot find:


if (!empty($_REQUEST['search']))
{
globalize($_REQUEST, array('search'=>STR_NOHTML));
$searchstring = "&search=$search";
$searchclause = "WHERE (title LIKE '%" . addslashes($search) . "%' OR descr LIKE '%" . addslashes($search) . "%')";
}



$pagenav = construct_page_nav($g, "arcade.php?$session[sessionurl]do=main$searchstring");


And other parts of code to replace. Has there been a new version released of v3 Arcade since you released this hack?

mariannet
08-05-2004, 08:34 PM
Bump

deathemperor
09-01-2004, 10:51 AM
very usefull for 200+ games, clicks install

TTG
10-08-2004, 08:52 PM
Installed and it works well but I can no longer install any new games .. anyone else having this problem !?

Problem solved :)

DWard
10-12-2004, 07:29 PM
It takes aaagggeeessss to configure categories for 394+ games!! I dont have any problem TTG, apart from it removing the option to uninstall games from the admin cp, which I had to add back...

One question for the author, could you do some kind of 'cateogy champion' and could you do an alternate row colour each time, so that it looks better?

Cheers,
Dan.

TTG
10-12-2004, 07:36 PM
It takes aaagggeeessss to configure categories for 394+ games!!

Cheers,
Dan.

Where did you find 394 games .. I have .. er .. 36 :tired:

PurrFect
10-19-2004, 03:50 AM
to add a category image, simply modify the arcade_main_category and the arcade_main_category_bit template to include a new column with your image!
Would it be possible to get the actual code which needs to be added to actually get these images showing. I'm a bit of a newbie so I'm in need of more guidance...

TIA

PurrFect
10-23-2004, 02:53 AM
*bump* :o

dina
10-31-2004, 09:54 AM
Umm.. the mod is asking for an image called /images/arcade/king.gif which I don't have and was not included in this mod. Could someone please post it here?

TTG
10-31-2004, 10:08 AM
You could add any image for the 'King' .. attached the one I use.

Lionel
11-20-2004, 08:57 PM
can someone please make an addon to split the categories in 2 columns? With 600+ games released, category page is becoming long too....

Sooner95
12-18-2004, 02:48 PM
Yea, me too... alot of code missing in arcadeadmin.php couldnt find it to replace it? lol going to look to see if another version has been released, but kinda sucks when you get halfway thru it LOL


I have installed v3 Arcade by John Warwick and are now trying to install this hack.

I have a problem when I get to edit the arcade.php. I cannot find:


if (!empty($_REQUEST['search']))
{
globalize($_REQUEST, array('search'=>STR_NOHTML));
$searchstring = "&search=$search";
$searchclause = "WHERE (title LIKE '%" . addslashes($search) . "%' OR descr LIKE '%" . addslashes($search) . "%')";
}



$pagenav = construct_page_nav($g, "arcade.php?$session[sessionurl]do=main$searchstring");


And other parts of code to replace. Has there been a new version released of v3 Arcade since you released this hack?

Sooner95
12-18-2004, 02:57 PM
hahha Yep, helps to have the latest version Doh! my bad

Sooner95
12-18-2004, 05:54 PM
works like a champ Many thx!

anarchystar
01-10-2005, 04:20 AM
I seem to be having some trouble with my database, I'm not sure if I added the table correctly. The script modifications went smooth, I am just stuck on the SQL part.
I am running vb 3.0.5 and phpMyAdmin. Could someone help me out with adding the tables for this mod?

MorrisMcD
01-15-2005, 03:07 AM
I seem to be having some trouble with my database, I'm not sure if I added the table correctly. The script modifications went smooth, I am just stuck on the SQL part.
I am running vb 3.0.5 and phpMyAdmin. Could someone help me out with adding the tables for this mod?
I need the same help...

I believe you just go to PHPMyAdmin and go to the SQL Tab... (I am using 2.6.1-rc2)

Then in the field below 'Run SQL query/queries on database bengals:' you would just paste the modifications..

Can someone tell me if I am correct.. All the hacks I have installed to this point did not involve doing this...

Thanks

MorrisMcD
01-16-2005, 02:02 AM
I see you implemented the arcade king hack into this... I like the idea in doing that so that the king is listed on the categories page, BUT, I installed the 'top 5 arcade kings' hack and I get the top person on the category page, and then from within each category, I see the top 5...

Is it possible to get the top 5 arcade kings listed on the category page as well?

Sooner95
01-19-2005, 01:43 PM
umm, i have a question

when going to a catagory, it only lists 10 games, even if their are more than 10 in the catagory.. did i miss something?

Sooner95
01-19-2005, 02:05 PM
nevermind, fixed

was missing

<br />
$pagenav

in my arcade_main template on a couple of the styles..

sabret00the
01-31-2005, 11:43 AM
installed this but it won't echo out the "arcade_main_catergory" template no matter how hard i try.

nguyenvuan
02-21-2005, 03:26 AM
I have a problem in Admincp:

Parse error: parse error, unexpected T_STRING in /home/******/public_html/home/forums/admincp/arcadeadmin.php on line 324

Line 324:
$menu .= "<tr onClick=\"document.getElementById('id').innerHTML = ".$games[shortname]."id;
How can I fix that problem?

sitka
03-02-2005, 06:42 PM
Arcade Categories v1.3A


all install went ok but when i went in the admincp under "Game Settings" i get the following error:

Database error in vBulletin xxxxxxxxx:

Invalid SQL: SELECT * FROM xxxxxxxxxx_games A, gamescat B WHERE A.categoryID = B.categoryID ORDER BY gameid
mysql error: Table 'MYPREFIXHERE.gamescat' doesn't exist

mysql error number: 1146

Date: Wednesday 02nd of March 2005 03:33:41 PM
Script: http://www.xxxxxxxx.com/forum/admincp/arcadeadmin.php?do=games
Referer: http://www.xxxxxxxxxx.com/forum/admincp/index.php?do=nav


is it because my board has prefixes?

AuroraMike
03-02-2005, 11:20 PM
I updated to VB 3.0.7 last week and everything is working fine EXCEPT for this. Now the file edits are still there in arcadeadmin.php (obviously since that's not updated). However I just added 27 new games and I cannot add them to a category. I can edit my other 150+ games but I can't "categorize" these new ones.

I want to stress that everything else w/ the arcade is working. the only change was the 3.0.7 update and I only uploaded the changed files and even then, after I had merged my 3.0.6 hacks into the clean 3.0.7 files. Ppl can play games, record scores, I can access the arcade admin, clear zero scores, remove games, even recategorize existing games.

We can even play the new games w/o issue. But they're in the wrong category. Any ideas?

AuroraMike
03-02-2005, 11:53 PM
************************************************** ***

interesting, it seems that any and all new games that I add cause errors with the arcadeadmin.php. The problem is that all the category fields are greyed out. See the screenshot for what I'm referring to.

The errors that are popping up in IE are:
Expected identifier
Expected ';'

there are 54 errors in total, 27 of each. They all point to lines that describe the newly installed games. The catch is, I cannot find any difference between these new additions and the existing arcade games. The lines look the same between the old and new games. Anyone else?

One of the lines that it's complaining is this:
</tr><tr onClick="document.getElementById('id').innerHTML = 5milestogoid;document.getElementById('descr').inne rHTML = 5milestogodescr;document.getElementById('title').i nnerHTML = 5milestogotitle;document.getElementById('showaward ').innerHTML = 5milestogoshowaward;document.getElementById('chall enabled').innerHTML = 5milestogochallenabled;document.getElementById('pl aypanel').innerHTML = 5milestogoplaypanel;document.getElementById('activ e').innerHTML = 5milestogoactive;document.getElementById('netplay' ).innerHTML = 5milestogonetplay;document.getElementById('uptbut' ).innerHTML = 5milestogoupbuttext;document.getElementById('categ orytitle').innerHTML = 5milestogocategorytitle;">
<td><img src="../images/arcade/file.gif"></td>
<td>5 Miles To Go &nbsp;</td>
</tr></table>

says its expecting a ';' at char 44 which is the "d" in document.get. Now if I look at a working arcade game:

</tr><tr onClick="document.getElementById('id').innerHTML = radialsnakeid;document.getElementById('descr').inn erHTML = radialsnakedescr;document.getElementById('title'). innerHTML = radialsnaketitle;document.getElementById('showawar d').innerHTML = radialsnakeshowaward;document.getElementById('chal lenabled').innerHTML = radialsnakechallenabled;document.getElementById('p laypanel').innerHTML = radialsnakeplaypanel;document.getElementById('acti ve').innerHTML = radialsnakeactive;document.getElementById('netplay ').innerHTML = radialsnakenetplay;document.getElementById('uptbut ').innerHTML = radialsnakeupbuttext;document.getElementById('cate gorytitle').innerHTML = radialsnakecategorytitle;">
<td><img src="../images/arcade/file.gif"></td>
<td>Radial Snake &nbsp;</td>

I don't see a difference and thus why there is an error...

sitka
03-07-2005, 04:21 PM
$game = $DB_site->query("SELECT * FROM " . TABLE_PREFIX . "games A, gamescat B WHERE A.categoryID = B.categoryID ORDER BY gameid ");

I have no problem with any other area of the arcade. I can even change the game categories around in the "Game Categories" link in the admincp "Add Game Category" works too.

BUT when i click on the "game settings" in the admincp I get this ERROR

I have the correct names these are just x'd out.
xxxxxx = my prefix
xxxxxx_xxxxxx = database name

Database error in vBulletin 3.0.x:

Invalid SQL: SELECT * FROM xxxxxx_games A, gamescat B WHERE A.categoryID = B.categoryID ORDER BY gameid
mysql error: Table 'xxxxxx_xxxxxxx.gamescat' doesn't exist

mysql error number: 1146

Date: Saturday 05th of March 2005 03:27:29 PM
Script: http://www.xxxxxx.com/forum/admincp/arcadeadmin.php?do=games
Referer: http://www.xxxxxx.com/forum/admincp/index.php?do=nav
Username: Me
IP Address: xxx.xxx.xxx.xxx

do i need to modify that line of code?
There shouldn't be a . between the prefix and the table name. This isn't the only hack that has issues w/ prefixes. I wish someone could explain how to prevent issues like this.

YLP1
03-29-2005, 12:48 PM
I am running ver 3.0.7 as well..... were these syntax issues fixed?

I am getting this error on the execute query:

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 ';


INSERT INTO `gamescat` VALUES (1, 'General', 'General G

Thanks in advance for the info.

Digikilla
04-06-2005, 03:53 PM
I am running 3.0.7. Everything installed fine and I get no errors, but When i move the games into diffrent catagories, the game get turned off and it won't let me turn them back on threw game settings. Help Plz!

I can however turn them on if I manualy do so inside the database.

Digikilla
04-06-2005, 04:01 PM
I am running ver 3.0.7 as well..... were these syntax issues fixed?

I am getting this error on the execute query:


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 ';


INSERT INTO `gamescat` VALUES (1, 'General', 'General G



Thanks in advance for the info.


I got the same error when trying to run the DB Queries threw the VB Admin Area. Try Running each query seporatly and it shoudl work fine. It just doesn't liek you running more that one query at a time.

JoeLouie
04-12-2005, 02:57 AM
great hack. installed fine on 3.0.7 for me :)

rjordan
04-12-2005, 03:10 AM
I believe that your issues with games are beginning with numbers, right? I think that is a known issue. I am learning as I go, but have always wanted to get into the code to see about correcting that. I think it is a problem in the javascript and dealing with numbers as the first character. Someone correct me if I am wrong, though!

CommunityZ
04-13-2005, 06:13 AM
Help!

Database error in vBulletin 3.0.7:

Invalid SQL: SELECT * FROM vb3_games A, gamescat B WHERE A.categoryID = B.categoryID ORDER BY gameid
mysql error: Table 'forum_testvb.gamescat' doesn't exist

mysql error number: 1146

I follow all the instruction except i changed the table prefix for it from CREATE TABLE `gamescat` ( to CREATE TABLE `vb3_gamescat` ( and INSERT INTO `gamescat` to INSERT INTO `vb3_gamescat` because my forum table prefix is vb3. How to fix this problem?

Marco van Herwaarden
04-13-2005, 06:41 AM
SELECT * FROM vb3_games A, gamescat B
You did change the table prefix for 'games', but not for the 'gamescat'.

CommunityZ
04-13-2005, 06:57 AM
$game = $DB_site->query("SELECT * FROM " . TABLE_PREFIX . "games A, gamescat B WHERE A.categoryID = B.categoryID ORDER BY gameid ");

How to change so it makes gamescat to vb3_gamescat?

Marco van Herwaarden
04-13-2005, 07:04 AM
$game = $DB_site->query("SELECT * FROM " . TABLE_PREFIX . "games A, " . TABLE_PREFIX . "gamescat B WHERE A.categoryID = B.categoryID ORDER BY gameid ");

PS Please use the [ php ] bb-code if posting code here.

CommunityZ
04-13-2005, 07:28 AM
Sorry. Just now i try to use but i don't know how. Is it just out xwsnjka ?

maytrix
04-15-2005, 01:49 PM
I found a slight bug while installing a new arcade. In your arcade king section of code you need to ammend the query to read:

$mosthighscores = $DB_site->query("SELECT games.highscorerid, user.username, user.userid FROM " . TABLE_PREFIX . "games AS games
LEFT JOIN " . TABLE_PREFIX . "user AS user ON user.userid = games.highscorerid WHERE games.highscorerid!=''");

instead of:

$mosthighscores = $DB_site->query("SELECT games.highscorerid, user.username, user.userid FROM " . TABLE_PREFIX . "games AS games
LEFT JOIN " . TABLE_PREFIX . "user AS user ON user.userid = games.highscorerid");

or in the case you have more games without a highscorerid it will just loop the results and not show the arcade king.

saint_seiya
04-25-2005, 08:33 PM
I ran all the queries perfectly fine and am running 3.0.7, but when I go into gamesettings, the games aren't there and they aren't on the arcade main page. I get this error:

Warning: Invalid argument supplied for foreach() in /admincp/arcadeadmin.php on line 331

Any idea? This line is like in the middle of the code you need to put in.

RichieBoy67
05-01-2005, 01:07 AM
Nice Fix Matrix....

Shill
05-16-2005, 05:55 AM
Hi Guys,

First off great add on..

Everything works fine apart from 1 thing. I have catagorised the default v3 arcade 5 games (fresh install) into 3 classic, 1 skill, 1 shooter. But when i click on any of the catagorys on the front end it is displaying all 5 games and not just the ones i have placed in that catagory.

Any help on which bit of code displays the catagorys and what to ammend would be greatful. The only other add on I have installed is the one that displays the catagorys in most games > fewest games. Which is just 1 line of code.

Any help would be appreciated.

My site can be found at www.manxarcade.com

Thanks

MortysTW
05-18-2005, 07:25 AM
Now that I've done this Catergories hack, the main arcade page seems a little dull. I want to have the "latest 10 games" displayed. Basically give it the look it had BEFORE the categories hack was added but make it the NEWEST ADDED games. Any pointers in which direction I should go sniffing at code? Please and thank you.

steadicamop
05-22-2005, 08:30 AM
I attempted to install this hack but didn't even get to finish it as half the code required to change just wasn't in the files!! It's a shame as it would have been pretty handy.

waza
05-28-2005, 10:03 AM
Hey,
I can't edit my game settings anymore after I installed this hack... :(

I attached a screen.
I don't get any mysql errors, and the other things all work fine.

Btw, I think it has something to do with:
$menu .= "<tr onClick=\"document.getElementById('id').innerHTML = ".$games[shortname]."id;document.getElementById('descr').innerHTML = ".$games[shortname]."descr;document.getElementById('title').innerHTML = ".$games[shortname]."title;document.getElementById('showaward').innerHT ML = ".$games[shortname]."showaward;document.getElementById('challenabled'). innerHTML = ".$games[shortname]."challenabled;document.getElementById('playpanel'). innerHTML = ".$games[shortname]."playpanel;document.getElementById('active').innerH TML = ".$games[shortname]."active;document.getElementById('netplay').innerHTM L = ".$games[shortname]."netplay;document.getElementById('uptbut').innerHTM L = ".$games[shortname]."upbuttext;document.getElementById('categorytitle') .innerHTML = ".$games[shortname]."categorytitle;\">";

Gouken
06-17-2005, 11:43 PM
the instruction is a damn mess.. this will only work for a non-modified arcade.php, since you obviously were too lazy to write proper modification instructions, instead you just threw in the code of your final arcade.php.. which pretty much wrecks all previously applied modifications. probably a decent addon, definitely non-decent instructions.

ps: currently comparing your code with mine, trying to get it in there some way. I noticed this line in the instructions: $game = $DB_site->query("SELECT * FROM " . TABLE_PREFIX . "games A, gamescat B WHERE A.categoryID = B.categoryID ORDER BY gameid ");

I think gamescat should include the table prefix, e.g. " . TABLE_PREFIX . "gamescat

cheers, Gouken.

MustangLisa
07-17-2005, 05:38 PM
Nice, thanks. Installed.

thephonemall
08-26-2005, 07:52 PM
Anyone know why I am unable to see the top 5 arcade kings in each category?

michaelsilvia
08-30-2005, 12:55 AM
This hack disables the "remove arcade" hack. What is the best way to remove arcade games? Is there a manual way?

Mike

thephonemall
09-05-2005, 05:30 PM
When I ADD a category.. it doesnt show up on the arcade home. Do I have to edit something else or create some tables to make this work?

thedvs
09-10-2005, 12:27 PM
Just installed this now when i call arcade.php?do=category

I get this error
Warning: mysql_result(): Unable to jump to row 0 on MySQL result index 27 in /arcade.php on line 340

Any ideas?


NEVERMIND, found the fix doh
https://vborg.vbsupport.ru/showthread.php?t=71058

vb3.0.9

thedvs
09-10-2005, 02:34 PM
great now when i add games the settings dont come up