Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 15,026 through 15,050 (of 32,503 total)
  • Author
    Search Results
  • #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()

    #121195
    David Gwyer
    Participant

    I have a normal WordPress site with the bbPress Plugin installed.

    Is there a hook or template tag I can use to run code when any type of front end bbPress page is displayed (forum/topic/reply etc.)?

    I want to run some custom code, but only if the current page is a bbPress page. I don’t want code to run on every page on my site when it’s not needed (i.e. for non-bbPress pages).

    Thanks.

    #121186

    Topic: New topic address

    in forum Plugins
    psiggy
    Participant

    Hi!

    I’m not sure if this is the right forum, but…
    I’m trying to create separate page for creating new topic (user presses some “New topic” button, it redirects him to the page).

    I know I have to create new page in WP. I also know I have to use [bbp-topic-form] shortcode for that page. My problem is that I don’t know how to correctly setup the address for that page. I would like it to be in the form: “www.mydomain.net/forums/new-topic”. But I can’t select bbPress’s pages as the parent for my new page, so it looks like “www.mydomain.net/new-topic” in my case.

    Any ideas how to make this work?

    #121175

    Not easily, no.

    That shortcode calls the content-single-forum.php template file. So you’re options are to copy that file to your theme and edit it (but this will be reflected globally, not just in the shortcode). Or create your own shortcode based off the bbPress one and have it use a custom template file.

    #121173

    You can also try increasing the memory limit within WordPress via your wp-config. I’d give that I try first, bump it to something like 128mb and see if that helps.

    https://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP

    #121172

    Just be aware that activating shortcodes in bbPress can open up a whole can of worms, which is why its disabled by default.

    If they are enabled there is nothing stopping someone from using bbPress shortcodes in a reply/topic, eg [bbp_login].

    Polls in 2.x is definitely something that is needed. However it’s really plugin territory, and so far no one has written one!

    #121167
    Sam Rohn
    Participant

    this one is working for me

    https://wordpress.org/extend/plugins/cardoza-wordpress-poll/

    you may also need to install something like GD BBPress Tools to activate shortcodes in forum topics and replies if you want to embed a poll in a forum post

    https://wordpress.org/extend/plugins/gd-bbpress-tools/

    sam

    #121161
    risen32
    Participant

    On this page http://www.turnbowmedia.com/2012/12/pricerr-theme/ I display the shortcode [bbp-single-forum id=$forum_id]

    Underneath it gives the option to add a topic on that page, I don’t want my users to create topics from there. Is there a way to remove that part so they can’t add topics directly from that page?

    remike
    Participant

    John James Jacoby-> Thank you so much for your piece of code! It’s so useful to have the the enhanced visual editor available in BBPress.

    However, 2 issues appeared when I try to use the editor.

    1. Smilies do not work

    2. BBPress does not preserve and tags for normal users and therefore all the breaks are deleted and if the post is etited it just creates WALLOFTEXT…

    Is there any way to fix these two issues?

    LabSecrets
    Participant

    One more thing:

    User profile was causing a problem where navigation was pushing down summary of topics and replies. Add this CSS to fix:

    #bbpress-forums .bbp-user-section {
    display: inline-block;
    width: 100%;
    }
Viewing 25 results - 15,026 through 15,050 (of 32,503 total)
Skip to toolbar