Search Results for 'code'
-
AuthorSearch Results
-
January 4, 2009 at 2:47 am #70884
In 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?
January 3, 2009 at 12:49 pm #70804In reply to: bbPress 0.9.0.4 and 1.0-alpha-5 released
jivany
Member@segwayinfo: Last night was supposed to be “Install WPMU, BudyPress and bbPress” night for me. Oh well.
January 3, 2009 at 5:08 am #70802In reply to: bbPress 0.9.0.4 and 1.0-alpha-5 released
John James Jacoby
KeymasterAlso, when I register a new user through WordPress as per normal, that user is still not assigned a role in bbPress. Not when they login, not when they hit the forum for the first time. Not ever.
My Steps:
- I used a Chrome browser window to register a new user through WordPress
- Logged in via WordPress
- Hit the forum
- User could not post, looks like has no role
- Logged out via WordPress
- Used FireFox to login as admin to check new user role
- No Role Assigned
- Used Chrome to login through bbPress
- Hit the forum
- User could not post, looks like has no role
- Used Firefox admin to edit Test user
- Received typical error message (noted below)
Warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in /forums/bb-includes/functions.bb-template.php on line 2009Basically it looks like the exact same error message as before, with the same circumstances.
Round two using alpha 5 trunk from the SVN went exactly the same way, only this time when I logged in via bbPress, the above
Warningwent away, but that user is still marked as Inactive by default when they should be a Member according to the role map.
When registering through bbPress, the new user still is not assigned a Role on the WordPress side either.
Sam, can you explain to me what was supposed to be different in alpha5? Maybe I misunderstood…
January 3, 2009 at 4:11 am #70800In reply to: bbPress 0.9.0.4 and 1.0-alpha-5 released
John James Jacoby
KeymasterWhen I renamed my old config file, I actually received the same error.
Fatal error: Call to undefined function backpress_get_option() in /forum/bb-includes/backpress/functions.core.php on line 412So I renamed my config file back, visited the forum, and then it prompted me for upgrade.
Is there a specific upgrade page to visit now rather than just hitting the root of the forum?
Sam, it seems this only happens when I upgrade from alpha4 to alpha5. I was running a trunk version, and received no errors and wasn’t even prompted to upgrade from trunk to 5.
January 2, 2009 at 7:28 pm #70756In reply to: List of Hooks/Actions?
Ben L.
MemberMost of the filters are in
defaults.bb-filters.phpordefault-filters.phpbefore 1.0.January 2, 2009 at 7:22 pm #70268In reply to: Separating the first post of each topic
Ben L.
MemberUntested code below:
<?php $bb_post = $posts[0]; unset($posts[0]); $del_class = post_del_class();?>
<div id="post-<?php post_id(); ?>"<?php alt_class('post', $del_class); ?>>
<?php bb_post_template(); ?>
</div>
<h6>Responses</h6>
<ol id="thread" start="<?php echo $list_start; ?>">
<?php foreach ($posts as $bb_post) : $del_class = post_del_class(); ?>
<li id="post-<?php post_id(); ?>"<?php alt_class('post', $del_class); ?>>
<?php bb_post_template(); ?>
</li>
<?php endforeach; ?>
</ol>January 2, 2009 at 6:58 pm #70675apocalyptictomorrow
MemberA demo would be nice.
January 2, 2009 at 4:35 pm #70774In reply to: List of filters/actions?
_ck_
ParticipantThere’s no official documentation or codex yet.
A few people have done phpxref for bbpress but I find that kind of output fairly useless.
If you have access to linux shell you can do a grep to get a function list in the template include like so (or install the grep for windows)
grep -oe ^function.*) bb-includes/template-functions.php | sort > functions.txtmodifying that you can also get the filters/actions
grep -oe apply_.*) bb-includes/template-functions.php | sort > filters.txtgrep -oe do_.*) bb-includes/template-functions.php | sort > actions.txtIf you use the grep for windows, leave out the escapes (backslashes) or it won’t work.
January 2, 2009 at 5:44 am #70719_ck_
Participant>> The same performance gain is achieved using the existing forum_time index.
Ah so in that case, no ALTER required and there is zero extra storage required and the plugin can be used like this:
<?php
/*
Plugin Name: Topic Time Index
*/
add_filter('get_latest_topics_join','topic_time_index',99999);
function topic_time_index($join) {return " $join USE INDEX(forum_time) ";}
?>January 2, 2009 at 5:24 am #70713Sam Bauers
ParticipantHere’s the result on WordPress.com’s English support forum:
41,990 total rows
Showing rows 0 - 24 (25 total, Query took 0.0024 sec)
Showing rows 0 - 24 (25 total, Query took 0.0024 sec)
Showing rows 0 - 24 (25 total, Query took 0.0024 sec)
Showing rows 0 - 24 (25 total, Query took 0.0024 sec)
Showing rows 0 - 24 (25 total, Query took 0.0024 sec)
Showing rows 0 - 24 (25 total, Query took 0.2102 sec)
Showing rows 0 - 24 (25 total, Query took 0.2062 sec)
Showing rows 0 - 24 (25 total, Query took 0.2037 sec)
Showing rows 0 - 24 (25 total, Query took 0.2031 sec)
Showing rows 0 - 24 (25 total, Query took 0.2060 sec)January 2, 2009 at 4:47 am #4551Topic: bbpress vs phpbb
in forum Requests & Feedbackenfotoad
MemberHi there!
I am sorry if someone else has already created a post on this.
I have a website (powered by wordpress) that has a bunch of how-to windows tech articles. I need to get a forum for my site users. Which one would be better? My users will need the capability of uploading files, pasting code and images. Which forum program would put less pressure on my servers and hopefully keep the running a little faster?
Thank you ahead of time for any help.
-
AuthorSearch Results