Forum Replies Created
In reply to: How to disable "search" function
Depending on your theme, you should look into the header.php file. In there you’ll see something like:
<div class=”search”><?php search_form(); ?></div>
Remove this to get rid of the search form. You can also do this through css (recommended for upgrading) by setting the display: none; property.In reply to: Installed with WP, but with issues…
I would double check here https://bbpress.org/forums/topic/wordpress-and-bbpress-integration-101 to make sure you have all the correct settings.
The php_errorlog would be created in the root directory of your forum on the server if any errors are encountered. You can also look at the server error log. Also, are you using a plugin for the user roles?In reply to: changing gravatar image
If you look at the image properties, you’ll see the directory / location for the image. Simply replace that image.In reply to: Fatal error with social-it
Sorry, I don’t know social-it, but looking at the error it appears that you are missing a header. The header that is missing is functions.bb-meta.php which is included in bb-settings.php. Most likely, you are missing a require to bb-settings.php.In reply to: Add cookie integration settings
Here’s a good starting point: https://bbpress.org/forums/topic/wordpress-and-bbpress-integration-101
Do you get any errors in the php_errorlog?In reply to: Installation memory problem
What is the memory_limit value you have set in your php.ini file? Most likely this value is too low. Try increasing this value and restart your web server.In reply to: bbpress-1.0.2 & wordpress-2.8.6 integration
This is usually due to a cookie issue. Clear your cookies and then try to login / logout.In reply to: bbShowcase shut down?
With the sudden sticky for bbPress help, _ck_ shutting down her site and the previous post by her about refunding donations, I’m kinda wondering what is going on with bbPress. Hopefully someone with more info will chime in and explain the future of bbPress to the rest of us.In reply to: Integration
It sounds like either bbPress is pointing to the wrong db, or you are including files from WP such that it is overriding the db bbPress is looking at and is accidentally looking at the WP db. Make sure you are not including any WP files in the bb-config.php and bb-settings.php files.
FYI, in the future, if you find / solve a bug, tickets can be created at http://trac.bbpress.org
I’m glad it’s working for you. Though this is not an ideal fix, it at least works for now. You were correct in your title in that this is a bug with permalinks. And you are correct that this could be an issue in the future when upgrading. I created a ticket, so hopefully this will be fixed in the future for yourself and other users.
Ok, I think I see the problem now. If you look at the source code for the page 1 link, it generates an empty href element, which by default will link back to the current page. This is generated in the bb_paginate_links function in bb-includesfunctions.bb-core.php. Can you try something real quick, as a possible fix? Around line 244, you will see the following:
$empty_format = ”;
Change this to:
$empty_format = ‘/’;
This will generate an href of “/” which should lead to the root of your forum. Please let us know if this works.
This may sound kinda stupid, but after looking at the code, can you add topics to your forum to create a page 3 to see if you still have the issue? I’m just wondering if this issue only occurs when you only have 2 pages worth of topics. Can you test this real quick to see if this is the case? I will keep looking into it in the mean time.
Not sure why your site would break with that code. Did you add it to the end of the file, before the ?> ? Also, have you tried turning off permalinks to see if that works for your site?
It appears to be an issue with permalinks. Try and add this line to your bb-config.php file:
$bb->mod_rewrite = false;
If this is the case, make sure you setup permalinks correctly, since they don’t work out of the box. You can see how to do it Here
Are you using the kakumei template? Here is what I have in my front-page.php file:
<?php endforeach; endif; // $topics ?>
<?php bb_latest_topics_pages( array( ‘before’ => ‘<div class=”nav”>’, ‘after’ => ‘</div>’ ) ); ?>
<?php endif; // $topics or $super_stickies ?>
and have not had any issues.
Can you paste the html code generated for your links to provide more information?In reply to: Migrating Posts from BBPress to WordPress
Are you trying to synchronize posts between the two, so that you can continue the discussion in the forum? If so, you can use the plugin found here: http://bobrik.name/code/wordpress/wordpress-bbpress-syncronization/ Or are you just trying to transfer from bbPress into WordPress completely?
You beat me to it Glad you figured it out. Just to clarify, what I mean was you need to pass the proper topic ID depending on what you are doing. In this case, you are using get_topic_id(), which will get the current topic ID being worked on based on the global topic object. In other cases, you may be within a loop of topics, in which case you would need to use something along the lines of $topic->topic_id, depending on your topic object name. This will start to make more sense as you progress within php and bbPress. Until then, don’t be afraid to ask questions for help, everyone has to learn somehow.
Ah, copying the exact code would be the problem. That was meant as a guide, meaning you need to pass in the correct topic ID into the get_topic function. Depending on where in the front-page template you are putting this, you need to get the correct / current topic id.
That’s odd that it wouldn’t work in the front-page.php template file, since it is used within there. Make sure you are calling it correctly and that your code is hit. Can you post a code snippet for how you’re calling it?In reply to: unescaped characters
@nickaster: A couple of questions to help out diagnose this.
When you say deactivating does nothing, does that mean that new posts after deactivating still show the slash, or are you referring to old posts? The reason I ask this is that old posts may have stored the slash in the db, in which case the plugins may not affect this. Try deactivating the plugins and creating a new post to see if the slash is still there / appears in the new post.
What version of bbPress are you using?
Are there any other plugins you are using, or only those 3?
Are your plugins up to date?
Ok, I see what you’re looking for now. To get the forum name, use the forum_name() function and to get the forum link, use the forum_link() function. Once you have the topic ID, use the get_topic() function to get the topic object. From here, you can use the forum id. So, your code would look like:
$topic = get_topic($topic_id);
$forumName = forum_name($topic->forum_id);
$forumLink = forum_link($topic->forum_id);
An example of the forum_name and forum_link functions being used is in the bb-templateskakumeiforum.php file. Keep in mind that the example uses the current forum_id and doesn’t pass it in, but this should give you an example of how to use them.
You shouldn’t feel bad for asking questions. Everyone has to learn somehow.
Are you asking how to tell if a forum is in a category? If so, use this function:
bb_get_forum_is_category( $forum_id )
This function returns true or false if the forum is a category.