_ck_ (@_ck_)

Forum Replies Created

Viewing 25 replies - 1,876 through 1,900 (of 2,186 total)

  • _ck_
    Participant

    @_ck_

    There’s no need to edit the core for that.

    It’s just a matter of a custom query.

    Do you want tags to work like that all the time?


    _ck_
    Participant

    @_ck_

    Unless you are editing wp-config.php directly, you do need to adjust the wordpress cookies somehow. Otherwise they point at the wordpress directory and not the web root.

    There is a typo in his plugin url, this is the correct url:

    http://www.2diabolos.com/blog/wp-content/uploads/_setCookieParams.zip


    _ck_
    Participant

    @_ck_


    _ck_
    Participant

    @_ck_

    All these problem are both cookie path

    and forbidden character problems.

    Both are poorly documented (or not mentioned at all)

    but the good news is that fixes exist for both issues.

    I have to find my previous instructions on this but

    because bbpress search is so poor, this may take awhile.

    Could someone please get this into a wiki or faq at some point:

    Steps required for more complete and problem-free bbPress+WordPress integration:

    1. cookies paths need to be changed to the same path in both WordPress and bbPress (change to domain root recommended)

    https://bbpress.org/forums/topic/wordpressbbpress-single-sign-on?replies=22#post-9010

    2. the integration plugin should be installed

    https://bbpress.org/plugins/topic/4?replies=26&more=1

    3. the allow spaces in usernames plugin should be installed (also add my underscore hack for characters bbPress by default forbids but WordPress allows – see my message later in same thread)

    https://bbpress.org/forums/topic/usernames-with-spaces-do-not-work?replies=28#post-7904

    4. add the ” set default role when registering new user though forum” mini plugin should be installed:

    https://bbpress.org/forums/topic/yet-another-integration-bug-no-role-set-on-registration?replies=10#post-8768

    5. search your bbpress templates and force all registrations/logins through wordpress from the several places they are buried on the forum (the WP login interfaces are far more developed) – unfortunately at least one bbPress login location is hard coded in the core which will require a direct hack everytime you upgrade. ie:

    <?php $request_uri=$GLOBALS["HTTP_SERVER_VARS"]["REQUEST_URI"]; ?>
    <a href="/wordpress/wp-login.php?redirect_to=<?php echo $request_uri; ?>"><?php _e('Login'); ?></a>
    <a href="/wordpress/wp-register.php?redirect_to=<?php echo $request_uri; ?>"><?php _e('Register'); ?></a>

    6. optional but highly recommended, install the “use display name” plugin for mods+admin:

    https://bbpress.org/plugins/topic/2?replies=6&more=1


    _ck_
    Participant

    @_ck_

    Yeah all the “users online” and user tracking can only come after I release a user tracking plugin ;-)


    _ck_
    Participant

    @_ck_


    _ck_
    Participant

    @_ck_

    IMHO validation is just a syntax check and the least of bbPress problems right now.

    The most useful doctype for the next decade is:

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

    Get back to me when a browser DOESN’T support that ;)

    Makes life sooo much easier. Then posts can contain <b>, <u>, <s> and <i> and all sorts of standards people have been used to for the last decade instead of reinventing the wheel!

    Now instead go round up a dozen php plugin developers and get them onboard and we’ll have some real momentum :)


    _ck_
    Participant

    @_ck_

    I’ve been considering making this ability but it really worries me about the volume of email if someone subscribes to many, many topics. Spam filters, not to mention your server host can trigger bans if too much email is being sent.

    But I do have all the routines I need however to build such a plugin based on code from my signatures plugin and ignore member plugin. (Digests are another matter however, that’s a bit of work and requires tracking of last message seen, which is not natively built into bbpress)

    There is just too much to create but too little time to do it though. I’ve got too many little projects going.

    In reply to: top 100 bbPress sites

    _ck_
    Participant

    @_ck_

    Wow that’s a nice one Novellino, very active too.

    I’ve added it.

    List is coming along slowly but surely.

    It will have to wait for next weekend to come out unfortunately but that will give me more time to find other lurking sites.


    _ck_
    Participant

    @_ck_

    The /~username is known to mess up both wordpress and bbpress permalinks. If you are trying to run that way permanently that way it will require some hacks.

    You might be able to setup the username as subdomain if you know what you are doing and get around the problem ie.

    username.example.com

    Or there might still be some decent free subdomain services around, unsure – you could use one to park onto of your account and then run that way to solve your problem.

    In reply to: Forum permissions

    _ck_
    Participant

    @_ck_

    What you are trying to do with read-only has to be done in post-form.php

    You’d have to wrap it in a check for which forum id # it is and not allow the form to render if it’s one of the forums you don’t want posts in. Of course this blocks admin too which is bad so you’d have to check bb_current_user_can(“administrate”) too.

    Then there is the dropdown section, where you’d have to prevent the forum name from listing, so that needs a replacement function. It’s not 10 minutes of code unfortunately or I’d do it for you.

    Basically you’d need a completely custom post-form.php in your template.


    _ck_
    Participant

    @_ck_

    Or simply don’t let the post be made with titles that get sanitized into nothingness, or better yet, titles that are shorter than X characters – something like:

    function title_regulation($text) {
    if (strlen(trim($text))<8)
    bb_die(__('Your title is too short, please say something meaningful!'));

    if (strlen($text)>80)
    bb_die(__('Your title is too long!'));

    return $text;
    }
    add_filter('pre_topic_title', 'title_regulation',100);

    In reply to: Forum permissions

    _ck_
    Participant

    @_ck_

    Read-only forums are tricky to do as bbPress does not have any structure in place for forum permissions to the best of my knowledge, only user permissions to a certain extent. Apparently no-one considered forum control important in a forum program? Hmm.

    The private forums plugin has to insert alot of code just to mange making forums invisible to certain users (and still can miss some areas). To make them read only, while removing the “new post” form seems obvious, it wouldn’t solve the problem as there are two or three places to create a new post (and apparently in future versions via trackbacks). Unfortunately none of that can be done via plugins, it would have to be a direct hack.

    Perhaps in a future version they will consider forum permissions to make this easier. Other mature forum software has this ability, easily. I will look into how tricky the direct hack might be, probably not too hard, but keep in mind you’ll have to re-do it every time you upgrade.

    One easy workaround for now would be to manually close all your posted topics in a forum.

    In reply to: help with new install!

    _ck_
    Participant

    @_ck_

    If you are at all curious, this was probably either a cookie issue or some kind of mod_rewrite issue.


    _ck_
    Participant

    @_ck_

    Well vbulletin is king-of-the-hill for a reason, many years of development, but it costs, costs, costs for everything.

    But like I keep trying to suggest around here, bbpress’s easiest audience will be wordpress users, then next anyone who wants a more custom forum that doesn’t just have a vertical “brick” style.

    In any case, if you poke around here you’ll discover there are have a dozen hacks and plugins you will need to make wordpress and bbpress work together more perfectly, but they are available and “proven” at this point. Look for the integration tag. I’ve been meaning to try to put them altogether in one post but keep getting distracted with stuff like paying the bills so the lights (and computer!) stay on… LOL

    Forcing all logins through wordpress is possible (I do it on two sites now) but it requires a little bit of core hacks, which means the next time you upgrade it will have to be hacked again.

    Forced login for entirely member only forums is also very possible, I believe there is a specific plugin or hack around here for it.


    _ck_
    Participant

    @_ck_

    I ported GamerZ’s useronline plugin for wordpress to bbpress awhile back. Been meaning to clean it up and release it one day.

    It can not only count members and guests but since it keeps a list of the top bots, it can track those seperately. It also tracks where the users are (last browsed). So I have that working across a wordpress/bbpress install.

    Actually, knowing my style, I will rewrite it from scratch at some point to work a little cleaner. I don’t like how it discards the data after the timeout period which loses valuable information about the user’s last activity before leaving.

    It’s always bothered me that wordpress/bbpress doesn’t even natively track the last time a user logged in, only when the account was originally created, so you can’t even tell how dormant the account is.

    I’ll probably bundle this with my ip2country routines so we can have pretty country flags next to member avatars as well as a list of what countries are currently visiting the forum.


    _ck_
    Participant

    @_ck_

    I’ve discovered another interesting approach that SMF takes – their “plugins” are actually true mods where it’s a sort of “diff” file that patches the sources. Keeps it running very fast no matter how make addons you use. To a certain degree it keeps working between minor version changes (ie. 1.1.1-1.1.3) but major changes will break many of them. Still, it’s an interesting approach and very different to bbPress.

    They also do virtually everything in memory as arrays (roles, etc) where bbPress runs through a big bunch of code to return a value ie. bb_current_user_can(“administrate”).

    I know wordpress.org’s forum has distributed backup servers but it operates as a single server correct? I’m wondering just how far bbpress can scale on a single server. Once you offload mysql & email functions, that’s about as far as you can go easily on a single server.

    In reply to: top 100 bbPress sites

    _ck_
    Participant

    @_ck_

    Actually I have both of those sites already in the list :-)

    I was going to try to get the list out this weekend but sadly I will not have as much time as I hoped to work on it. But it’s coming along.

    I’ll say this much about bbPress sites compared to most other forum software – very few of them look alike.


    _ck_
    Participant

    @_ck_

    I finally found one weakness in SMF (took awhile!)

    No tags/category support and no hacks/mods in sight to add the ability.. Of course few other forums have such an ability. I’ve been setting up a new SMF forum for a client just to learn it and they gave me a list of sub-forums they wanted – I was like this would have been perfect for bbpress, instead of sub-forums which are unnecessary in their case and will confusing visitors.

    (ie. “photos” sub-forum which really, could be photos in any other forum, just tagged to show a topic has a photo)


    _ck_
    Participant

    @_ck_

    I built a SMF forum on a litespeed server yesterday and I sometimes get 0.023 page render times – it’s some crazy stuff. I didn’t even think numbers that low were possible.

    SMF seems heavy in some areas but it’s completely geared for quick output. I think it’s only weakness is that it will always look a certain blocky style – but it gets the job done for any big forum requirements. Lots of mods and themes available too. And you can set it up in under 30 minutes, under 10 minutes if you’ve done it before. I’d like to see bbpress grow up to be something like that.

    At some point I want to port this style to bbpress:

    http://www.harzem.com/themes/preview/index.php?theme=6

    Pretty sure it can be done (that’s the theme author’s site)


    _ck_
    Participant

    @_ck_

    No “fastload” is not very useful for servers with a proper opcode cache and responsive disk system (and files are fetched and rendered on the same node). On my VPS it actually adds a few ms on average.

    The load on dreamhost has been over 20 for most of today so it’s not surprising anyone will find the bbpress+smf test sites slow.

    I’m probably going to switch the showcase back to nearlyfreespeech shortly which is still on the slower side and uses only http 1.0 as it’s forces though a squid proxy.

    Unless someone can find a $20 or less per year host that has a better setup as my budget is maxed out. Can’t even afford to replace my mouse that’s acting up right now.


    _ck_
    Participant

    @_ck_

    ganzua, “headers already sent” means you have left white space before or after the plugin you made (or edited)

    ie.

    (remove any spaces here)<?php
    blah blah
    ?>(remove any spaces here)


    _ck_
    Participant

    @_ck_

    I’ve never seen their mysql take longer than 16-20ms to connect and never, ever more than 100ms to load all the queries. Storing code in mysql is crazy but just may work in weird cases like that. Of course if 1000 people did it, they’d ban the technique.

    What’s really interesting is their microtime never gives accurate results and frequently negative numbers. Either their multi-cores have clocks that are out of sync or parts of the code are somehow executing on different servers???? I posted a question about it on their support forum and it was mysteriously deleted the next day.


    _ck_
    Participant

    @_ck_

    Feel free to play with page load times:

    http://bbpress.dreamhosters.com/forums/

    vs.

    http://bbpress.dreamhosters.com/smf/

    The server is absolutely crawling right now so it’s a great time to see how bad each one is. With “fastload” bbpress is respectable against smf.

    I’ve unblocked the hidden bb-benchmarks so any user can see them if you do a view source and scroll to the bottom if you want to see all the stats.


    _ck_
    Participant

    @_ck_

    Yeah I’ve seem some really interesting hosting methods by running bbpress on several cheap shared hosts just to see how it behaves.

    SMF still freaks me out though. Then again they have like 5 years of development or much more if you include YaBB experience.

    I have this clever little idea to trick dreamhost by storing the “fastload” plugins and includes as mysql blobs and using eval. Their mysql stays consistently fast.

Viewing 25 replies - 1,876 through 1,900 (of 2,186 total)