Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 27,251 through 27,275 (of 32,462 total)
  • Author
    Search Results
  • #66298
    chrishajer
    Participant

    1. Please post a link to your forum so we can take a look.

    2. No styling usually means the path to the stylesheet is wrong. You can look in the source of the HTML to see that.

    3. Redirecting is probably because you have true or slugs for your permalinks setting, but you haven’t set up permalinks yet. You can set the permalinks to false to get the forum working right now, then take the next step and make permalinks work.

    https://bbpress.org/documentation/faq/#pretty-permalinks

    Either that, or the stylesheet is really not there at the URL you tried, and WordPress is intercepting that and sending you to 404 page.

    #66302
    chrishajer
    Participant

    Oh yeah, RSS feeds are built in :-)

    Good idea.

    #66317
    chrishajer
    Participant

    You want to remove the max width of the whole admin section? In my installation, the admin section appears to be at max width already (my monitor is at 1280px wide right now.) It doesn’t look like there’s any restriction, unless it shows up at wider than 1280px. Did you look at the css for the admin section?

    ~/bbpress/bb-admin/style.css

    #66338

    In reply to: (Weird) Open Cafe

    csseur3
    Member

    very very original and beautiful :)

    so, what is the code for show “Our 13 users have made a total of 160 posts in 39 topics ” please? :)

    Very nice forum, with beautiful colors: good job! :)

    bye

    #3670
    csseur3
    Member

    Hello, i try this in front-page.php:

    <tr<?php bb_forum_class(); ?>>

    <td><?php bb_forum_pad( '<div class="nest">' ); ?>"><?php forum_name(); ?><small><?php forum_description(); ?></small><?php bb_forum_pad( '</div>' ); ?></td>

    <td class="num"><?php forum_topics(); ?></td>

    <td class="num"><?php forum_posts(); ?></td>

    <td class="num"><?php topic_last_poster(); ?>, il y a "><?php topic_time(); ?></td>

    </tr>

    but the “><?php topic_time(); ?> show me all time the date of the first post, in all the forum themes … Why?

    bye

    #66321
    _ck_
    Participant

    I’ve never figured out how to do direct query setup for views, so what I do is just short-circuit the internal function and write my own. For example:

    bb_register_view("highest-rated","Topics with the highest rating",array('append_meta'=>false,'sticky'=>false));
    add_action( 'bb_custom_view', 'highest_rated' );

    function highest_rated( $view ) {
    if ($view=='highest-rated') {
    global $bbdb, $topics, $view_count, $page;
    $limit = bb_get_option('page_topics');
    $offset = ($page-1)*$limit;
    $where = apply_filters('get_latest_topics_where',"WHERE topic_status=0 ");
    $query = " FROM $bbdb->topics $where ";
    $restrict = " ORDER BY cast(topic_posts as UNSIGNED) DESC LIMIT $limit OFFSET $offset";

    $view_count = $bbdb->get_var("SELECT count(*) ".$query);
    $topics = $bbdb->get_results("SELECT * ".$query.$restrict);
    $topics = bb_append_meta( $topics, 'topic' );
    }
    }

    .

    Obviously change the query to your own and that might work for you. Don’t forget to use $bbdb->bb_ratings the $bbdb part is critical.

    #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/

Viewing 25 results - 27,251 through 27,275 (of 32,462 total)
Skip to toolbar