Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 14,651 through 14,675 (of 32,519 total)
  • Author
    Search Results
  • Big_Birtha
    Participant

    Great!

    It didn’t work initially, but when I changed .singular to .forum it worked (lucky hunch) as I knew I’d selected forum.php in BBPressWPTweaks to be the ‘forum wrapper’?

    The title (which I stupidly called a header in the last post) is still indented to the right, though, and the body (is that the right word?) of the forum stuff is still too far left. Any idea why they aren’t lining up with the first menu option, like they do on the other pages?

    http://bigbirthas.co.uk/forums/forum/forum/

    (don’t ask me why it’s forums/forum/forum… I haven’t a clue, and since it works, don’t care either!)

    I can live with it as it is (because I’ve tried writing adding some code to your last bit which made zero difference, and it’s already a vast improvement on what I had before!), but ideally I’d like both the title and the body to be in the same place as it is on the other pages (which have sidebar.php as their templates, if that helps).

    Thank you in advance if you can help – you’ve helped loads already!

    #126548
    Stephen Edgar
    Keymaster

    Here are some step by step instructions for what I mentioned above that hopefully will be a little clearer and the link you add would be http://example.com/forums where you replace example.com with your domain name.

    https://codex.wordpress.org/Appearance_Menus_Screen#Custom_Links

    pdhuisman
    Participant

    Hi,

    Glad to hear it worked. Add the code below, that should work.

    `.singular .hentry {
    border-bottom: medium none;
    padding: 0;
    position: relative;
    }`

    Big_Birtha
    Participant

    Hi,

    Thank you pdhuisman, that fixed that problem easily! I’d been messing around with all sorts of complicated code other people had suggested, which weren’t as succesful. Your code works a treat!

    I’d really like to know how to remove some space at the top, though.

    I’d like the formatting of the forum page to match that of the other pages. Currently the header (I think that’s what it’s called) is for some reason indented a bit and too low under the menu bar.

    I’m working with a child theme, but other than that I really don’t know a lot about what I’m doing.

    bigbirthas.co.uk

    dasped
    Participant

    Hi all,

    New install: WordPress 3.5.1 MU joint Network with x7 Mapped domains

    New install: Buddypress 1.6.4 Running all sites on Dynamix WP/BP theme

    New install: BBPress 2.2.4 With Network & Group forums configured.

    Buddypress has been installed ‘without’ the discussion forums tab enabled.

    <code>define( ‘BP_ENABLE_MULTIBLOG’, true );</code> Is located in wp-config.

    Other plugins installed all network enabled:  WP SEO (Yoast), WPMU Domain Mapping, Ultimate coming soon page & Join my multisite.

    Followed all Buddypress and BBPress latest instructions to the letter!

    I can create new forums, and group forums with no problems. All forums and groups are traceable throughout all MU sites with no problems and I have used bp-custom-php with;

    <code><?php

    /* This fixes the MULTIBLOG avatar problem */

    function nfm_bp_avtar_upload_path_correct($path){

    if ( bp_core_is_multisite() ){

    //   $path = ABSPATH . get_blog_option( BP_ROOT_BLOG, ‘upload_path’ );

    $path = ABSPATH . ‘wp-content/uploads/’;

    }

    return $path;

    }

    add_filter(‘bp_core_avatar_upload_path’, ‘nfm_bp_avtar_upload_path_correct’, 1);

     

    function nfm_bp_avatar_upload_url_correct($url){

    if ( bp_core_is_multisite() ){

    $url = get_blog_option( BP_ROOT_BLOG, ‘siteurl’ ) . “/wp-content/uploads”;

    }

    return $url;

    }

    add_filter(‘bp_core_avatar_url’, ‘nfm_bp_avatar_upload_url_correct’, 1);

    ?></code>

    To carry user and group avatars throughout all networks.

    Problem being, once a forum post is created I’ as keymaster cannot Edit, Close, Stick, Merge Trash or Spam “Any” forum posts. The page just refreshes without any actions taking place.

    I have read two other posts relating to this similar/same issue, one from over a year ago, and one from as little as two weeks ago, both without solution, one without any replies.

    Further to the above, I have noted that BBPress is not sending emails out on replies to forum posts with the Notify me of follow-up replies via email tab checked.

    I sincerely hope someone may be able to help shed some light on this issue as it is really going to render my project useless if I can’t manage to resolve it.

    I’m happy to offer a bbpress admin, administrative access to my site if they feel they may be able to assist in some way.

    Here’s hoping .. !

    Regards,

    Sped

     

    #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);`

    #126488
    Sambora5150
    Participant

    Hi, i think this is the code  i have it from this other topic:

    How to display @username in bbPress?

     

    i don´t know where tu place it… can anyone help me?

    user = get_userdata( $user_id );
    if ( !empty( $user->user_nicename ) ) {
        $user_nicename = $user->user_nicename;
    }
    #126487
    jonte_linkan
    Participant

    I’ve spent lots and lots of time trying to make this work in Swedish. Finally I took @dykarna files and used them and then it worked. So my conlcusion is that there was something wrong with my .po & .mo files…

    Those files i downloaded from https://translate.wordpress.org/projects/bbpress/2.2.x but for some reason could not make it work.

    The solution proposals for this problem are scattered in different parts of this forum and I think not properly adressed by bbpress for the new versions as far as I see it.

    https://codex.bbpress.org/bbpress-in-your-language/ is of course explaining the way to do it but does not adress the possible .mo and .po problems, I think. I agree to what @dykarna have said:

    After having read this thread and I sit with the same problem. Then it would probably be appropriate to maybe get to a function so you can thru the admin panel choose which language you wish. Yes, and that all language files included with the package when installing bbPress.

    Or one might even in the admin panel to add a “upload” of language files so they end up where they should and is automatically activated .. yes I’ve seen it in Joomla but there is something quite different but the principle

    However, i’m very pleased that it works for me now. I just need to find the non-translated parts now…

    #126482
    Stephen Edgar
    Keymaster

    Most of what is mentioned above can now be found in the docs

    Codex

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

Viewing 25 results - 14,651 through 14,675 (of 32,519 total)
Skip to toolbar