Search Results for 'code'
-
AuthorSearch Results
-
May 2, 2016 at 8:30 pm #174539
In reply to: bbPress 2.5.9: Cannot modify header information
Stephen Edgar
KeymasterFor the
bbp_setup_current_userissue see:Most likely all the above replies which are *not* the same thing, they are all different errors are caused by the same thing though, a plugin or theme conflict.
See this https://codex.bbpress.org/getting-started/troubleshooting/
May 2, 2016 at 8:08 pm #174538In reply to: Reply Link as a Button on the Bottom.
Robkk
ModeratorMaybe try something like this I guess. Place this php code snippet into your child themes functions.php file or use a plugin like functionality.
add_action( 'bbp_theme_after_reply_author_details', 'rkk_add_reply_link' ); add_action( 'bbp_theme_after_topic_author_details', 'rkk_add_reply_link' ); function rkk_add_reply_link() { if ( is_user_logged_in() ) { echo bbp_get_reply_to_link(); } }May 2, 2016 at 6:56 pm #174536In reply to: Change Author / moderator of a forum
Robkk
Moderator@zimmermannc You can use this code php code snippet/plugin and it will put the forum form in bbPress user profiles for users that can moderate.
May 2, 2016 at 6:51 pm #174535In reply to: Show User/Member Join Date
Robkk
ModeratorYou can use something like this.
Add this php code snippet into your child themes functions.php file or add the function to a plugin like functionality.
add_action( 'bbp_theme_after_topic_author_details', 'rkk_add_register_date' ); add_action( 'bbp_theme_after_reply_author_details', 'rkk_add_register_date' ); function rkk_add_register_date() {{ ?> <span class="bbp-user-register-time"> <?php printf( __( 'Member since: %s', 'bbpress' ), date( get_option( 'date_format' ), strtotime( get_the_author_meta( 'user_registered' ) ) ) ); ?> </span> <?php }}May 2, 2016 at 10:21 am #174512In reply to: Import from IP.Board 3.4.9 to bbPress Version 2.5.8
Stephen Edgar
KeymasterThis seems to be after 24-36 hours of run time, so I am not sure if I am running across some sort of session expiration or what.
Yes, that is exactly what you are coming up against, on the technical side, its WordPress dropping the MySQL session, the work around is to every few,4,6,8,12 hours even is to open a new browser tab and refresh a WordPress admin page and that should stop those
------Is it possible to re-run an import, picking off where it left off?
It’s supposed to, there’s some improvements here coming in bbPress 2.6, I also strongly suggest using 2.6-alpha available from https://bbpress.org/download, there will be no more import changes before 2.6 ships and there are vast improvements to importing in 2.6.
Give it a try and let me know it goes π
May 2, 2016 at 9:28 am #174504In reply to: Change Author / moderator of a forum
zimmermann.c
ParticipantI was not aware that shotcodes even existed for bbp.
Further to your advice I seached and found the documentation of all the SC’s. This is a great step for me.
Thank you for your helpMay 2, 2016 at 7:10 am #174497In reply to: Reply Link as a Button on the Bottom.
Soul
ParticipantAnyone who has find something? I did not find any info about it.
Can any one help me on this? I will pay for the code.
May 2, 2016 at 6:20 am #174495In reply to: Import PHPBB: wrong authors
giobby
ParticipantI leave this reply for those who faced the same issue and also for the developers who may find where the problem is.
From one side we have a wrong author getting associated to the wordpress posts (forum, topic and replies).
One thing that can be done to fix this after having run the import is to match the date and time of the post, the ip address of the author and potentially the last 8 characters of the content (will not work if it’s a smiley or bb code).
This would fix the issue even if I can’t guarantee it will work for all the dirty posts.
The second thing, even more worrying, is the fact that certain authors are associated to the topics/replies with their old PHPBB user_id.
It’s easy to spot them because those dirty posts won’t join with the wp_user table and therefore they are reported as anonymous users in the website.One way to fix that after the import is to update all those old PHPBB ids by replacing them with the corresponding wordpress users ids (just join on email address).
May 1, 2016 at 1:04 pm #174487nateonawalk
ParticipantHey all, an update —
Sooo this project turned into something much larger than anticipated. What seemed like a quick PHP permutation turned into a massive 100 hours+ job that is still ongoing. We’ve effectively created a complete out-of-the-box pretty permalinks solution that even folks with pre-existing bbPress forums will be able to safely turn on and use. We’ve thrown out the previous fork and are re-writing everything with our own code from scratch.
That said, the opportunity cost I’ve incurred is quite large and we’re still a couple weeks off from completing things. Every time we do a re-write, a bunch of new broken use-cases emerge. We’ve gotten offers from a couple plugin development companies to buy the plugin from us as well — so we’re trying to decide what best to do with the resources that we have.
Just want everyone to be aware of progress!
Thanks~
May 1, 2016 at 9:17 am #174485In reply to: Image upload advice
mica123
Participant@robkk many thanks as always! It took me a while to work out that I had to disable the code for enabling the Tinymce in my own functions.php before the plugin started to work as expected.
April 30, 2016 at 9:41 am #174476In reply to: Comments on Topics
Robkk
ModeratorThere is no special optionYou would have to edit the bbPress templates, and I guess replace the reply form with the comment form.
https://developer.wordpress.org/reference/functions/comments_template/
And I guess you might need to do more work like remove any other mentions of replies in bbPress entirely like in topic/forum stats, notices/descriptions, user profile data, activate show lead topic, find a plugin to allow mods to move comments to other topics. Then you might need to find different plugins that you need if you want quoting, attachments, bbcode, and more for custom features.
Then I guess if you want to ever leave bbPress with your custom comments integration, you will need to create a custom import for whatever you are importing to.
Still do not recommend it, but if you really really want I suggest hiring a developer if you do not have the knowledge or time to do all of this by yourself.
April 29, 2016 at 2:37 pm #174453In reply to: HTML tags appear in the forum
Robkk
ModeratorWhen you enable the tinymce editor in bbPress, for now you have to edit that snippet you posted and edit it for every buttons html tags that you will end up using. Whenever you may be quoting another user using a different plugin you may need to use the paste as a text php code snippet in the guide.
https://codex.bbpress.org/enable-visual-editor/
Read this WordPress guide about the character entities.
April 29, 2016 at 5:06 am #174447Topic: Image upload advice
in forum Troubleshootingmica123
ParticipantHello,
I’ve been looking into image uploads. It seems that it is not easy for participants to upload photos etc. I take it that users are supposed to type in the path to the file in the Source field in the WYSIWYG editor – I doubt that users would know how to do that.
I found this topic here in this forum.
Could somebody perhaps advise me if the code that is suggested would be the right way to go or would the plugin be better?
Many thanks.April 27, 2016 at 5:06 am #174413In reply to: String missing from translation file
rothaar
ParticipantHi Robkk,
no, it wasn’t turned into von. It looks like this: http://screencast.com/t/FLR74UlGQaYp
Are you planning to have a multilingual single site? You might be on to something here if you are trying to run a multilingual single site.
Yes, that was the idea, but I keep running into so many issues with this that I’m now starting to consider separate installations.
One of the issues is that a multilingual single site requires a translation for forum posts for them to show up at all. I would like users to be able to access my website in their language (menus, buttons etc) and write forum posts in their language without the need of a translation.
However, if I post something in English it will not show unless I translate the post into German and vice versa. You can imagine that it would not be feasible to translate every forum post. If I deactivate the translation of replies, then part of the interface won’t be translated either.
I’m not sure though if I can create one community if I separate the installs for the languages. E.g. I would still like users to be able to contact each other via private and public messages and post in the German and/or the English forum. Member lists should show members of both sites etc.
I’ve not looked into this yet so I don’t know if this can be done.
Just so you know, I thought the root issue could be the βbyβ not changing in your forums is because it might have outputted the text using code from a custom phpbb starter pack theme created by @lynq, here is an example of the custom forum freshness column from the starter pack.
I see what you mean. I think I’ll check with the author of my theme (Buddy) and see what he says. Thanks for the tip!
April 26, 2016 at 4:30 pm #174406In reply to: forum cover art….
ixixy
Participant@robkk, thank you very much for your response. you are totally awesome :0
I looked at the link, and it seems like it is for bloggers to put custom background on different posts. It’s a cool idea, but not what I had in mind.
So, in bbpress, when you set up a forum, there is a place that allows you to upload a featured image.
I want to use this feature…..and upload a landscape image to use as a cover image on top of the forum….
To paint a clearer picture, imagine buddypress’s cover image that is on a user’s profile…. I want a cover image on each forum….and the image would be the pic uploaded to the ‘featured image’ option as the forum is set up.
I know that this probably a really pretty simple thing to do….insert the featured image photo on the forum index….i just am not sure which templates would need to be edited or the code involved…and that’s why I’m turning the idea to you brilliant folks who are smarter than me for the solution π π π
April 26, 2016 at 3:18 pm #174403nateonawalk
ParticipantHello bbPress community,
I’ve forked @siparker ‘s plugin and have worked with a dev to develop an edited version
the new version:
– only includes post IDs at the end of topics
– moves the topic IDs to the end of the URL for URL prettiness
– makes it so that every page only has one path (important to prevent negative SEO duplicate content vulnerabilities)
– works with breadcrumbs and edit post links tooI’m doing a final debugging right now, but I’ll publish the code on GitHub once it’s polished and then will share a ZIP here.
@netweb, would love to help work toward getting this implemented in core functionality πApril 26, 2016 at 2:12 pm #174400In reply to: Cannot modify header information
arathra
Participant/** * Filter whether to trigger an error for _doing_it_wrong() calls. * * @since 3.1.0 * * @param bool $trigger Whether to trigger the error for _doing_it_wrong() calls. Default true. */ if ( WP_DEBUG && apply_filters( 'doing_it_wrong_trigger_error', true ) ) { if ( function_exists( '__' ) ) { $version = is_null( $version ) ? '' : sprintf( __( '(This message was added in version %s.)' ), $version ); /* translators: %s: Codex URL */ $message .= ' ' . sprintf( __( 'Please see <a href="%s">Debugging in WordPress</a> for more information.' ), __( 'https://codex.wordpress.org/Debugging_in_WordPress' ) ); trigger_error( sprintf( __( '%1$s was called <strong>incorrectly</strong>. %2$s %3$s' ), $function, $message, $version ) ); } else { $version = is_null( $version ) ? '' : sprintf( '(This message was added in version %s.)', $version ); $message .= sprintf( ' Please see <a href="%s">Debugging in WordPress</a> for more information.', 'https://codex.wordpress.org/Debugging_in_WordPress' ); trigger_error( sprintf( '%1$s was called <strong>incorrectly</strong>. %2$s %3$s', $function, $message, $version ) ); } }Is the function, line 3901 is : trigger_error( sprintf( __( ‘%1$s was called incorrectly. %2$s %3$s’ ), $function, $message, $version ) );
April 26, 2016 at 10:59 am #174393Topic: Add Nickname to bbp-reply-author
in forum Troubleshootingdesignvibe
ParticipantHi,
I’ve added the nickname field to profile so people can add it.
Now I need it to display on the topic and replies under bbp-reply-author.
Everything I’ve tried shows username. Is there a way of tweaking to below to nickname?
<?php $user = get_userdata( bbp_get_reply_author_id() ); if ( !empty( $user->user_nicename ) ) { $user_nicename = $user->user_nicename; echo "@".$user_nicename; } ?>April 26, 2016 at 10:14 am #174388Manuel Fritsch
ParticipantThank you, I just cancelled the whole padding. It looks good now. Would you confirm this, hope I did not miss something?
#wp-link, #wp-link p { font-size: 15px; line-height: normal; } #wp-link h1, .h1, .title h1 { color:#000; } #wp-link .screen-reader-text, .screen-reader-text span, #wp-link .ui-helper-hidden-accessible { position: absolute; margin: -1px; padding: 0; height: 1px; width: 1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; word-wrap: normal!important; }April 26, 2016 at 10:02 am #174387Robkk
Moderatoradjust the padding for the input
#wp-link, #wp-link p { font-size: 13px; line-height: 1; } #wp-link input { padding: 0 5px; } #wp-link .screen-reader-text, .screen-reader-text span, #wp-link .ui-helper-hidden-accessible { position: absolute; margin: -1px; padding: 0; height: 1px; width: 1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; word-wrap: normal!important; }April 26, 2016 at 9:51 am #174385Manuel Fritsch
ParticipantDear Robkk,
the code is almost perfect. Thank you. Only the button text for the submit button is out of place, would you have another look?
April 26, 2016 at 9:41 am #174384In reply to: Change Author / moderator of a forum
Robkk
ModeratorModerators cannot see the forums menu in the WordPress backend. To see the Forums menu item they need the
keep_gatecapability which only Keymasters have.Moderators can create forums on the frontend of your site if you used the
[bbp-forum-form]shortcode in a pageEditing forums, I am not sure how they are supposed to do that on the frontend, maybe bbPress had some functionality for managing BuddyPress group forums that is broken. Have to look into it.
April 26, 2016 at 9:16 am #174383Robkk
ModeratorTry this custom CSS instead.
#wp-link, #wp-link p { font-size: 13px; line-height: 1; } #wp-link input { padding: 6px; } #wp-link .screen-reader-text, .screen-reader-text span, #wp-link .ui-helper-hidden-accessible { position: absolute; margin: -1px; padding: 0; height: 1px; width: 1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; word-wrap: normal!important; }April 26, 2016 at 8:25 am #174381JaneAkshar
ParticipantThese are my plugins
bbPress
Category Posts Widget
Contact Form 7
Display Posts Shortcode
iThemes Security
jetpack by WordPress.com
Really Simple CAPTCHA
Wordfence Security
WP Google Maps
WP-Members
Yoast SEOApril 26, 2016 at 8:10 am #174379In reply to: Group creation settings blank
investacube
ParticipantHi @daveodea did you find a solution? I have exactly the same situation. So far, I have verified that:
1. there are no errors being logged anywhere server side and
2. the issue isnβt related to caching, either server side or via a wordpress plugin.I have also:
1. disabled all plugins except buddypress;
2. enabled my main theme, in case I had some conflicted code in my child theme;
3. tried with the twenty sixteen theme.But I still canβt resolve this issues. Does any one have anymore advice they could give me?
-
AuthorSearch Results