MightyGorgon / icy_phoenix_plugins

Plugins for Icy Phoenix
http://www.icyphoenix.com
7 stars 6 forks source link

Adding a game doesn't show any confirmation message #16

Open vendethiel opened 9 years ago

vendethiel commented 9 years ago

When you submit the "add a game" form, it just shows the IP credits, but nothing else. The game has been added, though, and is visible in "edit games"

MWE001 commented 7 years ago

I got this to give a game added successfully message tonight. Bad news is, it don't add the game when you add the game. The only game add I can get to work is bulk add.

I can push you the code if you want and you can give it a try.

MWE001 commented 7 years ago

As a matter of fact, here ya go man. I am not even sure I placed the code properly, but even without the edits, the games still would not save by using the add a game link. Only if I used Bulk add games would they get added.

Here is the code to get a successful message.

Open lang_activity.php

Find

$lang['admin_game_repaired'] = "Games Repaired<br /><br />";

Add After

$lang['admin_game_saved'] = "Game Saved Successfully<br /><br />";

Open admin_activity.php

Find

if ($game_delete)

Before Add

$message = $lang['admin_game_saved']; $message .= sprintf($lang['admin_return_activity'], '<a href="' . append_sid('admin_activity.' . PHP_EXT) . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_admin_index'], '<a href="' . append_sid(IP_ROOT_PATH . ADM .'/index.' . PHP_EXT . '?pane=right') . '">', '</a>'); message_die(GENERAL_MESSAGE, $message, '', __LINE__, __FILE__, $sql);

That will get you this:

screenshot_19

But notice, I just added this game and got success and cleared cache and F5 both and still it says 1 game to add and it is the very same one I just added.

screenshot_20

I tried fellas, that is the closest I could get to a success. I hope that helps out some.

MWE001 commented 7 years ago

And I saw very late last night in some code somewhere that a fix has been put in place for adding games and them not showing up in the games list. Maybe that bug has come back again?