Special Effect shop Configuration problem
-----
| Author | Message | |
|---|---|---|
|
Dex Luther |
||
| Sun Feb 18, 2007 3:24 pm Post subject: Special Effect shop Configuration problem | ||
|
I installed the latest version of the special effects shop on a forum that only has the latest Cash and Shop and easymod mods installed and an Xbox 360 style.
I followed the instructions for the special effects mod carefully. The only thing I changed was instead of modifying the subsilver files I modified the Xbox 360 template ones. Everything seems to work fine. I get no error messages or anything of the sort, except When I try to enter the effects shop I get "The Effects shop is currently disabled." In the admin control panel I go Shop Configuration, then at the bottom Special Effects Shop is selected in the drop down, and I click the edit button beside it. This is what comes up:
I don't know what's wrong or how to fix it. Help me Obi Wan -- Er I mean Thoul! Thanks in advance for your help. PS: Please use small words as much as possible. I'm a PHP noob. |
||
|
Thoul |
||
| Tue Feb 20, 2007 12:15 pm Post subject: Re: Special Effect shop Configuration problem | ||
|
Double check the edits to admin_shop.php and reupload it. Something may be out of place in that file or it might have failed to upload before. If there's no change, install the Entry Button add-on in the contrib/ folder of the Effects Store download.
|
||
|
Dex Luther |
||
| Tue Feb 20, 2007 3:27 pm Post subject: | ||
|
This is the area where the code was put in and the surrounding area:
Code: if( $userdata['user_level'] != ADMIN )
{ message_die(GENERAL_MESSAGE, $lang['Not_Authorised']); } if ( isset($HTTP_GET_VARS['action']) || isset($HTTP_POST_VARS['action']) ) { $action = ( isset($HTTP_POST_VARS['action']) ) ? $HTTP_POST_VARS['action'] : $HTTP_GET_VARS['action']; } else { $action = ''; } //end check //------------------------------------------------------------------------------ // Effects Store for Shop 3 - Begin Code Alteration // require_once($phpbb_root_path . 'mods/shopaddons/effects.' . $phpEx); $effects_admin->check_effects_edit($action); // // Effects Store for Shop 3 - End Code Alteration //------------------------------------------------------------------------------ //shop pages //main page if ( empty($action) ) { $template->set_filenames(array( 'body' => 'admin/shop_config_body.tpl') ); // Generate Shop List! $sql = "SELECT * FROM " . SHOP_TABLE . " ORDER BY `id`"; if ( !($result = $db->sql_query($sql)) ) { message_die(GENERAL_MESSAGE, 'SQL Error retrieving shop list!'); Code: if ( !($db->sql_query($sql)) ) { message_die(GENERAL_MESSAGE, 'SQL Error in adding transaction code for wiping user inventory!'); }
$message = sprintf($lang['ashop_user_items_cleared'], str_replace("s's", "s'", $user_row['username'] . "'s")) . '<br /><br />' . sprintf($lang['ashop_click_inventory'], '<a href="'.append_sid("admin_shop.".$phpEx."?username=" . $user_row['user_id'] . "&action=editinventory").'">','</a>', str_replace("s's", "s'", $user_row['username'] . "'s")) . '<br /><br />' . sprintf($lang['ashop_click_index'], '<a href="' . append_sid("admin_shop.".$phpEx) . '">','</a>') . '<br /><br />' . sprintf($lang['Click_return_admin_index'], '<a href="' . append_sid("index.$phpEx?pane=right") .'">', '</a>'); message_die(GENERAL_MESSAGE, $message); } } //------------------------------------------------------------------------------ // Effects Store for Shop 3 - Begin Code Alteration // elseif ( $action == 'effects' ) { $effects_admin->show_effects_admin(); } // // Effects Store for Shop 3 - End Code Alteration //------------------------------------------------------------------------------ else { message_die(GENERAL_MESSAGE, $lang['invalid_command']); } // // Generate the page // $template->pparse('body'); include('page_footer_admin.' . $phpEx); That's all the code that I was instructed to put into the Admin_shop.pho file. Have I done anything wrong? Does spacing change anything? EDIT: I installed that optional add-on and get this error when I try to go into the admin shop config panel. Code: Fatal error: Call to a member function show_effects_entry() on a non-object in /www/5gbfree.com/d/e/s/descendantsclan/htdocs/phpbb2/admin/admin_shop.php on line 96
|
||
|
Thoul |
||
| Wed Feb 21, 2007 10:36 am Post subject: Re: Special Effect shop Configuration problem | ||
|
Pretty much only one thing can cause the error you got from the entry add-on, and that's a problem with the first main edit to this file from the main install:
Code: #
#-----[ FIND ]------------------------------------------ # if ( isset($HTTP_GET_VARS['action']) || isset($HTTP_POST_VARS['action']) ) { $action = ( isset($HTTP_POST_VARS['action']) ) ? $HTTP_POST_VARS['action'] : $HTTP_GET_VARS['action']; } else { $action = ''; } //end check # #-----[ AFTER, ADD ]------------------------------------------ # //------------------------------------------------------------------------------ // Effects Store for Shop 3 - Begin Code Alteration // require_once($phpbb_root_path . 'mods/shopaddons/effects.' . $phpEx); $effects_admin->check_effects_edit($action); // // Effects Store for Shop 3 - End Code Alteration //------------------------------------------------------------------------------ That's either missing from the file or it's been disabled or damaged somehow. Such a thing would also cause the original problem, so this is the area to concentrate on. It looks okay in the section of code you posted, so it could be that the program you're using to edit or upload the file is altering it without telling you. |
||
|
Dex Luther |
||
| Wed Feb 21, 2007 10:53 am Post subject: Re: Special Effect shop Configuration problem | ||
|
Thoul wrote: Pretty much only one thing can cause the error you got from the entry add-on, and that's a problem with the first main edit to this file from the main install:
Code: #
#-----[ FIND ]------------------------------------------ # if ( isset($HTTP_GET_VARS['action']) || isset($HTTP_POST_VARS['action']) ) { $action = ( isset($HTTP_POST_VARS['action']) ) ? $HTTP_POST_VARS['action'] : $HTTP_GET_VARS['action']; } else { $action = ''; } //end check # #-----[ AFTER, ADD ]------------------------------------------ # //------------------------------------------------------------------------------ // Effects Store for Shop 3 - Begin Code Alteration // require_once($phpbb_root_path . 'mods/shopaddons/effects.' . $phpEx); $effects_admin->check_effects_edit($action); // // Effects Store for Shop 3 - End Code Alteration //------------------------------------------------------------------------------ That's either missing from the file or it's been disabled or damaged somehow. Such a thing would also cause the original problem, so this is the area to concentrate on. It looks okay in the section of code you posted, so it could be that the program you're using to edit or upload the file is altering it without telling you. I'm using smartftp EDIT: WOW! I uploaded the admin_shop.php file using my host's file manager, and it works perfectly now (or as far as I've been able to test so far). Thanks! |
||
|
Thoul |
||
| Fri Feb 23, 2007 12:21 pm Post subject: Re: Special Effect shop Configuration problem | ||
|
That's the first time I've heard of smartftp causing this kind of thing. It's usually Dreamweaver. I'll have to remember that one.
I'm glad the issue is resolved. |
||
|
Dex Luther |
||
| Mon Feb 26, 2007 5:00 pm Post subject: | ||
|
Gah
For some reason now when I try to go into the effects store I get sent to my hosts main site. I remember reading about why this happens, but I don't remember what the fix was. Any idea? EDIT: never mind. I'm a complete n00b and probably shouldn't have a forum. lol Stupid stupid mistakes. Thanks though for the help i know you would have given me |
||
|
Thoul |
||
| Tue Feb 27, 2007 12:46 pm Post subject: Re: Special Effect shop Configuration problem | ||
|
|
||
Page 1 of 1
