December 7, 2012 at 3:09 pm
#1225
Participant
Ok figured out that I was staring at the wrong site for most of the troubleshooting (hours of programming will do that to you) and figured out that I needed some more code. Here’s the final (for now) version:
/*-------------------------------------------------------*/ /* Start Child Theme /*-------------------------------------------------------*/ // Start the party ... function mod_module_caps( $module_caps ) { $module_caps['reviews'] = 'edit_pages'; return $module_caps; } add_filter( 'themeblvd_admin_module_caps', 'mod_module_caps' ); function mod_global_config( $setup ) { $setup['primary']['reviews'] = true; $setup['admin']['reviews'] = true; return $setup; } add_filter( 'themeblvd_global_config', 'mod_global_config' ); function mod_locals_js( $locals ) { $newLocals = array ( 'edit_review' => __( 'Edit Review', TB_GETTEXT_DOMAIN ), 'delete_review' => __( 'Are you sure you want to delete the review(s)?', TB_GETTEXT_DOMAIN ), 'invalid_review' => __( 'Oops! Somehow, you\'ve entered an invalid review type.', TB_GETTEXT_DOMAIN ), 'review_created' => __( 'Review created!', TB_GETTEXT_DOMAIN ), ); return array_merge($locals, $newLocals); } add_filter( 'themeblvd_locals_js', 'mod_locals_js' ); // Reviews Framework define( 'TB_CHILD_FRAMEWORK_URL', get_stylesheet_directory().'/framework' ); define( 'TB_CHILD_FRAMEWORK_DIRECTORY', get_stylesheet_directory_uri().'/framework' ); define( 'REVIEWS_FRAMEWORK_URL', TB_CHILD_FRAMEWORK_URL . '/admin/modules/reviews/' ); define( 'REVIEWS_FRAMEWORK_DIRECTORY', TB_CHILD_FRAMEWORK_DIRECTORY . '/admin/modules/reviews/'); require_once( TB_CHILD_FRAMEWORK_URL . '/admin/modules/reviews/reviews-framework.php' );