Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 27,276 through 27,300 (of 32,481 total)
  • Author
    Search Results
  • #66296
    775251
    Inactive

    @ sambauers: Ok — good to know :)

    So I’ve moved the bbpress files over to

    http://mysite.com/forums

    And now things seem to look better. I can see the admin page for bbpress.

    However, now it seems that a link to the forum stylesheet is broken. When I look at http://mysite.com/forms, I see the forum homepage, but with no CSS styling. Then, when I click on to view a forum topic, like http://mysite.com/forums/topic/test-topic, I seem to get redirected to my blog’s homepage. I’m confused!

    Sorry for all the novice questions! Your help is much appreciated.

    #66273
    Detective
    Member

    I’ll take a look :)

    If i want to contribute patches, i just upload them to trac ?? I use Eclipse, should i just use the “Create Patch” option?

    (sorry, i’ve never used trac nor created patches :p)

    Edit: i’m installing it, trying to integrate with WP. I entered all values, but at the end bbPress created a new user table, ignoring the wp_users table.

    #3669
    csseur3
    Member

    What do you think about integrate the private message by default? :)

    http://bbpress.org/plugins/topic/private-messages/#post-43

    #66272
    csseur3
    Member

    Hello,

    i think the design of the dashboard can be more beautiful.. and i think the little box we have before is more great (i speak about the home of dashboard).

    And for the plugins, can we have a system like WP 2.6? (with a button “desactive all” and chekboxes, etc…)

    And it is possible to have Google Gears in bbPress in future? :p

    bye ;)

    and thank you for the very good job!

    #55708
    csseur3
    Member

    hello, i have do that, and i have the buttons at the bottom of the textarea :/

    So, how to habe the buttons in top?

    And the code producted is <p>TEST</p> , how to fix that?

    bye,

    and i think it is great if the tinymce is integrated in bbpress, like an option for example :)

    #3665
    csseur3
    Member

    Hello,

    i want to add at bbPress the 100% width in admin, like this plugin for wordpress:

    So, the code is:

    add_filter('tiny_mce_before_init', 'rmw_tinymce');

    function rmw_tinymce($init){

    $init = true;

    return $init;

    }

    add_action(‘admin_head’,’rmw_head’,99); //Hook late after all css has been done

    function rmw_head(){

    global $is_IE; ?>

    <style type=”text/css” media=”all”>

    .wrap,

    .updated,

    .error,

    .widefat,

    #the-comment-list td.comment {

    max-width: none !important;

    }

    <?php if( $is_IE ){ ?>

    * html #wpbody {

    _width: 99.9% !important;

    }

    <?php } ?>

    </style>

    <?php } ?>

    but not works for bbPress… what can i do for the plugin works?

    bye

    #66271
    csseur3
    Member

    yes, it works now, but the adress of the site is not show at the end of install :)

    bye

    #3658
    csseur3
    Member

    Hello,

    with the last installation of bbpress revision 1595, i have sql errors:

    SQL ERROR!

    >>> Database: forum_bbpress (localhost)

    >>>>>> CREATE TABLE IF NOT EXISTS bb_forums (

    forum_id int(10) NOT NULL auto_increment,

    forum_name varchar(150) NOT NULL default ”,

    forum_slug varchar(255) NOT NULL default ”,

    forum_desc text NOT NULL,

    forum_parent int(10) NOT NULL default 0,

    forum_order int(10) NOT NULL default 0,

    topics bigint(20) NOT NULL default 0,

    posts bigint(20) NOT NULL default 0,

    PRIMARY KEY (forum_id),

    KEY forum_slug (forum_slug)

    ) DEFAULT CHARACTER SET ‘utf8’ COLLATE ”;

    >>>>>> Unknown collation: ”

    SQL ERROR!

    >>> Database: forum_bbpress (localhost)

    >>>>>> CREATE TABLE IF NOT EXISTS bb_meta (

    meta_id bigint(20) NOT NULL auto_increment,

    object_type varchar(16) NOT NULL default ‘bb_option’,

    object_id bigint(20) NOT NULL default 0,

    meta_key varchar(255) default NULL,

    meta_value longtext default NULL,

    PRIMARY KEY (meta_id),

    KEY object_type__meta_key (object_type, meta_key),

    KEY object_type__object_id__meta_key (object_type, object_id, meta_key)

    ) DEFAULT CHARACTER SET ‘utf8’ COLLATE ”;

    >>>>>> Unknown collation: ”

    SQL ERROR!

    etc, etc…

    why?

    bye

    #66267
    Ben L.
    Member

    I don't see how a user could both be logged in AND have a broken password. If their password is broken, they can't login.

    Maybe they were still logged in while they got blocked.

    #66266
    _ck_
    Participant

    Oh wait, here’s the broken part in bb-settings.php

    do_action('bb_init', '');

    if ( bb_is_user_logged_in() && bb_has_broken_pass() )
    bb_block_current_user();

    I don’t see how a user could both be logged in AND have a broken password. If their password is broken, they can’t login.

    This might have broken during the radical password/cookie changes in >0.8

    I opened a TRAC ticket

    https://trac.bbpress.org/ticket/899

    #66265
    _ck_
    Participant

    Block may never have worked like one would think.

    I think it just treats them like “bozo” status.

    It gives them the capability of “not_play_nice” = true

    hmm actually…

    function bb_block_current_user() {
    global $bbdb;
    if ( $id = bb_get_current_user_info( 'id' ) )
    bb_update_usermeta( $id, $bbdb->prefix . 'been_blocked', 1 ); // Just for logging.
    bb_die(__("You've been blocked. If you think a mistake has been made, contact this site's administrator."));
    }

    function bb_reset_password( $key ) {
    global $bbdb;
    $key = sanitize_user( $key );
    if ( empty( $key ) )
    bb_die(__('Key not found.'));
    if ( !$user_id = $bbdb->get_var( $bbdb->prepare( "SELECT user_id FROM $bbdb->usermeta WHERE meta_key = 'newpwdkey' AND meta_value = %s", $key ) ) )
    bb_die(__('Key not found.'));
    if ( $user = new BB_User( $user_id ) ) :
    if ( bb_has_broken_pass( $user->ID ) )
    bb_block_current_user();
    if ( !$user->has_cap( 'change_user_password', $user->ID ) )
    bb_die( __('You are not allowed to change your password.') );

    .

    According to all that, their password should be scrambled and they should be unable to reset it – so they can’t log in.

    But you can’t stop them from seeing the website.

    There’s no IP based blocking (yet) in bbPress.

    To really block an IP, you’d have to go into htaccess and add a “deny from” – at least for now.

    I guess someone could write a plugin to block the IP of blocked users, perhaps for 48 hours or so. Since bbPress doesn’t store the last login IP for users by default, this makes it difficult, the plugin would have to start storing IPs on every login.

    #3657
    Ben L.
    Member

    Right under the place roles are changed is the text:

    Inactive users can login and look around but not do anything. Blocked users just see a simple error message when they visit the site.

    However, when I made a test account and marked it as blocked, I could still log in with the account and there was no error message.

    Why is this a problem and how can I fix this?

    P.S. I tried this on a test install of trunk and a test install of 0.9.0.2, both gave the same result.

    Edit: I just found out that blocking breaks passwords reversably, and only gives an error message if the user is already logged in.

    #66262

    In reply to: Cannot create forum

    chrishajer
    Participant

    Try this:

    $this->random_state = microtime() . uniqid(rand(), true);

     

    The warning is telling you the uniqid needs at least one parameter, so you should give it one.

    http://us2.php.net/uniqid

    #66258
    chrishajer
    Participant

    I thought maybe the $ needed to be encoded, but it does not:

    http://www.ietf.org/rfc/rfc1738.txt

    Thus, only alphanumerics, the special characters
    "$-_.+!*'(),", and reserved characters used for their
    reserved purposes may be used unencoded within a URL.

     

    So, it’s valid. Interesting.

    #54433

    In reply to: Add nofollow to links

    _ck_
    Participant

    cordoval, make this into a plugin:

    //add target=_blank to post links
    function bb_target_blank( $text ) {
    $text = preg_replace('|<a (.+?)>|i', '<a $1 target="_blank">', $text);
    return $text;
    }
    add_filter('pre_post', 'bb_target_blank');

    #66257
    _ck_
    Participant

    Dollar sign might have to be urlencoded? Also you can integrate bbPress 0.9 with older versions of WordPress using these instructions:

    https://bbpress.org/forums/topic/how-to-integrate-bbpress-09-with-wordpress-23-or-lower

    #3655
    771868
    Inactive

    Hello,

    I have a problem with links like this:

    http://www.forestry.gov.uk/PDF/fcpn9.pdf/$FILE/fcpn9.pdf

    In case it’s been stripped out here as well, there ought to be a dollar sign before FILE. It’s in the db, so it’s being taken out on output.

    I’m probably being a bit simple, but I couldn’t find the code that was doing this – I’d guess it’s something on the post_text filter.

    I’m using WordPress 0.8.3.1 with the bbPress integration and WordPress Integration plugins. I would upgrade, but I don’t want to use WordPress 2.5 yet.

    Thanks, Mike.

    anywhen
    Member

    O.K … thank you for your information … I’ve searched a lot and try to modify for myself the search function … but as you say it is not simple to do … so I hope for the future ;) – Thank you.

    #65959
    chrishajer
    Participant

    I uploaded that code to a test installation I have and it appears to work fine. Check it out:

    http://riversideinfo.org/bbpress-0902/

    #66233

    In reply to: Cron?

    _ck_
    Participant

    Not yet. They may one day import the code from WordPress or eventually BackPress may solve the issue.

    #66240
    _ck_
    Participant

    I’ve never used it but from what I can tell BuddyPress is more like LiveJournal than a forum based system where there are community blogs. It doesn’t actually have forum code.

    #66218

    In reply to: Forum categories

    767427
    Inactive

    Nevermind, saw the fix in the trac. Nice job Nightgunner :)

    #66214

    In reply to: Forum categories

    767427
    Inactive

    Fantastic! Can’t wait to see it Nightgunner :)

    #66211

    In reply to: Forum categories

    jasonistaken
    Member

    It’s true! Trunk does :)

    “would you be able to go into a category and see posts from all the sub-forums like a latest discussions list but limited to those few forums?”

    Yes, as well as a listing of forums in that category.

    #65958
    _ck_
    Participant

    I just put the code on a test site and it works for me.

    Sub forums show, but not sub sub forums.

    You used http://pastebin.com/m3cef6607 ???

    The sub sub forums you are seeing are indented?

    Make sure you uploaded and are using the correct file.

Viewing 25 results - 27,276 through 27,300 (of 32,481 total)
Skip to toolbar