Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 15,551 through 15,575 (of 32,581 total)
  • Author
    Search Results
  • #117678
    @mercime
    Moderator

    > Ideally I’d like this an option in the settings but I’m happy to edit
    > the file for now

    Dashboard Settings > Forums — Per Page > Topics 15 Per Page
    Change 15 to the number you want

    #117677
    Paul Whitener Jr.
    Participant

    I’ve found a solution for this. It involves adding support for custom post types in the activity feed. As ‘forum’ is a custom post type you can add this (as well as other) post type’s updates to activity feeds.

    The solution is over in the BuddyPress forums:
    https://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/display-custom-post-types-in-activity-feed/

    The code that I got working is here:
    http://pastebin.com/VJ6pR9az

    Add ‘forum’ to the $media array to see sitewide forum activity. It only appears to work for content added after this is set up.

    The version of the code at the bottom of this page:
    https://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/display-custom-post-types-in-activity-feed/

    Is intriguing to me as it allows you to customize the phrasing of the activity notices, but I was unable to get it to work.

    #117675
    @mercime
    Moderator

    > Yikes, I forgot to list one of the most important features I need. 6)
    > Integrated comments between the forum and the comment field of posts.

    You mean WP Post comments integrated with bbPress forums? I hope that’s not a deal breaker because as far as I know, either someone has still to create a plugin that can do that and release it OR you have to code it OR you have to hire a developer to make the plugin for you.

    re #1 – bbPress is responsive but needs some more tweaking https://bbpress.trac.wordpress.org/ticket/1933

    re #2 – like the left or right column at http://testbp.org/discussion/

    re #3 – hmm, haven’t seen a plugin like that, but it could be done

    re #4 – Nothing is perfect in this world. bbPress works all right out of the box. So unless you have a private community, then just like many forum scripts out there, you’d need some anti-spam plugins or better yet, an active community which tags spams so admin/keymaster or moderators can delete such posts and/or members

    re #5 – yes, easy to use

    #117672
    johni33
    Participant

    I’d like to have some control over the number of recent topics shown in the [bbp-topic-index] shortcode, presently it shows 15 items which is a too many for my liking.

    Where is the limit set and can it be changed without disturbing the normal forum display?

    Ideally I’d like this an option in the settings but I’m happy to edit the file for now.

    John

    #117670
    stoeffel-media
    Participant

    Sooo. is there a way to put it in my theme somehow? Maybe a php code-snippet I could use?
    Thx…

    #117646

    In reply to: Category Help

    williamalake
    Participant

    Sorry, it didn’t print the code. But I removed some code and it worked!

    leanderbraunschweig
    Participant

    Hi there – and sorry upfront for yet another question with regards to bbPress-Themes…

    • I have been doing thorough research in the forums, no answers for me…
    • Versions: WordPress running 3.4.2, bbPress is 2.1.2

    My situation_

    I have setup bbPress to work with my custom theme (OptimizePress) and embedded the [bbp-forum-index]-shortcode into a single page (“forum”). Here I could obviously pick a site-template and therefore the forum is nicely embedded into my site-layout.

    Since I cannot continue using shortcodes & (slug-)pages for dynamically generated topics, I went ahead and followed the customization instructions. I can ensure that the right (template-)files are called upon (inside my /theme-directory) because I played around with content-single-forum.php f.ex. and also checked for the correct CSS-reference.

    I also followed the instructions concerning the functions.php (in /theme):

    add_theme_support( 'bbpress' );
    remove_action( 'bbp_enqueue_scripts', 'bbp_theme_compat_enqueue_css' );
    

    Now I need to wrap the forum-specific template-files with the page-template used by my custom theme. I already tried integrating the bbPress-code into the exisiting page-template with no positive result (no server-response or strange loop-behaviour).

    Either I went down the right road but am weak in skill at modifying PHP-Code or there is a far easier approach I haven’t seen/figured out yet (which again doesn’t compliment me on my skill-level…).

    Anyways, maybe someone can help me out / hint me into the right direction.

    Thanks so much in advance,
    Regards

    Henning

    sb05
    Participant

    WordPress 3.4.2 / bbPress 2.1.2 / site: bit.ly/OVo94w

    Have never used bbPress before so bear with me.

    The main problem is all non-admin/author/etc users (including public) cannot see any of the posts (confirmed with a test account as both a basic and paid user). Anybody that’s not a user essentially can see the posts though. Can provide screenshots or test logins if needed.

    As if that wasn’t bad enough, after a WordPress update, a cropped version of the main logo for the site started showing up on the forum index after ‘Forums by’.

    There also seems to be an issue with public visibility of all the forums on the index (have checked permissions/etc). They all show up to a logged in user but only 2 of them show up for a non-registered/public user and bots indexing the site.

    Have tried a number of things so far that i have found in other topics here: Disabling Akismet (and a number of other plugins to see if there are any conflicts), Deactivating and Reactivating bbPress, deleting and re-creating the forums, and more.

    At this point I am a little lost, and not sure how to fix these and really would like to avoiding having to completely re-install bbPress/Wordpress.

    Thanks for your help in advance.

    #117613
    Colin Tedford
    Participant

    I had similar confusion. After reading this thread and the one Roger linked (and verifying that I was thus able to alter bbPress CSS), I edited https://codex.bbpress.org/theme-compatibility/ to hopefully prevent anyone else getting confused in the same way.

    When you learn something that seems like it should be in the documentation, please add it to the documentation for the rest of us!

    Rasheed Bydousi
    Participant

    Hello, I am using TwentyEleven and bbPress 2.1.2

    TwentyEleven has a width limit 980px and that is OK.

    I want to integrate bbPress but I want it to be 100% full screen width.

    I do not want the whole site to be 100% full screen width.

    I just want the forums to be 100% and the rest of the site to be 980px.

    The problem div id=bbpress-forums is inside div id=page

    page {
    
        margin: 0 auto;
        padding: 0 25px;
        width: 980px;
    }
    

    I don’t know how to separate these divs.

    Any help? Thanks

    #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!

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