Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for '+.+default+.+'

Viewing 25 results - 3,976 through 4,000 (of 6,788 total)
  • Author
    Search Results
  • #126503
    Mitesh Patel
    Participant

    @pjtna and @sambora5150 : Lucky, you guys found me, (or viceversa :))

    I was looking to do exactly that. So here it is.

    The code should go in bbpress template file loop-single-reply.php, below the PHP code line that contains. The file is located in plugins > bbpress > templates > default > bbpress folder.

    `do_action( ‘bbp_theme_before_reply_author_admin_details’ )`
    Th actual code should be,
    `
    $user = get_userdata( bbp_get_reply_author_id() );
    if ( !empty( $user->user_nicename ) ) {
    $user_nicename = $user->user_nicename;
    echo “@”.$user_nicename;
    }
    `

    But you should never edit that file, as the changes will be lost when you upgrade bbpress plugin.

    So, copy the file and put it in your theme within a folder ‘bbpress’ (you will have to create that folder).

    You will also need to add the following line to your theme’s function.php

    add_theme_support(‘bbpress’);

    OR untested but simple method, add all of the following to the function.php of your theme.

    `function append_mention(){
    $user = get_userdata( bbp_get_reply_author_id() );
    if ( !empty( $user->user_nicename ) ) {
    $user_nicename = $user->user_nicename;
    echo “@”.$user_nicename;
    }
    }

    add_action(bbp_theme_before_reply_author_admin_details, append_mention);`

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

    #126443
    Roman
    Participant

    Unfortunately looks like this is impossible in the default version.
    I need this too but I have not found any decision. And seems that the developers do not make any steps in this direction, so that hardly expect it soon. Use built-in Buddypress group forums are now the only solution.
    I will be very happy to know that I was wrong!)

    #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

    #126396
    Kevin M. Schafer
    Participant

    @josefabiosanĀ @judsonlmoore

    Could you, or anyone, please give a more clear solution to this problem when you say you created a new page? I created a site within BP this morning and everything was fine, but I then enabled site-wide forums and maybe, maybe not, is when I started getting the capabilities error on line 453. I had to create a new page for “forums” because I didn’t change the default “forums” slug. I assigned my new page and that part works fine, in fact, the forums work great. I’m just getting this capabilities error when I try to create a site from within BP. Any help would be apprecaited.

    Thanks,

    Kevin

    #126384
    zilveer
    Participant

    @pantheism: you need to go to your file located at:

    http://pantheismnow.org/wp-content/plugins/bbpress/templates/default/css/bbpress.css?ver=2.2.4

    And after that change the line 28:

    background-color:Ā #FBFBFB;

    to whatever you want for the background color.

    Have you worked with CSS before?

    You can change the font family at line 14 located in the file:
    http://pantheismnow.org/wp-content/themes/autumn-almanac/style.css

    You are using “Trebuchet MS” for the moment.

    #126312

    In reply to: Only Visual editor?

    Use a filter instead of hacking bbPress core, that way you don’t lose your work when a new update comes out.

    In this case look at the `bbp_get_the_content()` function in `includes/common/template-tags.php`. You can use `bbp_parse_args()` to filter all the default values šŸ™‚

    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.

    #126307
    aberglas
    Participant

    I ended up getting
    $user = get_userdata( $user_id );
    $user->add_role(ā€œbbp_participantā€);
    to work. (I had been using the wrong method to get the $user.)

    But it is still messy. And @moonoi points out this will be lost whenever the UI is used, due to the set_role bug.

    get_role( ā€˜author’ )->add_cap( ā€˜read_private_topics’ );
    Still does not work, although it should. It would be a better solution for me because like 90% of sites I only actually need one role per user.

    It would be good to fix WP in this regard, and then remove the mess from bbPress. Or in the meantime just make BBPress work like everything else. Mucking about with roles is an orthogonal problem.


    @Moonoi
    I have not played with the Members Plugin, but WP by default does NOT store capabilities against users. It stores Roles agains users, and capabilities against Roles, at least by default.

    Anthony

    moonoi
    Participant

    Ok, so I fixed half of this problem. Turns out that somewhere, someone has made the bbP function that checks if the wp_editor should be used return false, if the user is not “keymaster”.

    Since I have no idea where or why this happens, I’ve overridden it by inserting this in my theme (maybe someone else has the same problem):
    `
    add_filter(‘bbp_use_wp_editor’, ‘ml_allow_wp_editor’, 1000, 2);
    function ml_allow_wp_editor($value, $default) {
    return true;
    }
    `

    The “participant” users still get an error, when they try to upload a file. I hope someone who knows the inner workings of bbP can help.

    Thanks!

    #126267

    In reply to: bbPress 2.2.4 Released

    hatherley
    Participant

    Still, my music forum is still only capable of using BBpressĀ 2.1.2 – The “Automatically assign default role to new, registered users upon visiting the site.” doesn’t seem to work for me. My newly registered users cant use the forum if I update šŸ™

    #126230
    raminkhan
    Participant

    okay guys please visit this site so you would understand what I want to talk about here. what I want to do is to add a column right next to my forum list and before the buddypress default theme sidebar. and I want to include pictures inside that column is there a way to do this? now this might sacrifice some of the width with forum list column but that is fine that’s actually what I need. because I want to add some excitement to the site instead of just a white page with a forum. basically I need web design help please any ideas is welcome.

    my site: http://schoolruled.com/

    #126222
    Darren1981
    Participant

    Hey all,

    How would one go about extending the default BBpress post editor ? I would like my users to be able to add images and links.. the current editor seems very basic (I am using the latest version of BBpress)..

    Even the editor used here on bbpress.org is much better than the default one.

    Thanks in advanced for any assistance on this matter.

    Regards, Darren

    #126210
    Anonymous User 7670885
    Inactive

    Eg: no captha, no wordpress plugin include! I think it work in different mode or with different class… Is there any way to change this? 😐

    #126191
    Lynq
    Participant

    Inside the bbPress plugin is a folder called: \wp-content\plugins\bbpress\templates\default – if you add this into your current theme then you can edit this file to customize it.

    #126158
    Shane Gowland
    Participant

    The ‘participant’ role is one of WordPress’ user roles. bbPress assigns the bbp_participant role, which makes me think there is something else going on here. Are you running any other plugins or custom functions?

    Perhaps you could use something like Multisite User Management to set ‘no role’ as the default across the network. You might need to make some code changes to it though.

    What does your add_user() function look like? It sounds like this could be resolved by wrapping your code in a !is_admin() conditional.

    #126157
    sontru
    Participant

    You misunderstand – I don’t want network users to be added as a participant! (The bug is that bbPress does this even, at installation/activation, the default option says not too!)

    The second bug is a bigger problem here, as there is no work-around except disabling bbPress!

    (I did see your plugin and article before posting, and thought the code had been absorbed into bbPress, but obviously not. If the feature is already present, why write this plugin?)

    sontru
    Participant

    If bbPress is running on a WordPress Multisite subdomain, then it seems to be adding network users who visit a sub site to the sub site’s users as participants – this includes the super-admin!

    Activate bbPress plugin on a subdomain and ths default setting is unchecked:

    `
    Auto role | Automatically assign default role to new, registered users upon visiting the site.
    `

    Visit the sub site as any network user, and they are added as a participant! Only after checking the Auto role option, saving and unchecking it and saving again, does this work as intended.

    The second bug is a major one and can only be stopped by deactivating bbPress!

    I am writing a plugin which creates users and adds them to blogs. I am using the add_user_to_blog* function and each time I call it with bbPress activated, it adds the admin user who is calling the function to ALL blogs as a participant! If I go into a subdomain as a admin user of that site, this admin user is not listed (even in subdomain who have bbPress enabled), but I as this admin can see all sites are listed in my Sites drop down. I manually look into the database and see in the wp_usermeta table that this user has capabilities and level (of 0) entries for all blogs!

    Of course if I deactivate bbPress and call up the add_user_to_blog, everything works as expected, and the user calling up the function does not get added as a participant to ALL the sub sites! I think there is some sort of filter that bbPress is applying that is causing this.

    Could someone look at this and see if they can replicate it and fix it?

    Halo Diehard
    Participant

    Copy all the files to your themes root directory and it should look something like this:

    /wp-content/themes/my-theme/bbpress-functions.php
    /wp-content/themes/my-theme/bbpress
    /wp-content/themes/my-theme/css

    (Where ā€˜my-theme’ is the name of your theme, there is nothing you need to activate.)

    Now I am *really* confused! Because the file I downloaded for this theme is called “default”, and none of those files are in it šŸ˜€

    Halo Diehard
    Participant

    Hello, thank you for creating this theme! I am trying to install it and have copied the “default” file into my theme’s root. Was I supposed to only copy the files inside the default file? I don’t see any difference in my bbPress look.

    Or is there somewhere on my dashboard I have to activate it?

    Thanks šŸ™‚

    Shashank Shekhar
    Participant

    Hello,
    As per bbpress doc I found by default it uses page.php in wordpress theme to render all its contents. But since I have to use different template with a different sidebar and widgets I created forum.php copied from page.php in my wp-theme and luckily it worked. Dont know why its not mentioned in bbpress docs. Also, forums.php working fine, so I am in more doubt which file naming conventions is correct. Is it something missed to mention in bbpress docs? Please let me know.

    Further, for the bbpress user pages, like profile, edit profile, topic started etc. I need to use a custom template file in my theme. In bbpress templates as per documentation, I have checked all user templates inside are just contains the content part only not including header, footer, sidebar etc. And by default it also renders by page.php.

    How can I make a custom user template file other than page.php or forum.php which control all user related contents, so that I can have different template for forum or other pages?

    Suggestion:
    BBpress should have capability to use different template files for different kind of pages, or their should be settings in bbpress admin to select which template to use for what kind of pages.
    This is somewhat, wp-members, woocommerce and other plugins do for better integration in wordpress. These plugins have the ability to create different pages in admin editor having selected particular template to render and putting inside their shortcodes to render various types of contents. And also have the settings in their admin to set different pages/template for different stuff.

    Please let me know if this possible with bbpress 2.2.4 with wp 3.5.1 currently.
    If not possible please let me know how I can achieve the effect, with some sample custom code hints. Currently I dont need help to create bbpress admin side settings dropdown etc., becoz these are the thing I mentioned as suggestions to make bbpress better theme compatible.
    Right now, just need help how to use different template for user pages than other forum pages.


    Thanks
    Shashank

    #126023
    poorgeek
    Participant

    WP: 3.5.1, bbPress: 2.2.4

    From the documentation I can tell that the ‘Auto Role’ applies the default user role to new user accounts. However since ‘Auto Role’ is not turned on by default I’m curious what the default behavior is? Or more importantly, why isn’t ‘Auto Role’ enabled by default?

    Thanks,
    -j

    #125978
    Shashank Shekhar
    Participant

    Thanks for replying Shane! Me replying as per your points below:
    1) Yes I know manipulating sidebar is out of bbpress, but the templating of bbpress pages is within the scope. And so for the same, I already stated that I have used forum.php (just by luck it worked, where I used a different sidebar, and it accepted it instead of page.php). I just needed to know am I did the right template (forum.php, forums.php), since no where its documented to use a custom template for bbpress pages.

    2) I have stated that I have used twenty-twelve with very little customization. BBpress user pages should work as forum pages accomodating in it. Its not possible to easily do it, just one trick that I already explained is to forciby display:none the sidebar, and make primary area wider with !important. But this is not good in the case if I need sidebar on this page, or in the case to remove sidebar rather than just hiding it from visibility.
    This issue is not exactly theme specific as I already posted a link where other users facing it too. The thing is just little incompatibility of bbpress user pages with several themes.

    3) Yes I can use the template, but I didn’t find any template which wrapping up all the user pages like profile, edit-profile, topic started, replies created, etc. There are several files inside bbpress templates, but none are there which include header, footer, sidebar tags in them; they just have the inside-content portion. For templating user pages I need a custom template which it is by default taking page.php and now forum.php which I luckily made. So, let me know which file should I create inside my theme which wrap all user pages and other pages already working with custom forum.php made. I asked for the possibility of using two or templates for bbpress forum and user pages, rather than all falling on page.php, as per bbpress documentation.

    Further surely I asking for the help from bbpress authors and users, and just expecting to fix the things if they are the issue, or let me know the solution if exists which can help other users too.
    Also, I am also acting as a little volunteer, done some research and so stated how I was trying to fix and what ways solved my problem somewhat. And also posted some deficiencies of bbpress which if solved, make it more better. And I will surely post fixes if I get myself.

    So I hope my issues are more clear now, hope I will get better answer from someone.

    Thanks.

    #125968
    unimatrix
    Participant

    This is with bbpress 2.2.4. If I switch to default settings under permalinks, all is well. I want to use Day and Name option, but when I do this I notice that attempting to go to a sub forum under a category would return a file not found error.

    So I looked at the URL’s and I am getting:

    http://mysite.com/site-forums/site-forum/support/bug-reports/

    However when I delete the /support from the URL string and use this:

    http://mysite.com/site-forums/site-forum/bug-reports/

    Everything works and the correct forum is displayed. Is there somewhere I can edit that will take the forum parent topic out of the sub-forum’s URL?

Viewing 25 results - 3,976 through 4,000 (of 6,788 total)
Skip to toolbar