Search Results for 'code'
-
Search Results
-
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 slugs
and 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.
Topic: redirect after login error
Hi,
I’m using version 0.902.
My case I’m a user and not logged in
I select a forum and click “add new”
next I need to login
while pressing the button I get this error:
Warning: parse_url(http://#postform) [function.parse-url]: Unable to parse URL in /home/user/domains/domain.com/public_html/forums/bb-includes/pluggable.php on line 272
Warning: Cannot modify header information - headers already sent by (output started at /home/user/domains/domain.com/public_html/forums/bb-includes/pluggable.php:272) in /home/user/domains/domain.com/public_html/forums/bb-includes/pluggable.php on line 228if hit the back button/refresh I’m logged in.
I tried the same on this forum and after hitting login nothing happens and I’m logged in.
I guess you guys know about this problem? (sorry couldn’t find the info)
and if you know how to fix this, please advice.
Thanks
I would like to disable ‘BBcode Buttons’ automatic placement, and put the toolbar manually – I tried to place
bbcode_buttons()
in thepost.php
but nothing shows – any tips?I installed bbPress 0.9.0.2 and tried to integrate with WP 2.5 site. The two are at http://www.my-site/forum and http://www.mysite/blog under the root directory. I have two issues:
First is with permalinks set to the default (/forum.php?id=1), no problem, I can view profiles and posts within bbPress. However if I use either of the other settings for a permalink, when I click on any profile or post topic within admin control panel or site view, I only get a blank page, no error. Example: the post should be at “forum/post-name”, which is exactly where the link takes me but a blank page exists. However I can view the user profiles registered at bbPress within the WP admin area, so I believe the two are at least partially integrated.
The host is GoDaddy and there are no problems with WP permalinks. I have tried the using the following htaccess code with the /forum directory:
# BEGIN bbPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /forum/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /forum/index.php [L]
</IfModule>
Also just having one line:
Options +MultiViews
Also the exact code generated at bb-admin/rewrite-rules.php
Second issue is after login to bbPress, a simple link to the WP admin requests me to login again. Does this take more than a simple link to “…/blog/wp-admin/”? I have checked the cookies and both look identical.
Thanks for any help
Topic: get_user_profile_link bug?
Hello,
I’m writing some plugin for rewriting url for user’s profiles.
I have some code:
add_filter('get_user_profile_link', 'ss_get_user_profile_link');
function ss_get_user_profile_link($link, $id = 0) {
$user = bb_get_user(bb_get_user_id($id));
$r = bb_get_option(‘uri’) . ‘profile:’ . $user->user_nicename;
return $r;
}
When ss_get_user_profile_link get control, there is $id = 0 always. Why?
Thanks.
Topic: How to change your avatar?
How can a user change their avatar on a new bbPress installation?
I failed to find options for this
Topic: Plugin suggestions
I haven’t found such topic, and I think it might be useful (if no, please throw me into oblivion heh). Do you need some additional functionality but you can’t find a plugin and you can’t code? Post ideas here, maybe someone will “code your idea”.