Forum Replies Created
-
AuthorPosts
-
actiontwoMemberI use ajax to update some filed in setting page so this is my code
$page_setting = get_option(‘page_info_setting’);
$page_setting[‘video-views’] = $page_setting[‘video-views’] + 1;
$result = update_option(‘page_info_setting’, $page_setting);
$page_setting[‘result’] = $result;
echo json_encode($page_setting);
exit();so the $result is false when I try to update ‘video-views’ files
actiontwoMemberHI, Steve
I had fixed this issues, because conflict with W3 total cache plugin, so we must enable Piklist before enable W3totalcache plugin.
actiontwoMemberHI, This video I had record to see problem : http://recordit.co/qQO335P9SS
actiontwoMemberHi,
I have the same problem, also i create a plugin to add more user profile, but i can only modify my account even i am supper admin so i can not edit other account.
And this is my meta-boxs code , it work on local but in server it not working
<?php
/*
Title: BWF Feature Image & Carousel
Description: Set feature image(s) for each page
Post Type: page
Order: 0
Collapse: true
*/
?><h3><?php
__(‘Enable or Disable the feature image for this page.’, ‘piklist_BWF’);
?></h3><?php
// Show Hide Toggle
piklist(‘field’,
array(
‘type’ => ‘radio’
, ‘field’ => ‘bwf_feature_image_toggle’
, ‘label’ => __(‘Show/Hide Image’, ‘piklist_BWF’)
, ‘description’ => __(‘Toggle the display for the feature image.’,
‘piklist_BWF’)
, ‘value’ => ‘hide’
, ‘choices’ => array(
‘show’ => ‘Show’
, ‘hide’ => ‘Hide’
)
));
?><h3><?php __(‘Add a feature image module to this page.’, ‘piklist_BWF’); ?></h3>
<p><?php
__(‘This can be a single image, or add multiple images to create a carousel.’,
‘piklist_BWF’);
?></p><?php
piklist(‘field’,
array(
‘type’ => ‘group’
, ‘field’ => ‘bwfcp_feature_images’
, ‘label’ => __(‘Feature Image’, ‘piklist_BWF’)
, ‘description’ => __(‘Content for each individual slide.’, ‘piklist_BWF’)
, ‘add_more’ => true
, ‘fields’ => array(
array(
‘type’ => ‘text’
, ‘field’ => ‘bwfcp_fi_title’
, ‘label’ => __(‘Slide Title’, ‘piklist_BWF’)
, ‘description’ => __(‘Headline text for the silde.’, ‘piklist_BWF’)
, ‘columns’ => 6
)
, array(
‘type’ => ‘textarea’
, ‘field’ => ‘bwfcp_fi_caption’
, ‘label’ => __(‘Slide caption’, ‘piklist_BWF’)
, ‘description’ => __(‘Caption text for the silde.’, ‘piklist_BWF’)
, ‘columns’ => 12
)
, array(
‘type’ => ‘text’
, ‘field’ => ‘bwfcp_fi_link’
, ‘label’ => __(‘Slide Link’)
, ‘description’ => __(‘Optional URL link, this will make the slide clickable.’,
‘piklist_BWF’)
, ‘columns’ => 6
)
, array(
‘type’ => ‘file’
, ‘field’ => ‘bwfcp_fi_images’
, ‘label’ => __(‘Slide Image’, ‘piklist_BWF’)
, ‘description’ => __(‘Upload the image to display. Ideal format: 940px / 385px 72dpi .jpg’,
‘piklist_BWF’)
, ‘columns’ => 12
, ‘options’ => array(
‘modal_title’ => __(‘Add File(s)’, ‘piklist_BWF’)
, ‘button’ => __(‘Select or Upload an image’, ‘piklist_BWF’)
)
)
)
));
actiontwoMemberHi,Steve
When add new page and add meta-box filed, it work, and then change value in metabox click save –> it not workthat mean it working on the first times (Edit lock status with meta-box)
actiontwoMemberHi Steve,
Here :
Notice: wpdb::escape is deprecated since version 3.6! Use wpdb::prepare() or esc_sql() instead. in /home/rondev/public_html/bwforg/cms/wp-includes/functions.php on line 3083
Notice: get_current_site_name is deprecated since version 3.9 with no alternative available. in /home/rondev/public_html/bwforg/cms/wp-includes/functions.php on line 3085
Warning: Cannot modify header information – headers already sent by (output started at /home/rondev/public_html/bwforg/cms/wp-includes/functions.php:3083) in /home/rondev/public_html/bwforg/cms/wp-admin/post.php on line 235
Warning: Cannot modify header information – headers already sent by (output started at /home/rondev/public_html/bwforg/cms/wp-includes/functions.php:3083) in /home/rondev/public_html/bwforg/cms/wp-includes/pluggable.php on line 1121
actiontwoMemberHi
Thanks for your feedback,
I have an attach my plugins,
By the way, I have another problem with meta-box, I have build a meta-post in page type, when save data in localhost it working but when push my code to server it does not work.Regards,
actiontwoMemberHi Steve, Thanks for you feedback
First file lastest.php<?php
/*
Title: My Demo Widget ab
Description: A description of what my widget does
*/
?><?php echo $before_widget; ?>
<?php echo $before_title; ?>
<?php echo $settings[‘demo_text’]; ?>!
<?php echo $after_title; ?>
<?php echo $settings[‘demo_select’]; ?>!
<?php echo $settings[‘demo_colorpicker’]; ?>!
<?php echo $after_widget; ?>
Second file lastest-form.php
<?php
piklist(‘field’,
array(
‘type’ => ‘text’
, ‘field’ => ‘demo_text’
, ‘label’ => ‘Text box’
, ‘description’ => ‘Field Description’
, ‘value’ => ‘Default text’
, ‘attributes’ => array(
‘class’ => ‘text’
)
));piklist(‘field’,
array(
‘type’ => ‘select’
, ‘field’ => ‘demo_select’
, ‘label’ => ‘Select box’
, ‘description’ => ‘Choose from the dropdown.’
, ‘attributes’ => array(
‘class’ => ‘text’
)
, ‘choices’ => array(
‘option1’ => ‘Option 1’
, ‘option2’ => ‘Option 2’
, ‘option3’ => ‘Option 3’
)
));piklist(‘field’,
array(
‘type’ => ‘colorpicker’
, ‘field’ => ‘demo_colorpicker’
, ‘label’ => ‘Choose a color’
, ‘value’ => ‘#aee029’
, ‘description’ => ‘Click in the box to select a color.’
, ‘attributes’ => array(
‘class’ => ‘text’
)
));
?>Attachments:
You must be logged in to view attached files. -
AuthorPosts