Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'bbpress'

Viewing 25 results - 61,601 through 61,625 (of 64,420 total)
  • Author
    Search Results
  • #1557

    Topic: Hooks & Filters Docu

    in forum Plugins
    fel64
    Member

    Rather than just keeping private notes on the hooks and filters I found, I thought it best to maybe start a list here with everyone, just as a rough working documentation of the hooks and filters.

    For future ref/for people that don’t know, a hook is a means of bbPress making your plugin run every time a certain thing happens. To get that to work, put this code at the very bottom of your plugin:

    add_action( 'hook_name', 'functionname' );

    Filters are very similar to hooks, only it gives your plugin some data, you can then do something with the data (filter it), and then pass it back. To register for filters, put this code at the bottom of your application; remember to accept the parameters in your function and return them as appropriate.

    add_filter( 'filter_name', 'functionname' );

    Note that in both cases you want the name as a string and the function’s name as a string, no brackets or parameters at the end of it! An optional third parameter is the priority of your function; default is 10, so set this higher if you want it to execute last or lower if you want it to execute earlier.

    Some Filters

    topic_title – this passes the topic title to your function when the threads are being listed, like on the (default) front page.

    bb_allowed_tags – this is the array of HTML tags you can use in your posts. Hang a filter on this and add elements to the array if you want to allow more tags.

    Some Hooks

    bb_head – this is called when the HTML <head> element is being filled, so you can add stylesheets or javascript and the like.

    bb_user_logout obviously gets called when someone logs out.

    bb_init when someone logs in?

    bb_new_user when someone registers; passes the ID along I think

    bb_profile_menu – haven’t figured out how it works; I think it’s to do with the tabs at the top of the profile.

    If you know any more hooks or filters, or find ’em, please post them here with a quick description if necessary!

    #52346
    gtim
    Member

    Thanks for this great script. Unfortunately I got myself suspended from one of my webhosts since it clogged up the MySQL queue :) But I have only myself to blame, and they did let it pass only giving me a final warning.

    #57024
    wmarcy
    Member

    Jim Lynch came to the rescue, here is what is necessary:

    This code gos into the front-page.php file:

    <table id="highest">
    <tr>
    <th>Highest Rating</th>
    <th>Rating</th>

    </tr>

    <?php $topics=bb_top_topics();
    foreach ($topics as $topic) : ?>
    <tr<?php alt_class('forum'); ?>>
    <td><a href="<?php topic_link(); ?>"><?php topic_title(); ?></a>
    </td>
    <td class="num"><div class="rating-holder"><?php bb_rating();?>
    <span class="count"><?php bb_rating_count(); ?>
    </span>
    </div>
    </td></tr>
    <?php endforeach; ?>
    </table>

    Also very important not to forget to include “my-plugins/bb-ratings.css” in your template header file. That should look something like this:

    <link rel='stylesheet' href='http://YOUR_PATH_TO_BBPRESS/my-plugins/bb-ratings.css' type='text/css' />

    #57013
    Sam Bauers
    Participant

    I think you are misunderstanding how PHP is used to process forms. You can’t call a PHP function using an “onclick” event.

    PHP is a server side pre-processor, not a client side scripting language. The form needs to be posted, then you need to somehow trigger the php function on the recipient page. In bbPress, this is done by hooking into the API.

    Read this… http://www.php.net/manual/en/tutorial.forms.php

    Then I suggest you download and copy the methods used in another plugin that does this. No one will mind you copying their methods. You can feel free to adapt from any of my plugins that do this. “LDAP authentication” does it, so does “Restrict registration”. The code for handling admin pages is at the bottom of both plugins. These will also give you a clue as to how to implement the bb_*_option functions.

    #50965
    pazcu
    Member

    Suleiman,

    since you were successful integrating wpmu and bbpress, could you tell me what they mean in the installation instructions (https://bbpress.org/blog/2006/09/simpler-integration-with-wordpress)

    by “setting bb->wp_table_prefix”?

    when i open config.php i see in the botton the following:

    $bb->wp_table_prefix = ”; // WordPress table prefix. Example: ‘wp_’;

    so, again the question is what exactly do i need to change in config.php

    thanks!

    _pablo

    #57021
    fel64
    Member

    That’s a problem with your browser/html/printing thing, not to do with bbPress. I’m not sure how to fix it though, sorry.

    #57009

    In reply to: like5.com

    like5
    Member

    I think you should give credit to atsutane who made this the random members plugin.

    http://www.atsutane.net/bbpress/random-member.txt

    i just integrated your avatar plugin with the random members

    I will be making a plugin of my own where you can add buddies to your friends list.

    #1750
    #56914
    Sam Bauers
    Participant

    I don’t think it’s unreasonable for pre-1.0 software to have outstanding problems like this. Personally I have had to mark users as bozos. The only thing lacking here is documentation, which is often the case with free software.

    #57008

    In reply to: like5.com

    LMD
    Participant

    Nice use of my Avatar Upload plugin! I see you’ve modded it a bit too by adding a classname to the image link, which is great.

    I like the “Random Members” on the front page. I wonder if you’d consider sharing code, with full credit of course, so the random image thing can be added to the avatar upload plugin?

    I don’t know how you’ve set-up your random script, but I can see it being made configurable, so users can select the number to display and if they wish to limit it to only people who have uploaded an avatar.

    Let me know what you think.

    #56849
    btphelps
    Member

    I added Charly54’s code at line 2113 at the end of the function bb_convert_path_base. Finally solved the problem I had getting the theme working.

    If Charly54’s solution is required to get the bbPress forum working, why isn’t it built into the functions.php? Maybe we can add this to short-term enhancement list?

    Brian

    #57007

    In reply to: like5.com

    wmarcy
    Member

    Very cool to see how bbPress can be changed.

    THe post scrolls off the side and there is no scroll bar to see it all.

    #56955
    fel64
    Member

    Ahh, ingenious. The right thing to do would be to go to the trac part of the site and submit a new ticket for this bug, which will then be fixed. Login is the same as for this forum.

    #56942
    chrishajer
    Participant

    Gack!

    I listed a bunch of WordPress plugins. That doesn’t help. Basically, the concept is the same. You need to grab the RSS feed from bbPress and insert that into your site.

    How about any of these techniques?

    http://www.google.com/search?q=insert+rss+into+html

    The first result looked promising…

    #54997
    spencerp
    Member

    Hahaha.. Yeah, that’s why I said “hmm”.. and notice I didn’t take that public lmao!?

    spencerp

    #54996
    Null
    Member

    Good luck with phpBB 3 dude, see you back in a couple of weeks :D:D:D:D:D

    #54995
    spencerp
    Member

    The Gathering theme is on http://spencerp.net currently… :P I could always import the content from WP to MT though, couldn’t I? LOL! I already had MT setup within 15 minutes on a sub domain name a few weeks back, shouldn’t take me too much longer to set it up this time.. whee!

    Maybe could setup phpBB 3.0 whatever the hell the latest version is now… Got up that over here now: http://www.vindictivebastard.net/forum

    I don’t know though.. hmm

    spencerp

    #54994
    fel64
    Member

    Sorry Spencer, I haven’t seen the Gathering theme and aren’t particularly looking for a forum theme right now anyway. It’d be cool to see, though.

    But please don’t take down WordPress, I need that WP/bb/Mediawiki integration article for future reference! :P

    #54993
    spencerp
    Member

    Whatever, I’ll just remove the bbPress forums from spencerp.net and maybe even spencerp.net itself anyway. I’ll just slap up MT for the blog maybe and go with another forum software… whee!

    /Ah, screw it. I’ll just redirect spencerp.net to something else, like vindictivebastard.net or something.. I dunno yet.

    spencerp

    /No one would care anyway… screw it.

    #1745
    maxbear
    Member

    Hello,

    I can use one installation and run many wordpress sites (http://me.mywebsight.ws/2006/08/11/host-multiple-wp-sites-on-one-installation/) All you need to modify the config.php

    Do you think this method can apply to bbpress as well?

    #56887
    gtim
    Member

    I doubt that this is the most efficient way, but it seems to work. Add the following code in post.php in the default theme (/bb-templates/kakumei/post.php), you probably want it within the .threadauthor div.

    <?php
    $puser = bb_get_user( get_post_author_id() );
    if ( isset( $puser->from ) ) {
    echo $puser->from;
    }
    ?>

    It is not possible to do this with a plugin yet because there is no hook there, but there is a Trac ticket for it.

    Also, I compiled a list of all template functions.

    #1743
    Morbid
    Member

    I have done a complete site re-design and have been debating between using vBulletin, which I own, or bbPress. I decided to try out bbPress purely from the simplicity and low-maintenance aspect. But I am having a registration issue that may be cookie related, but I am not sure.

    I have bbPress installed within my WordPress directory. I also have bbPress integration as well as WordPress integration to keep users synced between the two (I hope that is what I was supposed to do).

    My WordPress register page seems to be working:

    http://www.dreamindemon.com/Blog/wp-login.php?action=register

    But my bbPress does not:

    http://www.dreamindemon.com/Blog/forum/register.php

    I have verified that registering in WordPress does integrate the user automatically into bbPress.

    Any ideas on what I should be looking at to resolve this?

    #1742

    Topic: BbLD problem

    in forum Troubleshooting
    archasek
    Member

    Hi.

    I know that’s not the wordpress forum, but my problem is about bbpress so i’ll ask there.

    firstly, look at this: http://ram.org.pl/forum/

    everything seem to be working ok, but click on the ‘latest discussion’ called ‘ostatnio na forum’ in my sidebar on the right. there’s a problem with links to topics. how to resolve the problem?

    #56921
    tiszenkel
    Member

    So, I figured this out myself. It turned out to be a problem with pretty permalinks. The bbPress instructions for enabling pretty permalinks say, in part:

    2. Create a file called .htaccess in bbPress’ root directory. Put only the following line in that new file.

    Options +MultiViews

    3. Try it out. If it doesn’t work, your web server does not support MultiViews.

    I suppose I was thrown off because for the most part, it did work. When I tried the documentation’s alternative instructions — feeding the output of rewrite-rules.php into .htaccess instead of the MultiViews call — the broken links suddenly worked fine.

    #56920
    tiszenkel
    Member

    Hmm — forums/tags is being redirected to a page that exists, tags.php. But even navigating straight to tags.php causes the same error. I opened up tags.php in a text editor to see what was in there, and it referenced several files that don’t seem to be anywhere in my bbPress installation: bb_tag-single.php, tag-single.php and bb_tags.php. Could this be the problem? I downloaded a completely new copy of bbPress and couldn’t find them in there, either.

    Here’s the tags.php code:

    <?php
    require_once('./bb-load.php');

    bb_repermalink();

    // Temporary, refactor this!

    if ( !$tag && $tag_name )
    bb_die(__('Tag not found'));

    if ( $tag_name && $tag ) :

    $topics = get_tagged_topics($tag->tag_id, $page);
    do_action( 'bb_tag-single.php', $tag->tag_id );

    bb_load_template( 'tag-single.php', array('tag', 'tag_name', 'topics') );
    else :

    do_action( 'bb_tags.php', '' );

    bb_load_template( 'tags.php' );
    endif;
    ?>

Viewing 25 results - 61,601 through 61,625 (of 64,420 total)
Skip to toolbar