Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 15,051 through 15,075 (of 32,519 total)
  • Author
    Search Results
  • #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%;
    }
    #121074
    Zookey90
    Participant

    I have one more question. Do I need all the time to add shortcodes?

    I mean, if I create 5 new forums, do I need to put this shortcode [bbp-single-forum id=$forum_id]?

    How I could know which is id of forums?

    #121063
    Zookey90
    Participant

    Oh, God, I it works, when I add shortcode to a blank page.

    Hvala, mnogo. 🙂

    BTW. Where are you from? 🙂

    #121058
    LabSecrets
    Participant

    Zdravo!!

    Ok, that helps.

    First suggestion:

    What happens if you use shortcodes to create a forum index?  https://codex.bbpress.org/shortcodes/

    Take the shortcode of: [bbp-forum-index] and add it to a blank page.

    Does that create a visible forum index?

    If so, then  your problem imho is that your theme is hijacking the content area in a way that prevents the new bbPress code from working. As such, the solution would be found most likely in your theme’s page.php or similar, where the default archive pages are created. I don’t have access to the Gonzo theme since it is on ThemeForest ;-(

    but you can see in my recent post, we fixed a similar solution for Canvas 5 from WooThemes. https://bbpress.org/forums/topic/non-functional-index-page-when-bbpress-2-1rc4-is-used-with-woothemes-canvas-5-05/

    If not, then please share the link to the page where you posted the shortcode so I can see the underlying output.

    Hvala!

    Spence

     

    #121048
    theophila
    Participant

    I need a way to pull topics from the current forum as well as all subforums in the topics loop. To do this, I’ve fetched all forum IDs of the subforums using bbp_get_forum_id() and bbp_forum_get_subforums().

    So now I have an array of all subforum IDs stored in $forum_ids.

    I started to write a custom query that I can reset so that I won’t disturb the current context of the topic_query but then I realised…I don’t know how to pass the subforum IDs to the query. Is there any functionality that allows me to select from multiple forums? If not, can you direct me to where I have to modify the code? There is so much abstraction that my head is swimming.

    LabSecrets
    Participant

    Hi Gang,

    well…. this one through me for a loop today as well, when moving our WooThemes Canvas for bbPress & BuddyPress site for a test drive on bbPress 2.2 ( http://labsecrets.com/demo/canvas-commerce )

    The individual forums would work fine, but the main forum index was rendering what looked like a post excerpt, with everything jumbled into a single paragraph.

    Solution was actually rather simple. If you are using a child-theme in Canvas (you ARE using a child-theme I hope?? 😉  ) simply make a copy of the content-page.php file from parent, and put it into your child-theme folder.

    Next, change the entry div as shown, to modify the current conditional check to ALSO see if you are on a bbPress page. Without this extra bit, it assumes that you want the page to show the_excerpt() on every page other than single.php …. not true. We want full content on bbPress pages as well 😉

    <div class="entry">
    <?php
    /* If this is a bbPress page show full content not exerpt */
    if ( ! is_singular() && (! is_bbPress()) ) {
    the_excerpt();
    } else {
    the_content(__('Continue Reading &rarr;', 'woothemes') );
    }
    wp_link_pages( $page_link_args );
    ?>
    </div><!-- /.entry -->

    With this simple mod, all is well and now the native forums index works, and so does building a custom page with shortcode. Ta da!

    See: http://labsecrets.com/demo/canvas-commerce/forums/

    #121014
    Stephen Edgar
    Keymaster

    Hope these help:

    ‘Widgets’ go in ‘Sidebars’ https://codex.bbpress.org/widgets/
    ‘Shortcodes’ go on ‘Pages’ https://codex.bbpress.org/shortcodes/

    #121013
    Stephen Edgar
    Keymaster
    function mycustom_breadcrumb_options() {
    	// Home - default = true
    	$args['include_home']    = false;
    	// Forum root - default = true
    	$args['include_root']    = false;
    	// Current - default = true
    	$args['include_current'] = true;
    
    	return $args;
    }
    
    add_filter('bbp_before_get_breadcrumb_parse_args', 'mycustom_breadcrumb_options' );

    I think the above will do what you are after… Just add it to your themes functions.php

    WordPress makes some assumptions about paragraph tags, with a function called wpautop. It should be working the exact same way as it works when composing a new page or blog post.

    #120978
    SydneyDesigner
    Participant

    WP3.4.2, Buddypress 1.6.1, bbPress2.2

    I’ve set up the new bbPress 2.2 forums for BuddyPress groups as per http://codex.buddypress.org/buddypress-site-administration/migrating-from-old-forums-to-bbpress-2/ . But I may have encountered a bug. Has anyone else had the following problems?

    The BuddyPress group admin>forum page check box (followed by save) seems to have no effect on turning the bbPress forum on or off for that group. If the forum was on, it stays on – even if the check box is off. If the forum was off it stays off, even if the check box is on.

    Also, the bbPress “forum” tab shows on the group page subnav, even if there is no forum for that group.

    By the way, the check box does toggle the “enable_forum” field in the wp_bp_groups database table. But neither BP nor bbPress seems to respond to the change.

    Any help on understanding/fixing this would be much appreciated please.

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