Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 27,276 through 27,300 (of 32,495 total)
  • Author
    Search Results
  • #3680

    I was wondering, while designing my new theme, could you implement conditional meta tags? Specifically, robots control. I’d like to add noindex and nofollow to log-in pages, registration pages, user profiles, et cetera.

    I wish there was a “Codex” for bbPress…

    #3678

    Topic: XaniForums

    in forum Showcase
    Ben L.
    Member

    I’ve been working on this for about a week now, and I think it’s just about done.

    http://www.xanimyle.co.cc/xaniforums

    Plugins used:

    • Bozo Users 1.0
    • Akismet 1.0
    • Post Count Plus – Dynamic.Titles & More! 1.1.5
    • bbPress Web Compression (bb-gzip) 0.02
    • Unread Posts 0.9.0
    • Allow Images 0.7.1
    • BBPress Private Messaging 0.80
    • bbPress signatures 0.1.9
    • Censor 0.1 (modified to change slugs and titles)
    • Report Post 0.1.4
    • BBcode Buttons Toolbar 0.0.4 (with an edit to use input type=”button” instead of div)
    • BBcode Lite 1.0.1
    • Avatar Upload 0.8.3
    • Admin Can Post Anything 0.05
    • Forum is category 1.2
    • Temporary ban 1.0

    #66346
    Ben L.
    Member

    For #1, you can add the following to your style.css file as near to the bottom as possible:

    #latest th a, #forumlist th a, #favorites th a {
    color: #eee;
    }
    #latest th a:hover, #forumlist th a:hover, #favorites th a:hover {
    color: #eee;
    }

    For #2, I downloaded sv_SE.mo, and it does not have the words “Register or log in:”, “Log in ยป”, or “Remember me”. I don’t know how to edit MO files, so you’ll need to wait for someone who does.

    #66345
    781521
    Inactive

    wow..im an idiot. i searched for everything but the word anonymous. thanks for not verbally abusing me! :P

    #66339

    In reply to: (Weird) Open Cafe

    thion
    Member

    Thank you for kind comments :).

    As for these statistics, I guess it was _ck_ who posted this originally somewhere here, but I will repost it:

    <?php include_once("bb-includes/statistics-functions.php"); // This need to be included ?>

    Our <?php echo get_total_users(); ?> users have made a total of <?php echo get_total_posts(); ?> posts in <?php echo get_total_topics(); ?> topics

    #64543
    chrishajer
    Participant

    Sorry, lost this topic.

    Looks like you have a button already, it’s just in the wrong spot.

    1. Make sure your HTML tags are lowercase. This is what you have now:

    <FORM METHOD="LINK" ACTION="http://ashb.proofreadercentral.com/">
    <INPUT TYPE="submit" VALUE="ASHB Home">
    </FORM>

     

    Should be more like:

    <form method="link" action="http://ashb.proofreadercentral.com/">
    <input type="submit" value="ASHB Home" />
    </form>

     

    2. To have control over that, I would put it in a div, and give it a CSS id or class. Something like this:

    <div id="navbar">
    <form method="link" action="http://ashb.proofreadercentral.com/">
    <input type="submit" value="ASHB Home" />
    </form>
    </div>

     

    3. Now, with an id, you can make some modifications to your style.css. Something like this (add it right around the lines for the #header, since you’re still in the #header div):

    #navbar {
    position: relative;
    /* top: {number of pixels from the top of the header}; */
    /* left: {number of pixels from the left edge of the header}; */
    top: 100px;
    left: 0px;
    }

     

    Try different numbers in your style.css for the #navbar top and left positions you just added, and see where the button ends up. I’m not sure where you want it, but that will allow you to move it.

    If you want it beneath what is inside the header div, with the background image, you will have to move the code out of the #header div in header.php.

    Does that help point you in the right direction?

    #49655

    In reply to: Emoticons For bbPress?

    csseur3
    Member

    hello,

    where i can download the latest version of this plugin? :)

    bye

    #66318
    csseur3
    Member

    I speak about that:

    div.updated,

    div.error,

    div.wrap {

    margin: 0 1.5em;

    max-width: 98em;

    }

    so, i want to add in my plugin the function for put:

    div.updated,

    div.error,

    div.wrap {

    max-width: none !important;

    }

    it’s a little modification but i want to make a plugin for that, and not manually editing the files in bb-admin :)

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

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