Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 26,051 through 26,075 (of 32,481 total)
  • Author
    Search Results
  • #70884
    jrobichess
    Member

    Here 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;

    #4568
    jrobichess
    Member

    The 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

    #70828

    Okay, 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 60

    #70880
    _ck_
    Participant

    This 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 NULL

    #70827
    wordpressfan
    Member

    Almost 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.

    #70826
    _ck_
    Participant

    To remove the warnings when using PHP 4, until Sam fixes it, go into bb-settings.php and 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);

    #70872
    _ck_
    Participant

    Might 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.

    #70878
    marky
    Member

    Thanks 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.

    #70222

    In reply to: Sanitizing user names

    ganzua
    Member

    Hey 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?

    #70868
    Ben L.
    Member

    I’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.

    #70824
    sbouazza
    Member

    My bb-includes/backpress/functions.core.php begins with :

    <?php
    include "functions.bp-options.php";
    // Last sync [WP9916]
    ...

    #70819
    macron
    Member

    @wordpressfan

    I 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.

    #70817
    wordpressfan
    Member

    Arg! 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.

    #70812
    sbouazza
    Member

    About 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 :-)

    #70680
    virginiagirl
    Member

    I 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?

    #70804
    jivany
    Member

    @segwayinfo: Last night was supposed to be “Install WPMU, BudyPress and bbPress” night for me. Oh well. :)

    #70802

    Also, 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:

    1. I used a Chrome browser window to register a new user through WordPress
    2. Logged in via WordPress
    3. Hit the forum
    4. User could not post, looks like has no role
    5. Logged out via WordPress
    6. Used FireFox to login as admin to check new user role
    7. No Role Assigned
    8. Used Chrome to login through bbPress
    9. Hit the forum
    10. User could not post, looks like has no role
    11. Used Firefox admin to edit Test user
    12. 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 2009

    Basically 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 Warning went 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…

    #70800

    When 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 412

    So 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.

    #70756

    In reply to: List of Hooks/Actions?

    Ben L.
    Member

    Most of the filters are in defaults.bb-filters.php or default-filters.php before 1.0.

    #70268
    Ben L.
    Member

    Untested 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>

    #70675

    A demo would be nice. :)

    #70774
    _ck_
    Participant

    There’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.txt

    modifying that you can also get the filters/actions

    grep -oe apply_.*) bb-includes/template-functions.php | sort > filters.txt

    grep -oe do_.*) bb-includes/template-functions.php | sort > actions.txt

    If you use the grep for windows, leave out the escapes (backslashes) or it won’t work.

    _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) ";}
    ?>

    Sam Bauers
    Participant

    Here’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)

    #4551
    enfotoad
    Member

    Hi 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.

Viewing 25 results - 26,051 through 26,075 (of 32,481 total)
Skip to toolbar