Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 10,101 through 10,125 (of 32,519 total)
  • Author
    Search Results
  • #154817
    Robkk
    Moderator

    well it looks nice how it is already but thats my opinion.

    but if you really want the default bbPress look , i think all you have to do is copy loop-single-topic.php from the bbPress plugin templates and let it overwrite the exact file in your child themes bbpress folder.

    i suggest you test it out and make sure it works well in a local development area on your CPU.

    https://codex.bbpress.org/creating-a-test-site/

    #154815

    In reply to: Truncated usernames

    Robkk
    Moderator

    huh?? i thought i replied already..

    well its font-color: black;

    and just using color:black; works too

    any other CSS tips checkout the guides on styling bbPress in the docs

    Codex

    #154812

    In reply to: No spacing in posts.

    Robkk
    Moderator

    @foresme

    try this.

    if it doesnt work reply back

    #bbpress-forums .bbp-topic-content p,
    #bbpress-forums .bbp-reply-content p {
    margin-bottom:10px;
    }
    Robin W
    Moderator

    try

    function role_show ($args) {
    

    as your first line

    #154780

    In reply to: Unique member names

    peter-hamilton
    Participant

    Been a while, spent quite a lot of time looking for a solution for the “name” issue.

    Wordpress registration checks if a “username” is already used, this is great.

    Buddypress is the problem cause they also add a “Name” field to registration, and this can be duplicate creating issues when multiple John Doe’s appear in my forums and activity.

    Solution

    I created a dirty solution by changing the label for (buddypress) Name to Username, and added a line of text urging new members to fill in the exact same name as the did in the “Username” field.

    Although people can type whatever they want there, I hope most will just copy the first name.

    This way the @name and username should be similar on all pages.

    Then I also removed the option to change this name in the profile edit.php through CSS so no longer can people change their nicknames.
    Unless a code savvy member goes to change the CSS in chrome, then the box will appear and they can change their names.

    Wishlist

    A solution/function where Buddypress or BBpress copies the username and adds that in the nickname field by default.

    Anyway, here is a link to my current register page:

    BBFacelook registration page

    P.H.

    #154775
    galiulinr
    Participant

    Here’s the code works for me:

    <?php $curauth = (isset($_GET['author_name'])) ? get_user_by('slug', $author_name) : get_userdata(intval($author)); ?>
    <!-- The Loop -->
        <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
            <l i>
                <a hr ef="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>">
                <?php the_title(); ?></ a>,
                <?php the_time('d M Y'); ?> in <?php the_category('&');?>
            </l i>
        <?php endwhile; else: ?>
            < p><?php _e('No posts by this author.'); ?></ p>
        <?php endif; ?>
    <!-- End Loop --> 
    #154767

    In reply to: Truncated usernames

    Robkk
    Moderator

    add to the existing code you are using.

    font-weight: bold;

    #154766
    galiulinr
    Participant

    I added the following code in your theme function:

    
    function get_related_author_posts() {
        global $authordata, $post;
        $authors_posts = get_posts( array( 'author' => $authordata->ID, 'post__not_in' => array( $post->ID ), 'posts_per_page' => 5 ) );
        foreach ( $authors_posts as $authors_post ) {
            $output .= '<l i>< a>ID ) . '">' . apply_filters( 'the_title', $authors_post->post_title, $authors_post->ID ) . '</ a></l i>';
        }
        return $output;
    }
    

    On page user-profile.php, I put the following code:
    <?php echo get_related_author_posts(); ?>

    It shows 5 posts, but I want to show only the for profile author of this posts. Now it shows all the user profiles.Each author should have a list of posts in the profile. Tell me how to do it.

    #154756
    sidelancer
    Participant

    I’m using the Easy Adsense plugin and I would like to prevent it from showing an ad on my forum pages. The plugin does have a custom field to disable ads on specific pages, but the problem is that it only disables ads that are outside the forum area (the header and the sidebar), NOT the ad that is showing inside of the forum content area.

    Does anyone know where I could insert/delete some code to stop it from showing up?

    #154749
    Robin W
    Moderator

    suggest you read

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

    in particular section 6 that talks about adding a register page and putting this into your menu

    and yes bbpress will work alongside buddypress

    #154738

    In reply to: Truncated usernames

    Robkk
    Moderator

    i took this css right from bbpress.org

    add this anywhere you can add custom css
    if it doesnt work add !important to the end like this 12px!important;

    #bbpress-forums div.bbp-reply-author a.bbp-author-name, 
    #bbpress-forums div.bbp-topic-author a.bbp-author-name {
    clear: left;
    display: block;
    font-size: 12px;
    }

    the default size i think is usually 12px
    so either use that or go lower

    #154730
    atfpodcast
    Participant

    Sorry it was my phone. I tried to say after looking at it the bbcode was working. It was the htlm bar from bbpress that is not coming up in my firefox…

    #154720
    Robkk
    Moderator

    try adding this anywhere you can put custom css

    #bbpress-forums #qt_bbp_reply_content_toolbar input {
    color: black;
    }
    alekbounce
    Participant

    Hi everyone!

    I’m using a members plugin called UserPro. I’m trying to integrate bbPress forums with the user profiles created through UserPro.

    All I’m trying to do is replace the user’s photo and username links to instead link to the UserPro profiles.

    Here’s a visual.

    The plugin’s developer gave users his own CSS changes to the “Loop-single-topic”, “Loop-single-reply” and the “loop-single-forum” .php files.

    Though his supplied CSS works in terms of replacing the links, it also breaks the look of the entire forum and removes all of the info below the user’s pic and name.

    Here’s the default “loop-Single-reply”:

    <?php
    
    /**
     * Replies Loop - Single Reply
     *
     * @package bbPress
     * @subpackage Theme
     */
    
    ?>
    
    <div <?php bbp_reply_class(); ?>>
    
    	<div class="bbp-reply-author">
    
    		<?php do_action( 'bbp_theme_before_reply_author_details' ); ?>
    
    		<?php bbp_reply_author_link( array( 'sep' => '', 'show_role' => true ) ); ?>
    
    		<div class="bbp-reply-post-date"><?php bbp_reply_post_date(); ?></div>
    
    		<div class="bbps-post-count"><?php printf( __( 'Post count: %s', 'Avada' ), bbp_get_user_reply_count_raw(bbp_get_reply_author_id()) ); ?></div>
    
    		<?php if ( bbp_is_user_keymaster() ) : ?>
    
    			<?php do_action( 'bbp_theme_before_reply_author_admin_details' ); ?>
    
    			<div class="bbp-reply-ip"><?php bbp_author_ip( bbp_get_reply_id() ); ?></div>
    
    			<?php do_action( 'bbp_theme_after_reply_author_admin_details' ); ?>
    
    		<?php endif; ?>
    
    		<?php do_action( 'bbp_theme_after_reply_author_details' ); ?>
    
    	</div><!-- .bbp-reply-author -->
    
    	<div class="bbp-reply-content">
    
    		<div id="post-<?php bbp_reply_id(); ?>" class="bbp-reply-header clearfix">
    
    			<div class="bbp-meta">
    
    				<?php if ( bbp_is_single_user_replies() ) : ?>
    
    					<span class="bbp-header">
    						<?php _e( 'in reply to: ', 'bbpress' ); ?>
    						<a class="bbp-topic-permalink" href="<?php bbp_topic_permalink( bbp_get_reply_topic_id() ); ?>"><?php bbp_topic_title( bbp_get_reply_topic_id() ); ?></a>
    					</span>
    
    				<?php endif; ?>
    
    				<a href="<?php bbp_reply_url(); ?>" class="bbp-reply-permalink">#<?php bbp_reply_id(); ?></a>
    
    				<?php do_action( 'bbp_theme_before_reply_admin_links' ); ?>
    
    				<?php bbp_reply_admin_links( array ( 'after' => '<span class="admin_links_sep"> | </span></span>') ); ?>
    
    				<?php do_action( 'bbp_theme_after_reply_admin_links' ); ?>
    
    			</div><!-- .bbp-meta -->
    
    		</div><!-- #post-<?php bbp_reply_id(); ?> -->
    
    		<div class="bbp-reply-entry">
    			<?php do_action( 'bbp_theme_before_reply_content' ); ?>
    
    			<?php bbp_reply_content(); ?>
    
    			<?php do_action( 'bbp_theme_after_reply_content' ); ?>
    			<div class="bbp-arrow"></div>
    		</div>
    
    	</div><!-- .bbp-reply-content -->
    
    </div><!-- .reply -->
    

    Here’s his supplied CSS:

    <?php
    
    /**
     * Replies Loop - Single Reply
     *
     * @package bbPress
     * @subpackage Theme
     */
    
    ?>
    
    <div <?php bbp_reply_class(); ?>>
    
    	<div class="bbp-reply-author">
    
    		<?php do_action( 'bbp_theme_before_reply_author_details' ); ?>
    
    		<?php 
    
    /* Integrating UserPro */
    		global $userpro;
    		$link = preg_replace("/(?<=href=(\"|'))[^\"']+(?=(\"|'))/", $userpro->permalink( bbp_get_reply_author_id() ), 
    		bbp_get_reply_author_link( array( 'sep' => '<br />', 'show_role' => false ) ) );
    		echo $link . userpro_show_badges( bbp_get_reply_author_id() );
    		?>
    
    		<?php if ( bbp_is_user_keymaster() ) : ?>
    
    			<?php do_action( 'bbp_theme_before_reply_author_admin_details' ); ?>
    
    			<div class="bbp-reply-ip"><?php bbp_author_ip( bbp_get_reply_id() ); ?></div>
    
    			<?php do_action( 'bbp_theme_after_reply_author_admin_details' ); ?>
    
    		<?php endif; ?>
    
    		<?php do_action( 'bbp_theme_after_reply_author_details' ); ?>
    
    	</div><!-- .bbp-reply-author -->
    
    	<div class="bbp-reply-content">
    
    		<?php do_action( 'bbp_theme_before_reply_content' ); ?>
    
    		<?php bbp_reply_content(); ?>
    
    		<?php do_action( 'bbp_theme_after_reply_content' ); ?>
    
    	</div><!-- .bbp-reply-content -->
    
    </div><!-- .reply -->
    

    I would be grateful to get any assistance on how I might change the links alone without modifying or breaking everything else. Thanks so much in advance.

    I’m using the Avada theme.

    cvf
    Participant

    Hey there,

    I have a forum on my website but the BBcode buttons have white text which makes them practically invisible. Is there custom CSS I can apply to make the font color of these buttons black? I’ve attached an image.

    #154714
    kup1986
    Participant

    Hi

    We are using this plug in for one of our clients. Their site just went live after being designed, built, and tested on our beta server. Everything worked great, so we moved it to the live server this week.

    However, now that they’re on the live site, new forum users are not receiving their email notifications containing their password. In Beta, there was no email “link” as far as I could tell between the Beta site and our hosting. When a new user would register, they would receive an email from wordpress@clientname.org. Within our hosting back end, I can see that emails were actually sent from ourusername@ourbetaserver.com.

    Within the Dashbaord/Settings/General, I’ve made certain that the email account listed on that screen matches what was set up with their hosting provider. I’ve dug through the files until I can see code with my eyes close and cannot figure out how to make this work again.

    I’ve just now learning development, so please help (at a 101 level). I appreciate any insight!!

    jscooper
    Participant

    I know this is old, but I added this code to a functions.php file in my custom theme folder

    add_filter( ‘bbp_get_single_forum_description’, ‘ja_return_blank’ );
    add_filter( ‘bbp_get_single_topic_description’, ‘ja_return_blank’ );
    function ja_return_blank() {
    return ”;
    }

    and now this appears at the top of my page (and the forum message is still there):

    add_filter( ‘bbp_get_single_forum_description’, ‘ja_return_blank’ ); add_filter( ‘bbp_get_single_topic_description’, ‘ja_return_blank’ ); function ja_return_blank() { return ”; }

    Any ideas?

    Thanks,

    Jeff

    #154699
    Robin W
    Moderator

    put the following in your functions file

    add_filter('protected_title_format', 'ntwb_remove_protected_title');
    function ntwb_remove_protected_title($title) {
    	return '%s';
    }
     
    add_filter('private_title_format', 'ntwb_remove_private_title');
    function ntwb_remove_private_title($title) {
    	return '%s';
    }
    
    

    Functions files and child themes – explained !

    webcoreinteractive
    Participant

    I don’t have any of the plugins mentioned here and have this issue occurring as well.
    Definitely a bbpress – WP conflict. We have tested on our vanilla site.

    I had to implement fix by Yolle. Thanks for the code.

    Hopefull this bug gets fixed in next bbpress update.

    #154683
    Robkk
    Moderator

    you need to create a bbpress.php file, follow this link to read more info about it.

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

    #154677
    gipsypainter
    Participant

    Hi

    I am setting up a new BBPRess forum and I have changed the default reply order to descending so new replies begin at the top. So far so good.

    However, when a new reply is submitted the user is taken to the other end of the thread rather than to the newest end. Is there a tweak I need to the reverse order code?

    this is what I have in my functions:

    function custom_bbp_has_replies() {
      $args['order'] = 'DESC'; // 'ASC' (Ascending, Default), 'DESC' (Descending)
      
      return $args;
    }
     
    add_filter('bbp_before_has_replies_parse_args', 'custom_bbp_has_replies' );

    thanks for any help.

    #154665
    robertosalemi
    Participant

    I’m sorry, I resolved.

    I copied and pasted the shortcode from this link.

    Well, I copied the teletype tag too!

    Thanks!

    #154664
    robertosalemi
    Participant

    Hi,
    I using this two shortcode ( [bbp-login], [bbp-lost-pass] ) in my page.

    With debug, I saw that there is a tag <tt> (teletype) before and after the paragraph tag.

    I would remove this tags so the style is equals in all site.

    How can I resolve?

    Thanks.

    izzyian
    Participant

    This works for me :

    function role_show () {
    $displayed_user = bbp_get_reply_author_id() ;
    $role = bbp_get_user_role( $displayed_user);
    if ( bbp_is_user_keymaster($displayed_user) ||$role == 'bbp_moderator')  $args['show_role'] = true ;
    else $args['show_role'] = false ;
    return $args ;
    }
    add_filter ('bbp_before_get_reply_author_link_parse_args', 'role_show' )
    

    BUT

    It removes the avatar from showing and the “last post by” name, on the Forums topic post lists. How can I fix this ?

    #154654
    Chad
    Participant

    Hi folks. Saw this page, https://codex.bbpress.org/import-forums/vbulletin/

    It hasn’t been updated in 2 years. Just wondering if there are any improvements made to this tool?

    Some of my concerns are these listed:

    1. Custom vBulletin BBCodes are not supported eg. [youtube] – You will have to manually change these yourself either before importing in vBulletin or after importing into bbPress using phpMyAdmin.

    2. All ‘Ordered Lists’

      will be displayed as numerical lists.

      3. You may find extra page breaks <br> and paragraph <p> elements in topics and replies and is less than ideal and is from the way the BBCodes are converted during the forum import conversion. You will find these primarily around ‘blockquotes’ and ‘lists’

      In regards to

      #1 If I create the exact bbocodes in BBPress prior to the import, I assume this would rectify this area correct?

      #2 This is definitely not good. I’m hoping someone knows a trick around this.
      #3 Same as above.

Viewing 25 results - 10,101 through 10,125 (of 32,519 total)
Skip to toolbar