Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 1,876 through 1,900 (of 32,481 total)
  • Author
    Search Results
  • #218555
    Robin W
    Moderator

    So have you got the shortcode [bbp-forum-index] in that page?

    #218554
    einar2507
    Participant

    Ok, thanks and sorry for my frustration – my bad! You write “In essence the forum root slug simply needs to match the permalink of the page where you have put the shortcode on, then it all works.”

    That is not correct. Just take a look at my page https://fakta360.no/forums/forum/folkeopproret-mot-klimahysteriet/ and then click on the breadcrumbs. At he moment the page name and forum rot do not match but it works, and only the breadcrumbs goes wrongly to the “forums” root page that dont exists. If I change the page slug to match the forum rot, then nothing displays except the text “Forums”.

    #218552
    Robin W
    Moderator

    writing threads that complain about free software offered with free support is not the way to get your problem fixed – so I deleted that one as it serves no purpose.

    In essence the forum root slug simply needs to match the permalink of the page where you have put the shortcode on, then it all works.

    #218548
    einar2507
    Participant

    I also find out that if I have the Forum page named “Forum” with slug “forum” and the Forum rot=”forums” then the shortcode works but the breadcrumbs points to the “forums” root and does therefore not display any forum. Only the text “formum” with at random link it seems to me.

    Forum

    #218547
    einar2507
    Participant

    Now I see that I get the same result when I use the shortcode or not in the https://fakta360.no/forums/ page. The shortcode [bbp-forum-index] has no effekt.

    #218541

    In reply to: List Of Shortcodes

    Robin W
    Moderator

    Is there no way I could add the profile as I did with the forum index? It was super easy just using [bbp-forum-index]

    – no, the way profiles work doesn’t easily lend to that 🙂

    1. Go to

    bbp-add-menu-profile-item

    and download the plugin to your computer – make a note of where you saved it !

    2. on your website go to dashboard>plugins>add new>upload plugin and browse to the file you downloaded in 1. above
    3. Install and Activate
    4. If you already have a page called ‘Profile’ then make sure this has the permalink ‘profile’
    5. If not then create a page called ‘Profile’ and make sure it has the permalink ‘profile’
    6. in the content of the profile page put something like

    ‘You need to be logged in to see your profile’ – you can add the bbpress login shortcode in here as well if you wish ie [bbp-login]

    The above is what will show to people who click the profile menu item who are not logged in

    Save the page and exit

    7. In Dashboard>appearance>menu’s add the profile page to the menu you want to.

    now you will have ‘Profile’ showing as the menu item, and if clicked and logged in you will go to your profile page, if not logged in, you will see the content above.

    #218537

    In reply to: List Of Shortcodes

    Robin W
    Moderator

    @flamuren great – do you want it as code to out in your child theme functions file or a baby plugin?

    #218532
    einar2507
    Participant

    Hi.
    /Forum/ or /Forums/ ???

    After installing bbpress I created a page “Forum” with the shortcode [bbp-forum-index]. I made a menu with a link to that “Forum” page. All fine and the forum index listed.

    But when I go in to a forum and the click on the breadcrumbs “Forums” to get back, I land on a blank page with the text “Forums” ???
    I have also tried to make a page Forums with shortcode [bbp-forum-index] but that does not change anything.
    I dont understand this and what I do wrong?
    Here is my two pages where first is ok, but breadcrumbs lead to second with error.

    Forum


    https://fakta360.no/forums/

    #218527

    In reply to: New posts freezing

    Robin W
    Moderator

    @mike80222 Mike – saw that thread, but buried in paid work at the mo – but what are you using to show the visual part -some code, a plugin (maybe bbp style pack) or something else?

    #218521
    kjah456
    Participant

    Hi Community,

    I would like to insert a specific topic of a forum into a page via shortcode, but without a long list of replies. Is there a shortcode option to show this specific topic, but with a “more” button to see all the replies or with a definied amount of replies?
    I hope you get what I mean.

    Best regards!

    #218503

    In reply to: Topic/Reply Form

    This is the default behavior of bbPress. Unless a plugin already provides a simple modification of this behavior, the easiest way to customize this would be by overriding the /bbpress/form-reply.php template part in your WordPress child theme.

    #218483
    purityboy83
    Participant
    
                $hitCount = (int)$hitCount + 1;
    

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

    Thanks~!

    #218481
    purityboy83
    Participant

    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

    #218478
    Robin W
    Moderator

    “Health Check & Troubleshooting” This plugin is very useful

    yes, I only found that plugin a few months ago – it is good 🙂

    given that the simple counts plugin is not being maintained, there seems no reason why you should not just alter it.

    The problem is that it is seeing the value retrieved from the database as a string, so we need to convert it to an integer

    so try changing line 94

    from

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

    to

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

    #218477
    purityboy83
    Participant

    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

    anhduc.bkhn
    Participant

    I just test, it worked on my new testing:

    
    WordPress version: 5.5.3
    WooCommerce version: 4.4.1
    
    On WP 5.5.3, It could call to bsp_test_email function ( includes/functions_email.php)
    
    On WP 5.6, It could not call to  bsp_test_email function ( includes/functions_email.php)
    
    #218429
    neon67
    Participant

    There are many plugins to allow approve a new user by moderator.

    But, Is there a simple solution to do the same by editing function.php? Without new plugin?

    Thank you in advance

    #218423

    In reply to: List Of Shortcodes

    flamuren
    Participant

    I have you eminent plug in and love it already 🙂 And already checked the shortcodes there. However there is only a shortcode to add a button/text to press that links to the profile. I would love a shortcode as the [bbp-forum-index] but for example [bbp-forum-profile]. Cant find any but maybe there is non?

    #218422

    In reply to: List Of Shortcodes

    Robin W
    Moderator

    bbp style pack

    once activated go to

    dashboard>settings>bbp style pack>shortcodes

    #218421

    Topic: List Of Shortcodes

    in forum Themes
    flamuren
    Participant

    How come I cant find a shortcode for the bbpress user profile?

    #218408
    uksentinel
    Participant

    This is the plugin for using shortcodes in menu – hope this helps ?

    Shortcode in Menus

    #218398
    WWW_Marieke
    Participant

    Thanks for your quick answer!

    That shows the text ‘my profile’ and when you click on it, you go to your profile.

    Screenshot: https://prnt.sc/zpyin3

    The profile URL = https://despelletjesvrienden.nl/forums/users/xxx (xxx = username) so I can’t use that URL.

    Could you tell me: how can I add a shortcode to the menu? Since it’s not an URL.

    (I still prefer to put the profile in my other page as a part of the page.)

    #218397

    In reply to: Reply order?

    Robin W
    Moderator

    Put this in your child theme’s function file –

    ie wp-content/themes/%your-theme-name%/functions.php

    where %your-theme-name% is the name of your theme

    or use

    Code Snippets

    function change_reply_order() {
    $args['order'] = 'DESC';
     return $args;
    }
    add_filter('bbp_before_has_replies_parse_args', 'change_reply_order');
    #218395
    uksentinel
    Participant

    Does the [bsp-profile] shortcode not work if placed upon a page and is already logged in ?

    I am using the [bsp-profile] shortcode via a menu option, as simpler for users to see and use and can be hidden if user is not logged in etc ?

    #218391
    WWW_Marieke
    Participant

    Is there a shortcode that show the profile instead of linking to the profile?
    A shortcode that I can add to a page, so viewers can go to that page and view their profile?

    I added [bsp-profile label=’Bekijk mijn profiel’] to this page but I would like to just show the profile on this page because the url/shortcode looks kinda hidden.

    Forum dashboard

    (I googled a lot to fix this but this topic was the best I could find so far.)

Viewing 25 results - 1,876 through 1,900 (of 32,481 total)
Skip to toolbar