Discussion on Xbox Framework - Create Meta boxes, Theme Options & Admin Pages for WordPress

MaxLopez

MaxLopez supports this item

Supported

This author's response time can be up to 1 business day.

56 comments found.

Hello, Is it possible to have two admin page with your plugin ? How can I do that ? Thanks

Hi Lenit23

You just have to use a new “id” for your new page.

add_action( 'xbox_init', 'my_admin_page'); function my_admin_page(){ $options = array( 'id' => 'my-admin-page', 'title' => 'My Admin Page', ); $xbox = xbox_new_admin_page( $options ); } add_action( 'xbox_init', 'my_admin_page2'); function my_admin_page2(){ $options = array( 'id' => 'my-admin-page2', 'title' => 'My Admin Page 2', ); $xbox = xbox_new_admin_page( $options ); } http://xboxframework.com/documentation/getting-started/create-admin-pages/

Thank’s for this awesome plugin :)
Xbox is the BEST :)

I rated Xbox :)
I have an important question and I can’t ask it here. Can you give me your email?

Thank you… infomaxlopez[a] Gmail.com

Please check your email.
I sent you an email with this name: Ghaem Omidi

Hi Max

Just found out Xbox this evening. Really wonderful.

Will it be OK when Gutenberg editor comes out?

Any promotion plans for Black Friday and Cyber Monday? PLEASE…

Hi fopu154.

Gutenberg is still in development, so I still have no intention of adding it.

Maybe in the future when Gutenberg is a project accepted by most users.

Okay, I’ll lower the price a little just for these festive dates :)

Hi Max, I was wondering if this plugin supports Taxonomies options panel ?

I’m sorry but it’s not possible

Nevermind figured it out! :)

I have conditional working – however is there a way to make the fields visible/hidden without having to save changes each time? it would be more user friendly if the fields displayed/hide as you toggle between the enable/disable options before clicking save changes….

also again for the user experience – it would be great if there was a way to reopen the section you was last viewing each time it saves changes as opposed to going back to the first section.

Hope the above makes sense…

Hi What version of the plugin are you using? Give me your email to send an update that possibly solves the problem of show / hide fields by activating / deactivating without saving settings

thanks the file i am using its the one i downloaded off here – ill send you an email today.

email sent

Question is there a way to pull some of the stored variables into a standalone php file within a theme?

reason being is i have a widget configuration file that allows me to control how many widgets to show in various places – all i want to be able to do is pull a number from the theme options into this standalone theme file.

Hope that makes sense

Thanks in advance

see this article:

https://xboxframework.com/documentation/getting-started/create-fields-and-get-field-values/

You can extract the values in these theme files:

index.php, single.php, archive.php,etc

Hello,

i will use the values frome the Option panel as default in the Customizer.

What is the Code for this?

I use this code and it is not working:

$wp_customize->add_setting( array( ‘default’ => xbox_get_field_value( ‘my-theme-options’, $field_id = ‘header-slogan’), ‘type’ => ‘option’, ‘priority’ => 5, ) );

Thanks

Hi.

Xbox Framework, is not compatible with Customizer.

Hi, could you sell in 29$?

For now, that can be done by combining the types of fields available.

https://image.prntscr.com/image/z6I4eKpMT6ecMDJaSVEVzw.png

Thank you so much for reply. Unfortunately for integrate I will not do like that way because we have to limited with option, But is it possible to add unlimited font option by providing css class such as that plugin?

I’m sorry but it’s not possible.

Hello, is there an option to display meta box in a product category (taxonomies – product_cat)

I found only – ‘post_types’ => array(‘post’, ‘page’),

I’m sorry, just for custom post types.

Hi Max was just wondering what changed in your last update – any new features?

Hi.

Some solutions to small problems and new fields (date and time)

also a shortcode to obtain the value of a field.

[xbox_get_field_value xbox_id="" field_id="" post_id="" default=""]

Hey Max i know i bought this a long time ago – my implementation of this is a work in progress type of personal project am working on with this :)

I updated to the latest version version all seems working well.

Just one thing i noticed on the new time and date fields is there supposed to be a popup calendar or time field when you click on the input fields for these?

A feature request which would be good is a way to set the date format ie mm/dd/yyyy for validation?

Also for the time a AM/PM option would be good too

One last other feature request which i think would really help is a way for it to remember what tab you was on after saving – or even when returning to the options page it auto returns you back to the last tab you was on…

ie if you make changes to the footer options – after you save instead of returning to the first tab it would return you to the footer tab.

