Forum Replies Created

Viewing 7 replies - 541 through 547 (of 547 total)
  • I believe this solution will help you. Just before the closing ?> PHP tag in your functions file, add the following code:

    // Create a function to call when a comment is posted
    function plc_comment_post( $incoming_comment ) {
    
    // Next, use PHP's htmlspecialchars() function to convert the comment to plain text...
    $incoming_comment['comment_content'] = htmlspecialchars($incoming_comment['comment_content']);
    
    // ... except for single quotes, which we cannot convert to its ASCI equivalent (which is #039)
    // because WP will mark the comment as spam (oh no!)
    $incoming_comment['comment_content'] = str_replace( "'", ''', $incoming_comment['comment_content'] );
    
    // return the cleaned up comment variable for WP to use
    return( $incoming_comment );
    }
    
    // This will occur before a comment is displayed
    function plc_comment_display( $comment_to_display ) {
    
    // Put the single quotes back in
    $comment_to_display = str_replace( ''', "'", $comment_to_display );
    
    return $comment_to_display;

    Good luck with your project.

    Bob

    Original Source: https://lawsonry.com/2013/06/disable-html-in-wordpress-comments.html

    Many themes come with pre-defined CSS classes for tables and their html elements. I do understand that many people still feel comfortable with html rather than CSS and would use tables in their work. Not anticipating that tables, table rows, table bodies, table headers and table colums have classes defined in the CSS style file are usually the cause for unanticipated table behavior.

    Unfortunately, you really have three choices here. The first is to learn all of this yourself and figure this out on your own and the second is to hire a developer to sort this out for you. The third option would be to use the theme as it was intended and remove your html table code.

    Good luck with your project.

    Bob

    I am not sure what version of WordPress you are using, but this plugin works with WordPress 3.5.2. I have tested it in 3.6.1 with excellent results but it is not officially supported beyond 3.5.2

    The code is pretty simple and can be modified to suit your needs. You select the PDF using the Insert Media in a post or page and it automatically adds the shortcode to both Display the PDF as an embedded file and to provide a download link.

    https://www.ads-software.com/plugins/spiderpowa-embed-pdf/

    Bob

    The question you have presented is difficult to answer for a variety of reasons.

    The theme you are using is unknown. Some themes do have option panels that allow you to control font, font color, font size, etc. Some themes do not. Without knowing that theme you are using it would almost be impossible for anyone to offer you an answer.

    In order to troubleshoot this yourself, a basic knowledge of CSS and HTML would be required. Many people use Chrome or Firefox and inspect individual elements on the page and modify them in memory to get the desired effect, then write it to their CSS files.

    Perhaps someone would be more willing to take a stab at this if you were to post the version of WordPress you were using that name and version of the theme you were attempting to troubleshoot.

    Bob

    Found this plugin, it might be worth a look. It is compatible up to WordPress 3.6

    https://www.ads-software.com/plugins/apache-password-protect/

    This plugin is compatible up to WordPress 3.5.2

    https://www.ads-software.com/plugins/askapache-password-protect/

    You may be able to use mod_auth_mysql, a module that extends the standard mod_auth to allow password protected directories but uses a mysql database instead of .htpasswd text files. You could then set it to read the wp_users table in your WordPress install.

    I do not have a hard solution for this and I am going to look into doing this for a client I have. Here is a link to information about mod_auth_mysql.

    https://www.cgi101.com/book/ch20/mod_auth_mysql.html

    Great article leejosepho, thank you for sharing.

    This may be simplifying your issue, but did you set up the Paypal IPN address in your sandbox? Once you create your test account in the sandbox, you have to set up the IPN handler just as you do on your live paypal account. I was getting timeout errors until I set this value. Hope this helps.

    Bob

Viewing 7 replies - 541 through 547 (of 547 total)