Search Results for 'code'
-
AuthorSearch Results
-
January 4, 2009 at 10:17 pm #70896
In reply to: Simple:Press and bbPress Themer
johnhiler
MemberMatching the bbPress theme to your WordPress theme isn’t trivial… at first it really bothered me. But once I realized how different blogs and forums were, it made a lot more sense to me.
The initial conversion was the hardest part. After that, little tweaks to my blog theme didn’t take that long to incorporate into my bbPress theme. But I’m getting ready to do a redesign of the blog, and am dreading converting it into a bbPress theme again. It probably won’t be that bad; it’s just inconvenient.
Overall though, it’s been definitely worth it
. Frankly I am liking bbPress much more than I ever liked WordPress!
January 4, 2009 at 8:18 pm #70842In reply to: bbPress 0.9.0.4 and 1.0-alpha-5 released
thugzie
MemberI’m having an installation error as well

Warning: cannot yet handle MBCS in html_entity_decode()! in /home/content/b/r/i/xxxxxx/html/xxxxxx/support/bb-includes/wp-functions.php on line 113
January 4, 2009 at 5:12 pm #70841In reply to: bbPress 0.9.0.4 and 1.0-alpha-5 released
_ck_
ParticipantThis seems a great time to mention a new hidden feature in bbPress 1.0 based on a suggestion I made: “Safe Mode”
When you don’t know why something isn’t working, one quick and easy way to prove if it’s a plugin gone wrong or not is to temporarily try “Safe Mode”
The way to activate safe mode is to edit
bb-config.phpand insert$bb->safemode = true;Then your forum will temporarily switch to the default theme (which you should never have tampered with) and disable all plugins, temporarily.
When you are done testing, remove the line from
bb-config.phpThis is far easier than deactivating 20+ plugins, one at a time and then having to activate them again.
January 4, 2009 at 1:24 pm #70836In reply to: bbPress 0.9.0.4 and 1.0-alpha-5 released
John James Jacoby
KeymasterNot sure if this is new since alpha5 or not, but on a fresh install the auth key seems to die when there is a quotation mark
"in the key.Basically a WP key like
define('SECURE_AUTH_KEY', '-"r642fed3E1d>}MdGFlh@tR!QPU%/!S_6;CjO0}^>6TclyZM9mEKqEn+ <?)3 U#*X;');Ended up like
define('BB_SECURE_AUTH_KEY', '-');This actually messed up the installer at one point too, displaying part of the key inside an area where it wouldn’t normally.
Should I trac this Sam?
January 4, 2009 at 1:03 pm #70882In reply to: Delete users with no posts
_ck_
ParticipantWe could make another query to delete usermeta where the id doesn’t appear in wp_users.
I’m not crazy about deleting rows entirely but I guess it could not hurt if the user id # never gets reused, which mysql should not do.
Definitely do a backup first.
This will show all “orphaned” usermeta:
SELECT user_id,meta_key, umeta_id FROM wp_usermeta
LEFT JOIN wp_users ON user_id=ID
WHERE ID is NULLso delete the wp_users rows first using the first query and then delete the orphaned usermeta
January 4, 2009 at 12:57 pm #70835In reply to: bbPress 0.9.0.4 and 1.0-alpha-5 released
_ck_
ParticipantThanks for the fix Sam.
What’s really scary is the code it replaced.
I can’t believe what I was seeing – did they really build the $table on EACH and EVERY call instead of making it static? That’s some serious non-performance thinking.
I mean just look at it, ugh:
function htmlspecialchars_decode( $str, $quote_style = ENT_COMPAT ) {
$table = array_flip( get_html_translation_table( HTML_SPECIALCHARS, $quote_style ) );
$table = array_merge( array( ''' => "'" ), $table, array( '&' => "&", '&' => "&" ) );
return strtr( $str, $table );on EVERY call it builds $table?
Well it’s gone now so I guess that’s what counts.
I hope the error catching routine doesn’t slow things down too much.
Personally I am waiting for PHP 5.3 to finally “upgrade” from PHP 4
It won’t be worth it until then.
January 4, 2009 at 4:12 am #70831In reply to: bbPress 0.9.0.4 and 1.0-alpha-5 released
_ck_
ParticipantOkay instead of commenting it out, do this instead
error_reporting(0);January 4, 2009 at 3:27 am #70875In reply to: Both Undelete and Delete links are under each post
Ipstenu (Mika Epstein)
ModeratorI opened that a half a month ago
But thanks, _ck_! It works now. I updated my ticket but … why isn’t it picking that up from the default template?
January 4, 2009 at 3:23 am #70830In reply to: bbPress 0.9.0.4 and 1.0-alpha-5 released
wordpressfan
MemberI commented-out the error_reporting line in the “stable” 0.9 download and still get this installation error:
Warning: cannot yet handle MBCS in html_entity_decode()! in /xxx/xxx/xxx/xxx/forum/bb-includes/wp-functions.php on line 113
Can someone put together a working version of bbpress for download?
January 4, 2009 at 2:51 am #70874In reply to: Both Undelete and Delete links are under each post
_ck_
ParticipantNo you miss the point that both are put into the template so the ajax can hide or unhide the link as necessary depending on the post status.
But older themes without the two classes above will never hide the alternate link by default. So they both show.
There will be hundreds of questions about this now.
Put these two classes into your
style.css#thread li .undelete-post, #thread li.deleted .delete-post { display: none; }
#thread li.deleted .undelete-post { display: inline; }and it should fix.
January 4, 2009 at 2:47 am #70884In reply to: Installation Error Message
jrobichess
MemberHere are lines 106 – 119:
if ( version_compare( PHP_VERSION, ‘5.2.3’, ‘>=’ ) ) {
$string = htmlentities( $string, $quote_style, $charset, $double_encode );
} else {
// Handle double encoding for PHP versions that don’t support it in htmlentities()
if ( !$double_encode ) {
// Multi-byte charsets are not supported below PHP 5.0.0
// ‘cp866’, ‘cp1251’, ‘KOI8-R’ charsets are not supported below PHP 4.3.2
$string = html_entity_decode( $string, $quote_style, $charset );
}
// ‘cp866’, ‘cp1251’, ‘KOI8-R’ charsets are not supported below PHP 4.3.2
$string = htmlentities( $string, $quote_style, $charset );
}
return $string;
January 4, 2009 at 2:38 am #4568Topic: Installation Error Message
in forum Installationjrobichess
MemberThe first time I went through the install process, it allowed me to finish right up until the end but the page kept spamming the following message throughout the install process:
Warning: cannot yet handle MBCS in html_entity_decode()! in /mnt/w0709/d31/s09/b0286f02/www/jrobichess.com/forums/bb-includes/wp-functions.php on line 113
When the install says it’s done and I have my username and ID – and go to open the page, it has this error message only repeating. I am currently reinstalling, but thought I would post here to see if I am missing something simple. On a side note, when I open the file in question in notepad, I can’t locate line 113 to see what the issue is. Anyone recommend a good code viewer broken down by lines?
Thanks,
Jason
January 4, 2009 at 2:36 am #70828In reply to: bbPress 0.9.0.4 and 1.0-alpha-5 released
Ipstenu (Mika Epstein)
ModeratorOkay, with 1.0-a-5 trunk I get the same old inactive user when I register via WP. No errors on the page or in the log, though.
Also I got this error, which I fixed by flipping back to the old file:
Call to undefined function wp_check_invalid_utf8() in
/home/XX/public_html/forums/bb-includes/functions.wp-core.php on line 60January 4, 2009 at 2:33 am #70880In reply to: Delete users with no posts
_ck_
ParticipantThis will show in you in PHPMYADMIN all users older than at least a month who have never posted:
SELECT ID,user_login,user_registered FROM wp_users
LEFT JOIN bb_posts ON ID=poster_id
WHERE user_registered<DATE_SUB(CURDATE(),INTERVAL 30 DAY)
AND poster_id is NULLJanuary 4, 2009 at 2:06 am #70827In reply to: bbPress 0.9.0.4 and 1.0-alpha-5 released
wordpressfan
MemberAlmost made it all the way through.
I added the include line to the alpha 5 download and got to step 2 before this error:
Warning: cannot yet handle MBCS in html_entity_decode()! in /home3/wifirepo/public_html/wpmatrix/forum/bb-includes/backpress/functions.core.php on line 389
This is the same warning I get when trying to install 0.9.04.
January 4, 2009 at 1:59 am #70826In reply to: bbPress 0.9.0.4 and 1.0-alpha-5 released
_ck_
ParticipantTo remove the warnings when using PHP 4, until Sam fixes it, go into
bb-settings.phpand change the error_reporting line (line 51 in 0.9.0.4 and line 29 in 1.0a5)old:
// Modify error reporting levels
error_reporting(E_ALL ^ E_NOTICE);new:
error_reporting(0);January 4, 2009 at 1:32 am #70872In reply to: Both Undelete and Delete links are under each post
_ck_
ParticipantMight be a trunk bug but strange how it works in the default.
They changed how the links work to bb_post_admin so it’s all internal now.
If there is a bug, it would be in
function bb_get_post_delete_link( $post_id = 0 ) {Unless maybe in your template you have both
bb_get_post_delete_link() and bb_post_admin()
which should not be.
Wait, I take that all back
something crazy is going on with line 1599,
you now MUST have in your theme both classes to hide the inactive link.
So they essentially broke every theme in existance with the new trunk. Nice.
$r = "<a href='$delete_uri' class='$ajax_delete_class delete-post'>" . __( 'Delete' ) . "</a> <a href='$undelete_uri' class='$ajax_undelete_class undelete-post'>" . __( 'Undelete' ). '</a>';Go into your stylesheet and copy from the default kakumei stylesheet the styles for
#thread li .undelete-post, #thread li.deleted .delete-post { display: none; }
#thread li.deleted .undelete-post { display: inline; }Are they calling everything threads instead of topics now? Ugh. More confusion.
January 4, 2009 at 12:52 am #70878In reply to: Delete users with no posts
marky
MemberThanks for the speedy reply. I just installed the Human Test plugin today, thankfully. I wish I knew about it sooner; perhaps I wouldn’t have this mess to clean up now.

At any rate, I’m not integrated—it’s a stand-alone forum. I’m running MySQL 4.1.16, according to phpMyAdmin.
January 3, 2009 at 10:44 pm #70222In reply to: Sanitizing user names
ganzua
MemberHey Ipstenu,
The plugin you suggested seems to work after a wp-bbpress integration! thanks a lot
In my case, I’m forcing registration and login through wp. I tried registration through bbpress before, and I think you run into a lot of problems.
The sanitize_user() function is the same in bbPress as it is in WordPress. Even the filter names are the same. Still, WordPress plugins don’t generally work in bbPress without some modification.
If it is the same function, in my opinion this feature should be in the core of both, wb and bbpress. It has no sense to allow double registrations like “John” and “john”, don’t you think so?
January 3, 2009 at 10:34 pm #70868In reply to: Both Undelete and Delete links are under each post
Ben L.
MemberI’m on the current trunk as of writing this post. (1903) I’ll try testing the live forum.
Edit: Using the default theme made the problem go away, but the line of code that shows the edit/delete/undelete links is exactly the same as Kakumei’s and there’s no functions.php file.
January 3, 2009 at 10:26 pm #70824In reply to: bbPress 0.9.0.4 and 1.0-alpha-5 released
sbouazza
MemberMy bb-includes/backpress/functions.core.php begins with :
<?php
include "functions.bp-options.php";
// Last sync [WP9916]
...January 3, 2009 at 8:33 pm #70819In reply to: bbPress 0.9.0.4 and 1.0-alpha-5 released
macron
MemberI got the same error Warning: cannot yet handle MBCS in html_entity_decode()! in …/bb-includes/wp-functions.php on line 113
I switch from php4 to php5 and it works fine now. I’m hosted on MT GS.
January 3, 2009 at 7:32 pm #70817In reply to: bbPress 0.9.0.4 and 1.0-alpha-5 released
wordpressfan
MemberArg! I cannot install bbpress no matter what download link I use. The link for the stable version 0.9.0.4 gives me this error when trying to install:
Warning: cannot yet handle MBCS in html_entity_decode()! in /home3/wifirepo/public_html/wpmatrix/forum/bb-includes/wp-functions.php on line 113
The download link for the unstable 1.0.5 alpha give me a fatal error that is said to be fixed in the “trunk” version, but there is no download link (only reference to an svp – no zip file.
I want to install a working version of bbpress but all attempts have been thwarted.
January 3, 2009 at 6:20 pm #70812In reply to: bbPress 0.9.0.4 and 1.0-alpha-5 released
sbouazza
MemberAbout the “backpress_get_option” error : I don’t even know if it’s the best way, but you can edit functions.core.php and add this :
include "functions.bp-options.php";It works for me
January 3, 2009 at 6:13 pm #70680In reply to: Reply to Topic Link Not Working
virginiagirl
MemberI figured out what the problem was, although I’m not sure how to fix it (I’m still learning PHP). The problem is this PHP code which I have in an include (along with all my code for the site’s navigation):
<?php
// Extracts the file name from the file name
$path = $_SERVER;
$page = basename($path);
$page = basename($path, ‘.php’);
?>
The code extracts the the file name from the file to select the current tab in my navigation. When I remove this section of code, the Reply form appears and works as normal. Is the problem having PHP code in an include file?
-
AuthorSearch Results