Diogo15
Forum Replies Created
-
Forum: Plugins
In reply to: [Quick Post Widget] [Plugin: Quick Post Widget] Inclusion of files everywhereIf you want the plugin just work in home page, you must to write:
if (!is_admin() && is_home() )
Without the
!
…Forum: Plugins
In reply to: [Quick Post Widget] [Plugin: Quick Post Widget] Inclusion of files everywhereIf you want to contribute with the plugin development, and you have experience with wp,php,js, you can make it to work like this:
https://scribu.net/wordpress/optimal-script-loading.html
otherwise, you can use wordpress function IS_PAGE(), before every request https://codex.www.ads-software.com/Function_Reference/is_pageI added a new condition: IS_HOME():
if (!is_admin() && !is_home() ) { wp_enqueue_style('jquery-ui-style', $qpw_plugin_url . 'css/jquery-ui.css'); wp_enqueue_script('tinymce', get_bloginfo('wpurl') . '/wp-includes/js/tinymce/tiny_mce.js'); wp_enqueue_script('tinybrowser', $qpw_plugin_url . 'mce/tinybrowser/tb_tinymce.js.php'); wp_enqueue_script('datepicker', $qpw_plugin_url . 'js/ui.datepicker.min.js', array('jquery')); wp_enqueue_script('datepicker-' . $qpw_locale, $qpw_plugin_url . 'js/ui.datepicker-' . $qpw_locale . '.js', array('datepicker')); wp_enqueue_script('slider', $qpw_plugin_url . 'js/ui.slider.js', array('jquery','jquery-ui-dialog')); wp_enqueue_script('timepicker', $qpw_plugin_url . 'js/jquery-ui-timepicker-addon.js', array('slider')); wp_enqueue_script('quick-post-script', $qpw_plugin_url . 'js/qpw.js', array('jquery','jquery-ui-dialog')); wp_enqueue_script('qpw_locale_' . $qpw_locale, $qpw_plugin_url . 'mce/langs/' . $qpw_locale . '.js'); if(!isset($_SESSION)) { @session_start(); } $_SESSION['quick-post-widget']=true; $_SESSION['qpw_locale'] = $qpw_locale; } else { wp_enqueue_script('quick-post-script', $qpw_plugin_url . 'js/qpw_admin.js'); }
Forum: Plugins
In reply to: [Quick Post Widget] [Plugin: Quick Post Widget] Hide category selector?You must modify the core file..
Have you see if IE outputs some kind of JAVASCRIPT ERROR??
<?php echo do_shortcode('[do action="dereitos" /]'); ?>
I think it is your fault(or your theme), cuz you are calling “THE_CONTENT()” before the loop start.. so your “echo” always show up at the start of the loop..
Forum: Plugins
In reply to: How to create page on plugin intallation???Thanks you Nate, i just had a problem every time the plugin was modified trough the wp editor, restart the plugin and created one more time all pages, so i asked wp if one of the pages already exist by his slug.. everything seems to be working fine.. thank you!
Forum: Plugins
In reply to: [Quick Post Widget] Choose default post template1 – You add a parameter to wp_insert_post(), in order to add a diferent template, or you can make a NEW CUSTOM POST TYPE(RECOMMENDE WAY), and choose it from QPW options.
2 – There is all ready a post that explain how to achieved this:
https://www.ads-software.com/support/topic/plugin-quick-post-widget-please-add-subscriber-access?replies=11Forum: Plugins
In reply to: [Quick Post Widget] [Plugin: Quick Post Widget] Character LimitYou can use javascript
(on keypress function)
or html
(<input type=text maxlength=100>)
or PHP(serverside) cutting off the string with split()..Forum: Plugins
In reply to: [Quick Post Widget] [Plugin: Quick Post Widget] I cant drag the widgetA lot of users has experienced this wordpress bug(including me), just logout and login again in your browser!
Hi @alglente, as far as i know INAPAN(plugin developer) is already trying to fix it!… just wait a little!
https://www.ads-software.com/support/topic/plugin-quick-post-widget-weird-date-bug-on-rss-even-in-official-plugin-page?replies=5Forum: Plugins
In reply to: Post view limit per user?+1, i need the same thing!
Forum: Plugins
In reply to: [Quick Post Widget] [Plugin: Quick Post Widget] Do not use this widget!This plugin works fine!!! there is no doubt about it!..
Forum: Fixing WordPress
In reply to: Awesome or awful QUERY CODE??Thanks for your reply, but did no answer my question, in this way i am not creating a new query i am just re-reading the default query..
Really thanks for your support!, i hope you have enjoyed yours holidays!