Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'bbpress'

Viewing 25 results - 14,751 through 14,775 (of 64,533 total)
  • Author
    Search Results
  • ghoush
    Participant

    I have searched and put code together and tested. Now whenever a new post is created in WordPress a new topic is created in a specific sub-forum on my bbPress. This is working great. It brings over the tags and everything.

    The one problem I have is that the publish_post action fires every time a post is set to published. So if a post gets set back to draft or pending review, and then published again, another forum topic is created. There are problaby 2097324907629306 ways this can be solved. I am only coming up with some pretty stupid ones I think, so I was hoping someone might have a good idea here.

    Here is the code for your functions.php:

    
    function post_published_create_topic( $ID, $post ) {
        $author = $post->post_author;
        $name = get_the_author_meta( 'display_name', $author );
        $title = $post->post_title;
        $permalink = get_permalink( $ID );
        $excerpt = $post->post_excerpt;
        $subject = sprintf( '%s: %s', $name, $title );
        $message = sprintf ('[b]%s[/b]' . "\n" . 'By %s' . "\n\n" . '[i]%s[/i]' . "\n\n" . 'View: %s' . "\n\n", $title, $name, $excerpt, $permalink );
        $tags = wp_get_post_tags( $ID, array( 'fields' => 'names' ) );
    
        $new_post = array(
            'post_title'    => $subject,
            'post_content'  => $message,
            'post_parent' => 691,
            'post_status'   => 'publish',
            'post_type' => 'topic'
        );
        $topic_meta = array(
        'forum_id'       => $new_post['post_parent']
        );
        $topic_id = bbp_insert_topic($new_post, $topic_meta);
        $term_taxonomy_ids = wp_set_object_terms( $topic_id, $tags, 'topic-tag' );
    }
    add_action( 'publish_post', 'post_published_create_topic', 10, 2 );
    

    Take that code and put it in your themes functions.php (hopefully you are using a child theme.) The 691 is my sub-forums ID, replace that with the right ID for yours. The format of the post and its content is done on the line that starts “$message = sprintf”.

    Now I just need to get it to stop creating a new post every time the same post is published. So far my ideas have been something like matching up the topics title with a string comparison, but that seems a bit heavy. There should be a simpler way and I am just not seeing it right now.

    beherawr
    Participant

    This can happen also in some default themes like Twenty Fifteen (should work in Twenty Twelve though), but can also be easily fixed by placing the bbPress template files into a child theme.

    https://codex.bbpress.org/theme-compatibility/

    I tried copying my ‘css’ and ‘bbpress’ directories from my template files to my theme as outlined in your link, however it changed nothing.

    Do profiles show up without BuddyPress?

    Not quite sure what you mean…. if you mean can I see a user profile with bbpress deactivated then the answer is no.

    Also, the link to the ‘Edit Profile’ button is exactly what I needed, however it currently returns to 404 because of the previous unresolved issue.

    Robkk
    Moderator

    It should work? What WordPress and bbPress version are you using?

    You can create me an Admin account so I can see if I can find an issue, you can email me the login details to my email listed here.

    Contact

    saintjaved
    Participant

    Yes I did. When I tried different themes the WordPress dashboard went blank. It seems only my themes work. I tried a different forum plugin and it worked. Kinda disappointed though because I wanted bbpress to work. Seems like there is a problem with bbpress running on the server I’m using

    #164040
    Robkk
    Moderator

    Is there STILL no way to do this? I have anonymous posting allowed, but can’t eliminate the email box. I don’t want bbpress collecting email addresses.

    By default the email address is still required for anonymous posting.

    You might need to hire a developer to create this functionality for you.

    #164036
    Robkk
    Moderator

    There is no shortcode for an edit profile page.

    Shortcodes

    #164034
    Robkk
    Moderator

    @melanie-bund

    FIx that annoying dialog saying

    you must be logged in to chat

    It never stays closed no matter how many times I close it, and it really doesn’t encourage new users to want to create an account for the site.

    Try some troubleshooting , see if it is a plugin or theme issue.

    Troubleshooting

    #164033
    Robkk
    Moderator

    How can I position the login form to the same line as the search ?

    This would look terribly squashed in mobile layouts though. I think the way you have it now is fine.

    Lastly, how can I define a different .class-name to both the login form and registration form ? Because I noticed that both login form and registration form use .login-form, which made it impossible to style individually.

    Also the lost password form too, and yes this is annoying for styling. i think it was there to minimize the lines of CSS.

    You can copy the bbPress templates for each authentication form into your child theme and edit them to change the classes.

    Robkk
    Moderator

    1. Users are set to be able to edit their posts/replies, and the Edit button does show up, however when they click on Edit it simply goes to 404. Admins also cannot edit via the Edit button without 404.

    This can happen also in some default themes like Twenty Fifteen (should work in Twenty Twelve though), but can also be easily fixed by placing the bbPress template files into a child theme.

    https://codex.bbpress.org/theme-compatibility/

    2. User profiles are not showing up. Upon clicking on an avatar or manually typing in the profile url (with my username) it returns 404.

    Do profiles show up without BuddyPress?

    (I also need to figure out how to put an ‘Edit Profile’ button somewhere, but that won’t matter if I can’t fix these other two issues)

    Works for bbPress profiles though, I might update it for BuddyPress later.

    Layout and functionality – Examples you can use

    #164030
    Robkk
    Moderator

    I made the forums page using the permalink method and it works great. The problem is that underneath the list of available forums there is a gray circle with a white head and the word By, as if there should be an author shown. But this is the page of all of the forums by various authors. I can’t seem to get it to go away.


    @caseylifec

    sounds like post meta that is being shown because of your theme and the template that bbPress is using from that theme to show the forums.

    You can hide that data with CSS or remove it completely by creating a template specifically for bbpress and remove the code that is rendering the data. Link to your site so I could help you remove the data with CSS.

    If you want to try removing the code you can also try following this guide too.

    https://codex.bbpress.org/theme-compatibility/getting-started-in-modifying-the-main-bbpress-template/

    saintjaved
    Participant

    Yep the latest version of bbpress (“2.5.8”). It also does the same with buddypress but I more need bbpress.

    #164028
    Robkk
    Moderator

    I just found this plugin and it seems to mention some bbPress support

    https://wordpress.org/plugins/email-encoder-bundle/

    It lists a code example for bbPress here

    https://wordpress.org/plugins/email-encoder-bundle/faq/

    Robkk
    Moderator

    Did this happen with the latest update of bbPress??
    Also do some troubleshooting and try to find a plugin or theme issue.

    Troubleshooting

    Blank Pages

    saintjaved
    Participant

    Please help: “After installing bbpress on intranet, wordpress dashboard or entire back end disappers” I did the manual install. I place the file in the plugins folder and when I press activate, the entire screen goes blank. Please help..

    PinkishHue
    Participant

    One way to do this is to simply hide the reply form for the roles you do not want to be able to reply.

    There is a similar topic here talking about making it so that only admins can post in X forum so hopefully this will be a jumping off point for you:

    Disallow topic creation but allow comments in certain forums

    I think there’s a ‘form-reply.php’ so you’d use that instead of ‘form-topic.php’ and you’d need to alter the conditional statement to say IF you are in forum ID X and the user has Y role – then show the reply form.

    Hope that helps but come back to us if you need more help.

    PinkishHue
    Participant

    Hmm that’s a stinker.

    What URL are you actually taken to when you get the 404 message, is the URL right? I believe it should be – ‘my-post-title/edit’

    Have you tried disabling all other plugins AND using the default theme at same time? (difficult if the site is live of course)

    If it’s not on a live site maybe try a fresh bbpress install? Also there are some repair tools in the settings you can try (I haven’t had experience using these but it’s worth a try)

    #164004
    melanie bund
    Participant

    Hi Am not sure where my other 2 posts went, have posted twice with code, maybe that is the problem the code. My problem is that the replies to topics appear empty.
    Am using wordpress 4.2, bbpress latest version as just updated to see if that might be the problem
    ANY help wold be greatly apreciated
    forum:
    http://photohunters.org/forum/members-blog/
    reply:
    http://photohunters.org/topic/shutter-speed-cheat-sheet/#post-666

    Thank you Melanie

    #164003
    Stephen Edgar
    Keymaster

    bbPress 2.5.8 is out. It prevents 2 potential security related issues, and is a strongly suggested update for all bbPress 2.x installations:

    * Improved ajax actions
    * Improved user query parsing

    Check the 2.5 milestone for a comprehensive changelog of fixes.

    #163988

    In reply to: Importing from WBB4

    Stephen Edgar
    Keymaster

    For any code you can create anonymous (i.e. You do not require a GitHub account) and paste your code here https://gist.github.com it makes the code much easier to read than posting here on bbPress.org.

    The 4 tables would be wbb1_board, wbb1_thread, wbb1_post and wcf1_user

    Open up phpMyAdmin on your install, navigate to the database, click one of the 4 tables I listed above, then click structure, take a screen shot of similar to this example here.

    beherawr
    Participant

    Installed bbpress through wordpress and everything is going great except for two problems.

    1. Users are set to be able to edit their posts/replies, and the Edit button does show up, however when they click on Edit it simply goes to 404. Admins also cannot edit via the Edit button without 404.

    2. User profiles are not showing up. Upon clicking on an avatar or manually typing in the profile url (with my username) it returns 404. (I also need to figure out how to put an ‘Edit Profile’ button somewhere, but that won’t matter if I can’t fix these other two issues)

    What I’ve already done:
    -Switched to a default theme, didn’t change anything, switched back to Gameplanet theme
    -Disabled all plugins except bbpress, problem persisted
    -Changed permalink type to something else and then back again, problem persisted

    I would greatly appreciate any help that could be offered as I really need this working by next week. If it’s something that involves an in-depth look I’d even be willing to pay someone to help, although I fear it’s probably a simple problem that I’m just overlooking.

    Contact email – emooreofficial@gmail.com
    Forums – http://wcg.website/wp/index.php/wcg-forums

    #163983
    Robin W
    Moderator

    This is an s2member problem.

    BBpress uses the same database meta_key to store both the wordpress and bbpress names. So there are two entries in the wordpress database

    so in usermeta the meta-key against a user for wp_capabilities will be set to something like

    a:2:{s:13:”administrator”;s:1:”1″;s:13:”bbp_keymaster”;b:1;}

    I would suggest that in bulk mode, s2member is just overwriting the whole of this value with the new s2member level, thus deleting the bbpress value.

    If you post the above to the s2member support site, they should understand the issue

    #163980
    Rawenner
    Participant

    Hi!

    I have a problem that is related to this one; I’m also running Woocommerce and bbpress forum. My problem is the exact opposite to this one; I do not allow users to make accounts for woocommerce,
    but I want to allow them to make accounts for the forum.

    So is there a possibility to allow registration only for the bbpress, so that it doesn’t affect any other part of the website?

    Thanks!

    #163979
    lisawdegregorio
    Participant

    I want to use forums as a main page of web site, I did it. But forum itself seems to be conflicting with some one, and I cannot find the problem, please help.

    edit : site taken out by mod

    I’m using Spacious theme.

    WP version: 4.2.2
    BBPress: 2.5.7

    #163978
    Stephen Edgar
    Keymaster

    Apologies for the late reply, this is not a bbPress bug, per above it’s a known issue with Easy Digital Downloads – Currency Converter., and in the following topic it is actually an issue with Yoast’s SEO or News SEO plugin.

    News SEO & BBPress Conflict

    #163976
    Stephen Edgar
    Keymaster

    Apologies all, this is not a bbPress issue, when bbPress is activated without any other plugins there are no notices, the notices only appear once activating both Yoasts’ WordPress SEO and News SEO plugins.

    If you comment out this out of the News SEO plugin file class-meta-box.php

    add_filter( 'add_extra_wpseo_meta_fields', array( $this, 'add_meta_fields_to_wpseo_meta' ) );
    

    In the News SEO plugin the issue is resolved and no notices are displayed.

    It appears to be related to pre_get_posts being used in WordPress SEO by Yoast, this was picked up in the WordPress Core ticket https://core.trac.wordpress.org/ticket/31231

Viewing 25 results - 14,751 through 14,775 (of 64,533 total)
Skip to toolbar