Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 15,451 through 15,475 (of 32,519 total)
  • Author
    Search Results
  • #118161
    Garindan
    Participant

    I found out how to change the breadcrumb url, alt and text myself. You can change the code in bbp-common-template.php (/wp-content/plugins/bbpress/bbp-includes/bbp-common-template.php) on line 1889…

    // Add the breadcrumb
            $crumbs[] = '<a href="/forums/">Forums</a>';
    

    It’s just a normal link tag so you can name it and add alt tag as you wish 🙂

    • This reply was modified 13 years, 9 months ago by Garindan.
    • This reply was modified 13 years, 9 months ago by Garindan.
    #118158
    ldavis501
    Participant

    Hello,

    I have installed the BBPress Forum and have reviewed the installation forums. I have placed the following short code on a page: [bbp-forum-index]

    But it is not showing when you go to that page.

    I am not sure what I am doing wrong.

    Any advice would be greatly appreciated.

    Regards…..

    #118154

    In reply to: Page bbpress or not

    zikadonfeur
    Participant

    OK, but bbpress is running with

    Custom root slugs to prefix your forums and topics with. These can be partnered with WordPress pages to allow more flexibility.
    

    how I can find my page ID because forum based is “discussions” and I don’t have page name with “discussions”

    Thank’s for help

    my forum link

    http://www.zikadonf.fr/monespace/discussions/forum/principal/

    #118153
    Hard Seat Sleeper
    Participant

    … might not be to use bbpress at all.

    I have a standalone bbpress that I would love to import & integrate. I assumed that the “forum” would be a category on my wp install, and the topics subcategories, and the forum posts seen as wp posts and comments.

    This would allow my wp site to act as neither blog nor forum but a truly integrated website, with everyone acting like an author, and a central way for me to control the content flow.

    But from my explorations I discovered that it doesn’t work this way at all. Forum posts are not wp posts, there’s still 2 separate systems in this “integrated” model. So the comments on my wp install have a different codebase than the comments/replies in my forum, for example.

    I’m considering totally tricking out one of the many form plugins (Gravity Forms, etc) to create “posts” in the “forum” category in my wp install. So the whole concept of the forum is nothing more than having logged in users create guest posts in a truly integrated wp install.

    Just curious if anyone has done this — I can’t be the first guy to think of this idea. The biggest drawback so far is that i would need to find a way to import the posts in my old standalone forum to become posts in my new setup.

    #118147

    In reply to: Page bbpress or not

    Pippin Williamson
    Participant

    Log into your WordPress admin, go to Pages, click Edit on the page you want, then look at the URL. The post=xx part will show you the page ID, which you can then use in your code:

    if( ! is_user_logged_in() &amp;&amp; is_page( xx ) ) {
          // use get_permalink() to get the URL. 
    }
    
    #118146
    djarzyna
    Participant

    This fits to the original question, so I am writing it here. What is the reason to have this bbp-login, bbp-register and bbp-lost-password code anyway? I’ve just spent a considerable amount of time customizing this bbp code to make it play nice with my theme. And then I had to realize that under certain circumstances the user ends up at the original WordPress login, register and lost password forms – which is certainly not waht I want. So why the … are those bbp forms there when obviously the original WordPress forms accomplish the same things. I could have customized the WordPress forms and all would have been good, no? To have this bbp forms seems to be redundant, confusing and – as it was in my case – time consuming. The bbp team, should supply such forms only if they go all the way, error detection and such included, or not supply it at all.

    #118145

    In reply to: Newbie question

    Pippin Williamson
    Participant

    OK first read about short codes here.

    Basically a short code is a place holder for content (html, images, posts, etc). When you place [bbp-forum-index] into the content of a page, it will be replaced automatically with an index of your forums in bbPress. Try it out and you’ll see what I mean.

    #118143

    Topic: Page bbpress or not

    in forum Themes
    zikadonfeur
    Participant

    Hello,
    I want to add a link with the “pagetitle” of bbpress forum page.

    bbpress is running in a wordpress page but how I can find it? where it is?
    I want to past a simply code as

    if ( !is_user_logged_in()&amp;&amp;is_page('???') ) {my link...
    

    thank you for helping.

    WP: 3.4.1
    bbpress: 2.1.2
    theme: Frisco for BuddyPress

    Jin_ls
    Participant

    If you need any css files or other I can copy the code here.

    #118131

    In reply to: Newbie question

    Pippin Williamson
    Participant

    Are you familiar with what short codes do and how to use them?

    #118124
    Pippin Williamson
    Participant

    You can use the [bbp-lost-pass] short code to show a change/lost password form.

    #118123
    Pippin Williamson
    Participant

    There is an option in Settings > Forums to allow/disallow annonymous posting. Set this so that users are required to login in order to post in the forums.

    You can show a registration form with the [bbp-register] short code.

    #118121

    In reply to: Newbie question

    Pippin Williamson
    Participant

    There’s a lack of documentation at the moment because the site is being redone (slowly) and the individuals responsible for the majority of the documentation are also the main developers, who are busy writing code 😀

    The location of the forums on your site depend on the settings you have set in Settings > Forums. Take a look at the documentation for basic settings.

    You can also manually place the forums index on any regular WordPress page by using the [bbp-forum-index] short code. Short code reference.

    Rasheed Bydousi
    Participant

    Hello again,

    I have created a new page and added [bbp-topic-form] shortcode inside it. However, this page isn’t 100% full width.

    How can I “force” this page to get the .bbPress #page class ?

    Thanks

    #118079
    brakhoed
    Participant

    Hi Guys,

    bbPress (2.1.2) on WP 3.4.2 logout gives error code 500 (Internal server error).

    Error log:

    > mod_security: Access denied with code 500. Pattern match
    > “\\.php\\?.=(http|https|ftp)\\:/.\\?” at REQUEST_URI
    > [hostname “www.xxx.nl”] [uri
    > “/wp-login.php?action=logout&_wpnonce=5a9ef61b36&redirect_to=http%3A%2F%2Fwww.xxx.nl%2Fwp-admin%2Fplugins.php%3Fplugin_status%3Dall%26loggedout%3Dtrue%23038%3Bpaged%3D1%26%23038%3Bs”]

    bbPress doesn’t use rawurldecode()?

    For now, what is the best solution? Which file and which code should I change? Or is there another solution?

    #118075
    #118052
    Pippin Williamson
    Participant

    Drop this code snippet into a custom plugin (you can use Pluginception to easily create one)

    function pw_bbp_auto_checK_subscribe( $checked, $topic_subscribed  ) {
    
        if( $topic_subscribed == 0 )
            $topic_subscribed = true;
    
        return checked( $topic_subscribed, true, false );
    }
    add_filter( 'bbp_get_form_topic_subscribed', 'pw_bbp_auto_checK_subscribe', 10, 2 );
    
    #118041
    luke@mobiah.com
    Participant

    Bob,

    You may want to try this guide:
    https://codex.bbpress.org/legacy/step-by-step-guide-to-creating-a-custom-bbpress-theme/

    You will copy file and move them inside your existing theme directory. This will override the default theme that lives inside the plugins directory.

    Good luck!

    Luke

    #118021
    luke@mobiah.com
    Participant

    This was the previously mentioned link with “legacy” in it: https://codex.bbpress.org/legacy/themes-and-templating/ – this references a templates directory which I believe has been taken out of the plugin architecture.

    #118020
    luke@mobiah.com
    Participant

    Hidy ho,

    I’m working on creating a child theme for a site and am looking for the right tutorials. I found this link below: http://codex.bbpress.org/legacy/step-by-step-guide-to-creating-a-custom-bbpress-theme/ and was pretty sure this was the most current. Can anyone confirm this is the most up-to-date information for child theming bbpress?

    I found and followed a different tutorial that also had “legacy” in the slug – so any help you can offer here would be appreciated.

    Thank you.

    Luke

    #118019

    In reply to: get topics by tags?

    Pippin Williamson
    Participant

    The taxonomy ID for tags is “topic-tag”. You don’t want to set the meta_key, however.

    You can do it in a couple of ways. One is to use the “tax_query” parameter.

    You could also pass a parameter like the following to your query:

    'topic-tag' =&gt; array('tag-1', 'tag-2')
    

    Does that help?

    #118013
    Philip John
    Participant

    I’m trying to add featured images to forums. I have successfully filtered the register_post_type call like so;

    /**
     * Add thumbnails to forums
     */
    function ys_forum_featured_images( $post_type ) {
         $post_type['supports'][] = 'thumbnail';
         return $post_type;
    }
    add_filter( 'bbp_register_forum_post_type', 'ys_forum_featured_images' );
    

    That did not, however add the meta box to the post edit page so I further used the following;

    /**
     * Add featured image meta box
     */
    function ys_bbp_featured_images(){
        add_meta_box('postimagediv', __('Featured Image'), 'post_thumbnail_meta_box', 'forum', 'side', 'low');
    }
    add_action('add_meta_boxes', 'ys_bbp_featured_images', 100);
    

    The meta box then appears but in the image details I see the “Insert into post” button and “Delete” link but no “Use as featured image” link.

    Any idea how I get that added?

    The only thing I could find were these tickets talking about the link appearing when it shouldn’t:
    http://bbpress.trac.wordpress.org/ticket/1633
    http://core.trac.wordpress.org/ticket/18669

    #117994
    mpriola
    Participant

    I continue to have problems with the sidebar showing up below my content.

    In looking at the code generated by bbpress, I have noticed that on certain forum pages (the affected ones), bbpress is leaving out the opening body tag.

    My forum is at: http://www.cormacmccarthy.com/forums. Click down into any of the forums, and you’ll see:

    –All the sidebar content is below the main forum table, which expands to fill the whole screen.

    –The header and top menu content is disorganized and not properly styled.

    –When you view the source code for the page, you’ll notice the missing tag.

    I’ve done plenty of troubleshooting myself, but an absent body tag, together with a not-closed head tag, needs to be addressed before I can really do anything else–given the reliance of most style sheets on the presence of those tags.

    Any thoughts?

    #117985
    brandy42
    Participant

    Hello,

    When I viewed the bbpress.org demo forums my expectation was that my forums landing page would look the same as the demo after installation but in fact it does not.

    Could someone please help me with a solution exactly the same as the bbpress forums landing page which shows the latest topics with the exact same information displaying?

    • Topic (ex. bbPress 2.2)
    • Voices (ex. 14)
    • Replies (ex. 14)
    • Freshness (ex. 2 weeks, 4 days ago (avatar) (name of member who last posted)

    From my understanding the widget called (bbPress) Recent Topics already has this functionality but is lacking the information to display Voices, Replies and (avatar) (name of member who last posted) .

    What is the easiest way to implement this? Modify the widget? Create a new widget? Implement the code into the Forums landing page itself?

    Any help would be greatly appreciated!

    Thanks very much!

    #117976
    dpeery
    Participant

    I added:

    bbpress-forums ul,

    bbpress-forums li a{

    color: #555;
    

    }

    to the end of files:
    bbpress.css
    and
    bbpress-rtl.css

    I can see black text on a white background now.

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