PDA


View Full Version : Cant Delete Module


paul41598
06-04-2005, 10:18 AM
I created a new module, and now whenever I choose delete out of that dropdown and hit save, it doesnt delete it? Very odd...


Im not completely even sure how to do what I want to do, but I want a custom table, with navigation links to various sites. Im guessing a make a new module and choose template, then put in the code?

Those are my two issues. Thanks!

tomshawk
06-04-2005, 05:42 PM
I'm having the same problems.

I have custom modules I had created in CMPS 1.0.1 that I can not delete

Xil Ze
06-04-2005, 06:04 PM
try internet explorer. firefox doesn't display the button.

FightRice
06-04-2005, 06:12 PM
Firefox displays the button for me, And i can't delete them either

tomshawk
06-04-2005, 06:21 PM
try internet explorer. firefox doesn't display the button.

that was it, thank you..

The dropdown is there, but the Go button was not ;)

You rock

Thanks again

paul41598
06-04-2005, 06:29 PM
solved my problem too! :D Stupid firefox

Brian
06-04-2005, 07:07 PM
If you'll look in your vba_cmps_admin.php file for this code:
print_description_row(construct_phrase($vbphrase['x_tools'], $vbphrase['module']), 0, 2, 'thead');
echo '<form action="vba_cmps_admin.php"><input type="hidden" name="modid" value="' . $module['modid'] . '" />';
print_label_row($vbphrase['select_an_action'], '<select name="do">' . construct_select_options(array('noaction' => $vbphrase['please_select_one'], 'copymodule' => $vbphrase['copy'], 'removemodule' => $vbphrase['delete'])) . ' <input type="submit" value="' . $vbphrase['go'] . '" />', '', 'top', '', true);
echo '</form>';

$modtypes = array(
'noaction' => $vbphrase['please_select_one'],
'chtype_php_file' => $vbphrase['file'],
'chtype_template' => $vbphrase['template'],
'chtype_bb_code' => $vbphrase['bb_code']
);

unset($modtypes["chtype_$type"]);

echo '<form action="vba_cmps_admin.php"><input type="hidden" name="do" value="editmodule" /><input type="hidden" name="modid" value="' . $module['modid'] . '" />';
print_label_row(construct_phrase($vbphrase['change_x_type'], $vbphrase['module']), '<select name="chtype">' . construct_select_options($modtypes) . ' <input type="submit" value="' . $vbphrase['go'] . '" />');


And replace it with this:
print_description_row(construct_phrase($vbphrase['x_tools'], $vbphrase['module']), 0, 2, 'thead');
echo '<form action="vba_cmps_admin.php"><input type="hidden" name="modid" value="' . $module['modid'] . '" />';
print_label_row($vbphrase['select_an_action'], '<select name="do">' . construct_select_options(array('noaction' => $vbphrase['please_select_one'], 'copymodule' => $vbphrase['copy'], 'removemodule' => $vbphrase['delete'])) . '</select> <input type="submit" value="' . $vbphrase['go'] . '" />', '', 'top', '', true);
echo '</form>';

$modtypes = array(
'noaction' => $vbphrase['please_select_one'],
'chtype_php_file' => $vbphrase['file'],
'chtype_template' => $vbphrase['template'],
'chtype_bb_code' => $vbphrase['bb_code']
);

unset($modtypes["chtype_$type"]);

echo '<form action="vba_cmps_admin.php"><input type="hidden" name="do" value="editmodule" /><input type="hidden" name="modid" value="' . $module['modid'] . '" />';
print_label_row(construct_phrase($vbphrase['change_x_type'], $vbphrase['module']), '<select name="chtype">' . construct_select_options($modtypes) . '</select> <input type="submit" value="' . $vbphrase['go'] . '" />');


Then that should take care of the problem in Firefox.

phlogiston
06-05-2005, 01:24 PM
I have a feeling the same problem (& similar fix) is there when trying to copy or delete pages? :D

nexia
06-05-2005, 01:43 PM
all the <select tags are missing their </select> closing tag in the admin. so that's why we have missing buttons... i was to update here, but Brian made most of the debug.. missing 2 select btw...

btw, this is not a Firefox problem, but a XHTML compliance problem... to be compliant you have to close your starting tags everywhere... all browsers are the same now, not IE btw... (or, archaic browser...)