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

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

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 1 Guest 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