Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 15,501 through 15,525 (of 32,503 total)
  • Author
    Search Results
  • #117589

    I’m working on this now for bbPress 2.2, which I’ll most likely fast-track to address this exact issue. I consider it all a big bug, if not just quickly behavior.

    #117583
    counterfoxx
    Participant

    Hi,

    As I needed to have a customisable register form for BBPress, I changed the registration to the customisable fields I needed and altered the database. This works fine.

    However now when a new user registers and logs in, they cannot view the profile page as a “You do not have sufficient permissions to access this page.”

    When I look in the back end as an admin the user is automatically given the role of “subscriber”. If changed to “Forum Participant” the user is allowed to view the profile page, however I want the role to be set automatically, rather than the admin doing it.

    So I have got to the point where in the registration process I have this code so far to fix this:

    //Where $u is the newly registered user who has been added to the database

    $u->remove_role( ‘subscriber’ );

    $u->add_role( ” );

    The problem is I don’t know the parameter in the add_role function for Forum Participants (or any other way to do this).

    If anyone could tell me this it would be greatly appreciated!

    Thanks in advance

    #117537
    kowalski
    Participant

    thanks! that s really helpfull.
    Can i find somewhere php code also to insert it directly to my template?

    #117534
    David Decker
    Participant

    @Lynq:
    Thanks for the tip!
    Never saw the “Forum Search” here – nice but not what I really want.

    That would mean 6 searches (because we have 6 forums here currently) plus using the additional “Reply Search” if I am in a long (single) topic thread…

    Also, both search boxes are only visible at second or third sight, better would be the occasional search box at the top or so…

    And if we are already on topic: just implement a proper search in bbPress core, that’s what the users want. Every user that asked me for any bbPress 2.x help wanted a proper forum search. Everyone. Period. So there’s really a need for that. (I’d love to drop my search widget plugin ASAP!!!)

    One could find some information, yes, but it’s really ineffective and NOT how it should be as an native implementation.

    A proper full text search over the complete forum – and an extra search over the Codex here – or both combined would be of greatest usefulness for all users here I guess!

    If it’s not possible just implement a proper Google Custom Search (already on WordPress.org…) — maybe I am doing just that for myself: setting up another Google Custom Search because the current situation does just not satisfy me (and don’t fits to this community here IMHO).

    Thanks, Dave 🙂

    #117520

    In reply to: bbPress Language Files

    Stephen Edgar
    Keymaster

    Instructions for Installing bbPress in your language are now on the codex.

    #117519
    Stephen Edgar
    Keymaster

    Instructions for Installing bbPress in your language are now on the codex.

    #117499
    #117487
    synergywp1
    Member

    Hi, I can help you with this. I am doing the same and needed to figure it out as well. Hopefully they’ll add this in updated versions… Seems like a basic feature that can add awesome visual option via CSS. Anyways, I will assume you know a bit of CSS. For the PHP, I recommend that you create a folder “bbpress” inside your WP theme folder, i.e. wp-content/themes/yourtheme/bbpress Then go to /plugins/bbpress/bbp-theme-compat/bbpress and copy/paste the file “loop-single-reply.php” to your newly created bbpress folder from above. What this does is now make bbPress use that file instead of the default one. Now you can make changes to it and not worry about updates to bbPress overwriting your changes. On line ~ 30, you’ll see an opening DIV with id=”post-*some php”…

    On the next line, enter this:

    $reply_id = bbp_get_reply_id( $reply_id );
    $abc_role = bbp_get_user_display_role( bbp_get_reply_author_id( $reply_id ) );

    Then the next line that’s already there should be:

    div class="bbp-reply-author"

    Turn it into this:

    div class="bbp-reply-author ?php echo $abc_role ?>"

    Add the bracket < before the first ?php in that above statment… I dont know why its not letting me show it.

    And there you have it. The CSS class name will now contain the verbatim user role… This means that "Key Master" will actually be in the class.. No problem, just use:

    div.Key { color: #abc }

    to target the admin. Sure, “Master” will be in there but, but it’ll be taken as 2 different classes, “Key” and “Master”. With additional pvp, you could turn it into “keymaster” but its not necessary for 99.9% of applications and would just run more PHP. I’m literally doing this right now, so i havent checked other template files, but it’s the same thing.. So for instance, if you want to change the css in the index for only admins, to have lets say a special color link, find the template file that displays the index, add that same snippet in, and it will work the same. have fun. 🙂

    Melindrea
    Participant

    …Bah, my code was swallowed.

    Change <div id=”container”> to <div id=”primary”> in the forum pages.

    #117474
    Melindrea
    Participant

    My suggestion? Find a suiting CSS file in the theme, add

    .bbp-forum-title { font-weight: bold; }

    at the bottom, and call it a day.

    #117473
    fagiano1973
    Participant

    Hy. I DO NOT want to use child theme! i hate it.

    I need to do a little modify to the topic title. Example show it on “bold” style instead of “not bold” style. Yeah i know… when update version i need to repet the css modify or lost it so is better to use child theme… NO THANKS.

    SO… on suorce code of my bbpress (plugin) page i found “<a class="bbp-forum-title" ……"
    GOOD bbp-forum-title is "my man" … the question is WHERE (DEVIL) I FOUN IT?????? IN which
    (cursed) CSS file???

    Thank you.

    PS. BuddyPress 1.6.1 + WordPress 3.4.1 + bbpress (plugin) 2.1.2

    #117468
    Pedro Maia
    Participant

    I’m looking for this too. I found a shortcode that do this, but I’m not sure if it’s the same of this forum. The shortcode is: [bbp-topic-index]

    #117465
    alihs707
    Participant

    Hi All,
    It seems Nofollow is not working.
    I used

    add_filter('post_text', 'bb_rel_nofollow');
    add_filter('pre_post', 'bb_rel_nofollow');
    

    But that didnot work even.
    What shall be done?

    #117457
    Tanya
    Participant

    Sorry, the code didn’t come up quite properly. Use this instead:

    http://pastebin.com/XA2BPBhx

    #117454
    imjscn
    Participant

    I’ve done the following steps:

    1. Checked Allow BuddyPress Groups to have their own forums  
    2. Created a Group Forum
    3. Selected Group Forum  is the parent for all group forums
    4. In Buddypress,unchecked Discussion Forums component.
    5. In Group / Admim / Forum, created a new forum.
    

    Upon completion of creating a new forum in group, I got redirect to Group Forum directory under bbpress page instead of group Forum tab. Under the group Forum tab, it shows This group does not currently have any forums.
    I need some help to get things set up right. Thanks!

    #117452
    Starejosel
    Participant
    #117451
    jezza101
    Participant

    I looked into this myself, but I couldn’t find enough documentation to get started. I’m the kind of dev who can get stuff to work if given enough time and decent code examples. Hopefully as more bbpress 2.0 plugins are released there will be more to learn from.

    I would agree that this is such a core feature as users surely use this to monitor activity. There is a shortcode which lists out new posts, you can see it on my site here. A list of new posts does go some of the way to help users monitor activity. There is also the RSS feed which is what I use to monitor all posts that are made.

    I wouldn’t want to second guess JJJ but from the gist of his posts I get that he is very pro 3rd party involvement. In a number of cases his response has been to say if you want a feature enough then why not get to work on it and add it (obviously easier said than done as most users don’t have the skills!). Does the fact its commercial make a difference? I don’t know, I shouldn’t think so. Commercial WordPress plugins have been around for a while and are widely used.

    #117449
    counterfoxx
    Participant

    Hi,

    I have installed BBPress, in my current registration page I have the code [bbp-register] which works and lets a user register. However the only fields here are to choose a username and enter email, where an password is automatically sent. What I need is to have an password field which the user enters, rather than having a generated one. I would also like other custom fields such as gender and age.

    The form is located in form-user-register.php

    Its fine to add the extra input boxes here and display, but I don’t know how these would get stored and saved.

    Any help on how to make the custom fields save and which files to look at would be extremely helpful.

    Thanks in advance!

    #117439
    imjscn
    Participant

    Apology if I am spoiling your thread, but I do have a question about bbpress post parent, maybe our question is related to the same answer, so, let me go on… In WP, if we want to find a post parent, we do
    $post=get_post($id)
    $parent_id= $post->post_parent
    In bbpress, there is a fundtion to do the job

    function bbp_get_reply_topic_id( $reply_id = 0 ) {
    
        // Assume there is no topic id
        $topic_id = 0;
    
        // Check that reply_id is valid
        if ( $reply_id = bbp_get_reply_id( $reply_id ) )
    
            // Get topic_id from reply
            if ( $topic_id = get_post_meta( $reply_id, '_bbp_topic_id', true ) )
    
                // Validate the topic_id
                $topic_id = bbp_get_topic_id( $topic_id );
    
        return apply_filters( 'bbp_get_reply_topic_id', (int) $topic_id, $reply_id );
    }
     My question is-- why bbpress does not use WP's post\_parent, instead, it saves parent\_id in child's meta, make no use of native WP post table? The parent may got lost somewhere in the middle of the additional out of system steps.
    
    #117418

    Hi! In the loop-single-forum.php, there is this part of code:
    do_action( ‘bbp_theme_before_forum_description’ );

    do_action( 'bbp_theme_after_forum_description' );
     And I need to see the description of the forum below it, but there is nothing. I definitely have written the Text, but the_content(); just doesn't work. I also had to do a very hard coded tweak, to show the description of the subforums and it worked, but It doesn't work for normal forums..
    

    €: I editet two times and the “code-sample” function doesnt work. so I just inserted in manually.
    €2: I cant believe it! This is really the last time I use bbpress, even this forum doesn’t work properly. It allways deletes my html..

    • This topic was modified 13 years, 5 months ago by thefairystamp.
    • This topic was modified 13 years, 5 months ago by thefairystamp.
    • This topic was modified 13 years, 5 months ago by thefairystamp.
    • This topic was modified 13 years, 5 months ago by thefairystamp.
    #117414
    kowalski
    Participant

    I have installed bbpress plugin in my wordpress, but there is not latest topcis on my forums front page like on your http://bbpress.org/forums/

    Anyone could give me a latest post loop code, so i can insert it manualy to my template?
    many thanks!

    #117409
    Roger Coathup
    Participant

    I had the same issue… see: https://bbpress.org/forums/topic/how-to-override-bbpress-css/

    I walked through the bbPress code, and discovered where it looked for its css. Amazed it wasn’t documented!

    #117408
    nawilkes
    Member

    WP 3.4.1
    bbPress 2.1.2
    http://www.americancanyoneers.org/forum/index.php

    I am a new administrator for this site and I’m getting familiar with bbPress. Trying to figure out how to create link from the forum page back to the main homepage. I would like to:

    1. Make the upper-right logo link back to the main homepage.
    2. Add a homepage link to the menu bar.

    Options seem fairly limited in bbPress Settings regarding these things, so I’m guessing the solution is via code?

    Any help is appreciated. Thanks!

    Nick

    #117402
    Tanya
    Participant

    In your functions.php file add this code

    add_action('login_redirect', 'redirect_login', 10, 3);
    function redirect_login($redirect_to, $url, $user) {
    if($user-&gt;errors['empty_password']){
    wp_redirect(get_bloginfo('url').'/log-in-error/');
    }
    else if($user-&gt;errors['empty_username']){
    wp_redirect(get_bloginfo('url').'/log-in-error/');
    }
    else if($user-&gt;errors['invalid_username']){
    wp_redirect(get_bloginfo('url').'/log-in-error/');
    }
    else if($user-&gt;errors['incorrect_password']){
    wp_redirect(get_bloginfo('url').'/log-in-error/');
    }
    else{
    wp_redirect(get_bloginfo('url').'/forums/');
    }
    exit;
    }

    I created a page in wordpress called “log in error”, and chose that as the page to be redirected to if you do an incorrect login. In that page I wrote “Your username or password was incorrect. Please try again.” And then I chose bbPress – User Log In as the Template.

    #117370

    Topic: User navigation?

    in forum Installation
    myballard
    Participant

    Hi there, I’m a longtime admin of several popular neighborhood forums on bbPress, and I just upgraded one of the forums to 2.1. It’s missing user navigation like login, register, logout, create new topic, favorites, subscriptions, etc., and I can’t find how to add those links manually (which I can, just don’t know what code to use). You can see this in action here: http://www.magnoliavoice.com/forums Please help?

    • This topic was modified 13 years, 5 months ago by myballard.
Viewing 25 results - 15,501 through 15,525 (of 32,503 total)
Skip to toolbar