Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 25,276 through 25,300 (of 32,570 total)
  • Author
    Search Results
  • #73104
    Ben L.
    Member

    He did post a link, but if you don’t want to click it: http://img254.imageshack.us/img254/8066/blankbutton.png

    The button’s html value is blank. It’s not CSS.

    Here’s the code to load the text for the button: https://trac.bbpress.org/browser/tags/0.9.0.4/bb-admin/class-install.php#L602

    #73272
    Ben L.
    Member

    Check the bottom of your modlog.php to see if it’s the same as the bottom of https://plugins-svn.bbpress.org/bbpress-moderation-suite/trunk/modlog.php

    Also, the messages that are already logged won’t change.

    #72748
    johnhiler
    Member

    Yah I can do all that account stuff myself… it’s just starting to take a half hour a day or so, so was starting to think about self-serve options… :-)

    #72744
    Ben L.
    Member

    Other than changing and deleting their own username, those are all great ideas! Changing usernames messes up lots of code, and deleting your own account?!

    The Role Manager has been submitted to the bbPress Plugin Repository – in some future version, it will have 0.9 compatibility (if 1.0 isn’t released first).

    The BuddyPress PM plugin is for WordPress MU, not bbPress, so you’d be switching over from a forum to a blog hosting social network. The existing PM plugin probably needs to be scrapped — it would be easier to start over (for me, at least), but importing the old data would help everyone that had Private Messaging installed.

    The avatars plugin (in my opinion) is doing the right thing the wrong way. By making the plugin a “real plugin” (no editing core files, no putting files into other directories) and splitting the avatars into separate folders, the plugin would be a lot better.

    As for resetting passwords, or for that matter, the entire password system of bbPress as a whole, the idea is already being discussed.

    #72743
    johnhiler
    Member

    A good role manager would be awesome. Right now I have to create a new plugin every time I create a new Role… kind of a pain.

    If someone took the existing PM code and then refactored it and removed security holes… that would be huge. It’d be particularly awesome if it used the same database model, so the old PM’s were still readable! I’ve heard BuddyPress is working on a PM plugin, so I was considering just switching over to that (if I could use it without installing BuddyPress).

    The Avatars plugin out there is hard to configure (there are at least 3 separate files you have to install in different places), and it dumps all avatars in a single folder (not sure if that scales). It’d be fantastic if someone could clean that up.

    Fundamentally, bbPress needs better user account management. Users can’t easily reset their passwords or look up their usernames… and there’s no ability to change or delete your own username. Those would be huge additions.

    Thanks for asking!!

    #72741

    Yes but defining ‘better’ is really subjective! :)

    Look, better for ONE of my sites is a barebones bb. Better for the other is Invision. It has to do with what you, as an admin, want to support, what kind of users you have, what you need to integrate your site with, etc etc etc.

    In short: Any answer you get will be based on the specific individual needs.

    You’re never going to get a definitive answer. Instead, you need to ask a better question: “What features do you feel are important in forum software?” Then you get a list of the default features in each board software and list them all.

    From THAT, you can make a breakdown of ‘Who handles which plugin better?’ and have multi-choice.

    Which would kind of be a cool app to help people pick the right forum software, but it still rolls back to ‘what’s right for you?’ :)

    #72739

    Better is subjective.

    I don’t want a cash mod. I don’t want PMing. I don’t need a full role manager.

    So I vote for ‘other’ as ‘none’ :)

    #73269
    johnhiler
    Member

    Just installed this on a live forum! A bit nervous, but everything seems to be working great so far. :-)

    A few questions/thoughts:

    * The Moderation Log lives under the Users tab… what do you think of putting it under the Plugins or Manage tab?

    * When a topic deletion is logged or marked as spam, the moderation log says, Username (key) deleted topic “Topic Name” which is great. It’s linked directly to the deleted topic though – maybe there could be an extra ?view=all appended to it?

    * Is it possible to also log when topics are closed and opened?

    This is super exciting – thanks for all of this!

    #72896
    deadlyhifi
    Participant

    The updated plugin has been working ok except it has major flaws :)

    1 – The user displayname is not being put into the database – therefore all new users appear as a blank when they post.

    2 – registration error messages aren’t displayed. (e.g. Invalid email)

    The fix was straightforward. The bb_new_user function needed updating as so:

    if (!function_exists('bb_new_user')) :
    function bb_new_user( $user_login, $user_email, $user_url, $user_status = 0 ) {
    global $wp_users_object, $bbdb;

    // is_email check + dns
    if ( !$user_email = bb_verify_email( $user_email ) )
    return new WP_Error( 'user_email', __( 'Invalid email address' ), $user_email );

    if ( !$user_login = sanitize_user( $user_login, true ) )
    return new WP_Error( 'user_login', __( 'Invalid username' ), $user_login );

    // user_status = 1 means the user has not yet been verified
    $user_status = is_numeric($user_status) ? (int) $user_status : 0;

    $user_nicename = $_user_nicename = bb_user_nicename_sanitize( $user_login );
    if ( strlen( $_user_nicename ) < 1 )
    return new WP_Error( 'user_login', __( 'Invalid username' ), $user_login );

    while ( is_numeric($user_nicename) || $existing_user = bb_get_user_by_nicename( $user_nicename ) )
    $user_nicename = bb_slug_increment($_user_nicename, $existing_user->user_nicename, 50);

    $user_url = bb_fix_link( $user_url );
    $user_registered = bb_current_time('mysql');
    $password = wp_generate_password();
    $user_pass = wp_hash_password( $password );

    $user = $wp_users_object->new_user( compact( 'user_login', 'user_email', 'user_url', 'user_nicename', 'user_status', 'user_pass' ) );

    if ( is_wp_error($user) ) {
    if ( 'user_nicename' == $user->get_error_code() )
    return new WP_Error( 'user_login', $user->get_error_message() );
    return $user;
    }

    $user_id = $bbdb->insert_id;
    $options = bb_get_option('approve_user_registration_options');
    bb_update_usermeta( $user_id, $bbdb->prefix . 'capabilities', array('waitingapproval' => true, 'member' => true) );
    approve_user_registration_send_pass( $user_id, $password );

    do_action('bb_new_user', $user['ID'], $user['plain_pass']);
    return $user['ID'];
    }
    endif;

    although I am using a fairly hacked together install with some bleeding edge stuff in there so you may need to experiment a little.

    #71642
    dmbware
    Member

    I am having the same problem ! i followed the video to a T and than added the HASH. No Cookie tie at all, but I do have DB Integration. My question for you is do we add these lines of code in both config files?

    define(‘COOKIE_DOMAIN’, );

    and define path ?

    #73285
    Ben L.
    Member

    bb-config.php

    #73292

    In reply to: Domain transfer fails

    Ben L.
    Member

    Remove index.php from the forum url in the files and the database.

    #73283
    Ben L.
    Member

    bbPress shouldn’t be tightly integrated with WordPress. There are too many things that won’t work. Try removing the line of code that includes WordPress into bbPress.

    #73268
    Ben L.
    Member

    /bb-admin/admin-base.php?plugin=bbpress_moderation_suite_modlog is the only place moderation logs are. I know the way I talk about it is a bit confusing. :P

    #72202
    superann
    Member

    Hi Citizenkeith, I just saw this now… you’d put the hack at the end of pm_new_message. So my function now looks like this:

    function pm_new_message( $id_receiver, $id_sender, $pmtitle, $message ){
    global $bbdb, $bb_table_prefix;

    $created_on = bb_current_time('mysql');
    $id_receiver = intval($id_receiver);
    $id_sender = intval($id_sender);

    $pmtitle=substr(strip_tags($pmtitle),0,64);
    remove_filter('pre_post', 'post_regulation');
    $message=substr($message,0,2048);
    $message=force_balance_tags($message);
    $message=apply_filters('pre_post',$message,0,0);
    $message=apply_filters('post_text',$message,0);

    $bbdb->query("INSERT INTO ".$bb_table_prefix."privatemessages
    (id_sender, id_receiver, pmtitle, message, created_on)
    VALUES
    ('$id_sender', '$id_receiver', '$pmtitle', '$message','$created_on')");

    $to = bb_get_user_email($id_receiver);
    $pm_link = bb_get_option('uri') . 'message.php?id=' . $bbdb->insert_id;
    $message = __("You have a new private message: %1$s nFrom: %2$s nn%3$s ");
    mail( $to, bb_get_option('name') . ':' . __('Private Message'),
    sprintf( $message, $pmtitle, get_user_name($id_sender), $pm_link ),
    'From: ' . bb_get_option('from_email')
    );

    }

    #73267
    johnhiler
    Member

    1. Ah thanks for adding that!! Boo for bbPress having no hook for moving topics…

    2. Ah so sorry to have missed that… :-)

    One last thought: what do you think of merging the various moderation logs into a single page? As a keymaster/mod, it’d be a lot easier to monitor what’s going on on the site if all the logs are on the same page.

    Or maybe as an alternative, the various moderation logs could all have convenient links to each other?

    ps I owe you a contribution – please email me at john at weddingbee dot com, and we can coordinate!

    #57164
    golan03
    Member

    If you don’t have backpress you can also modify your bb_mail function (in bb-includes/pluggable.php)

    just add the email you want as return-path.

    before ::

    $headers = trim(join(“rn”, $headers));

    after::

    $headers = trim(join(“rnReturn-Path: from@mydomain.comrn”, $headers));

    It is not elegant but it works.

    Remember it is hardcoded, you’ll have to change it manually if you want to change your from@mydomain.com later.

    #73073
    Ben L.
    Member

    With that code, the last sub forum already has bb-last-child, and if you change <td colspan="3"> to <td colspan="3" class="subsubforum">, subsubforums have a class.

    #7823

    Topic: HELP?

    in forum Installation
    alberto505
    Member

    Hi Alberto here,

    I need some help installing my Avatars and Upload Photos in my BBPress Forum. Can someone guide me on what to do?? Do I need to go into a template to add code to make the avatars display?

    #73260
    Ben L.
    Member

    Unfortunately, there are a lot of functions in the code that are 1.0-specific.

    Fortunately, WordPress 2.8 is being released in May, and I can’t see bbPress 1.0 being far behind.

    #73243
    Ben L.
    Member

    Okay, I’ve found the problem.

    Go to line 634 (it should say function bb_attachments_recount($post_id=0) { // update topic icon flag and sync attachment count for topic given a post_id)

    Right under that, add global $bb_attachments; on a new line.

    gmrtech
    Member

    Amazing. Fixed :) Thanks!

    Ben L.
    Member

    First of all, if you already had members on the forum that aren’t on the blog, integration will lose them.

    I suggest going into your database and running DELETE FROM bb_topicmeta WHERE meta_key=wp_table_prefix LIMIT 1 to remove the integration.

    #73071
    Ben L.
    Member

    I only partially understand the question. Do you want to add a last class to the last forum on the page?

    #73161

    In reply to: Frightmare Haunt Forum

    cldnails
    Member

    Interesting niche, good luck. Although, out of the box bbPress isn’t very scary looking. ;)

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