Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 15,751 through 15,775 (of 32,503 total)
  • Author
    Search Results
  • #115708

    In reply to: bbpress for beginner

    Stephen Edgar
    Keymaster

    Are you looking for some basic bbPress setup info?

    https://codex.bbpress.org/getting-started-with-bbpress/

    #115690

    In reply to: Order Forum

    Stephen Edgar
    Keymaster

    Please see https://codex.bbpress.org/getting-started-with-bbpress/#creating-your-first-forum and bbPress Forums List Widget unordered listing is seemingly random.

    If these do not help could you give us a more detailed description of your forums structure and what order you have them set to with a link to your forums site so we can have a closer look.

    hmmm… couldn’t get it to work with Semisecure Login enabled…

    #115646
    fitninja
    Member

    I think you can. Check this out: https://codex.bbpress.org/shortcodes/

    #115613
    Sama Web
    Member

    https://bbpress.trac.wordpress.org/ticket/1819 gave a solution to the problem that I am pretty sure worked. However, I just want to note that the issue still exists and help anyone that might be having this problem.

    If your replies are being covered up like the picture above, you can fix it by adding the following comment into your bbpress.css file (wp-content/plugins/bbpress/bbp-theme-compat/css/bbpress.css):

    #bbpress-forums div.reply {
    height: auto;
    }

    As with the author of this bug request, I am also using custom-community.

    #115552
    fitninja
    Member

    Oops! Looks like this editor removed the lines since they’re code but if you search on “wp_editor” within the files, you should find the section.

    #115551
    fitninja
    Member

    I am very green but have the same issue, my theme doesn’t use the fancy editor for forum posts and replies. That said, I found that the form-reply.php and the form-topic.php files in my theme’s bbpress folder affects those pages. I backed them up then deleted them from my theme’s bbpress folder and (I assume) the form-reply.php and form-topic.php files from the default bbpress theme took over and I got back the fancy editor.

    Using the default bbpress theme’s form-reply.php file as the example: open the file and look for the section that starts with the following lines:

    if ( !function_exists( ‘wp_editor’ ) ) : ?>

    (note: I had to put a space between the “< " and the "?" in that first line so that the code would show here, so if you want to search with it, remove that space)

    The section ends with:
    (again, I put a space between the “<" and the "?")

    I restored my theme's files and bumbled my way through adding the lines. On my first go at it I ended up with both the fancy and my theme's editors on the same page! LMFAO!! Haven't played with it anymore as yet so you'll have to see what you can do with it.

    jeffvand
    Participant

    I have created a page template to call a custom sidebar for bbpress. It works great on the archive-forum.php page, but when I put the same code on the single-forum.php or single-topic.php page I am getting a “Oh bother! No forums were found here!” message where the sidebar should be.

    My sidebar is called sidebar-bbpressside.php. I am calling it with the following code:

    get_sidebar('bbpressside'); 
    

    Any thoughts how I can get that working on the sub-pages too? Weird.

    Thanks!

    • This topic was modified 13 years, 6 months ago by jeffvand.
    • This topic was modified 13 years, 6 months ago by jeffvand.
    • This topic was modified 13 years, 6 months ago by jeffvand.
    craftcore
    Member

    Hi!

    I have upgraded to the most recent versions of BuddyPress, bbPress, and WordPress.

    I see on loop-single-reply.php that the information displayed after the avatar is called by

    do_action( ‘bbp_theme_after_reply_author_details’ );

    My plan was to use the information in http://codex.bbpress.org/bbp_theme_after_topic_author/ but apply it to the bbp_theme_after_reply_author_details action instead.

    Where does the code provided in the codex example actually need to go? bp-custom.php? Or somewhere else? Is this even the right way to go about adding it?

    Any tips would be great, thanks!

    • This topic was modified 13 years, 6 months ago by craftcore.
    Fuchsy
    Member

    After spending some hours with the same strange behaviour i finally found a solution:

    This error happens when you’r running WP in a multisite-environment, only on the mainsite AND if you added define('NOBLOGREDIRECT', 'http://example.com'); to your wp-config.php

    Adding remove_action( 'template_redirect', 'maybe_redirect_404' ); to your themes functions.php will stop that annoying bug.

    I guess this error happens because maybe_redirect_404() is fired before the profile-pages are build. the network administrator (or sub-sites) will be never redirected by NOBLOGREDIRECT, thats why the bug never happends when a network-admin clicks on a profile-link or when you’r running bbpress on a sub-site in your WP-network.

    More about the NOBLOGREDIRECT-fix (it also helps showing 404-errors): http://frumph.net/2010/06/05/wordpress-3-0-multisite-subdomain-installation-noblogredirect-behavior-fix/

    • This reply was modified 13 years, 6 months ago by Fuchsy.
    #115491
    Aron Prins
    Participant

    shineonscotland,

    Please describe the errors you’re encountering and the community would be able to help you πŸ˜‰
    Answer these questions:
    What WP Version?
    What BB Version?
    Did you do anything before the errors started?
    Have you tried ”going” back and forth in your code/theme to see if changes might be the issue?

    Cheers,
    Aron

    Stephen Edgar
    Keymaster
    #bbpress-forums .status-closed,
    #bbpress-forums .status-closed a {
        color: #ccc;
    }
    

    Pretty easy to get this info from your browser developer tools, press F12 or right click the element and select ‘Inspect Element’

    #115459

    In reply to: CSS Style Issues

    kdude63
    Member

    Thanks!

    #bbpress-forums ul li { background: none; padding-left: 0px; margin-bottom: 0px; }

    I put that below the other line, and it works like a charm.

    #115454

    In reply to: CSS Style Issues

    Lynq
    Participant

    Tried something like this?

    .bbpress .post-entry ul li { background: none; padding-left: 0px; margin-bottom: 0px; }
    
    #115449
    kdude63
    Member

    .post-entry ul li{ background:url(images/ul-dot.png) no-repeat; padding-left:28px; margin-bottom:10px; }

    This one little line of code is making my bbPress forums look like crap.

    It’s difficult to explain, but you can look at my forums here and see how bullets are messing everything up. :/

    The Theme I’m using is leetpress.

    The Entire style.css is here.

    • This topic was modified 13 years, 6 months ago by kdude63.
    • This topic was modified 13 years, 6 months ago by kdude63.
    #115432
    jeffvand
    Participant

    Hey John, thanks for this. I was looking at those, particularly masonjames’ page here: https://codex.bbpress.org/theme-compatibility/

    Do I need to do something to activate it to look for these things? I tried another test by moving the page-front-topics.php from the extras folder to the root of my theme, but no edits I do to that file seem to change the /topics/ page layout (which I’m assuming is that page… but perhaps I am wrong there).

    Is there a list anywhere of what files control what layout’s? That might be helpful to make sure I am at least editing the right pages… πŸ™‚

    Thanks for your help!

    #115428

    Some helpful docs to get you started.

    https://codex.bbpress.org/component/theme/

    iamzippy
    Member

    Congrats on the 2.1 update, it rocks. But I do have one minor needle request to make concerning the exposure of user bio information. Even when there is none.

    The Symptom:

    enter image description here

    “Hey Admin dude, I may be incognito and unremarkable, but why draw attention to me like this?”

    Cause:

    Not checking if the description field in the user profile is empty (user-details.php).

    Twentyten’s native bio box code is wrapped in a conditional that calls a hookable function, get_the_author_meta( ‘description’ ). Twentyten defaults to skipping the bio box completely if the user profile ‘description’ field is empty (on both single posts and author archives).
    And thanks to the hook, the author of a child theme can also prevent display of this stuff based on any criteria they choose — like, author bio info is shared with logged-in users only.

    The bbPress function bbp_get_displayed_user_field() isn’t currently hookable :(, but this whole thing is fixable with 3 or 4 lines of code in a couple of files. It’s not so much a bug as a lapse in coding consistency. Whatever, it’s busting my chops right now. If I didn’t know better, I’d ask for my money back πŸ˜‰

    Could this be put right in the next update? Makes for better consistency with WordPress, imho πŸ™‚

    Meanwhile, in other bbPress core-hacking news…

    ‘I also have a needle about the way author URL construction is similarly unhookable, but that’s for another thread’

    #115415
    vmodha
    Member

    I dont know why but the first line is missing in the above code?

    $querystr = "
    
    #115414
    vmodha
    Member

    Solved!

    SELECT * FROM $wpdb-&gt;posts
    LEFT JOIN $wpdb-&gt;postmeta ON($wpdb-&gt;posts.ID = $wpdb-&gt;postmeta.post_id)
    LEFT JOIN $wpdb-&gt;term_relationships ON($wpdb-&gt;posts.ID = $wpdb-&gt;term_relationships.object_id)
    WHERE $wpdb-&gt;posts.post_type = 'forum'
    AND $wpdb-&gt;posts.post_status = 'publish'
    AND $wpdb-&gt;postmeta.meta_key = '_bbp_topic_count'
    ORDER BY $wpdb-&gt;postmeta.meta_value DESC
    LIMIT 100
    ";
    
    $forum_posts = $wpdb-&gt;get_results($querystr, OBJECT);
    
    
    if ($forum_posts)
    {
        global $post;
    
        foreach ($forum_posts as $post)
        {
            setup_postdata($post);
            bbp_forum_title();
            the_content();
        }
    
    #115403

    Ideally, theme authors should update their themes for the latest version of bbPress. In bbPress 2.1, the $bbp global was replaced with a function call to bbpress(). The snippet of code above is recreating the global that 2.1 eliminated the need for.

    #115402
    jmm7574
    Participant

    Hello …

    I’m using a theme called cheerapp that I purchased from Theme Forest. It has bbpress integrated. When I upgraded to bbpress 2.1, I received a fatal error: β€œCall to undefined function royal_login() in /wp-content/themes/cheerapp/header.php on line 69”

    I found a comment on the theme’s support page from another user saying that he tweaked the functions.php to look like this:

    if ( function_exists( 'bbpress' ) ) {
       $bbp = bbpress();
    

    He mentioned that it had to do with the change from $bbp to bbpress().

    This change got rid of my fatal error, but since then, whenever I try to click on a forum, it gives me a 404 error. The forums are there in my WordPress admin and it’s pointing to the correct URL, but I’m still getting these page not found errors.

    I’m not sure if this is an issue with my theme or an issue with bbPress. I’ve tried to contact the theme creator but he is apparently on some extended vacation or something and isn’t responding to questions, and I’d really like to get my forums up and running again.

    Any suggestions? Is there anything inherently bad with the tweak to the code I posted above? Any idea what could be causing those 404 errors?

    Thanks in advance for any help you may have … Matt

    #115391
    matt_sich
    Member

    Hey! I got it to work! I just made a custom plugin with the BBP_Default class that you had in those public functions and just changed

    $r = bbp_parse_args( $args, $defaults, 'list_forums' );
    

    to

    $r = wp_parse_args( $args, $defaults, 'list_forums' );
    

    to make it work with the wordpress plugin version of bbp.

    You should definitely submit this as a plugin!

    #115387
    Lynq
    Participant

    No you will never need to touch the core code.

    You put these functions inside bbpress-functions.php then you can call these functions inside your template files. like: BBP_Default::custom_bbp_list_forums();

    Inside loop-forum-single.php you change where it is calling the function to the new custom function.

    If you need any more help let me know, good luck!

    #115384
    billa3
    Member

    I’m using bbpress 1.1. I want to get the author profile link in the front page inside the latest topics loop. I’m using topic_author(); but it returns only the author name, not the profile link.
    Following returns the profile link in the single post, but it does not display in the frontpage. post_author_title_link();
    Please help.

Viewing 25 results - 15,751 through 15,775 (of 32,503 total)
Skip to toolbar