Categories problem

Hy, i use Blog categories plugin and i get a starnge error with all my categorion on thesign-up page, also, this is all html commentd

Invalid argument supplied for foreach() in <b>/home/****/public_html/wp-content/mu-plugins/blog-types.php</b> on line <b>407</b>

  • webmastaz

    <?php
    /*
    Plugin Name: Blog Types
    Plugin URI:
    Description:
    Author: Andrew Billits (Incsub)
    Author URI: http://incsub.com
    */

    //------------------------------------------------------------------------//
    //---Config---------------------------------------------------------------//
    //------------------------------------------------------------------------//

    // Blog types
    // name and nicename are required

    $blog_types[0]['name'] = 'Advice';
    $blog_types[0]['nicename'] = 'advice';
    $blog_types[0]['description'] = '';
    $blog_types[0]['signup_only'] = 'no';

    $blog_types[1]['name'] = 'Assistance with Housing & Repairs';
    $blog_types[1]['nicename'] = 'assistance';
    $blog_types[1]['description'] = '';
    $blog_types[1]['signup_only'] = 'no';

    $blog_types[2]['name'] = 'Associations';
    $blog_types[2]['nicename'] = 'associations';
    $blog_types[2]['description'] = '';
    $blog_types[2]['signup_only'] = 'no';

    $blog_types[3]['name'] = 'Basic Needs';
    $blog_types[3]['nicename'] = 'basic';
    $blog_types[3]['description'] = '';
    $blog_types[3]['signup_only'] = 'no';

    $blog_types[4]['name'] = 'Centers';
    $blog_types[4]['nicename'] = 'centers';
    $blog_types[4]['description'] = '';
    $blog_types[4]['signup_only'] = 'no';

    $blog_types[5]['name'] = 'Community';
    $blog_types[5]['nicename'] = 'community';
    $blog_types[5]['description'] = '';
    $blog_types[5]['signup_only'] = 'no';

    $blog_types[6]['name'] = 'Consumer';
    $blog_types[6]['nicename'] = 'consumer';
    $blog_types[6]['description'] = '';
    $blog_types[6]['signup_only'] = 'no';

    $blog_types[7]['name'] = 'Consumer Assistance';
    $blog_types[7]['nicename'] = 'consumerassistance';
    $blog_types[7]['description'] = '';
    $blog_types[7]['signup_only'] = 'no';

    $blog_types[8]['name'] = 'Consumer Beware';
    $blog_types[8]['nicename'] = 'consumerbeware';
    $blog_types[8]['description'] = '';
    $blog_types[8]['signup_only'] = 'no';

    $blog_types[9]['name'] = 'Consumer Products';
    $blog_types[9]['nicename'] = 'consumerproducts';
    $blog_types[9]['description'] = '';
    $blog_types[9]['signup_only'] = 'no';

    $blog_types[10]['name'] = 'Consumer Services';
    $blog_types[10]['nicename'] = 'consumerservices';
    $blog_types[10]['description'] = '';
    $blog_types[10]['signup_only'] = 'no';

    $blog_types[11]['name'] = 'Councelling';
    $blog_types[11]['nicename'] = 'councelling';
    $blog_types[11]['description'] = '';
    $blog_types[11]['signup_only'] = 'no';

    $blog_types[12]['name'] = 'Criminal Justice';
    $blog_types[12]['nicename'] = 'criminaljustice';
    $blog_types[12]['description'] = '';
    $blog_types[12]['signup_only'] = 'no';

    $blog_types[13]['name'] = 'Criminal Justice / Legal Services';
    $blog_types[13]['nicename'] = 'criminallegalservices';
    $blog_types[13]['description'] = '';
    $blog_types[13]['signup_only'] = 'no';

    $blog_types[14]['name'] = 'Education';
    $blog_types[14]['nicename'] = 'education';
    $blog_types[14]['description'] = '';
    $blog_types[14]['signup_only'] = 'no';

    $blog_types[15]['name'] = 'Employment Support & Income Assistance';
    $blog_types[15]['nicename'] = 'emaploymentinconme';
    $blog_types[15]['description'] = '';
    $blog_types[15]['signup_only'] = 'no';

    $blog_types[16]['name'] = 'Environment & Services';
    $blog_types[16]['nicename'] = 'environment';
    $blog_types[16]['description'] = '';
    $blog_types[16]['signup_only'] = 'no';

    $blog_types[17]['name'] = 'Events';
    $blog_types[17]['nicename'] = 'events';
    $blog_types[17]['description'] = '';
    $blog_types[17]['signup_only'] = 'no';

    $blog_types[18]['name'] = 'Face Book';
    $blog_types[18]['nicename'] = 'facebook';
    $blog_types[18]['description'] = '';
    $blog_types[18]['signup_only'] = 'no';

    $blog_types[19]['name'] = 'Food';
    $blog_types[19]['nicename'] = 'food';
    $blog_types[19]['description'] = '';
    $blog_types[19]['signup_only'] = 'no';

    $blog_types[20]['name'] = 'Food for life';
    $blog_types[20]['nicename'] = 'foodlife';
    $blog_types[20]['description'] = '';
    $blog_types[20]['signup_only'] = 'no';

    $blog_types[21]['name'] = 'Frustrated';
    $blog_types[21]['nicename'] = 'frustrated';
    $blog_types[21]['description'] = '';
    $blog_types[21]['signup_only'] = 'no';

    $blog_types[22]['name'] = 'General';
    $blog_types[22]['nicename'] = 'general';
    $blog_types[22]['description'] = '';
    $blog_types[22]['signup_only'] = 'no';

    $blog_types[23]['name'] = 'General knowledge';
    $blog_types[23]['nicename'] = 'generalknowledge';
    $blog_types[23]['description'] = '';
    $blog_types[23]['signup_only'] = 'no';

    $blog_types[24]['name'] = 'Government';
    $blog_types[24]['nicename'] = 'government';
    $blog_types[24]['description'] = '';
    $blog_types[24]['signup_only'] = 'no';

    $blog_types[25]['name'] = 'Government Services';
    $blog_types[25]['nicename'] = 'governmentservices';
    $blog_types[25]['description'] = '';
    $blog_types[25]['signup_only'] = 'no';

    $blog_types[26]['name'] = 'Guest';
    $blog_types[26]['nicename'] = 'guest';
    $blog_types[26]['description'] = '';
    $blog_types[26]['signup_only'] = 'no';

    $blog_types[27]['name'] = 'Health';
    $blog_types[27]['nicename'] = 'health';
    $blog_types[27]['description'] = '';
    $blog_types[27]['signup_only'] = 'no';

    $blog_types[28]['name'] = 'Help';
    $blog_types[28]['nicename'] = 'help';
    $blog_types[28]['description'] = '';
    $blog_types[28]['signup_only'] = 'no';

    $blog_types[29]['name'] = 'Help the Cause';
    $blog_types[29]['nicename'] = 'helpcause';
    $blog_types[29]['description'] = '';
    $blog_types[29]['signup_only'] = 'no';

    $blog_types[30]['name'] = 'I give up';
    $blog_types[30]['nicename'] = 'igiveup';
    $blog_types[30]['description'] = '';
    $blog_types[30]['signup_only'] = 'no';

    $blog_types[31]['name'] = 'International Services';
    $blog_types[31]['nicename'] = 'internationalservices';
    $blog_types[31]['description'] = '';
    $blog_types[31]['signup_only'] = 'no';

    $blog_types[32]['name'] = 'Marriage';
    $blog_types[32]['nicename'] = 'marriage';
    $blog_types[32]['description'] = '';
    $blog_types[32]['signup_only'] = 'no';

    $blog_types[33]['name'] = 'Material';
    $blog_types[33]['nicename'] = 'material';
    $blog_types[33]['description'] = '';
    $blog_types[33]['signup_only'] = 'no';

    $blog_types[34]['name'] = 'Meeting Place';
    $blog_types[34]['nicename'] = 'meetingplace';
    $blog_types[34]['description'] = '';
    $blog_types[34]['signup_only'] = 'no';

    $blog_types[35]['name'] = 'Mental Care';
    $blog_types[35]['nicename'] = 'mentalcare';
    $blog_types[35]['description'] = '';
    $blog_types[35]['signup_only'] = 'no';

    $blog_types[36]['name'] = 'Natural Health';
    $blog_types[36]['nicename'] = 'naturalhealth';
    $blog_types[36]['description'] = '';
    $blog_types[36]['signup_only'] = 'no';

    $blog_types[37]['name'] = 'Natural Resources';
    $blog_types[37]['nicename'] = 'naturalresources';
    $blog_types[37]['description'] = '';
    $blog_types[37]['signup_only'] = 'no';

    $blog_types[38]['name'] = 'Needed Service';
    $blog_types[38]['nicename'] = 'neededservice';
    $blog_types[38]['description'] = '';
    $blog_types[38]['signup_only'] = 'no';

    $blog_types[39]['name'] = 'Non Profit';
    $blog_types[39]['nicename'] = 'nonprofit';
    $blog_types[39]['description'] = '';
    $blog_types[39]['signup_only'] = 'no';

    $blog_types[40]['name'] = 'Open for discussion';
    $blog_types[40]['nicename'] = 'opendiscussion.';
    $blog_types[40]['description'] = '';
    $blog_types[40]['signup_only'] = 'no';

    $blog_types[41]['name'] = 'Organization';
    $blog_types[41]['nicename'] = 'organization';
    $blog_types[41]['description'] = '';
    $blog_types[41]['signup_only'] = 'no';

    $blog_types[42]['name'] = 'Other';
    $blog_types[42]['nicename'] = 'other';
    $blog_types[42]['description'] = '';
    $blog_types[42]['signup_only'] = 'no';

    $blog_types[43]['name'] = 'Persons with Disabilities';
    $blog_types[43]['nicename'] = 'personsdisabilities';
    $blog_types[43]['description'] = '';
    $blog_types[43]['signup_only'] = 'no';

    $blog_types[44]['name'] = 'Photos';
    $blog_types[44]['nicename'] = 'photos';
    $blog_types[44]['description'] = '';
    $blog_types[44]['signup_only'] = 'no';

    $blog_types[45]['name'] = 'Poverty';
    $blog_types[45]['nicename'] = 'poverty';
    $blog_types[45]['description'] = '';
    $blog_types[45]['signup_only'] = 'no';

    $blog_types[46]['name'] = 'Required Assistance Please Help';
    $blog_types[46]['nicename'] = 'assistancehelprequire';
    $blog_types[46]['description'] = '';
    $blog_types[46]['signup_only'] = 'no';

    $blog_types[47]['name'] = 'Shelter';
    $blog_types[47]['nicename'] = 'shelter';
    $blog_types[47]['description'] = '';
    $blog_types[47]['signup_only'] = 'no';

    $blog_types[48]['name'] = 'Sickness';
    $blog_types[48]['nicename'] = 'sickness';
    $blog_types[48]['description'] = '';
    $blog_types[48]['signup_only'] = 'no';

    $blog_types[49]['name'] = 'Single';
    $blog_types[49]['nicename'] = 'single';
    $blog_types[49]['description'] = '';
    $blog_types[49]['signup_only'] = 'no';

    $blog_types[50]['name'] = 'Support';
    $blog_types[50]['nicename'] = 'support';
    $blog_types[50]['description'] = '';
    $blog_types[50]['signup_only'] = 'no';

    $blog_types[51]['name'] = 'Support for Children, Youth & Families';
    $blog_types[51]['nicename'] = 'supportcyf';
    $blog_types[51]['description'] = '';
    $blog_types[51]['signup_only'] = 'no';

    $blog_types[52]['name'] = 'Target Populations';
    $blog_types[52]['nicename'] = 'targetpop';
    $blog_types[52]['description'] = '';
    $blog_types[52]['signup_only'] = 'no';

    $blog_types[53]['name'] = 'Uncategorized';
    $blog_types[53]['nicename'] = 'uncategorized';
    $blog_types[53]['description'] = '';
    $blog_types[53]['signup_only'] = 'no';

    $blog_types[54]['name'] = 'Volunteer';
    $blog_types[54]['nicename'] = 'volunteer';
    $blog_types[54]['description'] = '';
    $blog_types[54]['signup_only'] = 'no';

    $blog_types[55]['name'] = 'Volunteer Opportunities';
    $blog_types[55]['nicename'] = 'volunteeropportunities';
    $blog_types[55]['description'] = '';
    $blog_types[55]['signup_only'] = 'no';

    $blog_types[56]['name'] = 'Volunteer Services';
    $blog_types[56]['nicename'] = 'volunteerservices';
    $blog_types[56]['description'] = '';
    $blog_types[56]['signup_only'] = 'no';

    $blog_types[57]['name'] = 'Walk for Hope';
    $blog_types[57]['nicename'] = 'walkhope';
    $blog_types[57]['description'] = '';
    $blog_types[57]['signup_only'] = 'no';

    // Blog subtypes
    // name, nicename and type nicename are required
    // Note: If you are using subtypes you **MUST** have at least one subtype for each type

    // Allow users to select one or multiple blog types
    // Note: If you allow users to select multiple blog types, they cannot select a subtype
    $blog_types_selection = 'single'; //Options: 'single' or 'multiple'

    // Allow users to select one or multiple blog subtypes
    $blog_subtypes_selection = 'single'; //Options: 'single' or 'multiple'

    // Branding singular
    $blog_types_branding_singular = __('Blog Type');
    $blog_subtypes_branding_singular = __('Blog Subtype');

    // Branding plural
    $blog_types_branding_plural = __('Blog Types');
    $blog_subtypes_branding_plural = __('Blog Subtypes');

    // Display admin panel blog types page
    $blog_types_display_admin_page = 'yes'; //Options: 'yes' or 'no'

    // Display signup form blog types selection
    $blog_types_display_signup_form = 'yes'; //Options: 'yes' or 'no'

    // Enable subtypes
    $blog_types_enable_subtypes = 'yes'; //Options: 'yes' or 'no'

    //------------------------------------------------------------------------//
    //---Hook-----------------------------------------------------------------//
    //------------------------------------------------------------------------//

    //------------------------------------------------------------------------//
    //---Functions------------------------------------------------------------//
    //------------------------------------------------------------------------//

    //------------------------------------------------------------------------//
    //---Output Functions-----------------------------------------------------//
    //------------------------------------------------------------------------//

    //------------------------------------------------------------------------//
    //---Page Output Functions------------------------------------------------//
    //------------------------------------------------------------------------//

    //------------------------------------------------------------------------//
    //---Support Functions----------------------------------------------------//
    //------------------------------------------------------------------------//

    ?>

  • hotohori8899

    Hi,

    When I set $blog_types_display_signup_form to 'no', the subtype field box in admin panel appear blank.

    This is my config.

    // Blog types
    // name and nicename are required

    $blog_types[0]['name'] = 'Personal';
    $blog_types[0]['nicename'] = 'personal';
    $blog_types[0]['description'] = '';
    $blog_types[0]['signup_only'] = 'no';

    $blog_types[1]['name'] = 'Commercial';
    $blog_types[1]['nicename'] = 'commercial';
    $blog_types[1]['description'] = '';
    $blog_types[1]['signup_only'] = 'no';

    // Blog subtypes
    // name, nicename and type nicename are required
    // Note: If you are using subtypes you **MUST** have at least one subtype for each type

    $blog_subtypes[0]['name'] = 'Uncategorized';
    $blog_subtypes[0]['nicename'] = 'uncategorized';
    $blog_subtypes[0]['type_nicename'] = 'personal';
    $blog_subtypes[0]['description'] = '';

    $blog_subtypes[1]['name'] = 'Music: General';
    $blog_subtypes[1]['nicename'] = 'music_general';
    $blog_subtypes[1]['type_nicename'] = 'personal';
    $blog_subtypes[1]['description'] = '';

    $blog_subtypes[2]['name'] = 'Music: Rock';
    $blog_subtypes[2]['nicename'] = 'music_rock';
    $blog_subtypes[2]['type_nicename'] = 'personal';
    $blog_subtypes[2]['description'] = '';

    $blog_subtypes[3]['name'] = 'Music: Hip Hop';
    $blog_subtypes[3]['nicename'] = 'music_hip_hop';
    $blog_subtypes[3]['type_nicename'] = 'personal';
    $blog_subtypes[3]['description'] = '';

    $blog_subtypes[4]['name'] = 'Uncategorized';
    $blog_subtypes[4]['nicename'] = 'uncategorized';
    $blog_subtypes[4]['type_nicename'] = 'commercial';
    $blog_subtypes[4]['description'] = '';

    $blog_subtypes[5]['name'] = 'Fashion: General';
    $blog_subtypes[5]['nicename'] = 'fashion_general';
    $blog_subtypes[5]['type_nicename'] = 'commercial';
    $blog_subtypes[5]['description'] = '';

    $blog_subtypes[6]['name'] = 'Fashion: For Her';
    $blog_subtypes[6]['nicename'] = 'fashion_for_her';
    $blog_subtypes[6]['type_nicename'] = 'commercial';
    $blog_subtypes[6]['description'] = '';

    // Allow users to select one or multiple blog types
    // Note: If you allow users to select multiple blog types, they cannot select a subtype
    $blog_types_selection = 'single'; //Options: 'single' or 'multiple'

    // Allow users to select one or multiple blog subtypes
    $blog_subtypes_selection = 'multiple'; //Options: 'single' or 'multiple'

    // Branding singular
    $blog_types_branding_singular = __('Weblog Type');
    $blog_subtypes_branding_singular = __('Category');

    // Branding plural
    $blog_types_branding_plural = __('Weblog Types');
    $blog_subtypes_branding_plural = __('Categories');

    // Display admin panel blog types page
    $blog_types_display_admin_page = 'yes'; //Options: 'yes' or 'no'

    // Display signup form blog types selection
    $blog_types_display_signup_form = 'no'; //Options: 'yes' or 'no'

    // Enable subtypes
    $blog_types_enable_subtypes = 'yes'; //Options: 'yes' or 'no'

    Thanks in advance.