Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 27,701 through 27,725 (of 32,453 total)
  • Author
    Search Results
  • #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.

    #64031
    affacat
    Member

    Not sure what you mean – the code I had above should do what I say it did, it just didn’t do what I wanted.

    That said? I now have it working the way I wanted.

    This code:

    Gets the bbPress avatar, if it exists.

    Checks to see if it’s an Identicon…

    No? Display it.

    Yes? Display Gravatar… but with the URL of the Identicon set as the default in case none exists.

    Problem solved.

    Note: I believe Gravatar recently integrated Identicons as a default setting, so you can probably do this now without Identicons setup in bbPress by modifying the code some. But this works.

    PROFILE.PHP:

    $ava = avatarupload_get_avatar($user->ID,1,1,0);

    if ( avatarupload_get_avatar($user->ID) && !(usingidenticon($user->ID) )) {

    avatarupload_display($user->ID);

    }

    else {

    echo bb_get_avatar($user->ID,48,$ava[0]);

    }

    POST.PHP:

    $ava = avatarupload_get_avatar(get_post_author_id(),1,1,0);

    if ( avatarupload_get_avatar(get_post_author_id()) && !(usingidenticon(get_post_author_id()) )) {

    avatarupload_display(get_post_author_id());

    }

    else {

    post_author_avatar(48,$ava[0]);

    }

    #64636
    _ck_
    Participant

    I suspect this is the the same problem as you or someone else had with a non-standard template with bbpress.

    Make sure in your header.php template that you have

    <?php bb_head(); ?>

    just before the

    </head>

    or bbPress plugins won’t work properly (like you are seeing now)

    #3298
    Janka
    Member

    Hi, i have the bbpress 0.9.0.2 installed.

    I try to enable BBemoticons for Private Messaging Plugin.

    I modified the file bb-emoticons.php add at last line this command:

    bb_add_filter(‘pm_text’, array(&$bbemoticons, ‘convert_smilies’));

    I have add the line:

    <?php bb_do_action(‘bb_grins’); ?>

    into file pm-user-form.php

    And i have add the line:

    <script type=”text/javascript” src=”‘. bb_get_option(‘uri’) .

    ‘my-plugins/bb-emoticons.php?bb_grins_output=javascript”></script>

    before

    </head>

    in the file header.php of template.

    I see the emoticons in the private messages :-)

    but when i click on the smile,

    i see an exception in the javascript :-(

    the plugin run correctly in the normal message of forum.

    Can you help me?

    Thank’s

Viewing 25 results - 27,701 through 27,725 (of 32,453 total)
Skip to toolbar