drmen8x
Forum Replies Created
-
I’ve the same question.
Ok,
Thank you Ben! for your reply.Thank you Ben, but my question is why you don’t automatic assign pretty ID same as #this-is-heading instead of #kt-adv-heading_a33b54-c8
I think it’s good for SEO and User Experience
@britner Hope you update and support youtube url!
The Pro version is an extend of Kadence Blocks so i must active 02 plugin.
Wow! i’ve disabled plugin all in one security and it worked perfectly!
Thank you @slaffikHope you push it in next version update.
Yes you can. See it here: https://www.youtube.com/watch?v=yv8f0ILfy40
Forum: Plugins
In reply to: [Chrome Push Notifications] Please update installaion guide 2017Hi @aglipanci, There is no difference between senderID and messagingSenderID, i’ve copied it to plugin, but when i publish new post or create new notification, nothing happened.
Forum: Plugins
In reply to: [Chrome Push Notifications] Please update installaion guide 2017Thank you for your reply. I’ve copied these code into footer on my blog and config project number, GCM API key. When i create new message or public new post. No notification push. I don’t know what i am wrong?
This is my API
and here is my blog: https://blog.saokim.com.vn
Forum: Plugins
In reply to: [WP Super Cache] Remove Wp Super Cache Html comment in footerGoto Debug tab on https://yourwebsite.com/wp-admin/options-general.php?page=wpsupercache&tab=debug and uncheck below option:
[x] enabled Display comments at the end of every page like this: <!-- Dynamic page generated in 0.450 seconds. --> <!-- Cached page generated by WP-Super-Cache on 2015-12-02 16:28:48 --> <!-- super cache -->
Forum: Plugins
In reply to: [WP Kanban] Plug in doesnt display properlyAfter connected to Trello, i go to API helper and select Organizations, Boards, Lists, Cards and save changes. But it doesn’t save.
I try to copy list ID and use shortcode in my post or widget. But nothing display.
https://s2.postimg.org/herf89i1l/not_save.jpgForum: Plugins
In reply to: [Meta Box] How to create number field with Decimal ?[resolved]
Change
‘step’ => “any”,Forum: Plugins
In reply to: [WPGPlus] [Plugin: WPGPlus] Plugin not posting to GNot working with me. I’m using WordPress 3.0 and latest WPGPlus. But it doesn’t posting to my google+
Forum: Plugins
In reply to: [Jquery Popup] [Plugin: Jquery Popup] cloaked front-end link, no securityIt’s just a demo url and if you do not like it, you can completely remove it. Please see all code below:
<?php /* Plugin Name: Jquery Popup Plugin URI: https://blog.casanova.vn/wordpress-jquery-popup-plugin/ Description: Create a <strong>stunning and great window popup from the scratch using jQuery</strong>. After active please goto <strong>Settings</strong> --> <strong>Popup Management</strong> to configuration it. Version: 1.0 Author: Nguyen Duc Manh Author URI: https://casanova.vn */ /*****************Frontend****************************************/ function csnv_popup_script(){ if(get_option('csnv_popup_active')){ wp_enqueue_script( 'jquery' ); wp_enqueue_style( 'casnova_popup.css', plugins_url('/casnova_popup.css', __FILE__), '', '', false ); wp_enqueue_script( 'casnova_popup.js', plugins_url('/casnova_popup.js', __FILE__), '', '', false ); add_action('wp_head', 'head_script'); add_action('wp_footer', 'append_popup_to_body'); } } function head_script() { ?> <script type="text/javascript"> <?php if( get_option('csnv_popup_cookie')): ?> var popupStatus = getCookie('casanovaPopup')=='on' ? 1 : 0; <?php else:?> var popupStatus = getCookie('casanovaPopup')=='on' ? 0 : 0; <?php endif;?> </script> <?php } function append_popup_to_body(){ ?> <style type="text/css"> #popupContact{ height:<?php echo get_option("csnv_popup_h")+10; ?>px; width:<?php echo get_option("csnv_popup_w") +10; ?>px; } </style> <script type="text/javascript"> var enablePopup = 1; var imageUrl = '<?php echo get_option("csnv_popup_img"); ?>'; var articleUrl = '<?php echo get_option("csnv_popup_url"); ?>'; var targetUrl = '<?php echo get_option("csnv_popup_target"); ?>'; var popup_area = ""; if(enablePopup){ popup_area += "<div id='popupContact'>"; popup_area += "<div><a id='popupContactClose' href='javascript:void(0);'><span> </span></a></div>"; <?php if(get_option("csnv_popup_click_close")==1): ?> popup_area += "<a href='javascript:disablePopup();' target='_top'><img src='" + imageUrl + "' width='<?php echo get_option("csnv_popup_w"); ?>'></a>"; <?php else: ?> popup_area += "<a href='" + articleUrl + "' target='"+targetUrl+"'><img src='" + imageUrl + "' width='<?php echo get_option("csnv_popup_w"); ?>'></a>"; <?php endif;?> popup_area += "</div><div id='backgroundPopup'></div>"; <?php if(get_option("csnv_popup_position")==1){ if(is_home()):?> document.write(popup_area); <?php endif;?> <?php } elseif(get_option("csnv_popup_position")==2){ if(is_page()):?> document.write(popup_area); <?php endif;?> <?php } elseif(get_option("csnv_popup_position")==3){ if(is_single()):?> document.write(popup_area); <?php endif;?> <?php } elseif(get_option("csnv_popup_position")==4){ if(is_archive()):?> document.write(popup_area); <?php endif;?> <?php } elseif(get_option("csnv_popup_position")==0){ ?> document.write(popup_area); <?php } ?> } </script> <?php } add_action('init', 'csnv_popup_script'); /************Admin Panel***********/ function csnv_popup_plugin_remove(){ delete_option('csnv_popup_active'); delete_option('csnv_popup_cookie'); delete_option('csnv_popup_w'); delete_option('csnv_popup_h'); delete_option('csnv_popup_img'); delete_option('csnv_popup_url'); delete_option('csnv_popup_target'); delete_option('csnv_popup_position'); delete_option('csnv_popup_click_close'); } function csnv_popup_plugin_install(){ add_option('csnv_popup_active',1); add_option('csnv_popup_cookie',0);// Mac dinh khong dung cookie add_option('csnv_popup_w','523'); add_option('csnv_popup_h','485'); add_option('csnv_popup_img',plugins_url('/popup.png', __FILE__)); add_option('csnv_popup_url','https://casanova.vn'); add_option('csnv_popup_target','_blank'); add_option('csnv_popup_position','1'); add_option('csnv_popup_click_close','0'); } function csnv_popup_menu() { add_options_page( __('Popup Management',''), __('Popup Management',''), 8, basename(__FILE__), 'csnv_popup_setting'); } function csnv_popup_setting(){ if($_POST['status_submit']==1){ update_option('csnv_popup_active',intval($_POST['csnv_popup_active'])); update_option('csnv_popup_cookie',intval($_POST['csnv_popup_cookie'])); update_option('csnv_popup_w',intval($_POST['csnv_popup_w'])); update_option('csnv_popup_h',intval($_POST['csnv_popup_h'])); update_option('csnv_popup_img',trim($_POST['csnv_popup_img'])); update_option('csnv_popup_url',trim($_POST['csnv_popup_url'])); update_option('csnv_popup_target',trim($_POST['csnv_popup_target'])); update_option('csnv_popup_position',intval($_POST['csnv_popup_position'])); update_option('csnv_popup_click_close',intval($_POST['csnv_popup_click_close'])); echo '<div id="message" class="updated fade"><p>Your settings were saved !</p></div>'; } if($_POST['status_submit']==2){ update_option('csnv_popup_active',1); update_option('csnv_popup_cookie',0); update_option('csnv_popup_w','523'); update_option('csnv_popup_h','485'); update_option('csnv_popup_img',plugins_url('/popup.png', __FILE__)); update_option('csnv_popup_url','https://casanova.vn'); update_option('csnv_popup_target',"_blank"); update_option('csnv_popup_click_close',0); update_option('csnv_popup_position','1'); echo '<div id="message" class="updated fade"><p>Your settings were reset !</p></div>'; } ?> <h2>Popup Setting</h2> <form method="post" id="csnv_options"> <input type="hidden" name="status_submit" id="status_submit" value="2" /> <table width="100%" cellspacing="2" cellpadding="5" class="editform"> <tr valign="top"> <td width="150" scope="row">Active plugin:</td> <td> <label><input type="radio" name="csnv_popup_active" <?php if (get_option('csnv_popup_active')=='1'):?> checked="checked"<?php endif;?> value="1" />Yes</label> <label><input type="radio" name="csnv_popup_active" <?php if (get_option('csnv_popup_active')=='0'):?> checked="checked"<?php endif;?> value="0" />No</label> </td> </tr> <tr valign="top"> <td width="150" scope="row">Set Cookie:<br /><small>Yes = Display once per day<br />No = Always display</small></td> <td> <select name="csnv_popup_cookie"> <option value="1"<?php if (get_option('csnv_popup_cookie')=='1'):?> selected="selected"<?php endif;?>>Yes</option> <option value="0"<?php if (get_option('csnv_popup_cookie')=='0'):?> selected="selected"<?php endif;?>>No</option> </select> </td> </tr> <tr valign="top"> <td width="150" scope="row" valign="middle">Display option:</td> <td> <p><label><input type="radio" name="csnv_popup_position" <?php if (get_option('csnv_popup_position')=='1'):?> checked="checked"<?php endif;?> value="1" /> Home only</label></p> <p><label><input type="radio" name="csnv_popup_position" <?php if (get_option('csnv_popup_position')=='2'):?> checked="checked"<?php endif;?> value="2" /> Pages only</label></p> <p><label><input type="radio" name="csnv_popup_position" <?php if (get_option('csnv_popup_position')=='3'):?> checked="checked"<?php endif;?> value="3" /> Single post only</label></p> <p><label><input type="radio" name="csnv_popup_position" <?php if (get_option('csnv_popup_position')=='4'):?> checked="checked"<?php endif;?> value="4" /> Archives only</label></p> <p><label><input type="radio" name="csnv_popup_position" <?php if (get_option('csnv_popup_position')=='0'):?> checked="checked"<?php endif;?> value="0" /> All</label></p> </td> </tr> <tr valign="top"> <td scope="row">Popup width:<br /><small>Width of your popup</small></td> <td scope="row"> <input name="csnv_popup_w" size="4" maxlength="4" value="<?php echo (get_option('csnv_popup_w'));?>" /> px (number only) </td> </tr> <tr valign="top"> <td scope="row">Popup height:<br /><small>Height of your popup</small></td> <td scope="row"> <input name="csnv_popup_h" size="3" maxlength="3" value="<?php echo (get_option('csnv_popup_h'));?>" /> px (number only) </td> </tr> <tr valign="top"> <td scope="row">Popup image:<br /><small>Enter your image url</small></td> <td scope="row"> <input name="csnv_popup_img" size="50" value="<?php echo html_entity_decode(get_option('csnv_popup_img'));?>" /> </td> </tr> <tr> <td>Onclick popup</td> <td> <p><label><input type="checkbox" name="csnv_popup_click_close" value="1" <?php checked( (bool) get_option("csnv_popup_click_close"), true ); ?> onClick="if(this.checked) document.getElementById('popUrlSection').style.display='none'; else document.getElementById('popUrlSection').style.display=''" /> Close it</label></p> <div id="popUrlSection"<?php if(get_option("csnv_popup_click_close")) echo "style='display:none;'"; ?>> Or goto Url<br /> <input name="csnv_popup_url" size="50" value="<?php echo (get_option('csnv_popup_url'));?>" /> Target: <select name="csnv_popup_target"> <option value="_blank">_blank</option> <option value="_new">_new</option> <option value="_parent">_parent</option> <option value="_self">_self</option> <option value="top">_top</option> </select> </div> </td> </tr> <tr valign="top"> <td scope="row"></td> <td scope="row"> <input type="button" name="save" onclick="document.getElementById('status_submit').value='1'; document.getElementById('csnv_options').submit();" value="Save setting" class="button-primary" /> </td> </tr> <tr><td colspan="2"><br /><br /></td></tr> <tr valign="top"> <td scope="row"></td> <td scope="row"> <input type="button" name="reset" onclick="document.getElementById('status_submit').value='2'; document.getElementById('csnv_options').submit();" value="Reset to default setting" class="button" /> </td> </tr> </table> </form> <?php } //add setting menu add_action('admin_menu', 'csnv_popup_menu'); /* What to do when the plugin is activated? */ register_activation_hook(__FILE__,'csnv_popup_plugin_install'); /* What to do when the plugin is deactivated? */ register_deactivation_hook( __FILE__, 'csnv_popup_plugin_remove' ); ?>