Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 24,526 through 24,550 (of 32,468 total)
  • Author
    Search Results
  • #15157
    thekmen
    Member

    Hi all, using bbPress 1.0, how do I add an image to a topic?

    Using <img src=”path_to_image” /> just displays that code on the topic.

    #75486

    In reply to: Getting Plugin URL

    r-a-y
    Participant

    I think gautam2011 means outputting the path to bbPress’ plugin URL directory.

    Is there a constant variable like WP_PLUGIN_URL?

    I’m looking for this too! I’m porting a WP plugin over.

    [EDIT]

    Found it! It’s in bb-settings.php

    The variable is BB_PLUGIN_URL.

    Simple as that! :)

    #75349

    In reply to: bbPress 1.0 released

    bb-gian
    Member

    Thanks r-a-y, thanks Jason_JM…

    I am now convinced that I need to go straight to WP MU 2.7.1 instead of upgrading to regualr WP 2.8

    The thing is that I have a running site with bbPress alpha 6 integrated and didn’t figure out the best way to switch to a WP MU + BuddyPress + bbPress 1.0 configuration.

    Anyway, you’re right I should make another post for it, but where? WordPressforum? bbPress forum (here)? BuddyPress forum?

    ;-)

    The biggest trouble I am having now is to figure out how can I test all thenew configuration and set up leaving the existing site running and than switch to the new congfig, when I see that everything works properly. Copy the existing into a subfolder and with anew database? Mmmh…

    #75345

    In reply to: bbPress 1.0 released

    r-a-y
    Participant

    +1 on WPMU 2.7.1, BuddyPress 1.0.2 and bbPress 1.0.

    No issues… yet! ;)

    #75343

    In reply to: bbPress 1.0 released

    r-a-y
    Participant

    At the moment, WP and WPMU are separately maintained. But there are plans to merge the two codebases into one, don’t expect that in the next couple of months. More like next year sometime.

    So if you’re planning on using BuddyPress in a few months, I would recommend getting acquainted with WPMU 2.7.1 since it works with the latest version of BuddyPress. This is just my advice, but I wouldn’t upgrade to WP 2.8.

    Moving over from WP to WPMU is not that straightforward. You have to do a number of things in order to get things right.

    Since this is straying away from the original topic, create a new thread about this and others can chime in.

    #75496
    Arturo
    Participant

    no new pot in the repository, is possible force the generation manually? thanks! ;)

    #75485

    In reply to: Getting Plugin URL

    johnhiler
    Member

    You can submit plugins here:

    https://bbpress.org/plugins/forum/requests

    Once they’re approved, you’ll get a bbPress URL for your plugin. :-)

    #15175
    Geezerjim
    Participant

    I am a big fan of bbPress. One thing that has been missing has been in depth documentation. With that in mind, I have created an un-official bbPress Codex. You are welcome and encouraged to add to and help edit the information there.

    It is currently rather raw and incomplete, but with help we can get going.

    #75483
    michael3185
    Member

    @Marcomail; Thanks for raising this point about a sidebar forum list. I was curious and tested out the code I posted above, and it works very well (without the table definition). I just put the forum loop into the hottags div section and it looks fine. The site link is in my previous post if you want a look, and the code I used is;

    <div id="hottags">
    <h2><?php _e('Forums'); ?></h2>
    <?php if ( bb_forums() ) : ?>
    <?php while ( bb_forum() ) : ?>
    <a href="<?php forum_link(); ?>"><?php forum_name(); ?></a><br />
    <?php endwhile; ?>
    <?php endif; // bb_forums() ?>
    <br />

    <h2><?php _e('Tags'); ?></h2>
    <p class="frontpageheatmap"><?php bb_tag_heat_map( 9, 13, 'pt', 50 ); ?></p>
    </div>

    It tidies up the front page a lot, and there’s less need to scroll down to see the recent posts. Cheers!

    #75482
    michael3185
    Member

    @ashfame; In the example I gave, I’d just pulled some stuff out of my front-page.php, which is a modified version of Kakumei. It has tables because it came that way – here’s the fist code section;

    <div id="discussions">
    <?php if ( bb_forums() ) : ?>
    <h2><?php _e('Forums'); ?></h2>
    <table id="forumlist">
    <?php while ( bb_forum() ) : ?>
    <tr<?php bb_forum_class(); ?>>
    <td><?php bb_forum_pad( '<div class="nest">' ); ?><a href="<?php forum_link(); ?>"><?php forum_name(); ?></a><br /><div class="hints"><?php forum_description(); ?>&nbsp;&nbsp;(<?php bb_forum_pad( '</div>' ); ?><?php forum_topics(); ?> topics, <?php forum_posts(); ?> posts)</div></td>
    </tr>
    <?php endwhile; ?>
    </table>
    <?php endif; // bb_forums() ?>

    I read somewhere that using lists is not good (can’t remember why). I removed all the alternative line colourings to give a very simple layout, which you can see at http://mbforum.letsdoo.org.

    How would I use a list to get the same layout? I once removed the remaining table stuff, but the page turned into a mess. A list will add bullets or numbering, won’t it?

    #75481

    It may be simple using hard-coded html tags but php code will serve the needs of all those who are looking for that functionality.

    Michael’s code seems fine (I just don’t get the point of using table, should have been a list).

    #75207
    thekmen
    Member

    Nothing special to be done if you are using bbPress 1.0 as position-1 will be added as a div id to the first post in each thread.

    So you only need to add something like

    #position-1 .threadpost { background: #FF9; }

    to your theme css file to style the first post.

    #75480
    Marcomail
    Member

    it’s more simple using static html :)

    #75528
    _ck_
    Participant

    Some plugins attach to the “Manage” admin menu, which was skipped over in 1.0

    This will emulate the slot so the plugins become visible again.

    (do not click “Manage” directly or you’ll get a 404, unfortunately it has to be that way because of how 1.0 was changed)

    <?php
    /*
    Plugin Name: Legacy Plugin Fixes
    */

    add_action('bb_admin_menu_generator', 'admin_manage_menu', 1);
    function admin_manage_menu() {global $bb_menu; $bb_menu[165] = array( __( 'Manage'), 'moderate', 'content.php', 'bb-menu-manage' );}

    ?>

    #61978

    Rather than editing or removing core files, I wrote this simple plugin:

    <?php
    /*
    Plugin Name: Disable Registrations
    Description: This plugin disables access to registration.php and blocks any registrations.
    Plugin URI: http://simonwheatley.co.uk/bbpress/disable-registrations
    Author: Simon Wheatley
    Author URI: http://simonwheatley.co.uk/
    Version: 0.1
    */

    // Fires every time bbPress inits, a bit ick but it's super quick string ops
    // (which is what PHP is good at).
    function da_disable_registrations()
    {
    // Shame there isn't a hook to grab before the new user is registered on register.php
    // In the absence of that, we will check whether we're on register.php
    if ( ! da_str_ends_with( strtolower( $_SERVER[ 'PHP_SELF' ] ), 'register.php' ) ) return;
    // We are on register.php? Stop executing (with a message).
    bb_die( "Registration is not allowed on this website. Please contact the site administrators." );
    exit; // Never reached, unless bb_die fails for some freaky reason
    }

    // Checks whether string a ends with string b
    function da_str_ends_with(& $str, $end)
    {
    return ( substr( $str, - strlen( $end ), strlen( $end ) ) == $end );
    }

    add_action( 'bb_init', 'da_disable_registrations' );

    ?>

    #75471

    Use bb_is_user_logged_in()

    #75447
    Ryan Hellyer
    Participant

    ps. the 2.0 branch of WordPress was it’s best version ;-),

    No prizes for guessing who likes stable software then!

    I’m quite used to the WP upgrade system now. I didn’t like the frequent upgrades in the beginning, but I’ve slowly realised that as long as I keep my plugins/themes up to date with the latest WP recommended approaches that any new updates are highly unlikely to affect them.

    I also never liked the 0.9 branch very much. But I get the impression some of you are happy to keep using it for quite some time yet. I guess if someone can be bothered maintaining it then they may as well. I’ve had clients request for support for ancient WP plugins before and I try as hard as possible to get them to upgrade. Supporting out of date software is generally at the absolute bottom of my priority list.

    #75445
    johnhiler
    Member

    bbPress has several fathers. :-) Matt did a lot of the early work… and Michael (mdawaffe) took over for a while too:

    https://trac.bbpress.org/report/6

    #75444
    michael3185
    Member

    It seems to me that what we have here, albeit with lots of talented helpers, is a ‘marriage in code’ between Sam and _ck_. He built the house, she makes it pretty. Almost all of the useful plugins are _ck_ home grown or have contributions from her. I can’t contribute in any hugely useful way, but love your baby nonetheless.

    Seems to me like it’s essentially up to the two of you, when it comes down to it.

    #75508

    In reply to: Navigation error

    taboo
    Member

    Thanks, but it didn’t help… :(

    After activating the plugin it looks just the same.

    smi1ey
    Member

    So was this issue supposed to have been resolved in the 1.0 final release? I just installed it and am having the exact issue. When I login to bbPress, it logs me out of WordPress. I have searched several posts, and ensured that the cookie AUTH keys are all the same in WP and bbPress config files. The home site URL is the same as well. I even installed the WP bbPress Integration plugin as recommended, and added their extra code to the wp-config file.

    Anyone else still experiencing thing? I hate to bring up an old topic, so if it’s been resolved somehow, lemme know! :)

    #75521
    clarklab
    Member

    Ah, I am using 1.0 final. Is there a master list of template tags / functions somewhere like they’ve got for WP? In WP any time I need something I can usually just go track it down in their codex but with bbPress I always feel lost. I see on that page it says to use the topic page links function. Where can I get some info on that?

    #15168
    Marcomail
    Member

    How can i show gravatar in the front-page topic loop

    <?php if ( $topics ) : foreach ( $topics as $topic ) : ?>

    #15167
    taboo
    Member

    Navigation on the front page is screwed (I use CSS modified kakumei): when I go to page 2 (/page/2) the link attached to text “page 1” is the very same page 2 (/page/2) and not “/” as it should be.

    the code:

    <?php bb_latest_topics_pages( array( 'before' => '<div class="nav">', 'after' => '</div>' ) ); ?>

    Any clues please?`

    #75332

    In reply to: bbPress 1.0 released

    bb-gian
    Member

    Hi, I waited for so long for this version to be released!

    I got a running WP site and a bbBress integrated forumin it.

    WP is 2.7.1

    bbPress is 1.0-alpha-6

    In WP I use the bbPress Integration (1.0-rc-2) plugin

    Did the necessary integration routine (with AUTH_KEY, SECURE_AUTH_KEY, LOGGED_IN_KEY, etc.)

    Now, I want to upgrade WP to 2.8 and bbPress to 1.0, what’s the best procedure?

    (Of course, I will backup files and database of both installation).

    Should I upgrade WP to 2.8 first or bbPress to 1.0? (About bbPress, don’t even seem to know HOW upgrading, since I guess there isn’t an upgrading button, right?).

    And what about integration? Now that those 2 version support seamlessly integration, should I delete the AUTH_KEY, SECURE_AUTH_KEY, LOGGED_IN_KEY in bb-admin.php?

    And should I also delete the bbPress Integration plugin, or is it still necessary?

    Well, I thought I’d ask before adventuring in the process.

    Thanks to anyone who will answer…

    ;-)

Viewing 25 results - 24,526 through 24,550 (of 32,468 total)
Skip to toolbar