Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 6,501 through 6,525 (of 32,522 total)
  • Author
    Search Results
  • #174341
    zimmermann.c
    Participant

    I just tried: The moderator cannot see ‘forums’ in the dashboard
    He can only see topics and replies
    the doc in the codex is saying the opposite
    But i would like to change the name of the forum author (this name appears in the forum list, etc…)

    #174337
    Robin W
    Moderator

    Do you agree with the fact that “Moderator – Cannot create and edit forums”?

    Not sure I either agree or disagree, or that it is a fact – I’m trying to help here, I’m not trying win an argument in a bar, but as a user of this software I haven’t tested every feature 🙂

    The documentation for bbpress says that moderators can publish and edit forums

    https://codex.bbpress.org/getting-started/before-installing/bbpress-user-roles-and-capabilities/

    Is it this that you are asserting isn’t true?

    #174325
    Robkk
    Moderator

    Edit the code in the Gist and add style to the Span tag like so.

      // Span
    ‘span’ => array(
    ‘class’ => true,
    ‘style’ => true,
    ),
    

    I am not sure why you would even want the more tag, as it might be useless in the frontend of your site and bbPress forum posts.

    Robkk
    Moderator

    Unfortunately, using just CSS, there is no way to assign different colours to each forum.

    Yeah there is. I used to do this with CSS way back.

    Here is something I did real quick and an image to show you, that you can do it.

    not impossible with css

    #bbpress-forums ul.bbp-parent-forum-8 span.bbp-topic-started-in a {
      background-color: #00a6eb;
      color: #FFF;
      padding: 3px 5px;
      vertical-align: middle;
    }
    
    #bbpress-forums ul.bbp-parent-forum-0 span.bbp-topic-started-in a {
      background-color: #E25E00;
      color: #fff;
      padding: 3px 5px;
      vertical-align: middle;
    }
    #174319
    Robkk
    Moderator

    bbPress reply posts are having issues with CSS from your theme that is for WordPress comments.

    Try this CSS, add it to your child themes style.css file or add it to a custom css plugin.

    #bbpress-forums .reply a {
      float: none;
      padding: 0;
      color: inherit;
      font-size: inherit;
      display: initial;
      position: initial;
    }
    #174316
    Robkk
    Moderator

    @davidstriga

    I think if you have threaded replies enabled in bbPress, if you reply to another reply, you get a BuddyPress notification (if you have the notifications active), I think there is a bug in bbPress’ code for that feature though.

    #174313
    Robkk
    Moderator

    @rothaar bbPress by default does not have this kind of layout or the “by” in the last post column, so it is definitely your theme.

    I think that the “by” is just in a template, maybe loop-single-topic.php and loop-single-forum.php in your theme.

    It might be best to create a child theme and manually edit the template and then translate the word to your language.

    https://codex.wordpress.org/Child_Themes

    Just copy your main themes bbPress templates into your child theme, and edit the files I listed above.

    #174300
    Pascal Casier
    Moderator

    Hi,
    You can read all about this in the codex : https://codex.bbpress.org/bbp_setup_current_user/was-called-incorrectly/
    Thanks for notifying

    #174298
    Pascal Casier
    Moderator
    #174294
    2tyerd
    Participant

    Hi guys,

    So thhis is the a portion of the code right now for the sign up pop-up on my site. Its for the username, email, password and email.

    <div class="six columns">
            <input type="text" id="reg-username" name="signup_username" class="inputbox" required placeholder="<?php _e("Username", 'kleo_framework');?>">
          </div>
          <div class="twelve columns">
            <input type="text" id="reg-email" name="signup_email" class="inputbox" required placeholder="<?php _e("Your email", 'kleo_framework');?>">
          </div>
          <div class="six columns">
            <input type="password" id="reg-password" name="signup_password" class="inputbox" required placeholder="<?php _e("Desired password", 'kleo_framework');?>">
          </div>
          <div class="six columns">
            <input type="password" id="confirm_password" name="signup_password_confirm" class="inputbox" required placeholder="<?php _e("Confirm password", 'kleo_framework');?>">
          </div>

    In this same sign up form I want to have a dropdown menu where you select your age because it didn’t come included in the theme. The age options being from 18-99.

    How can I implement this?

    Thanks

    Regards

    #174292

    Topic: forum cover art….

    in forum Showcase
    ixixy
    Participant

    I would like to know how I can put up a ‘forum cover image’ on the page of each of my forums…..
    I was hoping to use the ‘featured image’ function and display a landscape image on top of the page.

    For example, if i am running a fitness forum community with a cardio workouts forum, and put up a cover image showing pple doing cardio….. and then for the weights forum, i’d have a weights cover image.

    How could I do this?

    FYI My knowledge of wordpress, bbpress, buddypress is beginner – intermediate. I know how to edit files, but not write code myself.

    #174289
    tech55541
    Participant

    Hello,
    Also figured out this one, you can use these 2 functions.

    bbp_get_topic_subscription_link
    bbp_get_topic_favorite_link

    Thanks.

    #174278
    tech55541
    Participant

    Hello,
    I tried to use this code to remove the little character between the Subscribe and Favorite link, but it does not seem to work.

    /*Fix character issue with BBPress admin links menu*/
    function hide_before2 ($args = array() ) {
    $args['before'] = '&nbsp';
    $args['subscribe'] = 'Subscribe';  
    $args['unsubscribe'] = 'Unsubscribe';
     
     return $args;
    } 
    
    add_filter('bbp_before_get_user_subscribe_link_parse_args', 'hide_before2');

    http://yourtechadvisors.com/forums/topic/testing/

    Feel free to create an account, I think the biggest problem is the Subscribe/Unsubscribe link that can be found under the Options menu. Please check screenshot.
    https://drive.google.com/file/d/0B_h6oU4LzDtlYU44LUNCQVNaZ0U/view?usp=sharing

    Any suggestions?

    #174260

    In reply to: Formatting not loading

    Andrea Barghigiani
    Participant

    Hi @brhahlen,

    I’ve resolved the issue commenting out the line 203 of crayon_wp.class.php, this one:
    $the_content = strip_tags($the_content);

    It’s seem that with the new version this is the problem. How have you solved yours? Have you changed highlighter?

    Andrea Barghigiani
    Participant

    Hello there,

    I have a really strange problem… In the last few days I’ve noticed that all my messages do not show paragraphs, bolds, italics and neither links inside my topics.

    I find it really strange and if you want to have a look to this is the link on a page where this happens. Inside this response there was some links and formatting but everything is gone.

    It seems like WordPress is stripping out all the formatting my users add to the text and if you inspect the code you’ll find out that not a single <p> has been used…

    I am using custom template pages but in order to test I’ve also renamed the bbpress/ folder inside my theme and the problem is still present. Tryed to use Twenty Fiftheen and the problem persists. Also checked the settings but everything seems normal.

    The only thing I’ve done is update WordPress to the version 4.5, at least is the last action that I can recall.

    Hope you can help me and thank you for your advices.

    All the best,
    Andrea

    WordPress Version: 4.5
    bbPress Version: 2.5.8
    Genesis Version: 2.2.7
    bbPress Genesis Extend Version: 1.1.1

    #174250
    lightningfruit
    Participant

    Weirdly (considering how long ago this was posted), I recently had some updates trigger this same problem (the ‘in_array() expects parameter 2 to be array, null given in /abcde/htdocs/wp-content/plugins/bbpress/includes/common/functions.php on line 1199’ error, though in my case it’s actually line 1442). @korvinm’s solution is great but can be extended a bit so it won’t get overwritten by updates–instead of editing the file named by the error, go into your child theme’s functions.php file and add:

    function LF_bbp_query_post_parent__in( $where, $object = '' ) {
    	global $wpdb, $wp;
    
    	// Noop if WP core supports this already
    	if ( in_array( 'post_parent__in', array($wp->private_query_vars ) ) )
    		return $where;
    
    	// Bail if no object passed
    	if ( empty( $object ) )
    		return $where;
    
    	// Only 1 post_parent so return $where
    	if ( is_numeric( $object->query_vars['post_parent'] ) )
    		return $where;
    
    	// Including specific post_parent's
    	if ( ! empty( $object->query_vars['post_parent__in'] ) ) {
    		$ids    = implode( ',', wp_parse_id_list( $object->query_vars['post_parent__in'] ) );
    		$where .= " AND {$wpdb->posts}.post_parent IN ($ids)";
    
    	// Excluding specific post_parent's
    	} elseif ( ! empty( $object->query_vars['post_parent__not_in'] ) ) {
    		$ids    = implode( ',', wp_parse_id_list( $object->query_vars['post_parent__not_in'] ) );
    		$where .= " AND {$wpdb->posts}.post_parent NOT IN ($ids)";
    	}
    
    	// Return possibly modified $where
    	return $where;
    }
    remove_filter('posts_where', 'bbp_query_post_parent__in', 10);
    add_filter('posts_where', 'LF_bbp_query_post_parent__in', 10, 2);

    This keeps the edit to the function in your child theme files so it won’t get overwritten, giving it a slightly modified name, then removes the filter’s callback to the bbPress function, and adds your modified one in its place. Just figured I’d share in case anybody else is still running into this issue and comes across this thread.

    Shane Gowland
    Participant

    I’d like to create a forum index that resembles Flarum, where colour coded labels indicate which forum each topic belongs to.

    bbPress conveniently outputs the names of each forum a topic is assigned to. Unfortunately, using just CSS, there is no way to assign different colours to each forum.

    I’d like each different forum to have an ID selector, much like WordPress posts do, so that I could easily assign colour.

    Example:

    bbp-topic-started-in#forum-1 a {
    background: green;
    }
    bbp-topic-started-in#forum-2 a {
    background: yellow;
    }

    Could someone tell me, a) how I could accomplish this, or b) how I could present this for consideration in a future bbPress release?

    #174244
    MGDel
    Participant

    hello! 🙂 first of all…

    Forum Moderation

    so what? the page is empty :/

    i need to be able to set up a list of wp users to be the admin/moderators of the forum
    i need to be able to make them know about a new post (i can do it via mailing list)
    and they should be able to reply and make the question public via front end. and the op must be notified when someone replies to or publish the post.

    it’s more of a Q and A system for everyone with moderation from a list of wp userd (doctors)

    the only way i found to moderate incoming posts is a 2year old plugin with bulky backend system (it needs to be as easy as possible since the moderators wont be tech savvy guys)

    is there any other solution?

    thanks

    #174226
    pathardepavan
    Participant

    Please find the code below.. I am sure it must be a very small error

    add_action( 'rest_api_init', function() {
     register_api_field( 'topic',
        'post_parent',
        array(
           'get_callback'    => 'slug_get_post_meta_cb',
           //'update_callback' => 'slug_update_post_meta_cb',
           'update_callback' => 'slug_update_spaceship2',
           'schema'          => null,
        )
     );
    
    });
    
     
    function slug_update_spaceship2( $value, $object, $field_name ) {
       
       return update_post_meta( $object->ID, $field_name, $value);
    
    }
    function slug_get_post_meta_cb( $object, $field_name, $request ) {
        return get_post_meta( $object['id'], $field_name );
    }
    #174219
    Pascal Casier
    Moderator

    That a nice project ! Any code you can share so we see what you try to do ?
    Pascal.

    siparker
    Participant

    code works fine for me to include topics posts and replies but same as above it shows private replies.

    #174213

    In reply to: Hide top pagination

    Pascal Casier
    Moderator

    Hi,
    I would say find the ‘content-single-forum.php’ file and edit it. You will probably see twice a line with <?php bbp_get_template_part( 'pagination', 'topics' ); ?> , so you need to delete the first one to hide the top pagination.

    I didn’t test it, just guessing from what I read.

    Pascal.

    #174209
    cigar07
    Participant

    Hi,

    [bbp-topic-form] is not working. I am able to use others shortcodes and they work fine but not the new topic form.

    Please can someone tell me the cause this shortcode isn´t working?

    #174203
    maketheest
    Participant

    i have added this code from gist.github.com/ntwb/7797990 but html tags appeared on website like
    <!–more–>Go joging –> go jogging

    <span style=”line-height: 1.5;”>It’s help me have a good job–>It helps me have a good job</span>

    <!–more–>

    anyone have solution ?
    Thanks.

    #174193
    maketheest
    Participant

    i have added this code from gist.github.com/ntwb/7797990 but html tags appeared on website like
    <!–more–>Go joging –> go jogging

    <span style=”line-height: 1.5;”>It’s help me have a good job–>It helps me have a good job</span>

    <!–more–>

    anyone have solution ?

Viewing 25 results - 6,501 through 6,525 (of 32,522 total)
Skip to toolbar