Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 15,076 through 15,100 (of 32,581 total)
  • Author
    Search Results
  • #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/

    #121236
    Stephen Edgar
    Keymaster
    #121228

    In reply to: New topic address

    Stephen Edgar
    Keymaster

    – Create a page in WP called ‘new-topic’
    – Check the page slug/permalink is what you are after eg. http://example.com/new-topic/
    – Add the bbPress shortcode [bbp-topic-form] to the page
    – Click Publish
    – Publish a link to the new page where needed

    #121226
    Justin Tadlock
    Participant

    Sorry to be taking over this topic. I had just directed everyone with Members/bbPress issues here to follow along with any developments.

    It was much easier to simply look at the code than to read the explanation, but I figured out the issue and just pushed an update for Members plugin users live. So, JJJ, if you run into any questions from my users about this, tell them to update Members to version 0.2.2+.

    If nothing else, I got a lot of useful ideas. 🙂

    #121222
    jason.weber
    Participant

    Morning all,

    I’m just in the process of doing a fresh wordpress + buddypress install.
    All is going well for the most part with the exception of the global forums.
    So I enabled Group forums, and thats going fine.
    I then enabled Global forums and it ran through what seemed like a bbPress install.
    All fine (with the exception of bbPress trying to use the same slug ‘forums’, but that was an easy one.
    Now: To create a dedicated page/tab for the global forums is there a short-code I can simply add to a new page?
    Also, nothing from the global forums seem to be appearing in the members activity stream. Is that normal?

    Cheers
    Jase

    #121220
    Justin Tadlock
    Participant

    While I certainly understand WordPress’ failings in the user/role/cap department, this update to bbPress has caused a major issue. See, for folks who have been using role-editing plugins (such as my Members plugin), they’re now getting errors because of “dynamic roles”.

    This update messes up other plugins that work with the system WordPress has in place (editable roles). Now, I’m stuck with support questions, emails, and forum posts asking why my plugin is broken when bbPress introduced this problem. This is a major issue that should probably be resolved soonish because many of the users of my Members plugin are going to hit this issue as they update their bbPress installs. The two plugins previously worked in perfect harmony. In fact, many bbPress users started using Members to have the level of control they needed for their forums.

    Admittedly, I haven’t dug into the code yet. But, I’m guessing the problem with a role-editing plugin and bbPress is that the bbPress roles cannot be edited, which was standard functionality before. Since bbPress is modifying the overall [editable] roles array, there’s no way for my plugin to separate the two sets of roles (editable, WordPress-style roles vs. dynamic, bbPress-style roles).

    Obviously, I could write some bbPress-specific code in my plugin to overcome this issue, but why should I? That means I’d have to keep up with bbPress role updates to make sure I stay in line with this new system. Plus, this sets precedence for other plugins to use this same, dynamic roles system.

    I think bbPress should stick to doing what it does best: being an awesome forum plugin. Leave the role/cap stuff to plugins meant to handle this sort of thing. At the very least, it would’ve been nice to give a heads up to plugin authors who maintain role-editing plugins.

    I’m not against the ideas presented with dynamic roles (I’m actually intrigued by it), but let’s wait for WordPress to catch up if this is the direction it’ll eventually go in.

    I’ll definitely be looking into the issue further, but I’ve got a busy schedule at the moment.

    #121219
    mlakritz
    Participant

    The forums page is blank
    badgerakpsi.org/forums
    (I used the shortcode [bbp-forum-index] )

    But individual forum pages will show
    For example: http://www.badgerakpsi.org/forums/forum/course-recommendations/

    Please help! How can I get the forums page to show?

    #121215

    the function to use for a check is is_bbpress()

Viewing 25 results - 15,076 through 15,100 (of 32,581 total)
Skip to toolbar