Adam Harley (Kawauso) (@kawauso)

Forum Replies Created

Viewing 25 replies - 51 through 75 (of 285 total)
  • @kawauso

    Member

    By the looks of it, it’s an action that’s called as bb_deactivate_plugin_$plugin, so the action hook’s name is specific to the plugin. The $plugin value is shown in the URL for activating a specific plugin.

    @kawauso

    Member

    I find looking at a bbPress install database pretty unnerving with all the relational IDs around the place :)

    @kawauso

    Member

    Oh, that’s get_user_profile_link( $topic->topic_last_poster ) then :P it seems that usernames don’t contain spaces (only the display name does), the username is converted to using a – instead of any invalid characters

    @kawauso

    Member

    get_user_profile_link( $topic->topic_poster ), rather than all that sanitize/echo stuff. Can’t check it 100% since my test server is dead, but that should be right I think.

    @kawauso

    Member

    It’d be too broad a subject to cover really, but menus are generally done from using <li>/<ul> and using CSS to style those to appear how you want. There should be some examples on CSS styling tutorials and the like though.

    @kawauso

    Member

    Yep, pretty much. Don’t be afraid to just give it a try and see what happens, it’s how you learn with these things :)

    @kawauso

    Member

    Yes it’s possible, just learn to edit HTML/CSS and modify the header.php in the kakumei template folder (or a copy of it). Mess around a bit and you’ll be able to find exactly where it’ll go if you put it in a given place in the template.

    @kawauso

    Member

    You changed the defaults, instead of just using different parameters when you call the function? Editing core files is really bad practice…

    @kawauso

    Member

    In the first line of function bb_tag_heat_map:

    $defaults = array( ‘smallest’ => 8, ‘largest’ => 22, ‘unit’ => ‘pt’, ‘limit’ => 40, ‘format’ => ‘flat’ );`

    Line 3158 of functions.bb-template.php in my slightly outdated SVN of 1.0.2

    @kawauso

    Member

    bbPress functions have a set of default values that are overwritten by the arguments passed when it’s called, so if a value isn’t specified for something, it stays with the default.

    In reply to: Modifying header.php

    @kawauso

    Member

    We can’t see your header’s source code by just looking at the PHP file, you’d need to use a .phps extension or .txt, or similar…

    In reply to: Profile Links

    @kawauso

    Member

    Use something like

    <?php echo '<a href="' . esc_attr( get_user_profile_link( $topic->topic_poster ) ) . '">' . $topic->topic_poster_name . '</a>'?>

    @kawauso

    Member

    bbPress functions don’t take arguments the same way as normal PHP functions. You pass arguments as an array.

    i.e.

    bb_tag_heat_map( array( 'smallest' => 9, 'largest' => 38, 'limit' => 80 ) );

    @kawauso

    Member

    Try the other way round, skinning bbPress with your WordPress widgets. Under deep integration, the sidebar functions might work fine. Maybe. bbPress isn’t light enough to just be invoked by a small piece of code in a widget though. That said, there is a WordPress plugin for displaying the latest posts and such from bbPress.

    @kawauso

    Member

    Something like:

    function no_login_notice( $a, $b ) {
    if( $b !== 'You must <a href="%s">log in</a> to post.' )
    return $a;
    }
    add_filter( 'gettext', 'no_login_notice', null, 2 );

    should work I think

    @kawauso

    Member

    There’s bb_get_location() in functions.bb-template.php which returns the page you’re on and is above all the page conditional functions (which are based on bb_get_location() anyway)

    @kawauso

    Member

    Argh, ASP.NET is an evil possessed devil of a language… anyone got a database dump I can test with? :/

    @kawauso

    Member

    At first I was like :D “open”, then I was all D: “ASP.NET”

    So yeah, uhh, anyone got a dump of a database for one of these? I don’t even have a test install I can run ASP.NET that I know of…

    Edit: Nevermind, Apache can do it. Will look into a conversion script, but it’ll be written in PHP.

    @kawauso

    Member

    The WordPress.org support forums will almost certainly just be using custom-written code. What functionality are you trying to get? Someone here might know of an equivalent plugin.

    @kawauso

    Member

    Nope, but the same data should be available from either profile iirc

    @kawauso

    Member

    <?php if ( $wp_profile_user = bb_get_user( get_post_author_id( $post_id ) ) ) : $wp_profile_link = esc_attr( "/members/{$wp_profile_user->user_nicename}/" )?><a href="<?php echo $wp_profile_link?>">View profile</a><?php endif?>

    Your profile pages from bbPress and WordPress should be in sync anyway if you’ve integrated properly…

    @kawauso

    Member

    Read through register.php in bbPress’ base directory and function bb_new_user under functions.bb-pluggable.php in bb-includes to get an understanding of how normal registration works.

    Normally the user is given an auto-generated password, but the function used in the registration function will hash anything anyway.

    @kawauso

    Member

    Ah…. add a sidebar capability ;)

    @kawauso

    Member

    Why not just use bbPress native functions and adapt code? :)

    @kawauso

    Member

    Any chance of a user/password login for the demo? :)

Viewing 25 replies - 51 through 75 (of 285 total)