Forum Replies Created

Viewing 11 posts - 16 through 26 (of 26 total)
  • Author
    Posts
  • in reply to: piklist_pre_update_option – $old array error #2721
    ajayphp
    Member

    I created plugin which is not relate to any WP post type of wp default table.

    this is admin page gateways.php

    main menu
    form fields:
    gateway title:
    gateway Api URL:
    Api username:
    Api password..

    now how could i save these data into table gateways ..

    ???

    ajayphp
    Member

    – how to save data is missing in your example ?

    in reply to: piklist_pre_update_option – $old array error #2716
    ajayphp
    Member

    Hi,

    add_filter(‘piklist_pre_update_option’,’ – using for access data before save,
    and logically when you are returning data base after modification,
    that is understood nothing will save when callback to this function

    update_option_update($settings, $setting, $new, $old = array())
    so $old = array() , as default pre initialize to over error , what other for you have in mind,
    which i am missing ?

    what is the hook you have for save admin page data ..?

    in reply to: how to save data of custom admin_page form #2708
    ajayphp
    Member

    Hi,

    I usually you wp hook “save_post”, but here i am creating not post type,

    this is just a admin page .., where i have form and that have to save,

    which piklist hook will save data of admin page..?

    in reply to: plugin activate error #2702
    ajayphp
    Member

    Hi,

    I created another plugin with custom post type and activate then it given following error:

    Error:

    The plugin generated 1 characters of unexpected output during activation. If you notice “headers already sent” messages, problems with syndication feeds or other issues, try deactivating or removing this plugin.

    Regards,

    in reply to: colorpicker not working #2701
    ajayphp
    Member

    Hi,

    I found its working only in when we use “save” => true , or with save button
    if we do “save” => false then hope js not loading..

    Regards,

    in reply to: plugin activate error #2691
    ajayphp
    Member

    I created custom post type plugin
    when browse that in admin

    there were error : Warning: extract() expects parameter 1 to be array, null given in /var/www/piklist/wp-content/plugins/wp-helpers/wp-helpers.php on line 390

    wp fresh install

    could you please point out what could be wrong?

    in reply to: plugin activate error #2690
    ajayphp
    Member

    Hi,

    your wp-helper giving error:

    line 382 – following function:
    public static function remove_filter($filter, $tag)

    i put the condition return if calling when loading front
    //AK – remove front end error
    if(!is_admin()){
    return;
    }

    still you have to verify this as this is done temorary as i am not aware of your whole logic .

    ajayphp
    Member

    Hi,

    in post type support array when i used textarea instead of editor
    then only title were display while add new item , not any content area:

    $post_types[‘supercode’] = array(
    ‘labels’ => piklist(‘post_type_labels’, ‘Keywords’)
    ,’title’ => __(‘Enter Keyword Title’)
    ,’supports’ => array(
    ‘title’
    ,’textarea’
    )

    in reply to: do not want the post new item created as Auto-draft #2687
    ajayphp
    Member

    Still i am learning the hw to use piklist:

    add_filter(‘piklist_post_types’, ‘supercode_post_types’);

    function supercode_post_types($post_types)
    {
    $post_types[‘supercode’] = array(
    ‘labels’ => piklist(‘post_type_labels’, ‘Keywords’)
    ,’title’ => __(‘Enter Keyword Title’)
    ,’supports’ => array(
    ‘title’
    ,’editor’
    )
    ,’public’ => true
    ,’rewrite’ => array(
    ‘slug’ => ‘keywords’
    )
    ,’capability_type’ => ‘post’
    ,’edit_columns’ => array(
    ‘title’ => __(‘Keyword’)
    ,’author’ => __(‘User’)
    )
    ,’hide_post_row_actions’ => array(
    ‘trash’
    ,’edit’
    ,’quick-edit’
    )
    ,’hide_meta_box’ => array(
    ‘slug’
    ,’author’
    )
    ,’menu_icon’ => plugins_url(‘supercode/parts/img/cell-icon.png’)
    ,’page_icon’ => plugins_url(‘supercode/parts/img/mobile-icon.png’)
    ,’admin_body_class’ => array (
    ‘piklist-demonstration’
    ,’piklist-sample’
    )
    ,’status’ => array(
    ‘draft’ => array(
    ‘label’ => ‘Pending Save’
    )
    ,’estimate’ => array(
    ‘label’ => ‘Request for Estimate’
    )
    ,’quoted’ => array(
    ‘label’ => ‘Quoted’
    )
    )
    );

    return $post_types;
    }

    ajayphp
    Member

    Hi,

    example i want to create plugin as following:
    do not want to create custom post type for this ( not required )

    Sms Sender <main menu>
    Send Quick SMS <sub-menu>
    Send Bulk SMS <sub-menu>
    SMS Report <sub-menu>
    SMS Setting <sub-menu>

    this plugin is independent and not any relate to WP default db or setting.

    in every menu, submenu i want to show few forms as per
    and user to use the functionlaity as per

    – will use custom tables
    – how can i create main menu and sub menu
    – how can i create form fields,
    – how to save data
    Could you please suggest how to achieve this …

Viewing 11 posts - 16 through 26 (of 26 total)