Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 20,326 through 20,350 (of 32,481 total)
  • Author
    Search Results
  • #76655
    邹 毅
    Participant

    The main purpose of the plug-in are those that will be finished bbPress background or other double-byte languages to Chinese users. It will back control in the smallest font size 12px, and the original text into a normal italic font. In this way, back in reality, when the Chinese had underestimated the font does not appear unclear phenomenon.

    Now the plug-in made up of two ways. BbPress plug-in is a kind of normal form of release. Download plug-ins directory needs to be uploaded to the bbPress root directory my-plugins directory, and then plug in the background to enable management pages. Thus, even if the background for the English state, also appear in the background can be conducted in Chinese landscaping. Another is made with the language pack automatically starts. After the download, upload the php file to the language pack directory. This approach is only activated when the corresponding language pack to take effect.

    As bbPress each update, it may involve changes to the CSS style sheet. Therefore, the plug-in certain targeted. That is not always backwards compatible. Therefore, the plug-in released time, corresponding to the bbPress version of the logo will come out. You can watch from the plug out of the version number. For example :1.0.1-1 logo for the bbPress version 1.0.1, and later, “-1” logo is the first revised version. After the release of “1.0.1-2”, “1.0.1-3”, etc. are the corresponding bbPress 1.0.1. Just plug made some changes. Only the previous version number changed, only that version of the corresponding change in bbPress.

    it’s translated by Google.i’ll mod it later.:-)

    #91745

    In reply to: Facebook Connect Help

    I can’t say what may be causing the conflict as I am not a JS expert.

    Regarding your another question you can do that, will require some editing in the plugin file and scold him not to do that ;)

    And I am not sure what’s going on where without myself taking a look.

    And if you would like to donate, then you can do so at the footer of my blog – http://blog.ashfame.com

    Also let me know if you would like to hire me for doing work on your projects :)

    mr_pelle
    Participant

    Blanking .htaccess and re-setting permalinks is quicker and less error-prone, imho.

    #91929
    zaerl
    Participant

    Ah ok. Let’s backtrace:

    bb_new_user
    $wp_users_object->new_user
    WP_users::_put_user
    WP_Pass::hash_password
    $wp_hasher->HashPassword
    PasswordHash::crypt_private

    file bb-include/backpress/class.passwordhash.php line 113. The original comment:

    # We’re kind of forced to use MD5 here since it’s the only

    # cryptographic primitive available in all versions of PHP

    which is true.

    zaerl
    Participant

    The annoying part is that despite the RewriteBase directive all rewrite rules in .htaccess are in the form:

    RewriteRule ^the-page/(something)/?$ /forum/index.php?the-page=$1 [L,QSA]

    so you need to change all the rules. Or you can switch to numeric mode and then switch back to name-based permalink mode and maybe bbPress will auto-fix it for you.

    #91927
    pedagog
    Member

    Thanks zaerl. However, what I meant was where is the code that converts the ‘raw’ password into the md5 hash. I know where it stores the hased password.

    Sorry for the confusion.

    zaerl
    Participant

    Well you have the same user database so you can easily access the user email. You should write a plugin that override the gravatar display functions (through the bb_get_avatar filter) and catch the images in /avatars (if exist). Sort of “Add Local Avatar” counterpart for bbPress.

    This can be challenging without medium PHP knowledges.

    #89119

    In reply to: s2member integration

    Hey drcoach, usually when I get a whitescreen in bbPress, PHP or WordPress, it usually has to do with the fact that I improperly nested code. Meaning there is some missing ), }, necessary character or a syntactical error in the code. Did you want to paste the whole code in somewhere here on PasteBin?

    #91918
    zaerl
    Participant

    It’s very easy to do if you know a little of jQuery. Check the template file front-page.php.

    #91926
    zaerl
    Participant

    md5 checksum stored in the user_pass column of database table bb_users. No salt.

    #34900
    pedagog
    Member

    Hello all

    Could you tell me which security type bbpress uses for password protection? Is it md5 and salt or something else. Also, in which file is the code located?

    I’m working an integration with my own site – it’s not WP or any other. It is php that I have created.

    Thanks in advance

    IAmediaworks
    Participant

    Hey folks.

    Did a successful install – with one exception. It said that it couldn’t create the first forum.

    I did get a confirmation mail.

    But clicking on the link in the mail brings me to this:


    Oh dear!

    bbPress is already installed.

    Perhaps you meant to run the upgrade script instead?


    This happens whether I try to log into admin or visit the BBpress root.

    This is installed on a fully functioning WP site.

    Help?

    Thanks!

    M.

    #91888

    In reply to: No default template?

    Never mind! I’m just going to create a separate database :-)

    #91887

    In reply to: No default template?

    Yeah it happened to me earlier when I try to reinstall. However, I’m sharing this with my WordPress database. How to fix? :-)

    Thanks Chris!

    #77023
    pagal
    Participant

    Ok Thanks I got it,

    also add this plugin to bbPress plugins directory

    https://bbpress.org/plugins/

    #77022
    zaerl
    Participant

    Always wrap PHP code inside script tags

    <script language="PHP">echo phpversion()</script>

    also remember to make the change explained here: https://bbpress.org/forums/topic/admin-can-paste-php-code-in-post?replies=28#post-71965

    Can you please explain what do you mean about production environment?

    A public site. The code isn’t tested at all.

    #77021
    pagal
    Participant

    WoW That Works

    example to execute code

    <script language="PHP">

    echo

    php code here without <?php and ?>

    </script>

    Thanks zaerl, you are really a smart person,

    Keep in mind that this code isn’t suitable for production environment.

    Can you please explain what do you mean about production environment?

    Thanks Again,

    Cheers

    #77020
    pagal
    Participant

    Really thanks zaerl,

    please also give an example how to write complete php code to execute with this plugin

    Parse error: syntax error, unexpected '>' in /my-site-path/my-plugins/zaerl-Eval-PHP.php(37) : eval()'d code on line 1

    #77019
    zaerl
    Participant

    Ops, substitute za_ep_filter with:

    function za_ep_filter($text)
    {
    $eval_text = "?>$text";

    ob_start();
    eval($eval_text);

    $ret = ob_get_contents();
    ob_end_clean();

    return $ret;
    }

    #77018
    zaerl
    Participant
    <?php
    /*
    Plugin Name: zaerl Eval PHP
    Plugin URI: http://www.zaerl.com
    Description: execute PHP code posted by admins
    Author: zaerl
    Author URI: http://www.zaerl.com
    Version: 0.1

    zaerl Eval PHP: execute PHP code posted by admins
    Copyright (C) 2010 Francesco Bigiarini

    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License along
    with this program; if not, write to the Free Software Foundation, Inc.,
    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

    */

    define('ZA_EP_VERSION', '0.1');
    define('ZA_EP_ID', 'za-eval-php');
    define('ZA_EP_NAME', 'zaerl Eval PHP');

    function za_ep_filter($text)
    {
    $eval_text = "?>$text";

    eval($eval_text);
    }

    function za_ep_allow_tag($tags)
    {
    $tags['script'] = array('language' => array());

    return $tags;
    }

    function za_ep_initialize()
    {
    global $bb_current_user;

    if($bb_current_user && $bb_current_user->has_cap('administrate'))
    {
    add_filter('bb_allowed_tags', 'za_ep_allow_tag');
    add_filter('post_text', 'za_ep_filter');
    }
    }

    add_action('bb_init', 'za_ep_initialize');

    ?>

    example: I'm running PHP <script language="PHP">echo phpversion()</script>

    Keep in mind that this code isn’t suitable for production environment.

    #77017
    pagal
    Participant

    Title should be “Can Admin execute php code in post?”, apologize.

    #91874

    Hi John,

    I don’t know why after all these years that there is a refusal to put a clear and defining sentace saying that this isn’t part of the default bbPress package. It casues so much confusion for new users.

    bbPress is a totally separate standalone forum, that can integrate user sessions (login/log-out) with WordPress. Nothing more. Its important to keep that in mind because it’ll save alot of thinking from a wordpress point of view.

    That said, theming bbPress is quite simple as long as you know 1 thing: bbPress won’t run WordPress commands/functions/API calls.

    Copy your default bbPress theme (the rather lacking Kakumei), rename it both in folder and in the template information held in the style.css file contained within.

    You now have your own bbPress theme. Congrats.

    The next step is simply to copy/paste the HTML you want to replicate from your WordPress theme into your bbPress theme. If you’re not doing any special processing, I strongly suggest copy/pasting the loaded/outputed HTML from when you load your WordPress homepage in a browser.

    If you want to copy/paste from your header.php file in your WordPress theme, remember and take out all of those pesky WordPress functions, and replace them with bbPress equivalent or hardcoded information.

    If you’ve ever made your own WordPress theme, you’ll find bbPress follows a very similar path/structure.

    Good Luck

    #77016
    zaerl
    Participant

    can be VERY dangerous and should be avoided when possible.

    Indeed but the title is Admin can paste PHP code in post.

    #77015

    I’m going to go no record an suggest thats the best bit of spam i’ve read in a while. Reading via RSS I thought, why is _ck_ repeating herself?

    #83010
    thomas.joy
    Member

    how can the wordpress admin username/password be used in bbpress login and log in successfully (globally)

    also how can the bbpress (if necessary) be used to successfully log in to wordpress and have the global admin?

    same for users, which i haven’t tried yet

    i’ve setup these (codes removed)

    wp-config.php:

    define(‘AUTH_KEY’, ”);

    define(‘SECURE_AUTH_KEY’, ”);

    define(‘LOGGED_IN_KEY’, ”);

    define(‘NONCE_KEY’, ”);

    define(‘AUTH_SALT’, ”);

    define(‘LOGGED_IN_SALT’, ”);

    define(‘SECURE_AUTH_SALT’, ”);

    bb-config.php:

    define( ‘BB_AUTH_KEY’, ” );

    define( ‘BB_SECURE_AUTH_KEY’, ” );

    define( ‘BB_LOGGED_IN_KEY’, ” );

    define( ‘BB_NONCE_KEY’, ” );

    i copied the corresponding ones to the bb-config.php one

    when i log out of bbpress wordpress is still logged in..

Viewing 25 results - 20,326 through 20,350 (of 32,481 total)
Skip to toolbar