Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 8,601 through 8,625 (of 32,519 total)
  • Author
    Search Results
  • #162990
    Robkk
    Moderator

    What replies page?

    Did you try any of the troubleshooting steps listed here

    Troubleshooting

    I do not think you have to do the advanced troubleshooting though.

    #162989

    In reply to: First post not showing

    stevenwb
    Participant

    Hi Pinkishhue,

    First of all, I am using Enfold theme.
    Second, I have explored the show lead topic thread and to be perfectly honest, I have no idea if it is enabled or not. I have found the php file and dropped in that code, however it doesn’t show my first topic.

    Still though, if I deactivate Wishlist Member, the first topic shows.

    Any more ideas as i am lost here

    Thanks

    Steve

    #162986
    patrix87
    Participant

    I modified a little script I found inside a plugin named “bbp signature” https://wordpress.org/plugins/bbp-signature/
    That plugin actually does not work with Buddypress, it is a bbpress plugin
    [modified by moderator]

    But the code wasn’t too terrible. even though I only kept a few line of it.

    So here’s the solution;

    make sure you have buddypress with xprofile enabled *(extended profiles)

    1. Create a new text box field in Xprofile and name it “Signature”. *(caps is important, no quotation mark.)

    Then add that code to the function.php of your child theme.

    
    //Add Signature
    
    function bbp_reply_content_append_user_signature( $content = '', $reply_id = 0, $args = array() ) {
    	// Default arguments
    	$defaults = array(
    		'separator' => '<hr />',
    		'before'    => '<div class="bbp-signature">',
    		'after'     => '</div>'
    	);
    	$r = wp_parse_args( $args, $defaults );
    	extract( $r );
    
    	// Verify topic id, get author id, and potential signature
    	$reply_id  = bbp_get_reply_id       ( $reply_id );
    	$user_id   = bbp_get_reply_author_id( $reply_id );
    	$signature = xprofile_get_field_data( 'Signature', $user_id );
    
    	// If signature exists, adjust the content accordingly
    	if ( !empty( $signature ))
    		$content = $content . $separator . $before . $signature . $after;
    
    	return apply_filters( 'bbp_reply_content_append_signature', $content, $reply_id, $separator );
    }
    
    add_filter( 'bbp_get_reply_content', 'bbp_reply_content_append_user_signature', 1, 2 );
    
    

    That’s it !

    PS. If you want to enable HTML in xprofile there is a way but it’s risky.
    you can read about it here : https://buddypress.org/support/topic/html-in-profile-field-again/

    #162985
    Robkk
    Moderator

    @mmice

    you should have posted that on gist.github.com or at least pastebin so that users do not have to scroll through all that.

    As for importing have you tried a creating a custom import using the example one in the bbPress plugin
    https://codex.bbpress.org/import-forums/custom-import/

    And for Karma system you might have to look into a WordPress plugin like MyCred.

    And for importing private messages , I am not sure how that is going to work, but there is a lot of Private messaging plugins for WordPress like BuddyPress.

    Robkk
    Moderator

    I do not see the issue on your site currently.

    I do see these weird avatar image placement though.

    Add this CSS to fix that issue.

    #bbpress-forums p.bbp-topic-meta img.avatar {
      display: inline !important;
    }

    There are a few functions to help with this:

    • bbp_new_forum
    • bbp_new_topic
    • bbp_new_reply
    #162979
    Robkk
    Moderator

    created per startup instruction.

    Where did you get the information from??

    As for your theme , if you are using Genesis you can install a plugin to help.

    But some other themes you have to create a template for bbPress

    follow this guide

    https://codex.bbpress.org/theme-compatibility/getting-started-in-modifying-the-main-bbpress-template/

    #162977
    Robkk
    Moderator

    once i went into bbpress settings and set a register page and activation page.

    This sounds like you went to BuddyPress’s settings, you can use BuddyPress’s register form.

    For a login page you can place the bbPress login shortcode in a page and it should work.

    For a lost password page I guess you can use the lost password shortcode but I do not know if it works correctly or not, or it just redirects to the WordPress lost password form.

    #162963
    flippyr
    Participant

    Hi Guys/Gals

    I am looking to only display pages if users are logged into BBPress. I am aware that i can set the visibility of a page to be password protected however this is an additional step that could be avoided.

    I have noticed there is a function bb_is_user_logged_in() that i could utilise however i dont know where i should add the code and indeed if it needs to go in the theme or child theme.

    Can anyone help?

    Many thanks and have a nice day

    #162962
    flippyr
    Participant

    Thanks for the reply Robin,

    I have sorted this now. basically i was using the shortcode and couldnt see the password field however once i went into bbpress settings and set a register page and activation page. BBpress then generated the needed components and the registration page.

    Robin W
    Moderator

    (I have crossposted this to the Private groups plugin support board. I hope there are no issues with that.)

    no problem, you get me either way !

    This could be coded, but it is quite complex to do.

    In essence you would need to change the can_view function in private groups to have a view or change capability.

    The issue is that I am fully tied up at the moment in other paid work, so you would need to put this to someone who would need to learn how bbpress/private groups works.

    I suggest you try

    http://jobs.wordpress.net/

    I hope you find someone.

    #162954
    flippyr
    Participant

    Hi everyone,

    Looking for some assistance here,Instead of using WordPress facing registration page/ login page i have made a page that has login, registration an d lost password shortcodes. However during the registration process, i cannot get the user to specify the password therefore there is a need for approving admins to go create a password then email the user. Any ideas?

    I have looked at many forums, plugins but haven’t got very far. Many thanks

    #162953
    billreefer
    Participant

    Please see

    http://contracostabee.com/forums/

    created per startup instruction.

    The forums page with only the shortcode in it produces text instead of form showing forums. Then when if you click on the image it takes you to the most recently created Forum page.

    I’ve posted this problem several times but it disappears.

    #162950
    ns
    Participant


    Wordpresss: Latest version
    bbPress: Latest version
    design theme: Original building

    I have one question.
    In the page “Forum Replies Created”, can I show my replies data only?
    If I can, which php file is, and how do I change code?
    Or if I need to apply certain WordPress plugin, what is it?

    The page “Forum Replies Created” shows all replies data which contains my relied data.
    I’d like not to show other user’s replies data.

    #162941
    Robin W
    Moderator

    that’s just the file where the code to show that error is.

    Are you developing on a local server?

    #162940
    oyeben6
    Participant

    Hello Robin, in bbpress replies folder, i have a php file functions.php. When i edit this file, in bbp_new_topic_handler i have this function

    // Nonce check
    if ( ! bbp_verify_nonce_request( 'bbp-new-topic' ) ) {
    bbp_add_error( 'bbp_new_topic_nonce', __( '<strong>ERROR</strong>: Are you sure you wanted to do that?', 'bbpress' ) );
    return;
    }
    

    I think that it’s the problem.

    #162936
    Robin W
    Moderator

    But shouldn’t registered members be able to create forums too?

    Not for many/most sites.

    However if you want to add that capability

    Custom Capabilities

    #162920
    billreefer
    Participant

    For the life of me I cannot see a place where a new registered user can create a topic? I can’t find anything about this is the code.

    #162918
    jookkoo
    Participant

    Hello,

    I uses CodeStyling Localization to translate 13 language. and CodeStyling Localization report the issue as below:

    PHP runtime error reporting detected !
    Reason: some executed PHP code is not written proper | Originator: unknown (probably by Theme or Plugin)
    Below listed error reports has been traced and removed during page creation:

    STRICT Error: [2048] Declaration of BBP_Forums_Group_Extension::display() should be compatible with BP_Group_Extension::display($group_id = NULL) /home/xxx/cookkoo.com/wp-content/plugins/bbpress/includes/extend/buddypress/groups.php on line 28

    Please help
    Thank you

    #162916
    husk3r
    Participant

    ok, i made a mistake with the namee bbpress .php , changed to bbpress.php and now it is using the bbpress.php template, again ive removed the <?php get_sidebar(‘page’); ?> but it is still not full width

    the code is like this

    <?php
    /*
    Template Name: bbpress
    */

    get_header(); ?>
    <div class=”stump”>
    <div class=”container topborder”></div>
    <div class=”container contentarea”>
    <div class=”row animated fadeInUp”>
    <div id=”content” class=”col-md-8 col-sm-8″>
    <?php get_template_part(‘loop’, ‘page’); ?>
    <?php wp_reset_query(); ?>
    </div>

    </div>
    </div>

    <div class=”container bottomborder”></div>
    </div>
    <?php get_footer(); ?>

    #162915
    husk3r
    Participant

    I did that, using the plugin my theme was using the page.php , so I copied it to my themes directory, and renamed it to bbpress.php

    i have removed the <?php get_sidebar(‘page’); ?> from the code in the template but it is still not full width, and when I use the plugin again , it says that it still uses the page.php
    even when Ive selected the bbpress template in the page that contains the forums shortcode

    #162907
    Robkk
    Moderator

    This might be what you are looking for.

    Support Forum

    #162903
    Robin W
    Moderator

    in the page, ive chosen this template.

    Sorry you need to put this template into a bbpress directory – see

    Step by step guide to setting up a bbPress forum – Part 1

    #162901
    husk3r
    Participant

    hello, i am using bbpress in a page with the shortcode.
    Ive managed to remove the sidebar creating a template which code is as follows ;
    ——————————————————————————-
    <?php
    /*
    Template Name: Forums
    */

    get_header(); ?>

    <div id=”primary” class=”site-content-forums”>
    <div id=”content” role=”main”>

    <?php while ( have_posts() ) : the_post(); ?>
    <?php get_template_part( ‘content’, ‘page’ ); ?>
    <?php comments_template( ”, true ); ?>
    <?php endwhile; // end of the loop. ?>

    </div><!– #content –>
    </div><!– #primary –>

    <?php get_footer(); ?>
    ——————————————————————-
    and then applying this custom CSS

    #site-content-forums {
    float: left;
    width: 100%;
    }

    in the page, ive chosen this template.

    BUT the forum still is not full width
    please help me!!

Viewing 25 results - 8,601 through 8,625 (of 32,519 total)
Skip to toolbar