p.dirac
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Activity Log] missing database tablesI just sent the debug log.
Forum: Plugins
In reply to: [WP Activity Log] missing database tablesStill no tables after installing version 1.5.0, and after deactivating and activating the plugin.
Forum: Plugins
In reply to: [WP Activity Log] missing database tablesYes, I tried to deactivate and activate the plugin, but still no tables created. I’m about to try installing version 1.5.0.
Forum: Plugins
In reply to: [WP Activity Log] missing database tablesYes, the database user also has privileges to create, drop, alter tables.
Forum: Requests and Feedback
In reply to: Add anonymous comment optionOur customer makes the requirement: Users must log in to post comments.
Files modified to allow anonymous comments:
wp-comments-post.php
wp-admin\includes\class-wp-comments-list-table.php
wp-includes\comment.php
comments-popup.php (our custom comment box)
functions.php (in our theme)Is there another way to not display the user’s avatar, name, and email everywhere an anonymous comment is listed?
Forum: Plugins
In reply to: [Magic Fields] Required multiline textbox always invalid on 1st submitTried to fix magic-fields\js\custom_fields\editor_validate.js.
Changed call to check_textarea, from this:jQuery("#publish").live('click',check_textarea);to this:
jQuery('input[type=submit]').on('mousedown', check_textarea);but it didn’t solve the problem.
Next fix attempt in magic-fields\js\custom_fields\validate.js worked.
Added call to triggerSave, like this:$(document).ready(function() { /* Calling triggerSave on a mousedown will copy the content from the iframe to the textarea, before the tinymce validate() is called. */ $('input[type=submit]').on('mousedown', function() { tinyMCE.triggerSave(); }); ...Forum: Fixing WordPress
In reply to: How to remove the p from the default wordpress editor?The letter p is not useful, and just clutters up the page.
Since it is a single character with no label, it appears to the user as an extraneous character. In earlier versions of Worpress it had a label, Path, but even then it was completely worthless.Forum: Fixing WordPress
In reply to: How to remove the p from the default wordpress editor?A css file is where you expect to find css styles, rather than looking in a php file. It makes it convenient to add future admin css changes.
Also, I did not like where solution two placed the style in the admin HTML web page – above the head tag, although it seemed to work ok.
Forum: Fixing WordPress
In reply to: How to remove the p from the default wordpress editor?A 3rd solution is to add a custom css file to your theme css folder, named my-admin-style.css:
/* removes letter p below text area in tinymce editor */ .mce-path-item.mce-last { display: none !important; }Then add this function, load_custom_wp_admin_style(), to your theme functions.php file:
function load_custom_wp_admin_style() { wp_register_style( 'custom_wp_admin_css', get_template_directory_uri() . '/css/my-admin-style.css', false, '1.0.0' ); wp_enqueue_style( 'custom_wp_admin_css' ); } add_action( 'admin_enqueue_scripts', 'load_custom_wp_admin_style' );Forum: Plugins
In reply to: [Magic Fields] Required multiline textbox always invalid on 1st submitJust installed Magic Fields 1.6.2.1 (on WordPress 3.9), and still get the same incorrect behavior for the multiline textbox.
Forum: Fixing WordPress
In reply to: How to remove the p from the default wordpress editor?Thanks, the second solution works, although I had to tweak the css:
function my_theme_add_editor_styles(){ ?> <style type="text/css"> .mce-path-item.mce-last { display: none !important; } </style> <?php } add_action( 'init', 'my_theme_add_editor_styles' );Forum: Fixing WordPress
In reply to: How to remove the p from the default wordpress editor?I would like to remove this letter p too.
It appears in Visual mode, not Text mode.Forum: Plugins
In reply to: [Magic Fields] Required multiline textbox always invalid on 1st submitForgot to mention, this problem only occurs when
the required multiline textbox is open in “Visual” mode.
In “Text” mode, no error appears if text is entered.Forum: Plugins
In reply to: [Magic Fields] No error for missing required fields.There is no javascript error.
Near the top of the page, the message is:
“Post draft updated.”I expected to see this message (like Flutter) at the top:
“Post was not published – You have errors in some fields, please check the fields below.”.
And I expected each required missing field to be highlighted with a message:
“Error: field can not be empty”.I do have a workaround. In the Magic Fields javascript file, plugins\magic-fields\js\custom_fields\validate.js, commenting out the showErrors function appears to solve the problem.