Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 15,551 through 15,575 (of 32,503 total)
  • Author
    Search Results
  • #117166

    In reply to: Forum Login

    Stephen Edgar
    Keymaster

    From https://codex.bbpress.org/widgets/

    Register URI: Link to your custom signup page eg. A WordPress page using the [bbp-register] shortcode.
    Lost Password URI: Link to your lost-password page eg. A WordPress page using the [bbp-lost-pass] shortcode.

    #117164
    Stephen Edgar
    Keymaster

    I just published that FAQ and linked to it from the main page:

    Codex

    https://codex.bbpress.org/faq

    If you have any additions, revisions, edits or whatever go fo it.

    #117163

    In reply to: BBPress compatability

    Stephen Edgar
    Keymaster

    Try resetting your permalinks : WordPress dashboard go to Settings -> Permalinks

    https://codex.bbpress.org/faq/#troubleshooting

    • This reply was modified 13 years, 5 months ago by Stephen Edgar. Reason: Added FAQ link
    #117149
    amunds
    Member

    Sorry, somehow the code did not output even if it looked like it would in the preview. Trying again:

    Then to list the replies just add to whatever page you want to list them:

    if ( bbp_get_user_replies() ) : 
       bbp_get_template_part( 'pagination', 'replies' ); 
       bbp_get_template_part( 'loop',       'replies' ); 
       bbp_get_template_part( 'pagination', 'replies' ); 
    endif;
    

    Remember to add the correct PHP tags before and after each line. Also included pastie with the entire post: Pastie with code

    #117148
    amunds
    Member

    I`m not sure how familiar you are with WordPress and PHP, I consider myself a novice in PHP but well-versed in WordPress. It might be a bit technical and it might be the wrong way to do things, but here is how I quickly put it together.

    Open functions.php in your theme.
    Add the following function to the file (within the PHP tags):

    function bbp_get_user_replies( $user_id = 0 ) {
    
    // Validate user
    $user_id = bbp_get_user_id( $user_id );
    if ( empty( $user_id ) )
        return false;
    
    // Query defaults
    $default_query = array(
        'author'         => $user_id,
        'show_stickies'  => false,
        'order'          => 'DESC',
    );
    
    // Try to get the topics
    $query = bbp_has_replies( $default_query );
    if ( empty( $query ) )
        return false;
    
    return apply_filters( 'bbp_get_user_replies', $query, $user_id );
    }
    

    Then to list the replies just add to whatever page you want to list them:

    As you can see this is basically the same code as the bbp_get_user_topics_started function, just modified to get the replies instead.

    If anyone have a better solution I`d love to hear it.

    #117146

    In reply to: Index page

    JudeAAZ
    Member

    John, I read a message of you in another thread where you say :

    > That said, what you want to do is as easy as making a bbpress.php
    > template in the root of your theme. It will act as the wrapper for all
    > bbPress content.

    What does that mean ? I’ve read the codex, but not this in there.
    Thank you

    #117132
    Clementtang
    Member

    Open bbp-common-template.php from bbp-include
    find

    // Wrap the separator in a span before padding and filter if ( !empty( $sep ) )
    

    and edit

    $sep = '' . ' EDIT HERE ' . '';
    

    You can change it into any text or image w/ codes.

    • This reply was modified 13 years, 5 months ago by Clementtang.
    • This reply was modified 13 years, 5 months ago by Clementtang.
    MTPrower
    Member

    I’m going to explode, here.

    You’re kidding me, right? Who or what are you getting defensive about? I’m not even TALKING about that! We can already DO exactly what I’m talking about inside a normal page with only several single-forum shortcodes! The problem is, because of breadcrumbs not linking to the new page I can create for that, I can’t use a different page. I have to use the .php page that is the forum-index.

    Let me make this as simple as humanly possible. This is all I want on my “forums index”: what you get when you put the following into a page:

    [bbp-single-forum id=$forum_id-1]
    
    [bbp-single-forum id=$forum_id-2]
    
    [bbp-single-forum id=$forum_id-3]
    

    Let’s assume those are the id’s of forums of my choosing. In this case, those are the id’s of my three top-level categories. Whatever you get when posting those three shortcodes into one page is EXACTLY what I want as my forums index page. (By the way, all other forums systems already look like this. And don’t assume that everyone likes bbPress’ current index page, which is the only index page of its kind. That is speculation.)

    That is all. Nothing more. We can do it on a single page or post, so I know we can do it on a .php file.

    And finally, don’t be smart with me. bbPress is the only forums system that integrates with WordPress as well as it does. To have a multimedia site with a completely separate forums is to KILL YOUR SITE. I understand why, if your forums isn’t the landing page of your site, you MUST have full integration between your site and forums in order to keep traffic. That is why I can’t use things other than bbPress.

    If you’re going to respond to me, at least read the first post. Just reading the latest two posts isn’t going to give you enough info to respond well without annoying the poster. Please, for the love of god…

    #117118
    folgerj
    Participant

    I tried a couple ways to put a comment form shortcode in my topic post (works outside of BBpress) but not inside. I also would like to have my topic/replies show in reverse order. Instead of default of newest to oldest I would like the most current reply on top… I don’t see an easy way to do this. I’m not using a totally compliant theme (weaver pro) since I’m about the blog more than the forum but it seems to work well enough… http://jeff-foliage.com/forums/topic/2012-fall-foliage-reports/ is my site and most recent post. Jeff Foliage

    • This topic was modified 13 years, 5 months ago by folgerj.
    #117116
    amunds
    Member

    You need to find the HTML for the button, in this case it`s .
    To get the button to align to the left you then have to overwrite the align CSS with the following:

    div.bbp-submit-wrapper {
      float: left;
    }
    

    Let me know if anything is unclear.

    #117114
    folgerj
    Participant

    @andre, the shortcode link is dead. someone deleted the reference page…

    • This reply was modified 13 years, 5 months ago by folgerj.
    #117111
    rameesareno
    Member

    Hi,

    Im no css Guru. Can you throw in some sample codes for that?

    #117105
    rameesareno
    Member

    How do we align the submit button when writing a topic using the bbpress forum.

    website is: http://www.sarenosolutions.com/forums.

    where will we code the plugin to do fix this?
    Tks

    #117099

    In reply to: Not sure what to use

    RichardWantsToKnow
    Participant

    Miguel,
    Thanks. I’ll give your suggestions a run in the next couple of days. I have to decide upon bbpress or buddypress per your criteria.
    I didn’t see this info on the bbpress and buddypress sites. Is it in the codex or where?
    Thanks again.

    #117095

    In reply to: User Registration

    Lynq
    Participant

    Have you created the login and register pages using the shortcodes: https://codex.bbpress.org/shortcodes/ ?

    Are you just having trouble with getting the actual links onto the forum area or you need to create the pages aswell?

    Are you using a sidebar?

    #117085
    kpolkson
    Member

    Hi all,

    thanks for making such an easy forum solution, I’ve been quite pleased with how much functionality comes right out of the box.

    Though I am getting confused when it comes to best practices for making some typical theme customizations so that I can keep a custom look with future updates of bbpress.

    At this time, I am really only trying to change font styles and sizes and some of the coloring and minor layout items with how the forum renders to match my custom wordpress theme (built off of HTML5 boilerplate).

    I’ve reviewed:

    http://bbpress.org/forums/topic/bbpress-2-0-theme-compatibility/ &

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

    but, I don’t feel like it helped and am not sure if things have already changed since those have been written. either that or i am just lost in the number of files that seem to control the theme in bbpress with the added bbp-theme-compat files.

    For instance, i am told to copy over everything from bbpress/bbp-theme-compat/bbpress directory, yet none of those files include the bbp-theme-compat/css files. which is what I will probably doing the most modification of (right?)

    Then it says to copy over the bbpress/extras directory (optionally), but all I can find is the bbpress/bbp-theme-compat/extras directory, is this what was meant?

    Again, really just want to make minor style changes that universally affect the bbpress fonts and colors, yet still want to specifically target those bbpress items.

    Might increase the complexity of the customization, but right now just want to start small and use bbpress best practices so that I don’t lose my customization when upgrading anything.

    thanks

    Will Earnhardt
    Participant

    I’ve seen numerous threads on this very subject for the last few years and JJJ has been posting the same response every time. It more or less says “This is the way it is. If you don’t like it, come up with your own solution.”

    I understand his reasoning for saying that’s just the way it is, but IMO, I wouldn’t have released this product with the URLs in this format. How can a topic be considered part of a forum, yet the URL not represent that?

    This is the logical structure. (assuming everything exists in a forums subdirectory):

    Viewing a Single Forum:

    domain.com/forums/forum-name/
    

    Viewing a Thread (or topic):

    domain.com/forums/forum-name/thread-name
    

    With comments being this or something similar:

    domain.com/forums/forum-name/thread-name#comment-35
    

    .

    This is what we actually get.

    Viewing a Single Forum:

    domain.com/forums/forum/forum-name
    

    Then click on a Single Thread:

    domain.com/forums/topic/thread-name
    

    You lose all acknowledgement that you were in a particular forum. It’s like the threads are just floating about aimlessly…not attached to anything in particular.

    If BBPress operated like WordPress, Let’s say that “Forums” are “Categories” and “Topics” are “Posts”. Well, with WordPress, you can set your permalinks to read:

    domain.com/category-name/post-name/
    

    So why not be able to do that with BBPress? The problem is that in order to get all of the various settings applied to both Forums and Topics, they have both been created as separate Custom Post Types. The individual Posts in Topics simply have a custom field that ties them to a specific Forum.

    Now, I haven’t tested this at all, but in theory it may be possible to tap into some WordPress action and filter hooks and create our own rewrite rules to fix what I see as the biggest flaw with BBPress. I found a thread on another site recently where the user used a custom field value to generate the permalink for a custom post type. That seems to me would be exactly what we need to do here. If I can get some free time, I’ll see if I can get it working and maybe build a plugin to handle it.

    #117033

    Hey guys, using most updated WP and BP files. I’ve got this code I’m working with: But stringing together the action and max parameters is for some reason not working. The updates work, but it’s not being limited to 1. Any help is appreciated! Thanks! T

    #117013
    jshultz
    Member

    Well this is the way I ended up doing it. I created a new div above the table that lists the topics and then did me up some jquery:

    var rows = $('table.bbp-topics').find('tr.super-sticky');
    
            rows.each(function(index) {
                var headhref = $('a.bbp-topic-permalink', this).attr('href');
                var headline = $('a.bbp-topic-permalink', this).html();
                var excerpt = $('.excerpt', this).text();
                var author = $('a.bbp-author-name', this).html();
                var photo = $('a.bbp-author-avatar > img', this).attr('src');
                var replies = $('.bbp-topic-voice-count', this).text();
                var followers = $('.bbp-topic-reply-count', this).text();
                var freshness = $('.bbp-topic-freshness > a', this).html();
                var meta = $('p.bbp-topic-meta', this).text();
    
    
                var newrow = '' +
                    '' +
                    '' + author +' ' +
                    '<a href="' + headhref + '">' + headline + '</a><a></a>' +
                    '' + excerpt + '' +
                    'Replies' + replies + ' ' +
                    'Followers' + followers + ' ' +
                    'Updated' + freshness + ' ' +
                    ' ';
    
                $('#supersticky').fadeIn().append(newrow)
    
            })
    
    #117012
    viktora
    Member

    I have spent this evening by trying to install the “bbpress threaded replies” plugin. No success. I am not able to see “reply to” link in replies.

    Is some here able run it on 2.1. bbpress plugin version? Pls send a link just to see how it works. Or… just place the code what has to be modyfied to make this threaded plugin running… Thanks a lot.

    #117005
    jshultz
    Member

    I found the problem. I had a function in my functions.php was malformed. The correct way was this way:

    // Add classes to posts
    add_filter('post_class', 'my_post_classes');
    function my_post_classes( $classes )
    {
        $postType = get_post_type();
    
        if ( $postType == 'post' ) {
            $classes[] = 'clearfix';
    
        }
    
        return $classes;
    }
    
    #117004
    Erlend
    Participant

    I don’t think this should be a priority for bbPress. You’re doing the right thing by “outsourcing” it. But even that might be unnecessary. Most websites would be better served by adjusting to bbPress, not the other way around.

    Those strongly opposed to change should simply consider options such as SimplePress, which follows the traditional (legacy imo) style of forum structure.

    Maybe the teaching route is better than the development route in this case? An instructional blog post or codex page to ease people into bbPress’ new concepts could go a long way. That’s the Git approach for instance.

    #116999

    In reply to: soundcloud for bbpress

    Unconformed
    Member

    Man I tried to post here ages ago. I can’t believe no one has replied

    SoundCloud Shortcode

    That’s a plugin for wordpress I use. Will work in the forum.

    #116996
    nielsvanrenselaar
    Participant

    It’s not that hard…

                                                                     $post-&gt;ID, "links" =&gt; array("edit" =&gt; bbp_get_reply_edit_link(), "trash" =&gt; bbp_get_reply_trash_link() ))); ?&gt;
    
    #116987

    In reply to: Hide Freshness Column

    aaclayton
    Participant

    Have you taken over control of bbpress templates using theme compatibility? If so you can modify yourtheme/bbpress/loop-forums.php and remove the list item:

    li class=”bbp-forum-freshness”

    Next from yourtheme/bbpress/loop-single-forum.php remove the same section and its contents:

    li class=”bbp-forum-freshness

    Finally you’ll have to adjust the CSS of your forums to compensate the width of the remaining forum columns for the missing freshness. Hope this helps.

    EDIT: sorry, I tried to post the exact code blocks to remove, but the forum here isn’t letting me embed the code 🙁

Viewing 25 results - 15,551 through 15,575 (of 32,503 total)
Skip to toolbar