Robkk (@robkk)

Forum Replies Created

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

  • Robkk
    Moderator

    @robkk

    the IP blocking feature in the comments section is different than i expected you would probably need a seperate ban plugin to do as i meant.

    the word filter does work in bbPress though


    Robkk
    Moderator

    @robkk

    well also put this if statement around the link so that it woulnt show in the users topic favorites/subsritions/started lists

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

    the link looking a little off maybe because the developer of your theme customized it so that the css would affect it like this

    div.forum-head-reply-tools a {

    so that any link would be affected the same

    maybe removing the class in the code i gave you would fix that??

    so maybe like this

    <?php if ( bbp_is_single_topic() ) : ?>
    
    <a href="<?php bbp_forum_permalink(); ?>">Back to <?php bbp_forum_title(); ?></a>
    	
    <?php endif; ?>

    Robkk
    Moderator

    @robkk

    I’ve typed a reply to you and submitted it but bbpress isn’t displaying it. If I try again it tells me I’ve already submitting that comment but it isn’t showing up?? Is this a bbpress bug or is my comment awaiting approval or something? Is there a limit to adding links in the post? I had 3.

    no its not a bug its a spam prevention measure since the spam attack only 2 links can be posted now.

    if you need to link us with more than 3 just post the url without the http://

    i can just highlight and google search it.

    this is for the padding.

    #bbpress-forums li.bbp-body ul.forum, 
    #bbpress-forums li.bbp-body ul.topic {
    overflow: hidden;
    padding: 8px;
    }

    the tiny avatar CSS is ok but just so you know if it was any bigger the css will make the image distort and look blurry.

    you can change the avatar size in the templates if you go to the loop-single-topic.php file and find something similar to 'size' => 14 i think in your case it would be 16 maybe

    and change that number to 24

    you should also do this to the loop-single-forum.php file too.

    also add this additional CSS so you can remove the voice count number making everything awkward

    .bbp-body li.bbp-topic-voice-count {
    display:none;
    }

    to remove it in the templates go to loop-single-topic.php

    and remove this

    <li class="bbp-topic-voice-count"><?php bbp_topic_voice_count(); ?></li>


    Robkk
    Moderator

    @robkk

    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

    @robkk

    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

    @robkk

    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

    @robkk

    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

    @robkk

    @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

    @robkk

    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

    @robkk

    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

    @robkk

    @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

    @robkk

    i havent found a plugin

    this seems like some custom development

    http://jobs.wordpress.net/


    Robkk
    Moderator

    @robkk

    @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

    @robkk

    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

    @robkk

    @robin-w

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


    Robkk
    Moderator

    @robkk

    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

    @robkk

    @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

    @robkk

    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

    @robkk

    @foresme

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


    Robkk
    Moderator

    @robkk

    @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

    @robkk

    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

    @robkk

    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

    @robkk

    @atfpodcast

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

    In reply to: Truncated usernames

    Robkk
    Moderator

    @robkk

    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

    @robkk

    @webui1

    dont make test replies in the bbPress forums

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

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