Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 9,851 through 9,875 (of 32,519 total)
  • Author
    Search Results
  • #156303
    Toni
    Participant

    Somehow the menu is in order this time. And…

    I found what you were explaining to me, and the shortcode (what I was searching for):

    Step by step guide to setting up a bbPress forum – Part 1

    Thanks again, I knew exactly what to look for this time.

    #156300
    2cats
    Participant

    I am using WP 4.0.1 and bbPress 2.5.4; forums are for members only so I can’t send you a link. I have topics and replies set to show 20; this limitation is also applying to my search results, even if there are more than 20 results for a search term, when I search I am told I’m viewing 20 of 20 found, with no option to see anything more. Is there a way around this? Have I missed a setting, or is there a code snippet I can slip in somewhere? Ideally I’d get 20 results per page, with pagination and the total number of results found. Any help would be greatly appreciated!

    #156295
    Toni
    Participant

    Wait – what is the shortcode? I know how to use them – but I don’t know them.

    #156294

    In reply to: How to start?

    Toni
    Participant

    Also – I had to get instruction from the forum about the purpose and what to do with the /forums/ page that is blank. I still have not found the shortcode.

    #156291

    In reply to: How to start?

    Toni
    Participant

    https://codex.bbpress.org/getting-started-with-bbpress/

    Odd that it takes a couple of links to get there.

    #156286
    Robin W
    Moderator

    can you post the view.php template with your added code here please

    #156280
    Robin W
    Moderator

    ok, the function needs the existence of a variable called $user_id (being the wordpress usreid of the profile user.

    How/where are you adding this code?

    #156274
    Robin W
    Moderator

    That is what the original code does in profile – what happens when you click the links?

    #156267

    In reply to: New Topic/Reply button

    Robin W
    Moderator

    you can call the page using an html button

    Just get the permalink for the new topic page (at the top of the dit screen for that page)

    the where you want it put

    <button type="button" onclick="window.location.href='http://www.mysite.com/page1'">Read More</button>
    

    with the correct url

    #156265
    Robin W
    Moderator

    the code that profile uses is

    <p class="bbp-user-topic-count"><?php printf( __( 'Topics Started: %s',  'bbpress' ), bbp_get_user_topic_count_raw() ); ?></p>
    			<p class="bbp-user-reply-count"><?php printf( __( 'Replies Created: %s', 'bbpress' ), bbp_get_user_reply_count_raw() ); ?></p>

    The function is expecting the profile user to be in a variable called $user_id

    Suggest you refer to the userpro support site for how to integrate this

    #156250
    Doulacare
    Participant

    This also doesn’t explain why this shortcode doesn’t work either http://ontariodoulas.org/forums/

    [bbp-forum-index]

    #156211
    siddardha
    Participant

    yes, i have done that, but with no result.

    ok, first i created a new page and put the short code [bbp-single-forum id=105] as per my forum id and then changed the required parent page and published. thats it right?

    #156203
    siddardha
    Participant

    hello,

    i am using a plugin “user pro for social login”

    with custom css the profile of bbpress is changed into user pro profile page, you can have a look at cahive.com/profile/siddardha

    i want to insert the “topics and replies posted” by the user using shortcodes or any other method possible on the users profile page.

    thank you for your help.

    #156183
    Robin W
    Moderator

    Depends what the issue is.

    I suggest this approach as it helps define whether on a ‘clean’ default theme with no other plugins bbpress is experiencing issues.

    If it is ok in a clean site, then I’d suggest talking to your host provider – most are good with wordpress, and may identify any issues.

    If you can identify a conflict, then we can look at a solution, sometimes it is easy, often it might be harder 🙂

    I presume your test site is on a local server?

    If you’re ok/good with web stuff, then you might consider putting a test site on-line so that it is an exact match for the live environment, most host providers allow sub-domains and if you switch on discourage search then it doesn’t interfere see

    https://codex.bbpress.org/creating-a-test-site/

    then you can be happier that live will work.

    Anyway just a thought !!

    medousa
    Participant

    Hi and thanks for your reply but I have a parent theme and can not create a child theme.
    Can I paste this code into a parent theme and if yes, at what function file?
    There are plenty into the dashboard.There is bbpress-functions, there is theme functions, functionsbu.php. Can you pls specify? I would deeply appreciate this!

    #156166
    yarashicr
    Participant

    It worked Robin. The problem was with the stylish single quotes in the shortcode on the link, I copied it as it is in the site. I changed it to normal single quotes and it started working. Thank you so much for your help and for such an awesome plugin.

    #156164
    HighRollerUSA
    Participant

    I just installed bbpress 2.5.4 on WordPress 4.1, on two different websites.

    On my test site, everything is working as expected, but on my live site (which has SSL) every time I try to access the default https://mysite.com/forums/ I get the following error:

    Fatal error: ob_end_flush(): Cannot use output buffering in output buffering display handlers in /homepages/wordpress/wp-includes/functions.php on line 3269

    I can create a new page with a different name than “forums” and use the shortcode successfully, but the breadcrumbs have a direct link to the “/forums” and it gives the same error.

    Any idea what may be going on?

    Thanks!

    #156162
    Piani
    Participant

    Thanks for the tip! Problem solved 🙂

    I also found this code to put in my custom functions.php to to solve this withouth the extra plugin.

    
    function fix_auto_subscribe( $checked, $topic_subscribed  ) {
    
        if( $topic_subscribed == 0 )
            $topic_subscribed = true;
    
        return checked( $topic_subscribed, true, false );
    }
    add_filter( 'bbp_get_form_topic_subscribed', 'fix_auto_subscribe', 10, 2 );
    
    #156155
    yarashicr
    Participant

    And I also want to know whether these shortcodes work on a wordpress widget.

    #156154
    yarashicr
    Participant

    Thanks a lot Robin. I tried the shortcodes as mentioned in the above page after installing and activating the plugin. It did not work for me. I used putting respective forum ID as well. Can you kindly help me on this. I am stuck fixing this for a long time now.

    #156145
    siddardha
    Participant

    Thanks for the info robin.
    I have a small doubt, pls clarify.
    So I will create a new page and paste the required short code and select the parent page, right? That’s all?
    Thank you once more.

    #156137
    Zemi12
    Participant

    Thank you, I solved it.

    #bbpress-forums div.odd,
    #bbpress-forums ul.odd {
    font-size:12px;
    margin-top:0;
    }
    
    #bbpress-forums div.even,
    #bbpress-forums ul.even {
    font-size:12px;
    margin-top:0;
    }
    #156135
    Robin W
    Moderator

    Like many plugins the documentation is not great, and as a humble user I have added to it as I have learnt, a good deal of the documentation is mine.

    bbpress is a complex plugin, and I sympathise that it is not great to grasp.

    With templates, all functions are written to allow you to filter what is there, this is a standard wordpress/php process, so you’re sort of expected to know about it as part of wordpress! I did try to explain it in

    Step by step guide to setting up a bbPress forum – part 5

    you can filter many bbpress functions using ‘parse args’ capability – a standard wordpress technique or just filter the whole function, you’ll see a return apply_filters in all template functions and this is the hook that you use.

    so for you you could us the code in your other post

    Display the last topic updated in the forums loop

    If you’d like to help with documentation, just find where something is poor and write what you think it needs changing to, it is newcomers like you that can really help improve what is there

    #156134
    Robin W
    Moderator
    #156133
    Robin W
    Moderator

    just use shortcodes

    https://codex.bbpress.org/shortcodes/

    in particular

    [bbp-single-forum id=$forum_id]
    
Viewing 25 results - 9,851 through 9,875 (of 32,519 total)
Skip to toolbar