Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 10,926 through 10,950 (of 32,511 total)
  • Author
    Search Results
  • #150643
    Stephen Edgar
    Keymaster

    Have you tried bbPress with your preferred theme?

    Give it a try, bbPress will work with most themes “out of the box”.

    If you want to start customizing your theme check out the docs

    Codex

    #150641
    Stephen Edgar
    Keymaster

    Hey @microdot, glad you found us after I closed down your other posts 😉

    Check this out https://codex.bbpress.org/moderation-and-blacklisting/

    Also what setting do you have in WordPress discussion settings for:

    Before a comment appears Before a comment appears Comment must be manually approved

    I think that is most likely the culprit, what happens if you uncheck that?

    #150638
    Stephen Edgar
    Keymaster

    It looks like you’ve now added BuddyPress so this is null and void 😉

    If you decide not to use BuddyPress let me know and I’ll take another look.

    Typically if you make a copy of page.php and rename it bbpress.php and it doesn’t work is because the themes page.php has some funky code, usually linking to custom templates for custom post types so is usually theme specific and alternatives can be to tyr the themes archive.php and or post the theme name here and we can have a look.

    #150635

    In reply to: phpBB Import Error

    Stephen Edgar
    Keymaster

    After you click stop and then start it should just continue on from where it left off.

    The issue will be though is that any topics in that range of (13601 – 13700) that were not imported before the conversion stopped will not be imported.

    These types of faults are typically due to some encoding issue in that post. Sometimes this is from an encoding conversion to UTF8 that was done at some point. Whatever it is, it’s nearly impossible to detect without setting a time limit on queries and bisecting the difference until we can narrow down the offending entry, and skip it. Because queries could naturally take a long time, and because it results in missed data, I’m not comfortable with this approach.

    The workaround is to find and delete the offending reply which is time consuming and tricky but the only way at this stage.

    Here’s how I do debug this and find the offending topics/replies:

    • Once the import hangs, click stop, take a note of where it was up to, e.g. Converting 11,299 – 11,300
    • Click start again and the import will continue from where it left off
    • If it hangs again, take note of where it was up to again
    • Once finished make a fresh copy of the source database
    • Now drop all the rows in the database that are not in the range of rows that failed during import
    • Perform a fresh import using this database with the “Rows Limit” setting set to 1
    • The import should hang on the offending topic/reply
    • Again, take note of the topic/reply it was up to
    • Click stop, click start again to continue on
    • Once you have your list of offenders and the import has finished delete these rows from this database and test again to make sure it completes without hanging
    • Now back in your full database (presumably a copy of the original) delete these same rows from the database and run the import again
    #150633

    In reply to: Topics Page template

    Stephen Edgar
    Keymaster

    You would want to remove the topic form from content-single-forum.php

    See this to get going on how to edit bbPress templates so you don’t lose your changes when bbPress is updated https://codex.bbpress.org/theme-compatibility/

    #150627
    Stephen Edgar
    Keymaster

    A standard bbPress User Profile Edit link should look something like this:

    http://example.com/forums/users/username/edit/

    Similar here on this site your edit profile link should be:
    https://bbpress.org/forums/profile/azafuel/edit/

    Users ‘can’ edit their profile in WordPress backend with the /wp-admin and that is because we are a WordPress plugin that uses WordPress’ users for bbPress so both are valid URL’s for user profiles.

    #150625
    Stephen Edgar
    Keymaster

    I added a couple of other plugins that do this a couple of days ago to the following page:

    Check them out and let us know if one (or more) do what you are after

    Feature Plugins Tracking

    #150623
    Bard
    Participant

    lot of people seeking this, for the use of their clients. we may have this by using php code, but unfamiliar for our clients. Especially when using something “visual composer”!

    #150622
    Stephen Edgar
    Keymaster

    Yeah, something funky going on at the moment, there will be a new login widget on the site in the next day or two that should stop/alleviate the weird redirects.

    For now if you use this URL if you are not signed in you may still get a funky redirect but re-opening the URL again should take you to where you need to be 🙂

    https://codex.bbpress.org/wp-admin/edit.php?post_type=page

    Codex Standards & Guidelines

    #150619
    Stephen Edgar
    Keymaster

    I have a customised version of the importer for vBulletin 5.

    There are a couple of tweaks that are needed though to bring it in-line with the current importer updates. The issue is with the way our current import script is setup we need to heavily tweak not just the import script but also our main converter.php file to handle the complex SQL joins need.

    If your familiar with SVN you can checkout the 2440-converter.php.2.diff​ patch in the following ticket along with vBulletin5.php, if not let me know and I’ll upload full files of these somewhere.

    https://bbpress.trac.wordpress.org/ticket/2440

    #150617
    Robin W
    Moderator

    @dreamwork

    I have a plugin that does xx topics

    bbp additional shortcodes


    if that is what you are after

    #150616
    giuseppe23
    Participant

    Thats OK I found the solution..
    Changed the #bbpress-forums a with the code below

    #bbpress-forums .bbp-body a{
    	color: #000;
    }
    #bbpress-forums .bbp-body {
    	color: #000;
    }

    It worked fine..

    #150615
    divyesh25
    Participant

    Hi All,

    I want list only forum category and its content(description) in right sidebar. i do below code to display category and its comtent but when i go to sub-forum page or topic page its nothing to display. i also want to display forum category and its content in sidebar of subforum and topic page.

    thanks

    <?php if (bbp_is_forum_category()) : ?>
    <?php if ( bbp_has_forums() ) : ?>
    <?php while ( bbp_forums() ) : bbp_the_forum(); ?>
    <div class=”lm_link_container lm_has_sub”>
    <div class=”lm_link”>
    <div style=”float: left” class=”icon lm_arrow”></div>
    <?php do_action( ‘bbp_theme_before_forum_title’ ); ?>
    <div class=”language-title”><?php bbp_forum_title(); ?></div>
    <?php do_action( ‘bbp_theme_after_forum_title’ ); ?>
    <div class=”clearboth”></div>
    </div>
    <div class=”language-subcategory”>
    <?php do_action( ‘bbp_theme_before_forum_description’ ); ?>
    <div class=”language-subcategory”>“><?php bbp_forum_content(); ?></div>
    <?php do_action( ‘bbp_theme_after_forum_description’ ); ?>
    </div>
    </div>
    <?php endwhile; ?>
    <?php else : ?>
    <?php bbp_get_template_part( ‘feedback’, ‘no-forums’ ); ?>
    <?php endif; ?>
    <?php endif; ?>

    #150613
    Bard
    Participant

    Is there a way doing this by using shortcode?

    #150612
    giuseppe23
    Participant

    Peter thankyou but I tried like this and I just did again with yours now but didn’t change anything
    I did this one wich worked fine:

    .bbp-breadcrumb {
    	color: #fff;
    }

    Code above changed the color to white but codes below didnt change anything.

    .bbp-breadcrumb p a {color: #fff;}
    .bbp-breadcrumb-home {color: #fff;}
    .bbp-breadcrumb-current {color: #fff;}

    I have a black background of my wordpress site and site color is white for blog but for bbpress I changed only the header and footer background colors and used the code below

    #bbpress-forums a{
    	color: #000;
    }
    #bbpress-forums {
    	color: #000;
    }

    So I did this because bbp-topic has white background and in this case the links became #000 as site background but the breadcrumbs are on the top where the background is black too and I need to change the breadcrumb link color to white …

    #150605
    giuseppe23
    Participant

    Hi , Is there any way to chnge the breadcumb link color?
    I tried

    .bbp-breadcrumb a{
    	color: #fff;
    }

    The code above does not change the color.

    #150603
    ttmt
    Participant

    Hi all

    Is there a template in the bbpress theme that appears on every page

    I’m using the following code in loop-topics.php to show a link to the users profile page

    
    <a class="bbp-profile-button" href="<?php bbp_user_profile_url( bbp_get_current_user_id() ); ?>">Profile Settings</a>
    

    This works but only appears on the topics page.

    I would like the link to be on every page.

    #150597
    Robkk
    Moderator

    really any plugin that has an included insertable template tag will work.

    im going to use jetpack sharing as an example .

    first i take every instance of each default area jetpack sharing shows.(also jetpack likes)

    function jptweak_remove_share() {
        remove_filter( 'the_content', 'sharing_display',19 );
        remove_filter( 'the_excerpt', 'sharing_display',19 );
        if ( class_exists( 'Jetpack_Likes' ) ) {
            remove_filter( 'the_content', array( Jetpack_Likes::init(), 'post_likes' ), 30, 1 );
        }
    }
     
    add_action( 'loop_start', 'jptweak_remove_share' );

    and then i could just display it anywhere on the reply. in loop-single-reply.php

    with this

    if ( function_exists( 'sharing_display' ) ) {
        sharing_display( '', true );
    }

    this code also removes it from content like posts and pages. but you can just manually insert it into your wordpress templates to with the above code.

    #150596

    In reply to: Help with styling css

    Robkk
    Moderator

    bumping too soon ?

    at least you did not create an entirely new topic

    bbpress has that tabled layout by default , its your child theme

    Stargazer Colloquium added that kind of layout to your theme.

    what you can do is find each changed template you dont want and just replace it with some of the original bbpress template code by copying it there.

    and also check on the bbpress.css in your child theme

    #150595
    ALBCODERS
    Participant

    I read many articles here but couldn’t try any solution.
    I’m triùying to change the background color of bbpress header and footer and I found this article here
    I’m using propanel and a custom-style.php iùwith the code below I can change the color but not background..

    #bbpress-forums li.bbp-header,
    #bbpress-forums li.bbp-footer {
    background: <?php echo $bbpbg; ?>;
    color: <?php echo $bdcolor; ?>;
    }

    Do you have any idea I used also this one but I didnt get success.

    #bbpress-forums li.bbp-header, #bbpress-forums li.bbp-footer {
    background: none repeat scroll 0% 0% <?php echo $bbpbg; ?>;
    color: fff;
    }
    Halo Diehard
    Participant

    So far, so good! But is it supposed to show the label if the user hasn’t put anything in the field?

    Also, something maybe to note in the description (if you haven’t already): In the Profile Fields, the Base (Primary) group has a primary, required label and field that it allows you to edit and rename, but it appears that is always the user’s “nick name”. There was confusion when I was testing because I’d originally put that one as “Gamertag” when testing, and all of a sudden everyone was showing their username the same as their gamertag. At first I thought we still had a problem, but then I figured it out.

    It looks great!

    Now if you’re feeling really ambitious you could include the option to add the @mention automatically, so it pulls it from the users’ profile. I certainly don’t think any but a teensy fraction of my forum users will make the effort to set it themselves, but at least I’ve got mine now with the help of your plugin! 😀

    Awesome work, and I hope someday to be able to get in and play around with plugin code.

    #150574
    MarximusMG
    Participant

    I was able to accomplish this by inserting the following code

    <?php $user = get_userdata( bbp_get_reply_author_id() );
    if ( !empty( $user->user_nicename ) ) {
    $user_nicename = $user->user_nicename;
    echo "@".$user_nicename;
    } ?>

    beneath the line

    <?php do_action( 'bbp_theme_after_reply_author_details' ); ?>

    in loop-single-reply.php

    #150559
    ajbuono
    Participant

    Thanks, I checked into the activity loop and it looks like that would do the job. All this time I’ve been messing around with bbPress.

    Could you give me any guidance on how to simply add the activity loop? As is probably obvious, I am very new at these things (and have been ‘winging it’ so far with code and whatnot).

    Jerry
    Participant

    Because I am trying to use a filter to change the wording within the file activity.php, within the bbpress directory, I think I’m in the correct forum.
    I am trying the change the wording for the activity stream in buddypress: “jerry started the topic Doctor Sleep in the forum Horror” to “jerry added the book Doctor Sleep in the category Horror.”
    I can go to bbpress/includes/extend/buddypress/activity.php and make the change there. But I prefer to do this via a filter in bp-custom.php. I am ALMOST there. Here is the filter code I have in bp-custom.php:

    add_filter( 'bbp_activity_topic_create', 'change_activity_wording', 1, 4 );
    function change_activity_wording($activity_text, $user_link, $topic_link, $forum_link ) {
    	$activity_text    = sprintf( esc_html__( '%1$s added the book %2$s in the category %3$s', 'bbpress' ), $user_link, $topic_link, $forum_link );
    	return $activity_text;
    }

    What this produces is: “added the book in the category” and removes “jerry”, “Doctor Sleep”, and “Horror.” Basically, my filter is removing $user_link, $topic_link, and $forum_link. I’m thinking I need to redefine them in my function change_activity_wording? Or am I off track here?
    If someone feels I should post this in the buddypress forum, let me know and I will do so.

    Halo Diehard
    Participant

    Ok, I created the second Label with the same name and it does the same thing.

    Then, just as a test, I created another Profile Field with a different name, “Gamertag2”, labeling it in the plugin. To further test, I created a separate Profile Group and made another Profile Field in there, “@mention”. I went into the plugin and labeled that as the fourth one. All the labels show up under the profiles, but none of the info, even though everything is checked to show in the plugin.

    It would be SO awesome to have this work. I searched for quite awhile today to find something, and found a thread by Jacob Jacoby from like five years ago talking about integrating BuddyPress and bbPress profile fields! So it’s well overdue to have something for non-coders, and that would be sweet for it to work.

    I’ll keep testing whatever you ask, so just let me know how I can help.

    Edit: I kept it all set up, so you can see it at the same link above.

Viewing 25 results - 10,926 through 10,950 (of 32,511 total)
Skip to toolbar