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.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

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