Search Results for 'code'
-
Search Results
-
Im going to intergrate my WordPress Theme into my bbPress forum, so I need to make sure that functions like Header and Sidebar can be used in bbPress. So I’ve been reading up and found out that you need to place this code in the bb-config.php:
require_once(‘path/to/wp-blog-header.php’);
However when I place the code. I suddenly can’t log into the bbPress forum anymore. When I click login nothing happens the page will load but not display links like Username –> Admin —> Log out just the normal page as if a guest was browsing the forum.
I am placing the code below the first <php line? Am I doing something wrong?
Additional Info:
WordPress Version: 2.6.2
bbPress Version: 0.9.2
My site currently does not have a user management system where people can register etc. I’m looking for a system to integrate that I can just piggyback off of and access the users table to do my own development.
Would bbPress be a good fit here? I played around with the code a little bit and I just included “bb-load.php” and I was able call functions like ” bb_get_current_user_info( ‘id’ )” without actually displaying anything related to the forum.
The only downside is that it added about .2 seconds to my average php render times.
Topic: Change the Permalinks
I’m wondering if there’s a way to change the default Permalink structure and prefixes.
For example :
http://www.exolimpo.com/foro/topic/post-de-prueba
I would like to change topic for something else.
and
http://www.exolimpo.com/foro/forum/anime
I would also like to change Forum, since Foro already means forum in spanish.. so “Forum Forum” is reiterative.
If there’s a way to do this tell me, I don’t mind editing a little bit of code in the core, I just need a little bit of direction.
Here is how to correctly install Avatar Upload.
The “Additional Info” is not too detailed.
Here is the instructions on how to get the plugin (currently) on your bbPress site:
1. Download and upload the plugin to your bbPlugins directory.
2. Activate the plugin in the bbPress Admin section.
3. Follow the file movement instructions:
In the “additional-files” folder (inside this Avatar Upload plugin directory) there is several files. These need to be moved elsewhere.
- Move the entire “avatars/” folder to your bbPress root directory. (Including the “default.png” inside.)
- Move the “avatar-upload.php” to the bbPress root directory.
- Move the “avatar.php” (inside the “my-templates” folder) to your template(s) (theme(s)). Example: Move “my-templates/avatar.php” to “forums/bb-templates/kakumei/” (So it is like “forums/bb-templates/kakumei/avatar.php”.)
I hope this helps someone
When I use my keymaster account, and try to edit a user, there’s a part of the administration section that says, “Allow this user to” but there’s no form, text box or anything else to fill in after it. This line appears between “User Type” and “Custom Title”.
So what’s the point of the “Allow this user to” line? Looking at the code, it’s supposed to be for specifying specific user capabilities (like whether they can add posts, edit posts etc.) but it doesn’t seem to be fully functional yet. Is this expected?
If it helps I have the latest bbpress version, it’s 0.9.0.2.
Thanks.
I’m using WordPress 2.6 and I was trying to install bbPress 0.9.0.2 and integrate it and it came up with this error at the end of the installation:
“Duplicate key name ‘user_nicename’
>>> User tables will already exist when performing a database integrated installation.”
My forum got installed, however when I try to click on the topics or the forums or tag, it doesn’t open anything, I can’t get to read any of those. It just stays on the same page.
The only function I am able to use is the add topic, but I can’t get to read anything I click.
What should I do? Any advice is greatly appreciated
Hi,
I’ve successfully integrated WordPress 2.5.1 with bbPress 0.9.2, but I’ve encountered some issues with registering (display_name, multiple sign-ups with same email, etc.).
What I’m trying to do now is redirect all registration to the WordPress register page. My main questions are:
(1) how/where do I change the bbPress code to point to the WordPress register page.
(2) is there a way for the system to know where a user came from (forums or blog) and redirect the user appropriately after sign-up?
Thanks.
This was originally going to be an “It’s not working!” post, but I made some progress. Now it’s “Is what I did ok?” post.
I kept getting a”This Topic is Closed” error every time I tried to create a new topic. Traced it back to the insert statement in ‘bb_insert_topic’ in functions.php. The database was responding with the error of “The value ‘ ‘ is not a valid integer for column ‘topic_id’. (I am paraphrasing, I don’t have the exact response in front of me)
I suspected it had something to do with the fact that the topic_id value is being supplied to MySql, but it is set to be an auto-increment / not null field.
So, I commented out in the $default array definition in ‘bb_insert_topic’:
// 'topic_id' => false, // accepts ids or slugsand I changed this line:
unset( $default, $defaults );to this:
unset( $args, $defaults );Did the same thing under the ‘bb_insert_post’ function in the same file, but for the ‘post_id’ variables.
Presto. Everything seems to work OK now.
Could this issue be specific to my version of MySql? Although it is strange, because the original query works just fine using a third party tool (SQLyog).
Has anyone encountered this issue before? Or – can anyone comment on the validity of my changes, and if they might cause issues going forward?
Finally – should this be logged as a bug?
Thanks!
WP 2.6, BB 1.0, IIS 6.