Forum Replies Created
-
In reply to: Strange numbers under Author
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
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; ?>
In reply to: Removing avatars from topic list viewI’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 maybeand 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>
In reply to: Strange numbers under Authorits 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; }
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>
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
In reply to: Changing Editor buttonsto 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; }
In reply to: WordPress creates pingbacks for topics. Maybe Bugin 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.
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
In reply to: How to get ride of empty space.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 postsgive 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.
In reply to: Calendar entry option for every Post?In reply to: How do i change the color of the text and box?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; }
In reply to: Removing avatars from topic list viewIs 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; }
In reply to: This is why we can’t have nice thingsi was just suggesting new guides at first but yeah im working on it.
In reply to: suggestions on new guides in the codexyeah 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??
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 postsin 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.give a link to a bbPress post on your site that should have paragraph spacing.
In reply to: Help with the final resulti 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
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
In reply to: Removing avatars from topic list viewwell 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.
In reply to: Adding bbcode like image, you tube etc…well im giving up on the bbPress quicktags toolbar issue you have.
In reply to: Truncated usernameshuh?? i thought i replied already..
well its
font-color: black;
and just using
color:black;
works tooany other CSS tips checkout the guides on styling bbPress in the docs
dont make test replies in the bbPress forums
create a local-hosted site and do all the testing there.