Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 15,026 through 15,050 (of 32,519 total)
  • Author
    Search Results
  • #121413
    LabSecrets
    Participant

    Making a child theme is beyond the scope of this forum, but there are plenty of good resources if you google “create a wordpress child theme”.  In a nutshell, you need “at least” to have a new folder, with a style.css file that references the proper header elements of your parent, including its name and the location of the parent theme’s style sheet.

    If you are using the shortcode method, please try the default method instead, which is to change bbPress’s default root slug to something that is “NOT” an existing page (try “sitewide-forums” for example). This will allow you to keep your existing page / shortcut method index. Please show us what happens when you do this? (provide the URL)

    #121409
    LabSecrets
    Participant

    You have several issues going on here, but they are directly related to your theme. As is very common, it appears to me that your theme has a conditional statement in the template file that builds archive pages. As such, it’s treating the content for bbPress forums as excerpts, as well as applying some unwanted styling.

    Have you tried to build a page using the shortcode method? If so, what was the result? If you found it worked properly, then the issue as suggested above, and you could try to modify your theme or child-theme files to add a similar conditional that looks for bbPress and forces it to use the_content() instead of the_excerpt(). See: https://bbpress.org/forums/topic/non-functional-index-page-when-bbpress-2-1rc4-is-used-with-woothemes-canvas-5-05/

    If this page is being built with shortcodes (I don’t think it is from what I see) then what is the result if you try the default forum index method? We outline both methods in our step by step video here: http://labzip.com/the-definitive-guide-to-buddypress-bbpress-configuration/

    We’ll get you there… 😉

     

     

    #121407
    LabSecrets
    Participant

    What is your site url? I can give you some suggestions on where to place the code for a login-box so it shows up on the top of a page.

    Also, if you prefer, you can build your forum site index using shortcode / page method… this would give you flexibility of having your default theme sidebar, etc. available to you.

    Not sure? Check out our updated step by step guide that covers the two methods for creating a forum index page:

    http://labzip.com/the-definitive-guide-to-buddypress-bbpress-configuration/

    Cheers!

    spence

    #121402

    In reply to: Categories

    Len
    Participant

    Hi Ishr,

    In Stephen Edgar’s reply that I linked to he posted a link to a gist on GitHub. Place the code he referenced in your child theme’s functions.php file.

    Make sure to backup that file before editing it just in case something goes wrong and you can easily revert.

    #121388
    smbassett
    Participant

    I understand widgets and sidebars but I how is
    /forums/ rendered. It is not a page, post or blog. I don’t understand how to add a sidebar to this.

    My work around is to create a PAGE and add the forumns via a shortcode but it seems like there should be an option to add to /forums/ (of course I am sure I am missing something simple)

    #121386

    In reply to: bbPress permalinks

    LabSecrets
    Participant

    Fundamentally you need to understand that the use of the prefix is designed to put a unique prefix in place when you’re on a forum index page vs when you are on a topic index page. As such, it is not possible with the default code to show “/forum/topic” if ou mean both are prefixes.

    I suggest you use the plural term “forums” as your base, then “forum” and “topic” as your prefixes.

    If you like, have a watch of our comprehensive guide video:

    The Definitive Guide To BuddyPress & bbPress Configuration

     

    cheers!

    spence

    #121383
    #121369
    Stephen Edgar
    Keymaster

    What about using the ‘Login Widget’ https://codex.bbpress.org/widgets/

    Or one of the ‘account’ shortcodes? https://codex.bbpress.org/shortcodes/

    #121366

    In reply to: Custom loop

    Shane Gowland
    Participant

    Couldn’t you achieve this using bbPress’ shortcodes? Namely; [bbp-forum-index]

    #121340
    Kslad
    Participant

    Hi guys,

    I have done my research and I have been able to remove the side bar from (what I think is) the top level of the forums by editing the archive-forum.php file.

    When I select a forum (I currently only have one) and a topic in the forum (again, I only have one) I still see my theme’s sidebar. I decided to modify the archive-topic.php file and comment out the get_sidebar(); line (as I did above), but unlike above, this did not work.

    I commented out the get_sidebar(); line for every file in the plugins/bbpress/templates/default/extras folder. This did not work for me.

    My question is: how do I remove my theme’s sidebar from the list of forums, topics and inside the topics too?

    #121321
    brianmcculloh
    Participant

    I’m having this exact same problem. Unfortunately my WordPress page does not win when I set them to the same slug. Because of this, I want to use different slugs for my WordPress page that contains the shortcode and my Forums Base. This works just fine, the only problem is in the breadcrumb the “Forums” link takes the user to the forum index instead of the WordPress page with the shortcode.

    #121320
    frenzis73
    Participant

    I would like to display a ‘New Topic’ form at the bottom of my posts with the [bbp-topic-form] shortcode . When someone publish a topic through this form (inside a regular WP post), I would like to save a post_meta for the regular WP ID post that bind the new topic ID with the post ID.

    Someone could me suggest an action to hook ?

    #121303
    sbroways
    Participant

    If anyone has any ideas I’m working on this issue on Stack Overflow as well. I think I’ve done a better job explaining it there and getting some good code put together from contributors but haven’t reached the finish line.

    MySQL query help moving data between tables

    #121302
    sureshtmp-456
    Participant

    Hi

    I have a wordpress(3.4.1) installation and I don’t use standard WordPress
    Authentication. I have my own login page(mylogin.php) where I capture the
    userid/password and then compare with values in my own user table.

    Now I am using BBPress plugin(2.2.2). I have created a page(askanexpert) in
    wordpress and inside that page I have put the BBPress shortcode [bbp-forum-index].
    Now from frontend when the user does login and go to forum(http://www.domainname.com/askanaexpert),
    bbpress forum is visible and all the topics are visible, but forum shows the message that

    “You must be logged in to create new topics.”

    I think it happens because BBPress is perhaps looking for some authenticated cookie which
    was not created due to my custom authentication.

    Is there a way to create the cookie from my custom authentication page, which
    bbpress will understand ?

    I can not get rid of my custom authentication. Is there a way to fix it, so that when user is
    logged in to wordpress site he/she can use the forum as regular logged in user without login again?

    I am fine to do some programming, but not sure which way to go.

    #121287
    Todd – WireFlare
    Participant

    I’m looking for the correct method to dequeue bbpress css from the plugin directory and also that of the css folder within the theme.

    The entire site is much larger than just the forum and I really don’t want to call the css for every page as most people don’t have a need to access the forums. I’ll then enqueue the css with is_bbpress combined with is_page(array for the 2 pages that contain shortcodes.

    I need to make sure that it dequeues from both locations as there is a custom css being used.

    Thanks in advance for the help!

    #121286
    remike
    Participant

    I am currently manipulating with the function that was posted on forums a few days ago and I can’t find a way round a funny issue.

    I erased homepape as a first part of my breadcrumb.

    There are two options right now and neither are working for me. I will present it underneath (bold means clickable). I either get this

    forum>forum | forum>category1 | forum>category1>topic
    or this:
    forum | forum | forum>category1

    I want:

    forum | forum>category1 | forum>category1>topic
    or this:
    (nothing) | forum | forum>category1

    Any ideas?

    The function I’m trying to get to work is diplayed below

    function mycustom_breadcrumb_options() {
    // Home - default = true
    $args['include_home'] = false;
    // Forum root - default = true
    $args['include_root'] = true;
    // Current - default = true
    $args['include_current'] = true;

    return $args;
    }

    #121285
    sbroways
    Participant

    I was able to complete step 1 with the following sql query:

    INSERT INTO wp_users (user_login)
    SELECT DISTINCT post_username FROM phpbb_posts

    Now I have transferred over the user names and need to work on step 2 which I think can actually be combined with step 3 as one function… but would still love to hear any ideas.

    #121279
    Halo Diehard
    Participant

    The shortcode would allow forum owners to display the category and it’s forums with their descriptions, number of topics, posts etc. on a page.

    If we had this shortcode, we could set up bbPress forums to look like phpbb3 – with all categories and their forums on one page – which is what I’ve seen a lot of people asking for.

    #121269
    Halo Diehard
    Participant

    For anyone else looking for this info:

    First forum page (if using [bbp-forum-index] shortcode): wp-content>plugins>bbpress>templates>default>bbpress>content-archive-forum.php

    Second forum page (if using forum categories and click on a category): wp-content>plugins>bbpress>templates>default>bbpress>content-single-forum.php

    #121268
    LabSecrets
    Participant

    editor here was not playing nice with my code… should be “echo do_shortcode…”

    #121265
    mlakritz
    Participant

    I created a new page (badgerakpsi.org/forums) then pasted the shortcode into the page.
    My website uses a template, but I can’t understand how the individual topics will display but not the forum index?

    #121263
    LabSecrets
    Participant

    1) Create a new page
    2) Add the bbPress ShortCode for forum index: https://codex.bbpress.org/shortcodes/  which is [bbp-forum-index]
    3) Save the page
    4) Go to Settings/Reading and choose this new page as the default home page (instead of your blog).

    This will get you a bbPress Forum index on your home page.

    To make a “mix” of your bbPress and blog posts, you need to modify your home page template file. This differs per theme, but may be called home.php or index.php (it’s in your theme folder). You would add the bbPress shortcode above the WP loop that displays blog posts. Use the do_shortcode method shown here: https://codex.wordpress.org/Function_Reference/do_shortcode

    so it would be (within php tags): do_shortcode('[bbp-forum-index]')

    If you do this, then you won’t need to  create a page and modify your Settings/Reading as elaborated in steps 1 to 4 above.

    Good luck!

    #121254
    Just a guy
    Participant

    Hello. I’d like to allow anonymous posting, but disable it in specific forums. Here’s what I have so far:

    function specific_anonymous_bbp() {
    if (is_post('XXX')) {
    return apply_filters( 'bbp_allow_anonymous', 0)
    }
    }
    add_action( 'plugins_loaded' , 'specific_anonymous_bbp' );

    I’ve tried about a thousand different combinations (the above being the latest) with no luck. I found the bbp_allow_anonymous hook looking through the core files, but I’m not sure how to disallow it for specific posts. I also tried making form-anonymous.php conditional based on post ID, which worked, but caused other issues. Any ideas?

    #121246
    Lynq
    Participant

    How are you implementing the shortcode? Inside a post or inside a template or some other way?!?

    #121237
    Stephen Edgar
    Keymaster

    This should help you to get going https://codex.bbpress.org/theme-compatibility/

Viewing 25 results - 15,026 through 15,050 (of 32,519 total)
Skip to toolbar