Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 20,426 through 20,450 (of 32,499 total)
  • Author
    Search Results
  • #91753

    _ck_,

    More truly excellent work.

    I offered a different solution though, it’s a geneology plugin thats currently with a few folks for testing. It is far from as elegant as this (though it’s scope is wider).

    One of the things that I’ve “diskiked” about bbPress is lack of support for heirarchies. I know you’ve written some excellent code for finding the last poster for forums with sub forums before, but like the code above, they’re all workarounds.

    It also makes it difficult for theme developers to get on board when wanting to call basic API functions for “last poster” for a forum or topic etc. At some stage, I’d love a discussion on small things like this where we could improve bbP0.9

    #90173
    Marius-
    Member

    Oh :(

    I wish all us other users could have it like this.

    I view this support forum as sort of the default showcase for what bbpress is.

    #34860
    _ck_
    Participant

    I’ve noticed that depending on the site configuration, many times plugins or template designs will require information about the first poster in a topic or the last poster.

    The problem is that bbPress unfortunately (even in 1.1) only caches the post authors that are on the physical page you are on. So it causes two “out of flow” queries (one for user, one for usermeta) for each of those authors (first, last).

    This means up to four needless queries are added depending on the topic page number (not first or last is the worst hit).

    Even worse there is no direct filter/action on that process so it cannot be affected directly.

    However I’ve come up with a workaround using a trick,

    by catching the actions before and after the process.

    I’ve only tested this on 0.9, but in theory should work in 1.1

    if (is_topic && !is_bb_feed()) {
    add_action('bb_topic.php_pre_db','usercachefix_load');
    add_action('bb_topic.php','usercachefix_unload');
    function usercachefix_load() {add_action('get_forum_where','usercachefix');}
    function usercachefix_unload() {remove_action('get_forum_where','usercachefix'); global $posts; unset($posts['first'],$posts['last']);}
    function usercachefix($x) {global $topic,$posts; $posts['first']->poster_id=$topic->topic_poster; $posts['last']->poster_id=$topic->topic_last_poster; return $x;}
    }

    Make it into a mini-plugin and give it a try.

    You really only need it if you are showing info about the first and/or last poster on every page of the topic.

    You should see the query count go down by two to four queries on the page.

    Or use bb-benchmark to more closely examine the queries and look for multiple calls to the user-table and usermeta-table.

    #34859
    nickaster
    Member

    Howdy. I’m hearing that people have managed to get Facebook Connect to work as an option for users on bbpress… so, I followed these instrucions:

    Solution for facebook connect

    And it’s the last part that’s confusing me.

    “Integrade a fb-connect button on your bbpress site”

    What does that mean? What does the code look like and where should it go?

    Thanks!

    #34857
    pagal
    Participant

    Some days old post but really optimistic for bbPress.

    I don’t need to personally write code much these days because we have so many talented folks involved but I am jumping back in on bbPress and will be hacking around in there.

    calilarincon
    Member

    Thank you very much for this script, I’ve been trying to used it, but I get the following error:

    SQL ERROR [ mysql4 ]

    Data too long for column 'topic_poster_name' at row 1 [1406]

    Any ideas?

    I’m not an expert, but I’m doing my best. Thanks!

    #90168
    mr_pelle
    Participant

    No tickets left!! Woo hoo!! =D

    Greg
    Participant

    I’m trying to understand the bozo plugin and how it interacts with akismet. Looking through the code I can get a pretty good idea, but I’m worried I’ll miss some subtlety. Is there a decent English (as opposed to PHP) description of the goals/operation of either or both of these plugins anywhere?

    One specific question: the bozo plugin’s “bb_bozon” function that flips the bozo bit for a user also takes a topic_id argument. It looks like the intention here is to have per-topic bozos. Akismet doesn’t seem to use this feature though. Am I reading this right, or is it for something else?

    The context for this is that I want to allow a certain class of moderator-like users on our forum to mark posts as spam. When they do so the following will happen:

    – the poster will be marked as bozo (using bb_bozon)

    – all topics by that poster will get topic_status=2 (using bb_topic_delete)

    – all remaining posts by that poster will get post_status=2 (using bb_post_delete)

    – admin will get a notification

    Admin will then have an option to reverse all of this. Sound reasonable?

    Finally, if there is a plugin that already does something very similar, I’d love to hear about it. I have looked, but while there are some cool plugins out there they either do more than I need, or don’t have exactly the right functionality.

    #91707
    zaerl
    Participant

    Actually BuddyPress is doing the wrong thing. In bbPress:

    forum/topic/topic-name/ redirects to forum/topic/topic-name

    so there are no duplicated content, in BuddyPress:

    forum/topic/topic-name/ and forum/topic/topic-name point to the same content which is a very bad thing.

    Ben L.
    Member

    Don’t override the core files with a theme’s files. Try putting the theme in a separate folder under my-templates.

    #91613
    Ben L.
    Member

    $bb->email_login = true;

    There you go, instant feature!

    Milan Dinić
    Participant

    Non-plugin bbPress development is going to continue until we have a perfect importer so people will be able to bring their content out of the legacy codebase.

    So, will BBXF finally have some use?

    #91456
    _KB_
    Participant

    I’ve tried another integration with no “www”, it works 50%.

    Now I just can’t access my bb-admin and not able to logout from wp admin :D,

    I’ve installed _ck_ plugin fixed admin access, but its not working in this situation. I’ve find other ways from bbPress Search but still not solved. any idea?

    _KB_
    Participant

    Non-plugin bbPress development is going to continue until we have a perfect importer so people will be able to bring their content out of the legacy codebase.

    Simply I love this statement!!

    @ Matt Mullenweg, with this perfect importer, will we able to switch from other channels like vBulletin, phpbb, ip board? did you ever think about it? Any Plan?

    #90733
    pagal
    Participant

    Ok I’ve an Idea, hope it works….

    Zeal you’ve done it, that’s great news.

    Ben L. is really bzy in these days, with his projects, so it will be really time consuming matter to add new feature from scratch.

    just for co-operation, can you share an idea what you did for admin mesg to all?

    I hope Ben L, will quickly understand it and upgrade this plugin really soon.

    Sounds good? What you say now Zearl dear? :-)

    pagal
    Participant

    also read this before posting

    https://codex.wordpress.org/Forum_Welcome

    #91565
    Gautam Gupta
    Participant

    :-)

    #91605
    Greg
    Participant

    Just like to add that I’m personally not terribly worried about the admin section UI. There are other more important things (perf, for example).

    I NEVER write admin pages for my own plugins, but rather use a simple config file. I often think how nice it would be to have pretty admin pages, but it never gets to the top of the priority list because user features are more important.

    _ck_, thanks. A year ago I really didn’t understand the code base very well so the 0.9 versus 1.0 decision wasn’t terribly well informed. And I think that if I went to 0.9 I would want to also get out of deep integration to get all of the perf benefits.

    Now that I’ve written a bunch of custom plugins it is probably a simple thing to get all this working. As part of the user management model it does seem like something that is a core part of the system though.

    BTW, one little complication is to add something along the lines of the way 1.0+ caches userdata with one big query before rendering all the individual topics (thereby avoiding individual queries for display name at each topic). The plugin would need to take care of this too.

    #91555
    chrishajer
    Participant

    Take a look at the source of that page, around line 111. For some reason there is an additional DOCTYPE and a whole other document being loaded in there. Not sure where that’s coming from, if it’s the user’s profile or from a plugin. But that is what’s causing the layout problem.

    It’s interesting that other posts by that user look OK, so it’s probably not a profile problem.

    How about this:

    tr.im is currently unavailable ...

    #91604
    _ck_
    Participant

    The reason why many of my plugins require editing is because it’s usually a “set and forget” situation and nothing can top that for maximum performance. Some I just couldn’t be motivated to do all the work for an admin menu until I knew people were actually using it, and based on donations, virtually no-one is using my plugins or wants them improved.

    Plus until I came up with an idea for external admin code, I hated how they were often larger than the plugin itself.

    In any case admin menu frameworks can easily be changed. There were several plugins for WordPress 2.5 and earlier that reformatted all the menus, the design in WordPress today was lifted from those plugins directly.

    The idea that there will be a “perfect” standalone to plugin converter is incredibly naive. It will convert data, all your plugins and themes will be dead.

    In any case bbPress will definitely be forked, I am hoping there will be several forks.

    ps. @Greg, Display Names can be “accessed” from bbPress 0.9 since they are just in the user metadata and autoload when the user is fetched, you just have no UI elements to set or change them from 0.9 (but if you have WP integrated, just use that). It would be easy to make a plugin that displayed the Display Name in bbpress.

    #91455
    _KB_
    Participant

    Sure, i’ll do that tonight when I get home

    @kevinjohngallagher what about Toy Story3? I think that will be really interesting so that you’ve forget abt this topic :-)

    #91599
    Ben L.
    Member

    _ck_

    Moderator

    Ben L.

    Member

    If I changed my display name to _ck_, I would still be marked as “Member”. I could change my name to administrator as well, but people on this site are used to seeing Name – Rank, not Rank – Member.

    And if you’re going to bash 1.0 or 1.1, don’t do it because of added features. 1.0 added several security fixes (for example, try going to an admin page “admin-base.php?plugin=[name of destructive function here]” in both 0.9 and 1.0. Only 0.9 executes the function.

    _ck_, I could just as easily apply your arguments against display names to email, instant messaging, or IRC.

    We don’t need a fork – bbPress standalone (which isn’t going to be discontinued until there’s a perfect converter to the plugin version) can easily be replaced with a WP install with only the bbPress on it.

    #90730

    I commented on that last night, time differences must be working against us, here’s my (slightly edited) reply:

    Howdy Ben,

    Just as I was about to head to bed I saw your post (thats my excuse for the typos).

    I think matey, it’s a tad of an over simplification, and I think you’ve actually missed bits yourself (rather than missed them out).

    1) [edited as off topic]

    https://bbpress.org/forums/topic/extra-dropdown-field-in-registration-page#post-70307

    https://bbpress.org/forums/topic/block-users-by-their-names

    2) It’s not the first time that Zaerl’s mentioned trying to contact you about the updates he made to the plugin. Its not a bad comment on yourself at all bro. We know how these things go. Its more… the work he did was done months ago, he didn’t only do it last week (not sure how clear that was to you)

    3) It’s cool that you’re cool with someone updating your code. It’s awesome. Not everyone is, and I think it’s good of Z to check first. It’s also been a strange “week” since he said he’d ask, and todays post. Like… ALOT has happened.

    4) Zaerl’s statement is “wrong” in your opinion. We’re still very much at the mixed signals stage. If you look at everything posted by “those in the know”, there is no definative clear cut answer. On one hand we’re given good news, on the other bad. Basically, take 2 days off from reading the bbPress forum, and you’re on the wrong end of the swing/roundabout.

    Plus I have an email from my conversation with AndyNacin/PeteMall/JJJ which states categorically that [the plugin] “will be the only supported version of bbPress” (the email thread is very open and honest – i couldn’t apprecaite it anymore if i tried. I just don’t like to nor have permission to repost it) or this post from JJJ https://bbpress.org/forums/topic/bbpress-plugin-is-born#post-71009

    “This is the end of the line for the current implementation of bbPress?”

    Yes.

    Of course, there are other posts that suggest the opposite. It’s cool if you’re in the “everything will be OK camp”, jsut as much as it’s cool if Zaerl’s in the “no, it won’t camp”. But i don’t think anyone is categorically wrong.

    5) bbP1.1 is further away from being released now than it was 8 weeks ago. After Matt wasn’t happy about releasing 1.0.3, telling ChrisH we had to wait for 1.1 to be finished, we bumped as much as we could from 1.1 to get the bug fixes in 1.0.3 out ASAP. If we’re not getting another bbPress standalone release for sure, then alot of them will have to go back into 1.1. If they go back into 1.1, I doubt it’ll be released before the Fall.

    6) “And even if bbPress development was going to end, it’s open source, so just like b2/cafelog, a new project would spring up”

    Thats very true mate. I’m sure it will. Doesn’t mean that Zaerl (or others) want to hang around here though.

    7) You link to a post detailing _ck_’s “goodbye”. As much as _ck_ and I don’t see eye to eye on things, I can’t see one thing on her goodbye that doesn’t ring true.

    Relax. We’ve done this before.

    True Matt, but it didn’t inspire confidence then, it sure doesn’t inspire confidence now…

    #77640

    Well, bbPress as a plugin is official bbPress fork. ;)

    Ha :)

    It’s really not.

    It’s a totally new progam with the same name.

    #77639
    Milan Dinić
    Participant

    There’s an official bbPress fork?

    Well, bbPress as a plugin is official bbPress fork. ;)

Viewing 25 results - 20,426 through 20,450 (of 32,499 total)
Skip to toolbar