Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 27,726 through 27,750 (of 32,481 total)
  • Author
    Search Results
  • #64663
    mykes
    Member

    This stuff is frustrating as all hell. It seems so simple until it doesn’t work out of the box and you spend hours trying to figure it out. Fix these kinds of problems and you’re golden!

    Anyhow, just downloaded and installed the latest wordpress mu and bbpress today.

    wordpress in DocumentRoot, and bbpress in DocumentRoot/forums/

    Both in mysql 5.x database named wordpress.

    When installing bbpress, I did not enable wordpress integration.

    I followed this checklist:

    1. You are running latest versions of WordPress (2.5.1) and bbPress (0.9.0.2)

    2. You have matched SECRET_KEY in wp-config.php with BB_SECRET_KEY in bb-config.php

    3. You have matched WordPress “secret” database option with bbPress “secret” database setting

    4. You have setup compatible cookie domains and paths in config files (see instructions in bbPress admin)

    5. You are successfully sharing user tables from WordPress with bbPress

    Everything seems to be right.

    BIG FIRST PROBLEM is I setup the roles on the wordpress integration page so “admin” is “key master.” As soon as I turn on integration, my old key master is gone and admin can login but is NOT key master. Google is my friend, most of the time, and I found a query to do by hand to fix it. This should be automatic in the install process of bbpress or turn on of integration, no?

    So I’m able to login to wordpress. I login to bbpress. My user’s password is wiped out in wordpress. I can do lost password thingy in wordpress and restore the password. When I navigate to /forums/ and login as my user, the password in wordpress is wiped out again. Oddly, I can login as my user at bbpress over and over again, no problem.

    notes:

    1) my user is a user I created on wordpress, and he has admin privs and thus key master privs in bbpress. I see the admin link in bbpress when I login. But when I do login, wordpress won’t accept this user’s password anymore. I either have to keep loging into wordpress as admin and resetting the user’s password or go through the forgot password by email process. Changing the user’s password in bbpress has no effect on wordpress.

    2) The integration forum in admin is confusing as all hell. Or maybe the installation process is not well documented. Maybe a page on your site about how to install the two together and get the integration working would be good. For example, should bbpress and wordpress share the same database? Not clear. The integration page asks for both a site url and a blog url, what’s the difference?

    3) Did anyone try doing a fresh install of both as part of your Q/A before releasing a latest version of bbpress?

    4) If I can’t get the password problem resolved, bbpress is the one to go, not wordpress.

    5) I probably should post some of this in multiple threads, but I doubt there’s any notification feature that would e-mail me if/should anyone reply to my posts :)

    6) I want to give bbpress every opportunity to replace my existing 20K+ member / 1.6M post message board site.

    mrhoratio
    Member

    How do I use bb_query to fetch all topics that were started within a given date range?

    Here’s an example found an example of a bb_query code on the bbPress blog:

    $topic_query = new BB_Query( ‘topic’,

    array(

    ‘topic_author’ => ‘mdawaffe’,

    ‘started’ => ‘2007-06’,

    ‘tag’ => ‘bbpress’,

    ‘order_by’ => ‘topic_start_time’

    )

    );

    $topic_query->results; // Here’s the array of topics the query returned.

    This shows how to get topics that where started on June 2007. But what if I wanted to get all topics that were started between June 2, 2007 10:30:49 PM and February 12, 2008 9:02:32 am?

    I think I may be missing something totally obvious. Any suggestions? I

    mrhoratio
    Member

    Is there a way to show a paginated list of front page stickies? In the default bbPress template file “front-page.php”, I found this code:

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

    <tr<?php topic_class(); ?>>

    <td><?php bb_topic_labels(); ?> <big>“><?php topic_title(); ?></big></td>

    <td class=”num”><?php topic_posts(); ?></td>

    <td class=”num”><?php topic_last_poster(); ?></td>

    <td class=”num”>“><?php topic_time(); ?></td>

    </tr>

    <?php endforeach; endif; // $super_stickies ?>

    It display a list of front page stickies, but it doesn’t have any pagination if you have a lot of stickies. I tried adding this:

    <?php forum_pages(); ?>

    But it doens’t work.

    Any suggestions on getting this to paginate?

    #61391
    mrhoratio
    Member

    I just did some fiddling in the bbPress functions.php file located in the bb-includes directory. I may have found a possible fix:

    On line 167, look for this code:

    $q = 0;

    Then delete or comment out everything except for the semicolon at the end:

    ;

    This seems to make topics that are stuck to the front page appear in the forum as well.

    Warning: I’m not well-versed in php, so I’m not sure if this will break anything in bbPress. If there’s a more elegent solution, please post it.

    #64433

    In reply to: Categories in 0.901?

    mrhoratio
    Member

    I just did some fiddling in the bbPress functions.php file located in the bb-includes directory. I may have found a possible fix:

    On line 167, look for this code:

    $q['sticky'] = 0;

    Then delete or comment out everything except for the semicolon at the end:

    ;

    This seems to make topics that are stuck to the front page appear in the forum as well.

    Warning: I’m not well-versed in php, so I’m not sure if this will break anything in bbPress. If there’s a more elegent solution, please post it.

    #64562
    Detective
    Member

    Hi, this works for me:

    add_action('bb_init', 'pm_initialize');

    function pm_initialize() {
    load_plugin_textdomain('bb-pm', BB_PLUGIN_DIR . 'private-messages');
    }

    Inside the folder private-messages i have a file called bb-pm-es_ES.mo. As you can see, i use the locale es_ES.

    #3323
    Tammy Hart
    Member

    I figured this out by accident after not finding much in the forums about it, so I thought I’d post it fresh.

    In wordpress, we use <?php bloginfo('template_url'); ?> to go straight to your template directory (i.e. “http://mysite.com/wp-content/themes/mytheme&#8221;).

    In bbPress, to go yout theme directory (i.e. “http://mysite.com/bb-templates/mytheme&#8221;), you use <?php bb_option('template_uri'); ?>

    #64759

    In reply to: GMT Offset

    dangrey
    Member

    “bb_current_time is in the functions file inside bb-includes directory. But you probably should touch that otherwise when you update bbpress, it will break again. :)

    Tell me about it — I’ve already hacked another core file which has to be re-tweaked every upgrade…

    BTW isn’t this a bug really?

    #60766

    In reply to: PHPBB3 Converstion

    yazerty
    Member

    Thanks for the news :).

    But isn’t it a beta script to import phpbb3 to a bbpress ?

    #64758

    In reply to: GMT Offset

    scooter7978
    Member

    bb_current_time is in the functions file inside bb-includes directory. But you probably should touch that otherwise when you update bbpress, it will break again. :)

    The SQL I used was just an interval clause…i.e. if I was going to import my current forums I would use something like:

    SELECT ID, Body, DateCreated – interval ‘9 30’ hour_minute FROM current_forum_whatever

    This takes the date field and drops 9.5 hours off, coincidentally, my time zone.

    You could probably adapt this to an ‘update’ statement to change what’s already in your database, eg:

    UPDATE bb_topics SET DateCreated=(SELECT DateCreated – interval ‘9 30’ hour_minute);

    I haven’t tested it but it probably wouldn’t be too far wrong.

    #64746
    Bloggsbe
    Member

    Yea, I noticed :-)

    Just as I uploaded the plugin I read my emails.

    But still, this also gives you control with the size of the gravatars (and identicons etc), and you can specify your own default image by stating an URI to the image, so hopefully it gives a bit more control!

    Regards,

    RG

    #60765

    In reply to: PHPBB3 Converstion

    Sam Bauers
    Participant

    Import/Export is being improved as part of a Google Summer of Code project. We will hopefully have some results from that to share by the end of it.

    The basic idea is to create export plugins for other forum software which can export to a standard format. Then we will have one importer to import that standard format into bbPress.

    #63888

    In reply to: upgrade error

    chrishajer
    Participant

    You’re absolutely right. Sorry about that. This is how it was done before the 0.9 release. Now it looks like that option was moved into the database. In the database in the bb_topicmeta table, there is an entry with a meta_key of uri that holds this value. I think that means it was entered when you went through the installation, and gets inserted into the database. I just tried another installation with 0.9.0.2 and that value is prefilled in the form.

    Site address (URL):

    We have attempted to guess this, it's usually correct, but change it here if you wish.

     

    The correct URL was prefilled here. When I clear it out and submit, I get the following error:

    Site address (URL): • This value is required to continue.

    So, for some reason, it looks like this error check did not work for you, or the value that was inserted into the database is not valid. Can you use a tool like phpMyAdmin to look at the database and see if you have a bb_topicmeta table, with a record that has a meta_key of uri and see that the value is? The record is meta_id 3 in my installation.

    If you can’t do that, can you reinstall if you have not used the forum yet?

    Also, I see you’re on IIS. I wonder if there are any differences with hosting there from what I am used to, which is Linux and Apache.

    #64584
    dexter78
    Member

    Hello people, I use bbpress but I don`t know how can I use in posts backticks… :-(

    #3313
    gerikg
    Member

    I would like to put some plugins from bbpress into the WP widget.

    For example: The Simple Online By Thomas Klaiber would be great on a widget.

    If I put the code on WP widget it errors when on WP but comes up when on BB.

    I guess I just need an if-then statement? but I don’t know how to write it.

    #64713
    kernow
    Member

    I unfortunately have the same problem :(

    #63885

    In reply to: upgrade error

    chrishajer
    Participant

    Looks like that comes from bb-settings.php (line 156 in 0.9.0.1):

    // Die if no URI
    if ( !$bb->uri && ( !defined('BB_INSTALLING') || !BB_INSTALLING ) ) {
    bb_die( __('Could not determine site URI') );
    }

    I think that says “If there is no $bb->uri defined AND you’re not installing, then die with this message.”

    So, in your bb-config.php, what do you have defined for $bb->uri?

    #60763

    In reply to: PHPBB3 Converstion

    yazerty
    Member

    Wow, there isn’t any tool to move from phpbb3 to bbpress ? How bad it is :-(.

    I hope there will be soon :))…

    #3310
    Bloggsbe
    Member

    I’ve made a plugin that lets you set your own default gravatar.

    You can also choose to use Identicons, Wavatar or monsterID as the default gravatar.

    You set the size and the rating you want.

    This plugin overrides the built in Gravatar function, but you still have to choose to show the avatars in the standard options page, but all other gravatar options from that page is ignored.

    I’ve tested it on bbPress 0.9.0.2 and 1.0-dev (from trunk), but it should work on all 0.9.x versions.

    You can download the plugin from here.

    I’ve also submitted it to the plugins list here on bbpress.org, and will (hopefully) show up there to :-)

    RG

    #3311
    #64690
    Sam Bauers
    Participant

    It is in bb-includes/plugable.php

    #3308
    harryworld
    Member

    I have successfully integrated TinyMCE to my editor in bbpress, which I found that is so easy.

    However, when doing the submit, TinyMCE submits the HTML code on behind to bbpress. I found that each line TinyMCE created a <p>…</p> tags, but bbpress is not allowing this. Finally, <p></p> comes to the screen when viewing the post.

    Is there any workaround for this?

    #3306
    richcon
    Member

    I updated my web site today to bbPress 0.9.0.2 and WordPress 2.5.1. Cookie integration settings got out of whack and I put them back, but now the two are in conflict.

    I’ve verified (by clearing cookies and watching as new cookies are registered) that both bbPress and WordPress are using the same cookie for login info — same name, path, etc.

    However, when logging into WordPress I am logged out of bbPress, and when logging into bbPress I am logged out of WordPress. So they appear to be using the same cookie and overwriting it as I login to each section.

    Note that the SECRET_KEY and BB_SECRET_KEY definitions in each respective config files are identical.

    The cookie seems to be broken up into three parts: user name, a shortish numerical code (in decimal), and a long hexadecimal code. The name and shortish numerical code are identical between bbPress and WordPress but the long hex code changes every time. Does this help provide a clue?

    #55031
    so1o
    Participant

    i have created the plugin.. people willing to test the plugin out for me please mail me.. aditya at adityanaik point com.

    oh by the way if any one wants to pay me.. by all means :)

    cheers

    #64688

    I would say it possible with a plugin,

    doesn’t exist one already?

    The bb_new_user() function is pluggable,

    so you are able to write your own one.

Viewing 25 results - 27,726 through 27,750 (of 32,481 total)
Skip to toolbar