ibProArcade Newest Game Thread vb4 version 3.0
This mod makes a new thread when you install a .tar game..
It only works when installing one game at a time..
Add this to your admincp/arcade.php file...
Look in the // TAR install code
Still in the // TAR install code, now find this code around line 3028 for:
global $IN, $INFO, $vboptions;
Put this right below it:
$DB->query("INSERT INTO ibf_games_list (" .$db_string['FIELD_NAMES']. ") VALUES (". $db_string['FIELD_VALUES'] .")");
$DB->query("select g.*, c.c_id, c.password, c.cat_name from ibf_games_list as g
left join ibf_games_cats as c on (g.gcat = c.c_id)
ORDER BY g.added DESC LIMIT 1");
$gamea = $DB->fetch_row();
$vbversion = substr($vboptions[templateversion],0,3);
if (($vbversion != "3.0") && ($NATIVEMODE==0))
($hook = vBulletinHook::fetch_hook('ibproarcade_game_added')) ? eval($hook) : false;
Find this in the includes/xml/hooks_ibproarcade.xml file:
and put this below it:
Import the product-newestgamethread.xml file..
Go into your admincp >> vBulletin Options: IBPro Arcade Thread on newest game
Add: Under which exisiting Username will post the New Thread.
Add: The User ID who makes the Highscore Thread.
Show the thread starters signature. Yes/No
Add: In which Forum will create a new Thread.
Enter the id of the post icon. 0 to show no icon.
Reply Allowed ? (open/close Thread) Yes/No..
Now go install a game to see the Thread..