Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 14,701 through 14,725 (of 32,581 total)
  • Author
    Search Results
  • #126481
    jimabshire
    Participant

    Ironically, the use I plan to make for bbPress is to create a model for “Living Documentation” as described in the book “Specification by Example” for various types of software projects.

    I am new to the Open Software model after having spent 30 odd years working within the “private” model. I see clear sustainability problems if users behave like typical users: demanding more and more from people who are being paid a fraction they are in the private model. Something has got to give. The proliferation of modules reflects current design methods of keeping each one fairly small/simple. The problem with that approach is that it indeed requires key overview docs including use of things like stepwise refinement and UML docs in order to obtain a cohesive grasp of the whole. As in baseball, “you can’t tell the players without a program!”

    wordpress at least has several “apparently good” books to explain the development paradigm. bbPress users are not so lucky.

    It is a very big job to create this very useful software and we should be more appreciative to those who have accepted this challenge – consider how long it would take any of us to write the volume of php code or even do the design work!

    I think Mr. Jacoby is correct – if everyone who ran down a problem bothered to leave a little “map” or narrative of his journey we might get a better picture of how this thing works. The only problem I see with that is too many requirements: 1) user has to be able to ferret out the problem; 2) user has to be correct; 3) user has to be able to write carefully. There may be others requirements as well.

    Ideally, we need better docs that reduce the abstractions presented to us in the form of raw code. It seems to me that the community needs to decide that bug fixes and new features should wait until the overall design can be made clear to nearly all of us.

    #126479

    In reply to: Forum Categories

    Stephen Edgar
    Keymaster

    For the first part of your question this is what bbPress does for ‘forum’ parents and should work fine, maybe some more tips from here will help.

    The second part regarding ‘section titles’ this is planned for a future release but for now you can use @lynq’s solution here.

    Lastly you would have to customize the \templates\default\bbpress\form-user-register.php template: https://codex.bbpress.org/theme-compatibility/

    #126474
    Stephen Edgar
    Keymaster

    Its all good, you will be able to update to 2.3 fine.

    Here’s some docs on how to get up and running with modified templates:
    https://codex.bbpress.org/theme-compatibility/

    And of course you could just start using the 2.3 beta now

    bbPress 2.3 Beta 2

    #126461
    golfer300
    Participant

    A few quick questions

    How can I create a forum that would be the main forum and have other forums be like sub-forums. I have tried using the parent forum feature but it does not do quite what I am looking for. For example, I would want it to look like this.

    Google
    -Android
    -Google Plus
    -Chrome

    Also, is it possible to create a title for a list of forums. For example,

    Main Forums
    Forum Title 1
    Forum Title 2
    Forum Title 3

    Other Forums
    Forum Title 4
    Forum Title 5

    Lastly, is it possible to change the required fields that are necessary for forum registration. (I am using the short code for registration)

    Any help is much appreciated.

    #126436
    Tanya
    Participant

    I am trying to add the username underneath a person’s avatar, like in these forums (circled in the pic above). I know where to add the code in loop-single-reply.php and I have tried looking in the beta release of bbPress 2.3 in case it was included there, but I am not having any luck.

    Would anyone know what code I would need to insert to bring up the username?

    #126433
    Sambora5150
    Participant

    Hello Foks

    @goodintoday or somebody else can tell me exactly the code and where to apply it to show the  @username with the creator of the post

    #126415
    nirzol
    Participant

    Thx Garindan 😀 ! I do it like that for the moment. But is not good to modify core :/

    Hope a nice solution will be find to that….

    or a solution for shortcode work with the default page forums ?

    thx

    nirzol
    Participant

    I re up this topic because the problem still here.
    If someone get a solution without modify the core ?

    Thx a lot

    #126399
    golfer300
    Participant

    Is it possible to change the required information in the bbPress short code for registration.
    Also, is it possible to make the registration for my site and the forum one and the same.
    Any help is much appreciated.

    #126398
    Kevin M. Schafer
    Participant

    UPDATE

    I found a snippet of code that suppresses the “capabilities.php” warning of line 453.

    I pasted the code into the wp-config file, just above the line that reads “/* That’s all, stop editing! Happy blogging */”

    I don’t know if this is harmful or not, but my research suggests that this issue with capabilities is only a warning, and that the host server may be set a little too sensitive for php error reporting. If I’m going about this all wrong, please, someone tell me so that I can go at this from a better angle. In the mean time, at least I can continue building and configuring my site without the warning presenting itself.

    Here’s the code that I added to the wp-config file:

    ini_set( 'display_errors', 'Off' );
    ini_set( 'error_reporting', E_NONE );
    #126386
    Pantheism
    Participant

    @ Zilveer,
    Thanks for this info. Very concise and direct. I am actually ok with the type of font (Trebuchet MS), but the coloring is bad for me.

    Can I change the font colors for just the BBpress forum under the bbpress.css? Or will I need to edit some code in the style.css?

    Thanks for the fast response.

    Love this community!

    #126381

    In reply to: SideBar Removal

    Pantheism
    Participant

    Ugg, tried a few CSS codes, but no luck so far. Have not done website design in about 15 years. LOL.

    I saw some info about editing the PHP files in BBpress to remove reference to the sidebar. Any idea what files I need to adjust to do it that way?

    #126378
    Pantheism
    Participant

    Can anyone advise me on the CSS I would use to remove the sidebars from my BBpress forum. It is pulling the sidebars from my theme, and I would like them removed.

    Here is my forum URL…
    http://pantheismnow.org/forums/

    I wuold also like to make the width 100% too. Any chance I can get that code too?

    Thanks everyone.

    #126372
    bruceleebee
    Participant

    Did you end up finding a solution to this? I’m trying to do the exact same thing.

    I have found a few threads from 4 or 5 years ago, and supposedly someone wrote a plugin for an old version of bbpress that can do this. But BBpress has gone through some serious changes (for the best) and now operates as a plugin for wordpress not a stand alone platform – so they no longer work.

    Does anyone know of a plugin/rewrite rules/functions.php code we can use to make this a reality?

    #126367

    In reply to: 404’s for non-admins

    Debra
    Participant

    Just chiming in here for the record. My knowledge of code and plugins is novice at best and I’m afraid I will not be of any help.

    I received these 404 errors with a fresh install of bbPress a little over a week ago. My membership plugin, Digital Access Pass, kept tripping it up. The DAP support team did some testing and could not come up with a solution for me. They suggested I use the fix from https://bbpress.org/forums/topic/fix-404-issue-for-bbpress-2-2-x/ until something else could be figured out.

    #126362
    Stephen Edgar
    Keymaster

    Give the bbPress 2.3 Beta a shot, everything you mention is fixed except user passwords.

    bbPress 2.3 Beta 2

    The only outstanding issue is imported vBulletin users have to manually reset their password.

    After the import you have to run the ‘Repair Tools’ to recount the topics and replies otherwise they will not be visible in the front-end.

    https://codex.bbpress.org/repair-forums/

    #126317
    aberglas
    Participant

    I’m not saying there is anything wrong with the members plugin, I just have not needed it. Like you I prefer code as I need to support multiple sites. And looking in the actual DB tends to provide a more reliable view of what is really going on.

    The original post of this topic could do with some clarification though, and then put up as proper bbPress doc.

    Anthony

    #126316
    moonoi
    Participant

    @aberglas Thanks for clearing up about WP not storing caps directly on users. I must have misread that somewhere.

    Anyway, you say that you haven’t used the Members plugin. Personally I try to avoid using the UI for any configuration (prefer to modify things with code). But the Members plugin is invaluable, and it really should be part of core. – Along with that fix to allow saving multiple roles. 🙂

    Patrick

    It’s a bit more complicated than a filter toggle I believe.

    Check out https://codex.wordpress.org/Roles_and_Capabilities

    By default only Author roles and above have the ability to upload files, and that’s for security reasons so that’s probably a good thing.

    You can tweak your roles to change the ability to upload files, but at the moment it’s a little messy. Another issue is if you want to let all your users upload files.

    If you are just looking for images there is a bbPress attachment plugin in the .org repo that can handle that without having to mess with all the user stuff.

    #126302
    xmasons
    Participant

    So here’s my solution.

    1.) Create a page template.

    2.) Using the power of current_user_can(), we may utilize the bbPress’s user roles.

    3.) Insert the Topic Index shortcode with the do_shortcode() function inside the user role wrapper.

    #126296

    In reply to: Only Visual editor?

    Debra
    Participant

    I’m no expert, so take this for what it’s worth and research further …
    Here’s the code I found that seems to work. Have not fully tested. Would appreciate any feedback from someone with more experience.

    In form-reply.php
    Find bbp_the_content( array( ‘context’ => ‘reply’ … and change line to
    ` ‘reply’, ‘quicktags’ => false ) ); ?>`

    In form-topic.php
    Find bbp_the_content( array( ‘context’ => ‘topic’ … and change line to
    ` ‘topic’, ‘quicktags’ => false ) ); ?>`

    moonoi
    Participant

    I have a few questions that I was hoping one of the bbPress developers would be able to give me a quick hint about offhand.

    I’m getting results that leave me completely puzzled, as I try to hook into or directly modify the `bbp_get_caps_for_role()` function in `/core/capabilities.php`.

    The `bbp_get_caps_for_role` filter
    My purpose is to try and return an array with true on all caps for any role, because I need to find out why only the keymaster gets to upload images.

    My first attempt is just to use the `’bbp_get_caps_for_role’` filter provided by the function. This is where the mysterious stuff starts…

    I can add the filter, and when I check the `$wp_filters` global afterwards, I can verify that the filter has been added correctly. However it doesn’t fire. When I check the `$wp_filters` array inside the `bbp_get_caps_for_role()` function, just before the hook is applied, my filter has vanished. So somewhere there must be a function removing my filter. But where, and why!?

    Testing by returning the `$caps` array with all caps set to `true`
    So giving up on the filter for now, I simply try to hardcode the all-true `$caps` array directly into the `bbp_get_caps_for_role()` function and returns this, regardless of role. What then happens is even weirder. – Now my user can not even post a reply in the forum.

    How can setting all caps to true end up giving my user less rights in the forum?!

    Thanks in advance guys!

    For reference, here is the bottom part of my hacked `bbp_get_caps_for_role()` function:
    `
    …
    ‘assign_topic_tags’ => true,
    );

    break;
    }

    $caps = array(

    // Keymasters only
    //’keep_gate’ => true,

    // Primary caps
    ‘spectate’ => true,
    ‘participate’ => true,
    ‘moderate’ => true,
    ‘throttle’ => true,
    ‘view_trash’ => true,

    // Forum caps
    ‘publish_forums’ => true,
    ‘edit_forums’ => true,
    ‘edit_others_forums’ => true,
    ‘delete_forums’ => true,
    ‘delete_others_forums’ => true,
    ‘read_private_forums’ => true,
    ‘read_hidden_forums’ => true,

    // Topic caps
    ‘publish_topics’ => true,
    ‘edit_topics’ => true,
    ‘edit_others_topics’ => true,
    ‘delete_topics’ => true,
    ‘delete_others_topics’ => true,
    ‘read_private_topics’ => true,

    // Reply caps
    ‘publish_replies’ => true,
    ‘edit_replies’ => true,
    ‘edit_others_replies’ => true,
    ‘delete_replies’ => true,
    ‘delete_others_replies’ => true,
    ‘read_private_replies’ => true,

    // Topic tag caps
    ‘manage_topic_tags’ => true,
    ‘edit_topic_tags’ => true,
    ‘delete_topic_tags’ => true,
    ‘assign_topic_tags’ => true
    );

    return $caps;
    //return apply_filters( ‘bbp_get_caps_for_role’, $caps, $role );
    }
    `

    #126283
    undyingearth
    Participant

    Ugh… the formatting went a bit crazy and deleted some of my response.

    Ignore the above. Basically, I wanted to say that I could achieve the effect I wanted by deleting some code from the core plugin, but I had problems when trying to do the same thing in my child theme functions.php.

    Here is the code I added to my functions.php

    http://pastebin.com/PNty9aPq

    It almost works – but it returns a freshness value that is wrong by several years (!)

    Any ideas?

    J.S.

    florianbottermann
    Participant

    I added a code line to functions.php. Now, the name of the commentator is linked. But the is only a forwarding to the blog entry, not to the bbPress profile page of the commentator…
    commentator name

    florianbottermann
    Participant

    Here comes the functions.php code:
    functions.php

    And here comes the bbPress code:
    bbPress

Viewing 25 results - 14,701 through 14,725 (of 32,581 total)
Skip to toolbar