purityboy83 (@purityboy83)

Forum Replies Created

Viewing 25 replies - 1 through 25 (of 28 total)

  • purityboy83
    Participant

    @purityboy83

    Hi @itsmifred

    I’ve installed the “bbPress Notify (No-Spam)” plugin
    I solved it by changing “Email Type” to “plain text” in the plugin settings.

    Thanks


    purityboy83
    Participant

    @purityboy83

    Hi

    @robin-w

    I really think I can use bbpress well because of you.

    I am infinitely grateful to you

    Thanks


    purityboy83
    Participant

    @purityboy83


    purityboy83
    Participant

    @purityboy83

    I am using permalink through this plugin.

    Custom Post Type Permalinks


    purityboy83
    Participant

    @purityboy83

    hi

    @robin-w

    You seem to inspire me

    install plug in Custom Post Type Permalinks instead of bbPress Permalinks with ID

    and the problem i had was resolved.

    Custom Post Type Permalinks

    This plugin is constantly updated and nice

    Thanks~!


    purityboy83
    Participant

    @purityboy83

    Hi @robin-w

    I am now “https://site.com/forums/topic/23716” In use as a format

    bbPress Permalinks with ID <—
    After disabling (or deleting) this plugin,
    is there a way to use the Permalinks address as above?

    Best Regards,
    Hyunho


    purityboy83
    Participant

    @purityboy83

    The site url is the url of the site you are using.

    This is the url link of an article on another topic (not another site).


    purityboy83
    Participant

    @purityboy83

    hi~!

    Are you a genius?
    When I changed it to “$forum_id == ‘12345”, only 1 forum thumbnail was created.

    Thanks~!!!!!!


    purityboy83
    Participant

    @purityboy83

    Hi @robin-w

    Sorry, can I check more?


    purityboy83
    Participant

    @purityboy83

    Hi @robin-w

    echo (bbp_topic_permalink().'">

    Is there a way to set forum_id here?

    Thanks for always help


    purityboy83
    Participant

    @purityboy83

    Hi @robin-w

    You who always help are probably an angel.

    I followed your advice and modified the code
    However, thumbnails are displayed on all forums topic….

    Thanks~


    purityboy83
    Participant

    @purityboy83

    
                $hitCount = (int)$hitCount + 1;
    

    When I check again, I think I can only correct that part

    Thanks~!


    purityboy83
    Participant

    @purityboy83

    Hi~!

    Thanks for the guide
    I tried to fix it because it didn’t work
    I finally solved the problem through your idea

    
    (int)$hitCount = get_post_meta($post_id, 'bbp_svc_viewcounts', true);
    (int)$hitCount = (int)$hitCount + 1;
    

    hahahah , integer hard cording

    problem clear ^^;;;

    Best Regards,
    Hyunho


    purityboy83
    Participant

    @purityboy83

    hi @robin-w

    i found problem root cause

    “bbPress Simple View Counts” was the problem.

    “Health Check & Troubleshooting” This plugin is very useful
    Troubleshooting Mode is very good And a log was also left.

    
    ### Nginx Log
    2021/02/18 00:35:57 [error] 13752#13752: *888 FastCGI sent in stderr: "PHP message: PHP Fatal error:  
    Uncaught TypeError: Unsupported operand types: string + int in /source/wp-content/plugins/bbpress-simple-view-counts/bbpress-simple-view-counts.php:95
    Stack trace:
    #0 /source/wp-includes/class-wp-hook.php(289): bbpress_simple_view_counts->show_views_topic_page()
    #1 /source/wp-includes/plugin.php(212): WP_Hook->apply_filters()
    #2 /source/wp-content/plugins/bbpress.new/includes/topics/template.php(3348): apply_filters()
    #3 /source/wp-content/plugins/bbpress.new/includes/topics/template.php(3278): bbp_get_single_topic_description()
    #4 /source/wp-content/plugins/bbpress.new/templates/default/bbpress/content-single-topic.php(33): bbp_single_topic_description()
    #5 /source/wp-includes/template.php(732): require('/source...')
    #6 /source/wp-content/plugins/bbpress.new/includes/core/template-functions.php(103): load_template()
    #7 /source/wp-conten" while reading response header from upstream, client: 192.168.0.1, 
       server: fedora.h2code.cf, request: "GET /forums/topic/23118 HTTP/2.0", 
       upstream: "fastcgi://unix:/run/php/php-fpm.sock:", host: "site.name"
    
    ### PHP-FPM Log
    [pool www] child 13731 said into stderr: "NOTICE: sapi_cgi_log_message(), line 611: PHP message: PHP Fatal error:  
    Uncaught TypeError: Unsupported operand types: string + int in /source/wp-content/plugins/bbpress-simple-view-counts/bbpress-simple-view-counts.php:95"
    
    [pool www] child 13731 said into stderr: "Stack trace:"
    [pool www] child 13731 said into stderr: "#0 /source/wp-includes/class-wp-hook.php(289): bbpress_simple_view_counts->show_views_topic_page()"
    [pool www] child 13731 said into stderr: "#1 /source/wp-includes/plugin.php(212): WP_Hook->apply_filters()"
    [pool www] child 13731 said into stderr: "#2 /source/wp-content/plugins/bbpress.new/includes/topics/template.php(3348): apply_filters()"
    [pool www] child 13731 said into stderr: "#3 /source/wp-content/plugins/bbpress.new/includes/topics/template.php(3278): bbp_get_single_topic_description()"
    [pool www] child 13731 said into stderr: "#4 /source/wp-content/plugins/bbpress.new/templates/default/bbpress/content-single-topic.php(33): bbp_single_topic_description()"
    [pool www] child 13731 said into stderr: "#5 /source/wp-includes/template.php(732): require('/source...')"
    [pool www] child 13731 said into stderr: "#6 /source/wp-content/plugins/bbpress.new/includes/core/template-functions.php(103): load_template()"
    [pool www] child 13731 said into stderr: "#7 /source/wp-conten..."
    

    “bbPress Simple View Counts” This plugin is out of date.
    I’ll try to disable it and think more about what to do.

    Thank you again

    Best Regards,
    Hyunho


    purityboy83
    Participant

    @purityboy83

    Hello again?

    @robin-w

    I thought of this problem as “bbp style pack”
    Because when a problem occurs, the error is “bbp style pack” error.
    this support link

    I just updated the bbp style pack, but bbpress still problems
    I don’t think it’s a “bbp style pack” problem
    (Because no error occurs after update)

    I’m worried because no error occurred
    First, I’ll try to disable the plugin one by one according to your guide and test it.

    I will also install the “Health Check & Troubleshooting” plugin.

    Thanks

    Best Regards,
    Hyunho


    purityboy83
    Participant

    @purityboy83

    backticks = grave accent

    In reply to: Random Topic Link

    purityboy83
    Participant

    @purityboy83

    Someone may need it, so I’ll update it.

    function hhj_bbp_random_topic() {
    global $post;
    $args = array('post_type' => 'topic','orderby' => 'rand','post_status'=>'publish','posts_per_page' => '10');
    $myposts = get_posts( $args );
    foreach( $myposts as $post ) :  setup_postdata($post); ?>
    <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a><br/>
    <?php
    endforeach;
    wp_reset_postdata();
    }
    add_shortcode('hhj_bbp_random_topic', 'hhj_bbp_random_topic');

    ref.
    https://wordpress.stackexchange.com/questions/50761/when-to-use-wp-query-query-posts-and-pre-get-posts


    purityboy83
    Participant

    @purityboy83

    Oh! mistake
    did not close the tag “< / a>”

    $replacement = '<a href="$1" rel="prettyPhoto"><img src="$1"/>';
    
    to
    
    $replacement = '<a href="$1" rel="prettyPhoto"><img src="$1"/></a>';

    purityboy83
    Participant

    @purityboy83

    Hi

    i finally solved it with your idea, and i modified the function a little bit

    function add_image_responsive_class($content) {
        global $post;
        $pattern ="/<img src=\"(.*?)\"(.*?)>/i";
        $replacement = '<a href="$1" rel="prettyPhoto"><img src="$1"/>';
        $content = preg_replace($pattern, $replacement, $content);
        return $content;
    }
    add_filter ('bbp_get_reply_content', 'add_image_responsive_class');
    add_filter ('bbp_get_topic_content', 'add_image_responsive_class');

    thanks

    Best Regards,
    Hyunho


    purityboy83
    Participant

    @purityboy83

    Hi @neon67
    Thanks to reply

    Did you use the “prettyphoto” plugin?
    (https://wordpress.org/plugins/prettyphoto)

    Best Regards,
    Hyunho


    purityboy83
    Participant

    @purityboy83

    @neon67

    HI @neon67
    I want to implement lightbox in bbpress like you do.

    beside creating the function below, what else should I do?
    Please share me installed plugins and other information

    ###############################################################
    function add_image_responsive_class($content) {
    global $post;
    $pattern =”/<img(.*?)class=\”(.*?)\”(.*?)>/i”;
    $replacement = ‘‘;
    $content = preg_replace($pattern, $replacement, $content);
    return $content;
    }
    add_filter (‘bbp_get_reply_content’, ‘add_image_responsive_class’);
    add_filter (‘bbp_get_topic_content’, ‘add_image_responsive_class’);

    ################################################

    Best Regards,
    Hyunho


    purityboy83
    Participant

    @purityboy83

    Hi

    i resolved the problem and log it for sharing and history.

    =====================================================================
    [root]# cd wp-content/plugins/
    [root]# find . -type f -print | xargs grep -i “bbp-login-form” | more

    ….

    ..
    ./bbp-jp-utility/templates/form-custom-user-login.php:<form method=”post” class=”bbp-login-form”> <– Find!

    ..
    ..

    [root]# cp ./bbp-jp-utility/templates/form-custom-user-login.php ./bbp-jp-utility/templates/form-custom-user-login.php.ori

    [root]# vi ./bbp-jp-utility/templates/form-custom-user-login.php

    delete
    <form method=”post” class=”bbp-login-form”>
    ~
    </form>

    ======================================================

    Thanks for always help me

    Best Regards,
    Hyunho


    purityboy83
    Participant

    @purityboy83

    Hi

    I have a lot of plugins installed on my site.

    Let me know if you have anything to check more

    Best Regards,
    Hyunho

    ================

    301 Redirects

    Activity Log

    Advanced Access Manager

    Advanced Editor Tools (previously TinyMCE Advanced)

    Advanced TinyMCE Configuration

    All In One SEO Pack

    Automatic Copyright Year

    Awesome Weather Widget

    bbp style pack

    bbp User Ranking

    bbPress

    bbPress – Private Replies

    bbPress forum utility pack

    bbPress Permalinks with ID

    bbPress Profile Link Shortcode

    bbpress Simple View Counts

    bbPress Toolkit

    Classic Editor

    Favicon by RealFaviconGenerator

    GD bbPress Attachments

    GD bbPress Tools

    Hide Admin Bar From Front End

    Hide My WP Ghost Lite

    Image Upload for BBPress

    Link Widget Title

    Log Out Shortcode

    MangBoard WP

    Members

    Nav Menu Roles

    Pages In Widgets

    Post/Page specific custom CSS

    Search & Replace

    Shortcode in Menus

    Shortcode Widget

    SiteOrigin CSS

    Smush

    Stylist

    Timeline Express

    User Registration

    Wordfence Security

    WP 2FA – Two-factor authentication for WordPress

    WP OPcache

    WP RSS Aggregator

    WP Statistics

    WP-Optimize – Clean, Compress, Cache

    WPForce Logout

    broken link check

    buddyPress

    ================


    purityboy83
    Participant

    @purityboy83

    Hi

    First, Thank you for many your help

    i use plugin to user registration

    User Registration – Custom Registration Form, Login And User Profile For WordPress

    Best Regards,
    Hyunho


    purityboy83
    Participant

    @purityboy83

    Hi

    While searching on Google, I found the link below.
    https://wordpress.org/support/topic/change-the-number-of-rows-in-a-textarea/

    I applied it like the content of the link, and there were changes to my site.

    add to css style
    form textarea {
    min-height: 200px;
    resize: vertical;
    }

    change to my site’s textarea

    # before
    https://t1.daumcdn.net/cfile/tistory/99B813465F7315C530

    # after(size change)
    https://t1.daumcdn.net/cfile/tistory/996F14375F77642501

    thanks

    Best Regards,
    Hyunho

Viewing 25 replies - 1 through 25 (of 28 total)