Faster way to add categories (till 1.5 gets released) Faster way to add categories (till 1.5 gets released)
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Faster way to add categories (till 1.5 gets released)

Started by Albel, October 17, 2007, 02:23:45 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

Albel

This is for v1.4.13, btw.

Just unzip and and change catmgr.php in the address bar to catmgr2.php. I had some PHP errors earlier trying to do this, so I thought this would be nice for those with huge Galleries (2.0 MB+) not having to wait for 20-25 secs. while the list of categories opens up.

If you want to manually do this, delete everything after

pageheader($lang_catmgr_php['manage_cat']);
echo <<<EOT

<script language="javascript" type="text/javascript">
function confirmDel(catName)
{
    return confirm("{$lang_catmgr_php['confirm_delete']} (" + catName + ") ?");
}
</script>


EOT;


and before

starttable('100%', $lang_catmgr_php['update_create'], 2);
$lb = cat_list_box($current_category['parent'], $current_category['cid'], false);
$op = $current_category['cid'] ? 'updatecat' : 'createcat';
if ($CONFIG['show_bbcode_help']) {$description_help .= '&nbsp;'. cpg_display_help('f=index.html&amp;base=64&amp;h='.urlencode(base64_encode(serialize($lang_bbcode_help_title))).'&amp;t='.urlencode(base64_encode(serialize($lang_bbcode_help))),470,245);}


Some of the functions might be able to be removed without any errors --- I just didn't want to have to guess which ones weren't needed.  :D