Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 26,451 through 26,475 (of 32,481 total)
  • Author
    Search Results
  • #68979

    Jeez, the thing why I couldnt log in was caused by year long cookie plugin. Deleted it and its okay now…

    The thing with rating in FF persists though :-(

    #69229
    _ck_
    Participant

    Sure, you can edit the login-form.php template and replace it with a link to bb-login.php

    #69018
    timskii
    Member

    This topic is an interesting read.

    I don’t see that BBPress should fit established norms for “forums”, which I personally think are horribly outdated: Trying to apply a nice neat academic/usenet ontology to the “Twitter generation”, who would rather just communicate. Now.

    So I believe the prime role of “forum software” is to allow users to freely express themselves. Structuring and organising the information they post is a different challenge. “Categories” is essentially a response to that challenge. But can’t we do better?

    Which ironically is where things like XML-RPC become interesting. Can I make use of that now? Probably not. But it surely has potential to cross-reference discussions.

    BBPress is clearly still an early stage product. It’s certainly not there yet, even if technically it works. And almost by definition nobody is going to have clear view of where it is going.

    (And for the record, personally the biggest annoyance with the core of BBPress (0.9.x) is that users cannot register using a unicode-style username – Russian, Chinese, Arabic, or even oddball European characters. It’s just… rude, right? Or is there a solution I’ve missed that doesn’t involve rewriting the core?)

    #69017
    _ck_
    Participant

    I’m not a fan of XML-RPC myself but it’s a feature Matt wanted to pioneer. He mentioned it in one of his first announcements about bbPress. He wanted some features no other forum has. Given that it’s his “baby” he can guide it in any direction he feels fit of course.

    bbPress is just like WordPress in one major way – if you don’t like something, or want to make it better – get coding.

    WordPress didn’t have documentation for YEARS. You can find many complaints about it. Even as recent as 2.0 I believe. But look at it now.

    bbPress is the same way. And in a couple years, newcomers will wonder what the heck you were complaining about.

    Last but not least, in fact most importantly, you’re working with a pre 1.0, pre-release project – what exactly are you expecting? Features aren’t even locked in yet.

    I only learned PHP a few years ago and I figured out how to code for bbPress, 100% without documentation. If I can do it, anyone can.

    #69076

    @ipstenu: So your bb-config.php has:

    $bb->wp_siteurl = 'http://ipstenu.org/blog';
    $bb->wp_home = 'http://ipstenu.org/blog';
    $bb->cookiedomain = '.ipstenu.org';
    $bb->cookiepath = '/';
    $bb->sitecookiepath = '/';
    $bb->admin_cookie_path = '/forum/bb-admin';
    $bb->core_plugins_cookie_path = '/forum/bb-plugins';
    $bb->user_plugins_cookie_path = '/forum/my-plugins';

    etc.

    and your wp-config.php has similar entries:

    define('COOKIE_DOMAIN', '.ipstenu.org');
    define('COOKIEPATH', '/' );

    etc?

    #69109
    _ck_
    Participant

    It was also reported here:

    https://bbpress.org/forums/topic/gravatar-disable-issue

    There is a bug in bb-admin/options-general.php

    https://trac.bbpress.org/changeset/1499

    Edit bb-admin/options-general.php

    and right near the top after

    bb_check_admin_referer( 'options-general-update' );

    add this line:

    if (empty($_POST['avatars_show'])) {$_POST['avatars_show'] = false;}

    #4271
    lstelie
    Member

    lastest commit issues

    Fatal error: Call to undefined function number_format_i18n() in /foo/bar/bbpress/bb-includes/functions.bb-core.php on line 231

    see : http://luc.saint-elie.com/bbpress/

    Luc

    #69160
    _ck_
    Participant

    The function is tricky in how it works, many WP/bbPress functions now use the generic $args call instead of breaking it down by field.

    First it checks if what’s passed to it is a number, if so, the number is treaded as a specific forum id request.

    If it’s NOT a number, then it’s checked if it’s not empty, and then if it’s a string and there’s no problem using it in an array. If so, then it’s used as the before element.

    To bypass those situations, you’d have to send it an array

    Something like:

    $args = array( 'id' => 1, 'before' => ' [ ', 'after' => ' ] ' );
    forum_description($args);

    Where you could leave out any of those elements inside args if you didn’t want it, like the id, after, etc.

    #69207
    techypenguin
    Member

    Thanks but the quiries doesnt work. might be because of my theme. anyway, most of the paid server out there are much faster than the virtualhost. all other cms template like phpbb3 and mambo i’ve tried are slower than the previous version of them. i already max out my cache on the server but it’s still slow :( . sometime it’s crash after a week or so. dont have budget for the bladeserver though.haha

    #69169
    chrishajer
    Participant

    From your forum:

    > Please wait a reasonable amount of time before

    > bumping posts. Try to bump posts using 24 hours

    > as a guideline. Posts that are not within these

    > guidelines are subject to removal.

    I found that funny. Also funny to say “preying” vs. praying. All very interesting.

    Anyway, to find out who started a topic, you need to stick this into your template somewhere, wherever you want to see that information.

    <?php echo get_topic_author(); ?>

    #69159
    chrishajer
    Participant

    _ck_ – what if you wanted to use a different before character? I tried forum_description('before=x'); but that didn’t work. I couldn’t get before or after to work.

    Can you explain how to use the arguments for that function please? Thanks.

    function forum_description( $args = null ) {
    if ( is_numeric($args) )
    $args = array( 'id' => $args );
    elseif ( $args && is_string($args) && false === strpos($args, '=') )
    $args = array( 'before' => $args );
    $defaults = array( 'id' => 0, 'before' => ' – ', 'after' => '' );
    $args = wp_parse_args( $args, $defaults );

    if ( $desc = apply_filters( 'forum_description', get_forum_description( $args['id'] ), $args['id'], $args ) )
    echo $args['before'] . $desc . $args['after'];

     

    It seems like the relevant info is listed right there in the $defaults array, but I couldn’t stumble upon the combination to make it work.

    #69206
    chrishajer
    Participant

    More queries in WordPress vs. bbPress?

    You can add this to your template footer.php (one for WordPress and one for bbPress) files and it will add a comment that is visible in the source with the amount of time taken and how many queries it took to generate the page.

    bbPress

    <!-- It took <?php bb_timer_stop(1); ?> and <?php echo $bbdb->num_queries; ?> queries -->

     

    WordPress

    <!-- It took <?php timer_stop(1); ?> and <?php echo get_num_queries(); ?> queries -->

     

    Maybe you can spot some differences there.

    #68976

    Doh, now the rating itself – bb_rating_dingus() – doesn’t work. I can click on a star, but it doesn’t go into the database :-(

    Another thing I noticed, we’ve got different line numbers so maybe you have a different version from mine?

    #68975

    _CK_: sorry to bother you again, I’m sure you know the answer and I just can’t resist asking. How would the code change if I wanted to list the Forum along the top rated topics?

    If you get round taking a look at it I’d be very grateful.

    #69157

    Sadly not mate.

    I know what you’re thinking.

    Something like : https://codex.wordpress.org/Template_Tags

    But no, it’s all guess work.

    #69193

    In reply to: Unable to Login

    I know what you’re thinking, that it probably *should* be mentioned either here:

    https://bbpress.org/documentation/integration-with-wordpress/

    or

    https://bbpress.org/download/

    but it’s not :(

    BBpress, great software, also useful for testing your abilities to mind read!

    #69015

    “Oh one big thing I should point out – the features in bbPress, and the time of the main developers are first and primarily geared towards the need of Automattic and WordPress.org – people forget or don’t realize that.”

    We don’t get or realize that because… it’s not written anywhere.

    We’re not mind readers.

    “The features that are “missing” from bbPress just happen to be the features that Matt decided weren’t a priority for WordPress.org and the other Automattic forums.”

    Oh. See, now that’s a totally different light on the subject. I didn’t realise i was building something for Matt to fit Matt’s needs and for the needs of Matt’s companies. Maybe that should be written down somewhere too…

    “It’s also why there is no documentation, remember Matt has to pay the coders, why does he need documentation for 3rd party plugin developers if it’s just going to cost money.”

    I do understand that, but surely the actual developers have some form of documentation too. Couldn’t we all see that to make ‘Matts’ product better? And it’s not like Automatic is short of a few bob.

    Surely, from a business point of view, having documentation to increase the number of theme and plugin developers will increase the take-up rate of BBpress.

    “bbPress 1.0 and the backpress integration are now being driven by Matt’s goal of TalkPress for WordPress.com members.”

    So, what this means is that we can’t, as a community, do anything about anything, because we’re all following Matt’s plan, to which we have no feature list or roadmap or really any visibility of?

    I dont expect Matt, or really any WordPress/Automatic employee, to have to run things by anyone in the community – i’m not saying that I do. But the… pretence that this is an open source project is totally nullified if we’re all coding against a grand plan and road map we’re not allowed to see.

    If the new standard answer is going to be “that’s not on Matt’s wishlist but we’re not going to tell you what is on it – go on GUESS” then can start to see why so many people have left the BBpress community, and why all the themes/forums we’re seeing all look the same.

    #69074
    John Doe
    Participant

    Glad to help musnake!

    Thanks for the heads up with the custom WP login :D

    #69111

    Psst! You mean to put bbpress here:

    /home/www/example.com/bbpress

    If you put it under wordpress, your URL will be http://www.example.com/wordpress/bbpress

    #69013
    _ck_
    Participant

    Oh one big thing I should point out – the features in bbPress, and the time of the main developers are first and primarily geared towards the need of Automattic and WordPress.org – people forget or don’t realize that.

    Remember, bbPress is a purpose driven product that happens to also be open source. It wasn’t just a few people that said “hey let’s make a better free forum because we can”.

    The features that are “missing” from bbPress just happen to be the features that Matt decided weren’t a priority for WordPress.org and the other Automattic forums. It’s also why there is no documentation, remember Matt has to pay the coders, why does he need documentation for 3rd party plugin developers if it’s just going to cost money.

    bbPress 1.0 and the backpress integration are now being driven by Matt’s goal of TalkPress for WordPress.com members.

    So there’s the logic that some might not understand without perspective. There are projects like SMF that literally WERE “let’s make a better free forum” that have matured now so you can compare to them – but remember they are half a decade old. bbPress is far younger (and bbPress is way easier to write mods for).

    #69012
    _ck_
    Participant

    SteveDrum both anon posting and PM are plugins.

    I don’t see why they should be built in, I for one don’t like them on my forums and it bloats the code.

    Until 1.0 there was a problem with anon posting because there was no place to store post meta, but now the general bb_meta table can be used. So maybe one day it will have it built in but not likely 1.0

    #69116
    suzkaw
    Member

    Thanks for the comments guys.

    @__ck__ when you say views are talking about the forum list? Also good idea about the search. I just couldn’t figure out a good place for the register login section. :(

    #69010

    Just seen Sam pop up on these boards (was beginning to think he was a myth), so hopefully we’ll get an answer on some of these points we’ve made :)

    #69155
    _ck_
    Participant

    forum_description has an optional “before” argument

    try forum_description('');

    #51836

    In reply to: Plugin – Member List

    _ck_
    Participant

    cocotrp, you can exclude IDs by modifying the mysql queries and changing

    WHERE user_status = 0

    to

    WHERE user_status = 0 AND user_id NOT IN (1,2,3,4)

    1,2,3,4 are the user_id’s you don’t want to be displayed.

Viewing 25 results - 26,451 through 26,475 (of 32,481 total)
Skip to toolbar