Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 27,876 through 27,900 (of 32,495 total)
  • Author
    Search Results
  • #3202

    Topic: Shoutbox

    in forum Plugins
    thion
    Member

    Is there any shoutbox plug-in for BBpress? I’m looking for something simple to use for registered users, with simple managment (edit, delete), maybe something ajax-powered :).

    #64069
    mikehaynes
    Member

    Still no luck with my issue. I’ve been looking through the code but can’t pinpoint the problem…

    #64293
    berfarah
    Member

    I copy pasted the code it had in threads – <td class="num">"><?php topic_title(); ?> by <?php topic_last_poster(); ?></td>

    I figured it would do teh same for the front page, but apparently not.

    #53022
    thion
    Member

    Hello (my first post, yay) – so is there anyone who is planning to make this invitations/referral plug-in? I would find it very useful :). Especially when running a contest “bring as much users to my forums as possible and win an iPod”.

    #64225
    so1o
    Participant

    @raygene can you give me some more details on your install..

    you have to initialize bbpress by adding code in your wpconfig file.. have you done that?

    @citizenkeith plans – yup.. timeline – nope :)

    citizenkeith
    Participant

    From 1998-2003, I ran a forum using the Network54 website. These forums were horrendous. There wasn’t any user database… people just wrote their posts then filled in their name and an optional email address. (It’s amazing I didn’t get any spam during that five year period.)

    My goal is to get all these posts into bbPress.

    I was unable to spider the forum. Network54’s server kicked in and blocked all attempts using Spiderzilla.

    Here’s the forum:

    http://www.network54.com/Forum/3752/

    Instead this is what I’ve done: There are 53 pages of posts. Some of them are threaded, some are not. On each page, there’s a “View All Messages” link that will show you all of that’s page’s posts and threads on one single HTML page. Each thread is separated with an HR tag.

    I downloaded each of these 53 “View All” pages. I just spent 20 minutes cleaning up the code from Page 1, and I’m left with a fairly lean page. Here’s what I got for page 1:

    http://www.judyhenskefan.com/viewall-page-1.htm

    I will continue doing this for all 53 pages. Then I would like to separate out all the topics and posts, and put it into an “Archive” forum in my bbPress install. I’m trying to determine the best way of doing this…

    For one, a lot of the users are not registered on the current forum. Some are, but used slightly different names. Some people never entered their optional email address at the Network54 forum, so I don’t have a way to put everybody into a user account. I could match up a bunch of them, but not all of them.

    How would you proceed, if you were me?

    #64312

    In reply to: Rewriting?

    haagendazs1
    Member

    Hi chrishajer,

    example.com has stuff like htaccess, index.php, php.ini, robots.txt

    example.com/folder/ is the WP install that’s integrated with the forum

    and example.com/folder/bbpress/ is the aforementioned forum

    :)

    #62449
    citizenkeith
    Participant

    Just want to say THANK YOU!!

    I gave up converting my phpBB forum months ago:

    https://bbpress.org/forums/topic/a-phpbb-to-bbpress-database-converter/page/2

    But by utilizing the info here (and buy editing the SQL file by hand), I was able to get my forum into the very latest bbPress… it’s even integrated with WP.

    http://www.judyhenskefan.com/forums/

    Now I get to work on a new design for the forum and blog (as well as add lots of plugins to the new forum).

    Thanks again everybody! :-)

    #61280
    Detective
    Member

    I finally made a custom “private forum” (note the single noun) plugin:

    define('FORO_STAFF', 22);

    add_filter('get_posts_where', 'ryuuko_staff_where_posts');
    function ryuuko_staff_where_posts($where) {
    if (!bb_is_user_logged_in() || !bb_current_user_can('moderate')) {
    //var_dump($where);
    $where .= " AND p.forum_id <> '" . FORO_STAFF . "' ";

    }
    return $where;
    }

    add_filter('get_topics_where', 'ryuuko_staff_where_topics');
    function ryuuko_staff_where_topics($where) {
    if (!bb_is_user_logged_in() || !bb_current_user_can('moderate')) {
    $where .= " AND t.forum_id <> '" . FORO_STAFF . "' ";
    }
    return $where;
    }

    add_filter('get_forums', 'ryuuko_staff_forums');
    function ryuuko_staff_forums($forums) {
    if (!bb_is_user_logged_in() || !bb_current_user_can('moderate')) {
    $where .= " AND t.forum_id <> '" . FORO_STAFF . "' ";
    $forum_key = -1;
    foreach ($forums as $key => $forum)
    if (intval($forum->forum_id) == FORO_STAFF) {
    $forum_key = $key;
    break;
    }
    unset($forums[$key]);
    }
    return $forums;
    }

    add_action('bb_forum.php_pre_db', 'ryuuko_forum_redirect');
    function ryuuko_forum_redirect($forum_id) {
    if (!bb_is_user_logged_in() || !bb_current_user_can('moderate')) {
    if ($forum_id == FORO_STAFF) bb_die("No puedes ver esto!");
    }
    }

    Maybe it’s useful for someone. The constant FORO STAFF is the id for the private forum. In this case, only users with the ‘moderate’ capability can see the forum.

    #64311

    In reply to: Rewriting?

    chrishajer
    Participant
    #3199

    Topic: Rewriting?

    in forum Installation
    haagendazs1
    Member

    Hi everyone,

    Currently my forum is located in something like:

    example.com/dir/forum/

    But I want to rewrite it to be like this:

    example.com/forum/

    Since WordPress can do that, I was hoping bbPress can too, but I’m not sure how. Is there some setting I can change?

    Also secondary to that is that if there is no setting for such an option, can I just move the “forum” directory out of “dir” and into the root, and change the “bbPress address” to force it to physically be like “example.com/forum/” or would that screw things up?

    Thanks a lot everyone :)

    #64309
    haagendazs1
    Member

    nevermind I just figured it out! it’s in the bb_topicmeta table in the database. thanks everyone! :)

    #3197
    bruinfelix
    Member

    I’am currently working on a Dutch translation file for bbPress, zo maybe today, otherwise today it will be come available ;-)

    #64249

    In reply to: Change Gravatar Size?

    citizenkeith
    Participant

    Thanks Rune. I actually don’t like to hack admin files… Wyvn’s suggestion did the trick. I just made note of the change so I can do it again when I upgrade next.

    Maybe you can submit that for a future version of bbPress. :-)

    #64203
    skehoe
    Member

    sam is there any way I can edit the role map code to account for this. Changing the prefix could cause a lot of problems.

    #3195
    berfarah
    Member

    I want to be able to add the latest post made in a forum section on the front page (and everywhere it lists forums).

    If I try to do that, it will just keep repeating the value for the first throughout the list.

    It’s on this site, if it makes a difference

    Thanks in advance for any help :)

    #64248

    In reply to: Change Gravatar Size?

    Bloggsbe
    Member

    Well, if you like to hack you admin files, you can add the following code to the options-general.php file just after line 143, making this code start on line 144;

    <label for="avatars_size">
    <?php _e('Gravatar Size:'); ?>
    </label>
    <div>
    <select name="avatars_size" id="avatars_size">
    <?php
    $selected = array();
    $selected[bb_get_option('avatars_size')] = ' selected="selected"';
    ?>
    <option value="16"<?php echo $selected[16]; ?>><?php _e('16 px'); ?></option>
    <option value="32"<?php echo $selected['32']; ?>><?php _e('32 px'); ?></option>
    <option value="36"<?php echo $selected['36']; ?>><?php _e('36 px'); ?></option>
    <option value="48"<?php echo $selected['48']; ?>><?php _e('48 px'); ?></option>
    <option value="80"<?php echo $selected['80']; ?>><?php _e('80 px'); ?></option>
    <?php
    unset($selected);
    ?>
    </select>
    </div>

    And in the bb-includes/template-functions.php file, after line 1198 you can add this;

    $size = bb_get_option('avatars_size');

    Then you can change the size in the admin section, and the correct size will show with the posts.

    Or you can download the edited files here

    Rune

    #62868
    Detective
    Member

    It is really easy to add profile fields.

    First, you need to print the fields you need:

    add_action('extra_profile_fields', 'print_extra_fields');
    function print_extra_fields($user_ID) {
    /* get the current values for that user, and print your form items */
    }

    add_action('profile_edited', 'process_extra_fields');
    function process_extra_fields($user_ID){
    /* here, $_POST contains the new field values. so you can do things like bb_update_usermeta($user_ID, 'your_field', $_POST['your_field']); ... */
    }

    Please correct me if i’m wrong. I don’t remember the action names. But this works :) I use it in WP and BBP.

    #63027
    _ck_
    Participant

    I believe you are looking for the functions bb_get_option and get_post_link.

    #63116
    _ck_
    Participant

    Well some are far easier than others.

    First look for $wpdb and change to $bbdb

    Then you have look at things like get_option and other functions and see if they can easily use the bb_get_option or other bb_ version of the function.

    But even if the alternative function exists you have to be sure that it’s doing what you want. Things that relate to users are similar but things that relate to posts have to be change to topics and then there is comments vs posts.

    #64053
    _ck_
    Participant

    Aha! I think it’s this simple. Make yourself a mini-plugin and install it containing this:

    global $bb_roles;
    $bb_roles->remove_cap('member','write_topics');

    If you don’t know how to make a plugin, it might be possible to just put those two lines into your template’s header.php

    #64052
    _ck_
    Participant

    Unlike WordPress I don’t believe bbPress has an easy way to do role management (yet). There is a privilege built-in for bb_current_user_can( 'write_topics' ) which means it is technically possible to control who can start topics by taking away that role privilege from the “member” role.

    In theory a small plugin should be able to do this – I’ll take a look at how it might be done as an exercise in learning more about bbPress roles…

    #64154

    In reply to: Prblem upgrading

    Sam Bauers
    Participant

    Sorry, that should have been:

    $bb->wp_table_prefix = 'wp_';

    #64220
    _ck_
    Participant

    Sounds interesting but:

    Fatal error: Call to undefined function: bb_option() in wp-content/plugins/bbpress-admin/bbpress-options-admin.php on line 38

    Is this for people who has bbPress running INSIDE WordPress, instead of just stand-alone integration?

    #64101
    woodsnwind
    Member

    yes, please, file attachment is valuable for my implementation. I’ll take it as a plugin or hardwired. :)

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