Search Results for 'code'
-
AuthorSearch Results
-
December 3, 2014 at 11:15 pm #155142
In reply to: Language files are ignored
Stephen Edgar
KeymasterYou are correct, the string
Last comment,Topics/Repliesare NOT bbPress strings, these strings will be in either the theme you are using with custom bbPress templates or a plugin you are using.As a side note, WordPress 3.9 and bbPress 2.5 and above versions no longer need
define(โWPLANGโ, โtr_TRโ);inwp-config.php, and coming in WordPress 4.1 you can select your language from in WordPress settings ๐The biggest advantage of the above is translations will be included when you update WordPress or bbPress, the only condition to receive the language packs automatically is that the language pack is 100% translated, if that is the case then translations are automatically delivered. ๐
It would be amazing if you could help get the Turkish locale 100% for bbPress ๐ If you use BuddyPress that would also be awesome, WordPress is already 100% ๐
December 3, 2014 at 9:59 pm #155140Topic: Remove simple html code in posts
in forum Troubleshootingkannued
ParticipantWhen I imported bbpress forums into wordpress, some posts had html code remaining. This is very simple code like <p></p>, . Is there a plugin that will clean up this simple html code in the posts?
December 3, 2014 at 6:58 pm #155139In reply to: Photo in Latest posts
Robkk
Moderatorif you were trying to post more than 2 links in your reply , this site site wont allow it as a SPAM prevention measure because of the latest SPAM attack.
if you ever need to post more than 2 links just paste the url without the http://
i can just highlight and search it in google.
—
as for your site being in maintenance it is really hard to help.
i suggest you use the inspecter tools in your browser
select the author name both under the topic title and in the freshness section
see in the source code if there is even an image with some something like
img srcby the nameif there is
check and see if the small avatars are hidden with CSS and most likely change
display:none;todipslay:inline;if the image is not even in the source code by the author names.
contact the userpro plugin author and see if they will help you install the template right if that was the problem.
December 3, 2014 at 6:24 pm #155135In reply to: Similar to PHPBB
Robkk
Moderatorsee if this helps, copy the link and search google
github.com/robkk/bbPress-Hierarchical-Forum-and-Category-Layout
download the .zip file and upload the loop-forums.php file to your bbpress folder in your child theme.
you create a category by create selecting new forum in the WordPress backend and changing the type to category.
to put forums under each category make sure all the forums you want under a specific category has the parent as that category
the docs should help out alot for learing how to use a child theme for your bbPress installation
December 3, 2014 at 11:50 am #155119Serch1
ParticipantWell, what I want in wordpress is:
add_action('delete_user', 'delete_posts_and_attachments'); function delete_posts_and_attachments($user_id) { $args = array ( 'numberposts' => -1, 'post_type' => 'any', 'author' => $user_id ); // get all posts by this user: posts, pages, attachments, etc.. $user_posts = get_posts($args); if (empty($user_posts)) return; // delete all the user posts foreach ($user_posts as $user_post) { wp_delete_post($user_post->ID, true); } }But where and how can I delete posts from bbpress? any help will be appreciated :\
December 2, 2014 at 4:43 pm #155112izzyian
ParticipantThank you so much I found that the following css fixed my problem while using the 1st functions if then statement code
a.bbp-backto-forum { margin-right: 8px; } #subscription-toggle, #favorite-toggle { display: block; float: right; padding-right: 8px !important; padding-top: 0 !important; }December 2, 2014 at 3:30 pm #155110Robkk
Moderatorwell 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; ?>December 2, 2014 at 3:04 pm #155109In reply to: Removing avatars from topic list view
Robkk
ModeratorIโ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' => 14i 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>December 2, 2014 at 2:19 pm #155108In reply to: Strange numbers under Author
Robkk
Moderatorits 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; }December 2, 2014 at 12:14 pm #155096In reply to: Removing avatars from topic list view
bcrider
ParticipantThanks again Robkk
I was able to successfully replace the loop-single-topic.php file in my theme with the stock bbpress version and voila, large avatars are removed as I desired and they’ve been replaced with the stock smaller ones. Awesome!
Searching the support forums here I was also able to find this code and add it to my Custom Code section which allowed be to play with the size of the avatar too. Awesome again!
.bbp-body .bbp-topic-title img.avatar,
.bbp-body .bbp-topic-freshness img.avatar,
.bbp-template-notice img.avatar,
.bpp-author-avatar img.avatar {
width: 24px;
}I think one of the last pieces I need to fix before converting my phpbb3 forum to bbpress is adjusting the padding on the Forum list and Topic list pages.
The padding is much larger than I desire, I’d like the padding to be as minimal as possible which will allow for more content on the screen without scrolling.
Can you please help me adjust the padding to be closer to the stock bbpress styling, like here?
As you can see, the topics are much narrower.
Thanks!
Let me know if there’s already a topic on adjusting the padding or if I should start a new thread.
December 2, 2014 at 8:29 am #155089Topic: CKEditor
in forum Troubleshootingwenetwork
ParticipantHello there,
I would like to integrate CKEditor with bbPress. I have already installed a plugin to integrate CKEditor with commenting wordpress related posts, but I have not found anything to make CKEditor visible with bbPress. Is there any way to add some code to core files? I am fairly new to to bbPress.
December 2, 2014 at 4:46 am #155080Topic: Remove this code ? Look this link
in forum TroubleshootingIcaroferreira
ParticipantHi,
By posting messages on the forum, appears a code “# 1234” next to the date and time. How do I remove the forum posts this Code # …?
Look this link: http://ajudaroproximo.com.br/wp-content/uploads/2014/12/forum-code.jpg
Regards,
IcaroDecember 2, 2014 at 3:22 am #155078izzyian
ParticipantWow thank you so much ! ๐ … This is my loop replies php with the code in it, but I dont know if I put it in right because even though it shows, it does not appear in the same row as subscribe and favorites but rather a little above the row, and any css i added did not help.
<?php do_action( 'bbp_template_before_replies_loop' ); ?> <div id="topic-post-list" class="item-list" role="main"> <div class="forum-head-reply-tools"> <a class="bbp-backto-forum" href="<?php bbp_forum_permalink(); ?>">Back to <?php bbp_forum_title(); ?></a> <?php bbp_user_subscribe_link('before= '); ?> <?php bbp_user_favorites_link(); ?></div> <div class="clear"></div> <ul> <?php while ( bbp_replies() ) : bbp_the_reply(); ?> <?php bbp_get_template_part( 'loop', 'single-reply' ); ?> <?php endwhile; ?> </ul> </div><!-- #topic-<?php bbp_topic_id(); ?>-replies --> <?php do_action( 'bbp_template_after_replies_loop' ); ?>Here is a picture of the row so you can see the new button is a little above the row
http://bitfiu.com/wp-content/uploads/2014/12/button-example.pngDecember 1, 2014 at 9:20 pm #155075Robkk
Moderatorwell 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>December 1, 2014 at 7:20 pm #155073izzyian
ParticipantThank you for that here is a little more info because i don’t understand where to place that code:
What I want to do is add a button ( which I will later style in my css) that will just take the user back to the forum (basically a button that is a breadcrumb).
I would place all the information here but bbpress reply box is not letting me for some reason. But you can read the information here where I placed it in the wrong section before I asked it here https://buddypress.org/support/topic/how-do-i-add-a-button-in-loops-replies-php-file/
December 1, 2014 at 4:57 pm #155068Serch1
ParticipantHello Robkk! Thanks a lot for your detailed suggestion. I know this way to delete users from wordpress backend, but I’m looking for the function who does this in order to add a little code to my bbpress frontend ๐
December 1, 2014 at 4:52 pm #155067Robkk
Moderatoryou 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
December 1, 2014 at 4:30 pm #155065In reply to: Changing Editor buttons
Robkk
Moderatorto 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; }December 1, 2014 at 4:01 pm #155063In reply to: WordPress creates pingbacks for topics. Maybe Bug
Robkk
Moderatorin 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.
December 1, 2014 at 3:47 pm #155061In reply to: How to get ride of empty space.
Robkk
Moderatortry 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; }December 1, 2014 at 2:37 pm #155056In reply to: How do i change the color of the text and box?
Robkk
Moderatordid 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; }December 1, 2014 at 2:29 pm #155055Topic: Changing Editor buttons
in forum Troubleshootingpetriknz
ParticipantIn the editor I need to, at the very least remove the code button.
Is there any way to use the default WordPress Editor where users can see the visual results of their editing instead of the html markup text.
Users of the forum I’m creating are not HTML coders and the way this works will totally confuse them. Also switching it off in settings makes matters worse as then they are presented with an instruction box showing the HTML tags.
December 1, 2014 at 2:25 pm #155053In reply to: Removing avatars from topic list view
Robkk
ModeratorIs 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; }December 1, 2014 at 11:08 am #155049Topic: Enable Visual editor by default?
in forum Troubleshootingcolinsp
ParticipantI have used the code in the documentation to turn on the visual editor and it is working fine.
However, when you start or reply to a topic neither editor is selected by default. Is it possible to enable the Visual Editor by default? If not is there any way to remove the text editor so that visual is the only option and hopefully that will select by default?
November 30, 2014 at 10:13 pm #155031In reply to: How do i change the color of the text and box?
SatanicDogooder
ParticipantHi those codes worked great on the bbpress forum paage! However they did not translate to the topics section. I added them to my child Css.styles.
http://satanicdogooder.com/forums/topic/a-good-deed-aric-u/#new-post
Any idea why the background of these pages did not take to the CSS change?
Thx,
The DoGooder -
AuthorSearch Results