Hope that makes sense and thanks again for your continued support and maintenance of this Max!!

Hi. Thanks for your suggestions

“Just one thing i noticed on the new time and date fields is there supposed to be a popup calendar or time field when you click on the input fields for these?”

Yes. When you click on the input, the date selector appears. Depending on the browser one way or another is seen.

https://image.prntscr.com/image/7bxi6W6sTNek29DRr08AnA.png
https://image.prntscr.com/image/RpYB30l3StaNf8VVhb4vrA.png
coxislive

coxislive Purchased

Hi there

I am looking to register xbox framework with toolset – I need the following:

function prefix_register_framework_in_views() { $framework_id = ‘framework_slug’; // a unique identifier $framework_data = array( ‘name’ => ‘The framework name’, ‘api_mode’ => ‘function|option’, //her use EITHER function OR option ‘api_handler’ => ‘Function name|Option ID’ //her use the functions name OR the options key ); if ( function_exists( ‘wpv_api_register_framework’ ) ) { wpv_api_register_framework( $framework_id, $framework_data ); } } add_action( ‘init’, ‘prefix_register_framework_in_views’ );

Hope you can help

Hi. Follow this guide to create your options page.

https://xboxframework.com/documentation/getting-started/create-admin-pages/
coxislive

coxislive Purchased

Hi there

I really need help registering the framework with toolset, i need to following completing and some information I do not know:

function prefix_register_framework_in_views() { $framework_id = ‘framework_slug’; // a unique identifier $framework_data = array( ‘name’ => ‘The framework name’, ‘api_mode’ => ‘function|option’, //her use EITHER function OR option ‘api_handler’ => ‘Function name|Option ID’ //her use the functions name OR the options key ); if ( function_exists( ‘wpv_api_register_framework’ ) ) { wpv_api_register_framework( $framework_id, $framework_data ); } } add_action( ‘init’, ‘prefix_register_framework_in_views’ );

Thanks James

Hi. Follow this guide to create your options page.

https://xboxframework.com/documentation/getting-started/create-admin-pages/
coxislive

coxislive Purchased

Is it possible to have different admin pages but sites on a wordpress multiste install?

I think it is not possible.

coxislive

coxislive Purchased

no worries, could I possibly have a refund please I need this functionality?

Yes

coxislive

coxislive Purchased

when i try to output a colorpicker color in my style.css file its only showing the shortcode?

.dark{ background-color:[xbox_get_field_value xbox_id=”theme-options” field_id=”dark-color”]!important; }

add_action( ‘xbox_init’, ‘theme_options’); function theme_options(){ $options = array( ‘id’ => ‘theme-options’,//It will be used as “option_name” key to save the data in the wp_options table ‘title’ => ‘Theme Options’, ‘menu_title’ => ‘Theme Options’, ‘icon’ => XBOX_URL.’/img/xbox-light.png’, ‘skin’ => ‘teal’,// Skins: blue, lightblue, green, teal, pink, purple, bluepurple, yellow, orange’. ‘layout’ => ‘wide’,//Layouts: wide, boxed ‘position’ => 60, ‘parent’ => false,//The slug name for the parent menu (or the file name of a standard WordPress admin page). ‘capability’ => ‘manage_options’,//https://codex.wordpress.org/Roles_and_Capabilities ‘header’ => array( ‘icon’ => ‘’, ‘desc’ => ‘Custom description for theme options’, ), ‘saved_message’ => __( ‘Settings updated’, ‘xbox’ ), ‘reset_message’ => __( ‘Settings reset’, ‘xbox’ ), ‘form_options’ => array( ‘id’ => ‘id-form-tag’, ‘action’ => ’’, ‘method’ => ‘post’, ‘save_button_text’ => __(‘Save Changes’, ‘xbox’), ‘save_button_class’ => ’’, ‘reset_button_text’ => __(‘Reset to Defaults’, ‘xbox’), ‘reset_button_class’ => ’’, ) ); $xbox = xbox_new_admin_page( $options ); ));

$xbox->add_field(array(
'id' => 'dark-color',
'name' => __( 'Dark Section Color', 'darksectioncolor' ),
'type' => 'colorpicker',
'default' => '#C95EE7',
'options' => array(
    'format' => 'hex', //hex, rgba. Default: hex
    'opacity' => 1, //Default: 1
    'show_default_button' => true,
)

}

Are you adding the shortcode inside your style.css file?

by
by
by
by
by
by