Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for '+.+default+.+'

Viewing 25 results - 6,401 through 6,425 (of 6,773 total)
  • Author
    Search Results
  • #59725

    In reply to: plugin: bb-Polls

    howtogeek
    Member

    It works!

    You should really change the default colors to something compatible with bbPress… it’s easy to change them, but still.

    Very good work otherwise… I’ll play with it some more.

    #59723

    In reply to: plugin: bb-Polls

    _ck_
    Participant

    v0.13 adds better level control and a few other tweaks

    note that default settings are now set to everyone can view, any member can vote, only moderator+ can add

    (you can edit these of course, but just a caution)

    http://ckon.wordpress.com/files/2007/08/bb-polls.txt?v013

    #59722

    In reply to: plugin: bb-Polls

    _ck_
    Participant

    Make sure you are using v0.11 and then post a new test topic.

    The default setting is polls can be added to topics no more than three hours old (adjustable).

    You must be logged in as a moderator or higher to see the poll options or poll results for the beta. This is to prevent other members from seeing your testing & configuring.

    #2206

    Topic: plugin: bb-Polls

    in forum Plugins
    _ck_
    Participant

    I am pleased to announce a new bbPress Polls plugin.

    Your members can now add polls to their topics, or optionally you can allow *anyone* to add a poll to *any* topic, within a specified time period (hours) since the topic was started.

    bb-Polls allows single answer or multiple answer polls.

    No template edits of any kind.

    There are no additional db tables added, it uses bbpress topicmeta only. Only one entry is created per poll, regardless of size or options (this allow very easy cleanup if desired for some reason).

    This is a *very* early beta, however should be functional except for:

    1. missing admin menu (coming soon – edit plugin directly)

    2. missing administrative editing of existing polls.

    3. missing some visual tweaks (plural case, etc.)

    4. missing some more deluxe options (poll ending time, etc.)

    5. missing multi-language support (coming soon)

    If you can live with these limits and would like to help test and give me some useful, constructive feedback, please download:

    http://ckon.wordpress.com/files/2007/08/bb-polls.txt?v010

    (rename .txt to .php, install, activate, start a new test topic)

    The beta is set so only moderators and above can create/see the polls. This will allow you to test without disturbing visitors.

    Please note the visual styles may be WAY off for the default template or your own template. Unfortunately I am using a very customised template. You’ll probably have to edit the built in css which is kept clearly at the top. (the default styles will be fixed soon when I get a chance to do a trunk install this week)

    Upcoming features include the ability to display all polls and the ability to display a poll anywhere within bbpress templates.

    ps. I need to know if this works as in in the trunk version – I don’t see why it wouldn’t but you never know…

    _ck_
    Participant

    The front page topics plugin was driving me crazy because I really did want to have a different number of topics for the front page, forum pages, view pages, while leaving the posts per topic page alone and not have to hack the core.

    But there is a huge flaw in the fundamental design in that if you force bbpress to see a different number of topics-per-page, it will calculate the last post page entirely wrong, based on the page IT’S ON, vs the destination page.

    ie. front page set to 50 topics, posts-per-topic-page set to 25, last post is #30 on the page -> bbpress will calculate the page number for the last post as PAGE ONE off the front page, because that’s what the topic count is set to for the front page.

    This got me really annoyed so I researched the heck out of it and figured out this trick – it’s nasty but works (for 8.2.1 at least).

    so in config.php you’ve got

    // The number of topics that show on each page.
    $bb->page_topics = 20;

    now you can make a plugin with this, edit each page limit to your heart’s desire (anything without a $limit defined uses the config.php default)

    function custom_topic_limit($limit) {
    switch (bb_get_location()) :
    case 'front-page': $limit=45; break;
    case 'forum-page': $limit=35; break;
    case 'tag-page': break;
    case 'topic-page': break;
    case 'feed-page': break;
    case 'search-page': break;
    case 'profile-page': break;
    case 'favorites-page': break;
    case 'view-page': $limit=50; break;
    case 'stats-page': $limit=50; break;
    case 'login-page': break;
    default: $limit=20;
    endswitch;
    return $limit;
    }
    add_action( 'bb_get_option_page_topics', 'custom_topic_limit' );

    function fix_post_link ($link,$post_id) {
    remove_action( 'bb_get_option_page_topics', 'custom_topic_limit' );
    $bb_post = bb_get_post( get_post_id( $post_id ) );
    $page = get_page_number( $bb_post->post_position );
    return get_topic_link( $bb_post->topic_id, $page ) . "#post-$bb_post->post_id";
    }
    add_filter( 'get_post_link','fix_post_link',10, 2);

    The magic is in fix_post_link where it trashes whatever incorrect calculation that “get_post_link” has now done because of custom topic limits, and relculates it after unhooking the custom_topic_limit.

    No core hacks required!

    #59657

    In reply to: Caching in bbPress?

    _ck_
    Participant

    Oh I didn’t realize xcache is just an opcode cache. I already use eaccelerator which seems to have zero quirks compared to other solutions. But yeah, any opcode cache for wordpress/bbpress is a must for any active site.

    I already create the sidebar statically across my sites, saves a lot of work and repetition on the db.

    the wp-cache “plugin” has flaws in it’s logic. I noticed that unregistered visitors were getting edit links on posts, not good, even if they couldn’t actually edit. Then it has an exclude feature to keep certain parts dynamic, but you can’t have wordpress calls in those dynamic parts because wordpress isn’t actually loaded, which is the whole point. so it won’t work and gives error (#1 confusion to most people trying to use it)

    In the end, I hacked wp-cache to only cache the RSS feeds which were causing the most requests, yet the most static of all the content. Caching rss feeds on bbpress should be an easy, useful thing too, but then on a forum I highly doubt the use of rss feeds on anything but the latest discussions.

    What really worries me about the 0.84 release is the xml-rpc pingbacks. bbpress is going to become known as the spammers forum of choice with a bad rep, until novices are given an easy option to turn it off, or better yet it’s off by default. I cannot disagree more highly with the entire feature idea. It defeats the entire purpose of a forum. What they are trying to do is have a universal way to cross post across forums but the whole point of a forum is *community* and getting people to actually visit, not stay away.

    What they really should do instead of pingbacks if they want easy cross communication, is have a universal login based on a database at wordpress.com – Basically anyone with a wordpress account could visit your wordpress or bbpress site and instantly post if they wanted as “wp.membername” without having to register again and again. Sure there are security issues to be tackled but it’s better than anonymous spam heaven on pingbacks. Akismet won’t protect pingbacks, I see spam in my wordpress.com account every week.

    #58110

    In reply to: bbSync

    crowspeaker
    Member

    fel,

    It did in fact create a f00_capabilities entry.

    Also, when posting, it seems to post only the title, not any of the post at all (even if full post is the default).

    #58107

    In reply to: bbSync

    crowspeaker
    Member

    fel,

    I posted this on the plugin in page as well:

    The upgrade did not fix my problem. Trying to post with default forum left blank failed to create a post in BBpress. Posting with a default forum would post only to that forum (no override on the writing page). User_meta with the key capabilities still being created.

    Sorry.

    #59584
    _ck_
    Participant

    I’m now getting a median response time of about 0.125 seconds for 8 queries on the top page and 0.205 seconds for 12 queries on a topic page.

    That’s like night and day compared to what you had before. It was taking almost a full second in some cases, look at the bottom source of the static.html !!!

    Now can you believe most shared hosting environments have mysql cache turned off by default!!! Even your VPS neighbours may have it turned off which is causing high disk load that’s affecting you. This is where all those who claim how VPS is superiour are wrong. Disk access is the achilles heel of VPS (and shared hosting).

    Next performance improvement you can do is install eaccelerator. Though it’s nowhere near as easy as editing mysql and restarting services.

    Do you know how much guaranteed ram you have on your vps? Because the mysql and eacellerator cache will eat into that. If you have less that 128mb it will limit the sheer number of simultaneous connections you can have. Though for your needs I don’t think it’s a big deal unless all the search engines start scanning you at once.

    ps. don’t worry any more about mysql tuning and phpmyadmin status reports, it’s really all you can do for now – the rest is a limit of how wordpress/bbpress works and can’t be avoided

    pps. most of your pages are now coming up in 1.5 seconds for me when they were taking up to 6 seconds before – there are still some weird delays sometimes though which must be OS loads

    #52662
    _ck_
    Participant

    Dumb question: What should I add to post.php?

    Nothing. My version of this plugin requires absolutely no template or core edits. It’s why I made it ;-)

    It’s optional to put the style in your style.css to prevent an extra stylesheet but that’s trivial and not necessary.

    Note that I’ve turned on the default options of “one signature per user per page” and “only moderators and above can have signatures”. You can edit this in the plugin (change “moderate” to “participate”)

    There are still many, many things not checked in this, like they could trick it to post 100 lines in a signature or use a HUGE image if you have “allow images” installed. This for now comes down to moderators doing their job.

    #59566
    _ck_
    Participant

    Since there’s no real way to cache bbpress as static pages like wordpress (and not that there ever really can be, defeats the purpose) if you plan to have anything bigger than a “micro-forum” it’s important your host has mysql caching and optionally but recommend, some kind of php opcode cache (ie. eaccelerator)

    Otherwise you’ll be getting emails from your host about your account creating all of the mysql load, etc.

    The problem is I think most hosts do not have the two features I mentioned enabled. At least most shared hosting that’s done on cpanel “out of the box” on defaults. They have to be a bit more tech-savvy. And then if they are that clever, sometimes they will “oversell” the box thinking it can do more work than average.

    Last but not least, on all shared hosting and VPS, you can have great performance for the moments you test it, but then a “bad neighbour” comes along and your performance will become quite bad for no reasons of your own, until the host does something about it, which can be days. Sometimes even the host can make poor decisions that will cripple your site, like backing it up during times of higher activity or allowing the statistics programs to run on dozens of clients at the exactly same time.

    I wish I could afford dedicated hosting myself! Solves most of these problems. But spending $100 per year instead of $100 a month is no contest.

    ps. 2.490 – 8 queries is not good at all if you are expecting high traffic – I have mysql cache and opcode cache and get always get under 0.300 for 10-30 queries no matter how many visitors. But I suspect I pay much more for my hosting. My guess is there’s definitely no mysql cache on there or you are paying very very little for that hosting.

    #59528
    _ck_
    Participant

    I haven’t seen them (doesn’t mean it doesnt exist) but I’ve figured out the framework on how to build and attach a view if you’d like to copy my homework :D

    This is the code I whipped up for “most-views” and “least-views” (which requires the view count plugin to be installed (and inserting the views column in view.php)

    function most_views_views( $views ) {
    global $views;
    $views['most-views'] = 'Topics with the most views';
    return $views;
    }
    add_filter('bb_views', 'most_views_views');

    function least_views_views( $views ) {
    global $views;
    $views['least-views'] = 'Topics with the least views';
    return $views;
    }
    add_filter('bb_views', 'least_views_views');

    function most_views( $view ) {
    global $bbdb, $topics, $view_count;
    if ($view=='most-views') {$sort="DESC";}
    if ($view=='least-views') {$sort="ASC";}
    if ($view=='least-views' || $view=='most-views') {
    $limit = bb_get_option('page_topics');
    $where = apply_filters('get_latest_topics_where','');
    $most_views = $bbdb->get_results("SELECT topic_id FROM $bbdb->topicmeta WHERE meta_key='views' ORDER BY cast(meta_value as UNSIGNED) $sort LIMIT $limit");
    foreach (array_keys($most_views) as $i) {$trans[$most_views[$i]->topic_id] =& $most_views[$i];} $ids = join(',', array_keys($trans));
    $topics ="SELECT * FROM $bbdb->topics WHERE topic_status=0 AND topic_id IN ($ids) $where ORDER BY FIELD(topic_id, $ids)";
    $topics = $bbdb->get_results($topics);
    $view_count = count($topics);
    $topics = bb_append_meta( $topics, 'topic' );
    }
    else {do_action( 'bb_custom_view', $view );}
    }
    add_action( 'bb_custom_view', 'most_views' );

    As you can see a new view requires both 1. an action 2. a filter

    Easy once you’ve seen it, but try figuring it out from scratch!

    This bit adds the title to view pages (missing by default in bbpress)

    function bb_get_view_title($title) {
    if (is_view()) {$title = get_view_name(). ' « ' . bb_get_option( 'name' ); }
    return $title;
    }
    add_filter( 'bb_get_title', 'bb_get_view_title' );

    #59518

    In reply to: subforums and markup

    _ck_
    Participant

    Sooner or later you may want these other tweaks too:

    http://ckon.wordpress.com/2007/07/12/bbpress-plugin-bb-tweaks/

    1. Get rid of the ?replies=# ugliness in topic links

    2. add nofollow to post links

    3. add target=_blank to post links

    4. auto-close tags – bbPress’s auto-close tags is broken by default

    5. get rid of [closed] on subjects – useful if you have a narrow template

    #59242
    _ck_
    Participant

    >For a lark I pointed the plugin to the WordPress Plugin SVN. It got about 1/4 of the way through retrieving the list of plugins and died (script timeout).

    With many people accessing it, yeah it will necessary to pre-compile a default list of a full revision weekly.

    Or to be sneaky for now you can set a flag in options after each curl fetch and restart bbpress if you calculate approaching 30 seconds.

    Both ways sound like headaches.

    I wonder if the trac cache is faster/more efficent?

    ie.

    https://plugins-svn.bbpress.org/plugin-browser-for-bbpress/trunk/plugin-browser.php

    vs.

    https://plugins-dev.bbpress.org/browser/plugin-browser-for-bbpress/trunk/plugin-browser.php?format=raw

    I wonder if trac can be tricked to pre-gzip it all to download beforehand as a bundled revision? It’s got to compress wonderfully as it’s entirely plain text and repeating php functions.

    ps. be sure to take advantage of gzip support in curl / fsockopen – I have some code I wrote somewhere to do this if you need ideas

    #52652
    _ck_
    Participant

    This plugin should be updated, cleaned-up (a lot) and released into the SVN for others to see.

    It’s very easy to apply filters to the signature just like the post text, smiles, auto-close tags and a whole bunch of other tweaks and security could be easily added.

    I believe it’s also possible to auto-add the signature field into the profile edit page via actions/filters so no user editing required.

    Last but not least I think there should be an option that is on by default to only show one signature for the member per page so it doesn’t get too annoying for viewers.

    #59441
    _ck_
    Participant

    There are many other things you will need to do to get it working properly with wordpress.

    1. cookies paths need to be fixed in both programs

    2. the integration plugin should be installed

    3. the allow spaces in usernames plugin should be installed

    4. force all registrations/logins through wordpress from the several places they are buried on the forum (the WP interfaces are far more developed)

    5. add the ” set default role when registering new user though forum” plugin tweak

    There are probably a few others I’ve forgotten by now.

    #54081
    mazdakam
    Member

    wow! it worked! really thanks :)

    so it would be excellent add to fav automatically if each user reply the post

    and also give an option to user to add/remove this setting as default each time he or she wants

    is it posible for you?

    other forums has this function by deafult

    #59443
    _ck_
    Participant

    I think I found the answer to my question with a bit of sendmail/exim research.

    Apparently adding “-odq” to the end of the mail() options will force it to queue only, which means instant response back to the user. However that delays mail of course until the next exim run. “-odb” is supposed to be the default, running the delivery in the background and not while mail() waits, but I seem to get the best of both worlds, instant delivery and no wait on mail() when I force it, so forced it is.

    Recommended for other plugins that use mail:

    mail($to,$subject,$message,$headers,”-odb”);

    #2167
    izzypop
    Member

    I have a WP install with BBPress installed on the same database in a subdirectory of WP. Install went well, looked in the database and my new forum topic was written in the database but all links on the BBPress forum lead to “No input file specified”. I’m suspecting that it has something to do with the config file. Let me know if you see something wrong here:

    // Change the prefix if you want to have multiple forums in a single database.

    $bb_table_prefix = ‘bb_’; // Only letters, numbers and underscores please!

    // The full URL of your bbPress install

    $bb->uri = ‘http://theasianman.com/wordpress/bbpress’;

    // What are you going to call me?

    $bb->name = ‘The Asian Man Forum’;

    // Set to true if you want pretty permalinks, set to ‘slugs’ if you want to use slug based pretty permalinks.

    $bb->mod_rewrite = false;

    // Your Akismet Key. You do not need a key to run bbPress, but if you want to take advantage

    // of Akismet’s powerful spam blocking, you’ll need one. You can get an Akismet key at

    // http://wordpress.com/api-keys/

    $bb->akismet_key = ”; // Example: ‘0123456789ab’

    // The rest is only useful if you are integrating bbPress with WordPress.

    // If you’re not, just leave it as it is.

    $bb->wp_table_prefix = ‘wp_’; // WordPress table prefix. Example: ‘wp_’;

    $bb->wp_home = ‘http://theasianman.com/wordpress’; // WordPress – Options->General: Blog address (URL) // Example: ‘http://example.com’

    $bb->wp_siteurl = ‘http://theasianman.com/wordpress’; // WordPress – Options->General: WordPress address (URL) // Example: ‘http://example.com’

    I’ve turned permalinks off because it seems people are having trouble with them in conjunction with GoDaddy (my clients host : ( ).

    I’ve created a .htaccess file with:

    Options +MultiViews

    Not sure what’s up. The default forum content is not even showing up.

    Cheer all and thanks in advance

    #2164
    _ck_
    Participant

    Ruh roh, I think I broke something.

    No pagination links on forum pages even though <?php forum_pages(); ?> is there – pagination shows up and works just fine on topic pages however.

    Seems to work here, any ideas how to debug this other than turning off two dozen plugins?

    ps. also someone has to tell me oneday how to change the pagination number count and formatting without hacking the core – how do I alter that default settings array?

    #2156

    Topic: Topic Pages

    in forum Troubleshooting
    Andrew
    Member

    Right now bbpress appears to default to 15 post per topic before being paged. Where is the variable to reset this to another value?

    #58105

    In reply to: bbSync

    fel64
    Member

    I did (I think) verify that the capabilities entry is being posted to wp_usermeta as a result of bbsync. If I disable the bbsync plug-in and post, a row with capabilities (without the bb_ prefix) is not added to wp_usermeta.

    Yeah, I agree and you’re probably right. I think it’s an issue with bb being all confused when it’s loaded after wp, and not finding capabilities it assigns the defaults but with the wrong meta_key … or sumthin’?

    Is the entry created every time you post? Is it only created if it doesn’t yet exist (or has been deleted)? Repeatability is where the problem is, since everyone seems to get different problems and I haven’t had that one.

    #59323
    oledole
    Member

    I’ll link it. And it’s the same userid over at WP as here att bbpress.

    Turning of/setting WP permalinks to default fixes it at my site.

    #58101

    In reply to: bbSync

    crowspeaker
    Member

    fel,

    Using a forum name instead of a number in the Write Post screen while the default is left blank also results in no post to the forum.

    Anything I put in bbsync ~ forum box in the Write Post screen is overridden by what is in the default screen.

    So a summary; no posts if default is empty on config screen; posts only if the default screen is filled in and then posts only to that forum, overriding anything in the Write screen.

    BTW, I have two additional integration plugins running: in BBPress, I have WordPress Integration 0.7 by Michael D Adams; in WP I have bbPress Integration 0.74 also by Michael D Adams.

    #58688
    outchy
    Member

    i think that mysterious text appears when some kind of system text is missing:

    for example, when i changed this line in login.php from:

    <h2><?php isset($_POST) ? _e(‘Log in Failed’) : _e(‘Log in’) ; ?></h2>

    to

    <h2><?php isset($_POST) ? _e(‘Log in Failed’) : _e(”) ; ?></h2>

    that crazy text appeared where ‘Log in’ should have been. hope this helps.

Viewing 25 results - 6,401 through 6,425 (of 6,773 total)
Skip to toolbar