Search Results for 'code'
-
AuthorSearch Results
-
March 22, 2015 at 3:40 am #159974
In reply to: BBpress Forum Login Takes me to WordPress Admin Page
Robkk
Moderatoruse this plugin add your PHP code snippets to it.
March 22, 2015 at 3:35 am #159971In reply to: No option for people to register?
Robkk
Moderatorthey use the regular WordPress registration
which is http://example.com/wp-login.php?action=register
or you can put the bbPress shortcode [bbp-register] into a page for a frontend form
here is the rest of the supplied shortcodes
March 22, 2015 at 12:59 am #159966In reply to: BBpress Forum Login Takes me to WordPress Admin Page
darlookoka
ParticipantThank you so much, should this code be in the bbpress setting or the wordpress settings? thks
March 21, 2015 at 10:39 pm #159965In reply to: Edit forum homepage – where is it?
Sam Rohn
Participantclick on the “documentation” link on the top of this page, the info you seek is there –
template info – https://codex.bbpress.org/amending-bbpress-templates/
conditionals – https://codex.bbpress.org/bbpress-conditional-tags/
etc
sam
March 21, 2015 at 11:37 am #159953wenlujon
Participantin the notice text area of a forum, there’s message:
“This forum contains xxx topics, and was last updated by”
and there’s an avatar before the user, how to remove that?also, that’s the case for a topic, how to remove that?
“This topic contains xxx replies, has xxx voice, and was last updated by”BTW,
I managed to remove some avatars in other areas through this:.widget_display_topics .bbp-author-avatar { display: none ! important; } .bbp-topic-started-by .bbp-author-avatar { display: none ! important; } .bbp-topic-freshness-author .bbp-author-avatar { display: none ! important; } <code></code>reference:
March 21, 2015 at 8:39 am #159946In reply to: sidbar login avatar size
Robkk
Moderatorthis CSS should work add !important edit the width/height the way you want it.
.bbp-logged-in img.avatar { width: 80px!important; height: 80px!important; }March 21, 2015 at 8:34 am #159945In reply to: reply threading not working
Robkk
Moderatoralright when you get bounced to the normal reply form if you see a cancel link by the submit button thats when you know threaded replies is working.
just enter some content after your bounced from the reply link and hit submit the content should be under the post you hit the reply link.
the awkwardness im talking about is when the reply is on its 7th thread or more when you have a sidebar for bbPress, it makes the 7th on look squished.
Its best if you have full width for threaded replies.
other issue is when you are on about your 3rd thread or more of a reply on mobile devices , the replies content will look barely readable past that.
messing with this CSS and making the margin-left smaller for mobile device width would help out alot though. But making it look great on mobile would require some work.
#bbpress-forums ul.bbp-threaded-replies { margin-left: 50px; }if you really want to have a 10> threads , get inspired by reddit.com and how they do it.
March 21, 2015 at 6:04 am #159940In reply to: not displaying correctly
Robkk
Moderatorremove the CSS you added to your child theme (you can download it to backup if you made changes)
let the style go back to the normal 2013 then put back the CSS
it did this type of thing for 2014 for me one time and it was pretty weird.
this PHP snippet should remove the double Private wording
add_filter('private_title_format', 'ntwb_remove_private_title'); function ntwb_remove_private_title($title) { return '%s'; }other than that try these troubleshooting tips
General Issues
bbPress works with many themes and plugins, but it is impossible to test all combinations, and many issues are caused by conflicts with plugins and themes.
Therefore before posting, please test if your issue is resolved by the followingPlugins
Deactivate all but bbpress and see if this fixes. If it does, re-enable one at a time to see which is causing the error.
Themes
If plugins don’t pinpoint the problem, as a test switch to a default theme such as twentytwelve, and see if this fixes.
If the above produces an issue:
If it is a paid theme or plugin, please contact the authors for resolution.
If free, do ask here, we may know of workaround.
PLEASE tell us you have done the tests above when posting.OTHER COMMON FIXES
The following will do no harm, so are worth a try and can fix some issues
Dashboard>settings>permalinks. Don’t change anything, but just click save. This resets the permalinks, and can solve some 404 errors.
Dashboard>tools>forums>repair forums and run one at a time. Useful if you’ve got some stuff not showing – doesn’t often fix but occasionally does.March 21, 2015 at 5:34 am #159937Robkk
Moderatorthese might help unless you already read them.
https://codex.bbpress.org/import-forums/custom-import/
codex.bbpress.org/import-forums/only other thing i can suggest is contact @netweb on slack for help
follow this to figure out how to join the #bbpress slack channel.
March 21, 2015 at 5:24 am #159936In reply to: couple of questions
Robkk
Moderatormake sure you follow this so that you have everything set up correctly
March 21, 2015 at 5:20 am #159935In reply to: View Topic By
Robkk
Moderatormaybe this guide will help you with understanding.
but you can also put any PHP code snippets in a functionality plugin like this one
March 21, 2015 at 5:04 am #159932In reply to: Looking for a theme…
Robkk
ModeratorbbPress doesnt have themes anymore , it just uses WordPress ones.
you can customize it yourself to look kind of like that though , either following this
codex.bbpress.org/bbpress-styling-crib/
or using this plugin https://wordpress.org/plugins/bbp-style-pack/
you can also post a job at http://jobs.wordpress.net/ and hire a developer to develop this for you.
March 21, 2015 at 4:55 am #159931In reply to: Search not finding results
Robkk
Moderatorthe plugin only affects the normal WordPress search i think so just use the normal WordPress search for your site.
and disable the forum search in settings > forums in the back-end of WordPress
but like i said before you would have to probably enable each post type to be in the regular WordPress search.
add this to your child themes functions.php or add it to a functionality plugin.
/** * Include bbPress 'topic' custom post type in WordPress' search results */ function ntwb_bbp_topic_cpt_search( $topic_search ) { $topic_search['exclude_from_search'] = false; return $topic_search; } add_filter( 'bbp_register_topic_post_type', 'ntwb_bbp_topic_cpt_search' ); /** * Include bbPress 'forum' custom post type in WordPress' search results */ function ntwb_bbp_forum_cpt_search( $forum_search ) { $forum_search['exclude_from_search'] = false; return $forum_search; } add_filter( 'bbp_register_forum_post_type', 'ntwb_bbp_forum_cpt_search' ); /** * Include bbPress 'reply' custom post type in WordPress' search results */ function ntwb_bbp_reply_cpt_search( $reply_search ) { $reply_search['exclude_from_search'] = false; return $reply_search; } add_filter( 'bbp_register_reply_post_type', 'ntwb_bbp_reply_cpt_search' );when your done make sure you have search custom taxonomies in the search everything plugin settings maybe even the search every tag option too.
March 21, 2015 at 4:46 am #159930In reply to: topic-reply-count: starting at "1"
Robkk
Moderatorid say create a custom bbPress forum role
hopefully this guide will help you out.
as for the changing the bbpress count to start from a different number , that might cause some issues..
March 21, 2015 at 4:19 am #159928In reply to: The problem of sub-sections
Robkk
Moderatori think this is what you are saying you want??
put this CSS anywhere you can put custom css
#bbpress-forums .bbp-forums-list { display: none; }March 20, 2015 at 7:41 pm #159923In reply to: Better WYSIWYG text editor?
Doug Smith
ParticipantSometimes this happens when copying from within the same site. For example, you may copy and paste from a previous part of the conversation to quote it. The HTML from the site will be picked up and copied into the editor.
I just added a function to fix this behavior at the bottom of the Enable Visual Editor bbPress Codex page.
March 20, 2015 at 6:10 pm #159921In reply to: Give bbPress full editor by default?
Doug Smith
ParticipantI ran across this discussion while trying to solve a similar issue so I thought I’d update it with my solution.
After enabling the visual editor I started seeing HTML present in some of the posts. The cause was people copying from a previous part of the discussion and pasting it into the editor to quote it. That was bringing in styles from the website and including it in the editor as HTML. For example:
<span style="color: #666666; font-family: Helvetica, Arial, sans-serif; font-size: 20px; line-height: 32px; orphans: 3; widows: 3; background-color: #fbfbfb;">Some copied and pasted text from earlier in the discussion.</span>My solution was to add the TinyMCE _paste_ plugin to the editor, which defaults to cleaning up pasted text. Here’s the filter:
function bbp_tinymce_paste_plain_text( $plugins = array() ) { $plugins[] = 'paste'; return $plugins; } add_filter( 'bbp_get_tiny_mce_plugins', 'bbp_tinymce_paste_plain_text' );March 19, 2015 at 11:24 pm #159904In reply to: View Topic By
sharlene_c
ParticipantThank you Robkk .. This is a little intimidating for me as I don’t know php nor do I have experience with child themes but I’ll see if my theme allows for that and try to create one.
Thank you for giving me the code.March 19, 2015 at 9:38 pm #159902In reply to: couple of questions
afurneaux
ParticipantI’m still confused as to where to put the short code
I went to the customize link

