Thank you Robkk for the help. I deactivated all the plugins a couple weeks ago and checked that, no help at all.
I had forgotten about the theme thing, I did as you suggested this morning and changed to 2012, no help, I clicked on the hardcoded sidebar link and it redirected it to a bad ugly link. Which it wouldn’t do if I uncheck the “group forums” check box at bbpress settings.
Bummed
Hi there,
I was having trouble with a theme so I deactivated and reactivated bb press, since then all my “private” forums take me to a 404 page and when I view the forum root page, it doesn’t show the private forums listed.
However all the pages which I embedded the private forums via shortcode are still working and all the posts are there?
Eeek! Please help!
Hi everyone,
I installed bbpress on my company’s website, and when i tried to create new topic like what i am doing here, the brower will return “no data received” error, and if i click more information, i found the error code “ERR_EMPTY_RESPONSE”.
I’ve tried to deactivate most of the plugin except bbpress, and the problem remains.
And if I type something short, like “test”, it can be created.
Does this has to do with the usage of server space? Because I used about 80% of it.
Thank you in advance for your help. Please let me know if you need more information
Hi!
I found some solution for this problem. Only you need to put this code on functions.php of your active theme:
function custom_bbp_show_lead_topic( $show_lead ) {
if(!current_user_can('manage_options')){
$show_lead[] = 'true';
}
return $show_lead;
}
add_filter('bbp_show_lead_topic', 'custom_bbp_show_lead_topic' );
I’ve just added a shortcode to one of my plugins that lets you custom list forums
bbp additional shortcodes
[display-forum-index forum= ‘2932, 2921′ breadcrumb=’no’ search=’no’] Displays the selected forum indexes – see the site for details
you can disable the search form in settings>forums in the backend dashboard of WordPress so that you wont have to use the CSS anymore.
and unless you already did you could remove the code that renders the title in your bbpress.php file.
if you haven’t created a bbpress.php you should
https://codex.bbpress.org/theme-compatibility/getting-started-in-modifying-the-main-bbpress-template/
if you still need help copy the first half of the bbpress.php file you have in a reply here.
As you no doubt already know, this is just a warning message, and bbpress say it is an issue with wordpress, and are waiting for wordpress to fix. Also as you know (but for others reading this), turning off debug fixes this.
If you want it to disappear whilst you are developing (and so need debug on), then go to
wp-content/plugins/bbpress/includes/core/sub-actions.php
and comment out/change line 147
_doing_it_wrong( __FUNCTION__, __( 'The current user is being initialized without using $wp->init().', 'bbpress' ), '2.3' );
to
//_doing_it_wrong( __FUNCTION__, __( 'The current user is being initialized without using $wp->init().', 'bbpress' ), '2.3' );
and change back after developing as well as turning debug off for the production environment
@cbsy lots of ways to achieve this – two below
1. Look in
Dashboard>settings>forums>Forum Root slug, and see what ‘forum root’ is set to
The create a page with this name on it – so title the page this
The in that page write whatever intro you want, and then put
[bbp-forum-index] at the bottom of the content
bbpress will then use this page as your forum root.
2.
Add the following to your functions file
add_action ('bbp_template_before_forums_index' , 'my_intro' ) ;
Function my_intro () {
Echo '<div class="entry-content"> Here is my intro text. This is lots of writing to introduce the forums and make people read this stuff </div>' ;
}
Functions files and child themes – explained !
If you hit prolems or need further help, just come back !
Try the following
//adds login/logout to menu
//filter to add login/logout to menu
add_filter( 'wp_nav_menu_items', 'my_nav_menu_login_link' );
function my_nav_menu_login_link($menu) {
//uncomment the next line if you only want login on bbpress pages
//if(is_bbpress()) {
if (is_user_logged_in()) {
//set the $url on the next line to the page you want users to go back to when they logout
$url = 'http://www.mysite.com/forums' ;
$url2=wp_logout_url($url) ;
$loginlink = '<li><a title="Logout" href="'.$url2.'">Logout</a></li>';
}
else {
$current_user = wp_get_current_user();
$user=$current_user->user_login ;
//set $page on the next line = the permalink for your login page
$page='login' ;
$loginlink = '<li><a href="/'.$page.'/">Login</a></li>';
}
//uncomment out the next lines if you only want login on bbpress pages
// }
// else {
// $loginlink="" ;
// }
$menu = $menu . $loginlink;
return $menu;
}
So earlier, someone suggested doing the following:
// Add the breadcrumb
// $crumbs[] = '<a href="' . esc_url( $root_url ) . '">' . $r['root_text'] . '</a>';
$crumbs[] = '<a href="/forum/">Forum</a>';
Can I make a duplicate of the template.php to drop into my theme somewhere to make a similar change? This works, but I don’t like the idea of altering the main bbpress files.
easiest way would be to uncode my shortcode
bbp additional shortcodes
or just use the do_shortcode function within your code
https://codex.wordpress.org/Function_Reference/do_shortcode
I’m sorry for few days of silence. My love in the USA, and I’m in Russia without the visa.
@jeffacubed thank you for “спасибо”. I can publish the code. Also I can give you access to my private repo on Bitbucket.
wp_signup_location – it’s the filter which returns the sign up page location (url) and WordPress redirect to this addres. So this address not using in wp-signup.php because you already on the signup page. Your example of grep result shows that this filter using in wp-login.php (this page have the signup link).
My code
All of this files a part of my mu-plugins for this project.
Require necessary files — gist.github.com/korobochkin/06780b88118e35c3bfd1
wp-signup.php — gist.github.com/korobochkin/9e4f9cd6502c4252d902 I use selena_network_signup_main function from this file on page-signup.php template in child theme.
wp-activate.php — gist.github.com/korobochkin/765d0a5d4e028dc3001a I use selena_network_activation_page function from this file on page-activate.php template.
And finally gist.github.com/korobochkin/a161718855b7784bfb10 file which sends notifications after you create an account and disable default WordPress notifications (return false at the end of the function). If you return true at the end of this function then user get 2 emails with different activation links:
site.com/wp-activate.php?key=HASH
site.com/activate/?key=HASH
P. S. can’t post this reply with links (bbPress doesn’t allow post replies with links).
I’m sorry for few days of silence. My love in the USA, and I’m in Russia without the visa.
@jeffacubed thank you for “спасибо”. I can publish the code. Also I can give you access to my private repo on Bitbucket.
wp_signup_location – it’s the filter which returns the sign up page location (url) and WordPress redirect to this addres. So this address not using in wp-signup.php because you already on the signup page. Your example of grep result shows that this filter using in wp-login.php (this page have the signup link).
Require necessary files https://gist.github.com/korobochkin/06780b88118e35c3bfd1
wp-signup.php — https://gist.github.com/korobochkin/9e4f9cd6502c4252d902 I use selena_network_signup_main function from this file on page-signup.php template in child theme.
wp-activate.php — https://gist.github.com/korobochkin/765d0a5d4e028dc3001a I use selena_network_activation_page function from this file on page-activate.php template.
And finally https://gist.github.com/korobochkin/a161718855b7784bfb10 file which sends notifications after you create an account and disable default WordPress notifications (return false at the end of the function). If you return true and the end of this function then user get 2 emails with different activation links:
site.com/wp-activate.php?key=HASH
site.com/activate/?key=HASH
All the code can be viewed there.
This page is currently written as just a simple WordPress page with several shortcodes as listed below:
General Discussions
[bbp-single-forum id=3926]
Guild Discussions
[bbp-single-forum id=3924]
Group Forums
[bbp-single-forum id=10169]
When changing the Settings to have /forums as the forum root page, it changes all of the above listed shortcodes visually to look like it was just duplicated over and over from the current /forums-root page. It loses all of the current forum IDs and they all turn into a general forum-index.
This is why I can’t just swap it in the Setting menu for the forums, and the reason I want the current Forum breadcrumb to direct to /forums and not /forums-root.
If you would like, take a look at the way it looks now, and I’ll switch it after so you can see what it is doing.
I’m sorry but I don’t understand what you mean.
What shortcodes – where?
You will need to either provide examples or explain further.
Sorry, but I am trying to help you, but there are hundreds of ways to set up wordpress/bbpress so need clear issues to resolve eg it looks like this, it needs to look like this
If I change the page as you mentioned, all shortcodes for the http://forgebreaker.net/forums/ page are overwritten, and you end up with several copies of the forum-index shortcode instead.
The changelog says this:
Don’t always put tags around titles, as this affects the title bar, too. If you want bolded titles on topics with unread posts, use gtf_topic_title()
Would I just add this code to the css or php file?
Hi @Robkk where do I add this code?
Hi all,
I need help for programming a little feature for my forum.
I’m willing to pay some money, after a more detailed discussion of price.
But this should be somewhat “easy” for a programmer used to bbpress/wordpress, as most code already exists.
If interested:
Please, have a look at this page:
https://www.tradingview.com/widget
(They supply this for free by the way)
Look at the top widget/stock chart, and look at the code supplied on the same page underneath the chart.
Also notice how you can enter the stock-symbol of choice, in the top left corner of the chart, to search in Teamviewers own database, to load a new chart.
NOTE: This method (from the user interface) does apparently NOT change the “SYMBOL” in the code, as seen on the page above.
– For the “widget” to show another symbol by default, you’ll have to enter it and click “Apply” on the left side, to update the code with a new default SYMBOL.
Please try it out, to have a feeling how it works.
Now my questions:
Q1:
Is it possible to embed this script, in the text-area for bbpress, and run its output “live” when a user edits a new post?
It could be called and embedded into the text area, by clicking a “check-button” labeled “Graf” (‘Chart’ in Danish).
(And removed again unchecking this button – of course)
Q2:
Is it possible for the user, to enter directly on the user interface of the widget, a new symbol, and post it (correct chart) together with the topic?
It would maybe require that the Post-button would need to update the “SYMBOL”-line in the script code, with the symbol the user have chosen and fetched from Tradingviews database, while also posting it all…Like you would do with an WYSIWYG editor
I hope I made myself somewhat understandable 🙂
Thanks in advance !
Best regards,
Martin L. Hansen – Denmark.
Hi!
I want to put tinyMCE in bbPress, I copied this code -> https://codex.bbpress.org/enable-visual-editor/ and it works good but I want to disable html tab and leaving only the visual tab.
Is it possible without using css or javascript solutions?
Hi there, I am using insert_php plugin with bbpress. I have already added [insert_php] as a shortcode to whitelisted shortcode list under ‘bbPress2 shortcode whitelist’s settings. But, I am still getting [insert_php] as text in replies. Please help me understand if I am missing something here?