Robkk (@robkk)

Forum Replies Created

Viewing 25 replies - 3,101 through 3,125 (of 3,781 total)
  • @robkk

    Moderator

    its the ip address of the current user

    to know for sure search this in google: whats my ip address?

    and then it should show it there

    the ip addresses only show for admin users

    its there so you can ban the users that are spam , human/bots

    you can ban them using WordPress comment blacklist in settings>discussion

    bbPress uses some of those settings too.

    use this css to remove it.

    span.bbp-author-ip {
        display: none !important;
    }

    @robkk

    Moderator

    well i think i got all of those add action things wrong 🙁

    i got confused with them and thought they were before the favorte/subscription links

    but they were for the user favorites/subscription lists on their profile.

    this function should show it but it will be before the replies loop this function should be in your functions.php in your child theme

    function rkk_forum_link_before_replies() {
    
     if ( bbp_is_single_topic() ) {
    
        	?>
    		
        <a class="bbp-backto-forum" href="<?php bbp_forum_permalink(); ?>">Back to <?php bbp_forum_title(); ?></a>
     
        	<?php
    
        }
    
    }
    
    add_action( 'bbp_template_before_replies_loop', 'rkk_forum_link_before_replies' );

    this is for manually putting the link before the favorite link in loop-replies.php template file in your child theme.

    <a class="bbp-backto-forum" href="<?php bbp_forum_permalink(); ?>">Back to <?php bbp_forum_title(); ?></a>

    @robkk

    Moderator

    you can use any of these hooks to add a button there using a function

    add_action( 'bbp_theme_after_topic_subscription_action' ); 
    
    add_action( 'bbp_theme_before_topic_subscription_action' ); 
    
    add_action( 'bbp_theme_after_topic_favorites_action' ); 
    
    add_action( 'bbp_theme_before_topic_favorites_action' ); 

    more info on using action hooks

    Step by step guide to setting up a bbPress forum – part 4

    @robkk

    Moderator

    to enable visual editor install this plugin

    https://wordpress.org/plugins/bbpress-enable-tinymce-visual-tab/

    to remove the code button use this
    add it to your child themes functions.php or a functionality plugin.

    add_filter( 'bbp_after_get_the_content_parse_args', 'rkk_bbp_edit_quick_editor' );
    function rkk_bbp_edit_quick_editor( $args = array() ) {
    	$args['quicktags']         = array( 'buttons' => 'strong,em,link,block,del,img,ul,ol,li,close' );
    
       return $args;
    }

    @robkk

    Moderator

    @korobochkin

    in the trac they are trying to add this feature and at least an option to disable it.

    -started 2010 -last reply 3 months ago
    [bbpress.trac.wordpress.org/ticket/1430]

    if you do not want pingbacks and trackbacks remove any code that is for the comments section when you create a bbpress.php and see if that fixes it.

    @robkk

    Moderator

    just delete the user from the WordPress backend

    go to users>all users then search for the user you want to delete

    hover around there avatar and name and you will a bunch of links which one of them says delete

    click that

    then the next screen which is added from bbPress which says

    [] delete all content

    [] attribute all content to: {some username}

    tick delete all content then confirm deletion

    @robkk

    Moderator

    try this

    add it anywhere you add custom css

    #bbpress-forums .bbp-body div.bbp-reply-author {
    	margin: -15px 10px 10px;
    	min-height: 100px;
    	padding-left: 80px;
    	position: relative;
    	text-align: left;
    	width: 100%;
    }
    
    #bbpress-forums div.bbp-reply-author a.bbp-author-name {
    	clear: none;
    	display: inline-block;
    	margin-left: 0;
    	word-wrap: break-word;
    }
    
    #bbpress-forums div.bbp-reply-author img.avatar {
    	position: absolute;
    	top: 15px;
    	left: 0;
    	width: 60px;
    	height: auto;
    }
    
    #bbpress-forums div.bbp-reply-author .bbp-author-role {
    	font-size: 12px;
    	font-style: normal;
    }
    
    #bbpress-forums .bbp-body div.bbp-reply-content {
    	clear: both;
    	margin: 10px;
    	padding: 0;
    }
    In reply to: Photo in Latest posts

    @robkk

    Moderator

    @icaroferreira

    give me a link to your forum or take a picture so i can see how it is right now with the userpro templates installed with the place you want the small avatars.

    @robkk

    Moderator

    i havent found a plugin

    this seems like some custom development

    http://jobs.wordpress.net/

    @robkk

    Moderator

    @satanicdogooder

    did you add these too?? it seems like its the only thing your missing when i checked your website.

    /* try to make these two different types of dark shades if you care about having an AB color pattern of replies/topics/forums. */
    
    #bbpress-forums div.odd, 
    #bbpress-forums ul.odd {
    background-color: inherit;
    }
    
    #bbpress-forums div.even, 
    #bbpress-forums ul.even {
    background-color: inherit;
    }

    @robkk

    Moderator

    Is it a secret or something?

    no i pretty much told you that its might be just switching the loop-single-topic.php file in your child theme with the original bbpress plugin version if you wanted the smaller avatars.

    if it still looked weird the rest would’ve been just fixing a couple of lines of CSS

    to completely remove them you would need to hand me a link to your site and I’ll give you a little CSS which will allow you to remove them.

    you can also just remove the avatars with PHP

    but just adding this code should work on an original bbPress loop-single-topic template.

    .avatar-14 { display: none !important; }

    @robkk

    Moderator

    @robin-w

    i was just suggesting new guides at first but yeah im working on it.

    @robkk

    Moderator

    yeah i just saw that topic , its crazy that there was an automated spam attack going on.

    i wonder what could of caused the massive attack??

    @robkk

    Moderator

    @izzyian

    you just do it like how i did it.

    by editing the template loop-single-reply.php that was in my bbpress folder in my child theme

    separate the role from the rest of the bbp_reply_author_link

    like this

    <?php bbp_reply_author_link( array( 'sep' => '<br />', 'show_role' => false ) ); ?>

    <?php 
    $displayed_user = bbp_get_reply_author_id() ;
    $role = bbp_get_user_role( $displayed_user);
    if ( bbp_is_user_keymaster($displayed_user)  || $role == 'bbp_moderator'  ) {
    	
    	echo bbp_reply_author_link( array( 'show_role' => true, 'type' => 'role' ) );
    	
             }
    ?>
    In reply to: Photo in Latest posts

    @robkk

    Moderator

    in this code you pasted it looks like the exact code to display the avatars is already there.

    maybe you didnt install the template files right??

    wherever you see something like this below , this is what should be displaying the avatar

    ‘size’ => 14

    this is complete started by section showing the started by author avatar

    <?php do_action( ‘bbp_theme_before_topic_started_by’ ); ?>
    
    <?php
    if (class_exists(‘userpro_api’)) {
    /* Integrating UserPro */
    global $userpro;
    $link = preg_replace(“/(?<=href=(\”|’))[^\”‘]+(?=(\”|’))/”, $userpro->permalink( bbp_get_topic_author_id() ),
    bbp_get_topic_author_link( array( ‘size’ => 14 ) ) );
    } else {
    $link = bbp_get_topic_author_link( array( ‘size’ => ’14’ ) );
    }
    ?>
    
    <span class=”bbp-topic-started-by”><?php printf( __( ‘Started by: %1$s’, ‘bbpress’ ), $link ); ?></span>
    
    <?php do_action( ‘bbp_theme_after_topic_started_by’ ); ?>

    this is the complete freshness section showing the author avatar

    <?php do_action( ‘bbp_theme_before_topic_freshness_author’ ); ?>
    <?php
    if (class_exists(‘userpro_api’)) {
    global $userpro;
    $link = preg_replace(“/(?<=href=(\”|’))[^\”‘]+(?=(\”|’))/”, $userpro->permalink( bbp_get_topic_author_id( bbp_get_topic_last_active_id() ) ), bbp_get_author_link( array( ‘post_id’ => bbp_get_topic_last_active_id(), ‘size’ => 30 ) ) );
    } else {
    $link = bbp_get_author_link( array( ‘post_id’ => bbp_get_topic_last_active_id(), ‘size’ => 14 ) );
    }
    ?>
    
    <span class=”bbp-topic-freshness-author”><?php echo $link; ?></span>
    
    <?php do_action( ‘bbp_theme_after_topic_freshness_author’ ); ?>
    In reply to: No spacing in posts.

    @robkk

    Moderator

    @foresme

    give a link to a bbPress post on your site that should have paragraph spacing.

    @robkk

    Moderator

    @elenams

    i thought i replied to this one..

    pretty much the plugins stlye.css file will get you headed into styling bbPress the way you want it.

    you copy the style.css file from the bbPress plugin folder and put it into a folder called css in your child theme then edit the new style.css file from there.

    if its just small changes you can also put it into a custom css plugin of your choice.

    more information on styling bbPress can be found in the codex

    Codex

    @robkk

    Moderator

    this is not CSS its mostly PHP

    from what it looks like just copy the templates the userpro plugin author gave you and place it a folder called bbpress in your child theme. the url to it should be wp-content/themes/avada-child/bbpress.

    info on creating a child theme

    https://codex.wordpress.org/Child_Themes

    @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/

    @robkk

    Moderator

    @atfpodcast

    well im giving up on the bbPress quicktags toolbar issue you have.

    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

    @robkk

    Moderator

    @webui1

    dont make test replies in the bbPress forums

    create a local-hosted site and do all the testing there.

    @robkk

    Moderator

    it was there before you set up full width forums and also not having anonymous user posting

    now i would need an account to see if its setup right

    i do see this label though which is part of the topic/reply form template.

    You must be logged in to…

    so im going to assume its still alright

    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;
    }
    In reply to: Truncated usernames

    @robkk

    Moderator

    add to the existing code you are using.

    font-weight: bold;

Viewing 25 replies - 3,101 through 3,125 (of 3,781 total)