I don’t understand where to enter the short code.
My blog is andrewstravelworld.com
right now the message board is a widget
Right now i only have north america set up but i want the link to be directed to the general board and not just the north america section, i plan on adding other sections. Most message boards list all their forums and then theirs sub sections thats what i’m planning to do.
I’m sure theirs something small that i’m missing , any help or advice would be great appreciated!
March 19, 2015 at 6:19 pm #159897In reply to: New Topic Form Shortcode Issue
Robkk
Moderatorwhy did you use echo do shortcode on these two lines , they are not shortcodes , its just header text.
<?php if (!is_user_logged_in()) echo do_shortcode ('<h2 class="mve-form-title">Zo te zien is hierover nog niets geschreven...<br><br>Geregistreerde leden kunnen een vraag stellen aan de community.</h2>') ; ?><?php if (is_user_logged_in()) echo do_shortcode ('<h2 class="mve-form-title">Zo te zien is hierover nog niets geschreven. Stel je vraag aan de community.</h2>') ; ?>but the topic you lead to there was a fix , i just edited for your search results page.
i did test everything out , saw the issue , and resolved it with this function.
add_filter( 'bbp_current_user_can_access_create_topic_form', 'custom_bbp_access_topic_form' ); function custom_bbp_access_topic_form( $retval ) { if ( bbp_is_search_results() ) { $retval = bbp_current_user_can_publish_topics(); } return $retval; }March 19, 2015 at 3:41 pm #159894In reply to: broken widget / shortcode
Robkk
Moderatoradd all this CSS to anywhere you can add Custom CSS
.bbp-login-form label[for=rememberme] { width: auto !important; } #sidebar .bbp-login-form label { width: auto!important; } .bbp-login-form .bbp-login-links a { margin-top: 25px; } .bbp-login-form button#user-submit { margin-top: 15px; } .bbp-login-form label[for=user_login] { display: block; width: auto!important; }March 19, 2015 at 3:28 pm #159893In reply to: New Topic Form Shortcode Issue
mvaneijgen
ParticipantHey,
I have edit the
feedback-no-search.phpinside my child theme stored in child-theme > bbpress
This is what the file looks like:
https://gist.github.com/mvaneijgen/83b2bdf325172ae1536bNo permission changes.
Yes they can and if I change the short code to [bbp-topic-form forum_id=221] everything works fine
Don’t know what troubleshooting to try.March 19, 2015 at 3:21 pm #159891In reply to: New Topic Form Shortcode Issue
Robkk
Moderatori just tested out the shortcode an i get no issues , i checked with a participant and keymaster roles.
i usually use the topic form page on this site too when i created topics and it seems to work well here too since im a participant.
have you edited the template files specifically the ones for the topic form??
have you edited role permissions??
can your users see the message on normal topic forms that should display under a forum list.
have you done the usual troubleshooting??March 19, 2015 at 3:05 pm #159890In reply to: couple of questions
Robkk
Moderatoryou have a link to your dissuasion board already in your menu
i mean if you didnt put the shortcode into that page already , the forums should show up every time you hit it.
use this shortcode
[bbp-forum-index]
https://codex.bbpress.org/shortcodes/
other than putting the shortcode
usually when visiting a site the forums archive is usually yoursite.com/forums.
so use the links part in the menus section and add a custom link
March 19, 2015 at 3:00 pm #159888In reply to: Shortcode or link to profile, topics started, etc
Robkk
Moderatorhere is the list of all bbPress shortcodes
codex.bbpress.org/shortcodes/
you could develop/hire a developer to use something like this
<?php wp_get_current_user(); ?>codex.wordpress.org/Function_Reference/wp_get_current_user
an alternative would be to use #3
codex.bbpress.org/layout-and-functionality-examples-you-can-use/
-
AuthorSearch Results
