Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for '"wordpress'

Viewing 25 results - 25,326 through 25,350 (of 26,844 total)
  • Author
    Search Results
  • #2151
    Trent Adams
    Member

    I came across this post in the wp.org forums and it seems to work from what I hear.

    Trent

    #58905
    M
    Member

    @_ck_ – “Hack” core files = baaad. Try localization… it works for bbPress and WordPress. Easy to do as well.

    I want to change bbPress’ default text

    If you don’t like the “favorites” text, you can change it without losing the changes on an update. Not updating because of some little changes you made is bad news indeed. Might as well wear a sign that says “hack me.”

    #58683
    M
    Member

    Funny you mention this… I’m doing some work for a client at the moment using WordPress and I wanted to change some of the admin backend text without modifying core files. Localization using an en.mo file turned out to be the way to go.

    I believe bbPress supports localization as well. It’s probably going to be the route you’ll want to take. (edit: it does, BBLANG in config.php, drop the .mo file in /bb-includes/languages/ I would assume)

    The file you’ll need to edit is a compiled binary, so you’ll have to get the bbpress.pot file, probably from the bbPress site somewhere. (edit: http://svn.automattic.com/bbpress-i18n/pot/tags/)

    Once you’ve got the file, check out poEdit (http://sourceforge.net/projects/poedit/). It’s an open-source cross-platform mo/po/pot editor. Create a New catalog from .pot file, make sure the option to compile to .mo is checked in the preferences, and you should be good to go.

    The top-left box contains the text to be translated, the bottom-left contains the “translation.” Ctrl-F, find the string, and you’re good from there.

    Note: I haven’t tried this with bbPress but it works great with WordPress. Hope it helps.

    #52444

    In reply to: blockquote?

    I just installed bbpress yetserday on a new domain and have integrated it with wordpress using the plugin, etc. I also have found that the default template has no blockquote support. Even by including the blockquote definition given above by Trent verbatim in my bb-admin/style.css file does no good, here is a view source excerpt of the source file:

    <blockquote><p>[Shakir 5:57] O you who believe! do not take for guardians those who take your religion for a mockery and a joke...</p></blockquote>

    as a test…

    testing blockquote here in bbpress support

    nope. above line doesnt render in blockquoted indent either.

    i think the problem is the insertion of <p></p> tags around every paragraph. Since blockquote is an inline style, the p tags override it. we could get around this by using a div class=blockquote kind of construction instead but wouldt it be nicer if blockquote just worked out of the box?

    #2149
    bobbyh
    Member

    A lot of bbPress forums have taken advantage of easy user integration with WordPress. The next step to integrating a WordPress blog and bbPress Forum is to create a bbPress Theme to match your WordPress Theme. bbPress doesn’t ship with built-in support for a sidebar, although I found it trivial to add this with a small plugin. What I really missed was a lightweight way to access WordPress’ wp_list_bookmarks Template Tag function, which lets you display your WordPress Blogroll links.

    To add this functionality, I wrote this bbPress List Bookmarks plugin. To install this plugin, download the zip and unzip it to your bbPress server under your /my-plugins folder. The zip should extract to a folder named “list_bookmarks”, so the location of these files should be /my-plugins/list_bookmarks. Then, in your bbPress theme, add a wp_list_bookmarks Template Tag with whatever parameters you want (just like you would when editing a WordPress Theme). You shouldn’t need to hack any of the plugin files to get this to work, although of course you’ll have to edit your bbPress Theme to take advantage of this plugin.

    This plugin should work whether or not these WordPress tables are located in the same database as your bbPress tables, as long as your WordPress tables are located in the same database as your integrated user tables.

    I’ve tested this plugin on my site, which currently uses bbPress v0.8.2.1 and WordPress v2.2.1. If you use WordPress 2.0 or earlier and you want to use this plugin, you should probably upgrade your WordPress first as wp_list_bookmarks is a new function introduced in WordPress v2.1. I don’t think it should matter what version of bbPress you use.

    This plugin ships with a database class called bbwpdb.php that lets us access the WordPress database tables. The bbwpdb.php file is basically a clone of the bbPress /bb-includes/db.php file, edited to let us retrieve WordPress tables. The remaining files are simply three WordPress PHP pages needed (wp-admin/admin-db.php, wp-includes/bookmark-templates.php, and wp-includes/bookmark.php), with slight edits to make it use the bbwpdb database class, instead of the WordPress or bbPress database class. The last file (list_bookmarks.php) just glues everything together.

    #59269
    M
    Member

    People that are attracted to bbPress will be attracted because of its out-of-the-box simplicity and its extensibility.

    It’s great… if you want a plugin and you’ve messed around with WordPress for any length of time, you’ll feel right at home. I personally dislike polls… _ck_ obviously doesn’t, and he’s not alone. That’s the beauty of bbPress. These features aren’t crammed down your throat; rather they are completely optional.

    Also, I don’t think that bbPress was built to win a popularity contest. It was built with certain things in mind and is continuing in that trend. I think that’s great.

    One more thing… those people who were attracted to other forum software solutions (ie, SMF, IPB, vB), wanted something feature-bloated. All kinds of things pouring out of every corner. They wouldn’t be attracted to bbPress unless it became a miniature of what they were already using. And what’s the point in that, eh?

    #59350
    M
    Member

    Stick with the ezSQL format… it’ll be much easier.

    Something like this (using foreach instead of while):

    $query = "SELECT * FROM $bbdb->menu
    WHERE set = 'inactive' ORDER BY order ASC";
    $r = $bbdb->get_results( $query );

    foreach( $r as $rw ) {
    // now mess with $rw
    echo $rw->database_row . "<br>n";
    }

    Something that might be helpful would be to browse the source of the ezSQL class in /wp-includes/wp-db.php

    The latest from Justin Vincent, the author

    http://www.woyano.com/jv/ezsql

    The version used in bbPress and WordPress

    https://trac.wordpress.org/browser/trunk/wp-includes/wp-db.php

    It might help you… you’d be able to see where mysql_query is begin used, and how to use the ezSQL format best.

    I think the reason you’re running into problems with mysql_fetch_array is because it’s already used.

    Not sure on that one though… I would have to check.

    Also, what might cause an error: $bbdb->query will not return anything at all. $bbdb->get_results needs to be used for multi-dimensional array data, $bbdb->get_row or $bbdb->get_col need to be used for single array data, and $bbdb->get_var needs to be used for non-array/string data. $bbdb->query is used for inserting data, the others are used for retrieving it.

    Someone correct me if I’m wrong, but I’m pretty positive that’s how it goes.

    ezSQL is lovely. It certainly takes the pain out of MySQL data manipulation.

    So I guess that makes the answer to your question “Neither.” $bbdb->get_results should do the trick.

    And sorry for the screed. :D

    #57453
    Vili
    Participant

    kenzor — That would indeed work the same way and be far easier to do. It remains a mystery to me why I didn’t do it that way to begin with. I must have lost my +5 Blessed Boots of Intelligence at some point.

    #57452
    kenzor
    Member

    So, if you now go through the template files for your bbPress installation, you will need to replace all instances of “<?php bb_get_header(); ?>” with the WordPress command “<?php get_header(); ?>“. The same thing goes for the footers, so you change all instances of “<?php bb_get_footer(); ?>” to “<?php get_footer(); ?>“.

    I used a simpler method to achieve the same result. Rather than going through and changing every call to bb_get_header() and bb_get_footer() I simply created a custom header.php and footer.php file.

    Then in the header I have only:

    <?php get_header(); ?>

    In the footer I have only:

    <?php get_footer(); ?>

    The benefit of this is you only need 2 custom files, you don’t need to search and replace all instances, and if you need to setup global vars for the more advanced WordPress integration techniques you only have to add them once into your custom header.php.

    #59300
    _ck_
    Participant

    Well there’s no way around the fact that “use display names for admin” basically MUST fetch the display name from the wp_users table when asked for it – and if it’s not been accessed before it’s not cached so it must hit the mysql db directly.

    However, since “use display names” forces the forums table to store the display name properly, there’s no need to run the last poster id through the routine again and force a fetch of the display name, it’s already in the username field for last poster.

    The good news however is between that tweak, a couple other bits of fine tuning and the undocumented $bb->load_options = true; I was able to get the queries down to just 10 for the front page for visitors and 13 for logged in members. This includes an extensive number of plugins, including useronline trackline (not the simplified one here but a port from wordpress).

    It’s never been faster and rather impressive :-)

    #59265
    Sam Bauers
    Participant

    I don’t think there’s any need to be so ernest about adoption rates of bbPress. I get the impression it would be supported by Automattic even if there was only one user.

    Sure there is room for improvement, but I don’t think there is a need to emulate every feature on the forum software check list. I’ve never heard anyone on the various bbPress related channels talk about a need for poll features (for example), although I may be wrong. I think if you want to improve bbPress, then you would be better directing your energy at some of the existing bugs and well-known shortcomings (like search).

    I’m not trying to stop you building a poll plugin by the way, and perhaps your suggestions regarding the quality of bbPress are well-founded. I just don’t think you are going to get much support from people around here by attempting to whip them into a competitive frenzy against other forum platforms.

    #59232
    Sam Bauers
    Participant

    There is a project with much broader scope to implement a full-blown plugin updater on WordPress which is part of the Google Summer of Code.

    #59231
    jolaedana
    Member

    Great stuff. :) I think this is something it would be cool if WordPress should attempt- though it’d require one heck of an organizational system.

    #59263
    fel64
    Member

    The rush is that the project is “out there” and people are looking at it and coming to conclusions. Bad conclusions.

    One of these days you’re going to have to show us the crystal ball that tells you everything about the users and potential users of bb.

    What I find interesting is the belief around here that wordpress integration is not a major desire by most people evaluating it. How would we ever know the sheer number of people that have looked and been turned off?

    I think that tidbit (or at least, in my case) is based on a hand-me-down from Trent who’s pretty close to the folk at automattic and they’d be the ones to know.

    How would we ever know the sheer number of people that spontaneously combust when they use bb?! You make it sound like the entire internet trooped over and looked at bbPress yesterday, saw that there was no plugin for this or for that and decided that they would stick to phpBB.

    I think that the implied opposite of ‘overly sophisticated’ (is that a polite ‘bloated’?) can equally be ‘lean and mean’ rather than ‘underly sophisticated’.

    I think that bb just isn’t ready in a lot of ways for what you’re trying here. At 0.8.2.1 it doesn’t _need_ to have a full gallery of plugins yet just like it doesn’t yet have a full feature set. Sure more plugins are a good thing but it’s not urgent in the sort of firetruck way.

    #59262
    _ck_
    Participant

    The rush is that the project is “out there” and people are looking at it and coming to conclusions. Bad conclusions.

    I’ve tried to attract/recruit some of the major wordpress plugin writers to bbpress and the response has not been good unfortunately.

    What I find interesting is the belief around here that wordpress integration is not a major desire by most people evaluating it. How would we ever know the sheer number of people that have looked and been turned off? At least one person on wikipedia sees it this way:

    The project was created by Matt Mullenweg to support users of WordPress. Existing bulletin-board software was overly sophisticated for those requirements, so bbPress was created with the same focus as WordPress: a functional and extensible core, with all other capabilities delivered through plugins.

    The “overly sophisticated” really bothers me.

    Because that would mean bbpress’s goal is to be under sophisticated. Obviously that’s not the official statement but my point is that’s how it’s being perceived.

    Keeping advanced features out of the core is fine. I get that. But some of those features should somehow exist in plugin form by now – at least that’s what I was hoping for. So now I am trying to make that happen, which I can barely do on my own as I am not a professional programmer by any means.

    In some good news, GamerZ is happy to have me try porting his WP Polls. The bad news is he is unlikely to stop using his SMF forum software anytime soon and try bbpress. Not that I blame him right now.

    #59297
    _ck_
    Participant

    Actually he can’t really “fix” the plugin, it’s an overall integration failure which necessarily adds more mysql queries (just like the plugin needed to allow spaces adds more overhead).

    Basically the output template will HAVE to use a difference function call than the “use display name” which fixes it everywhere else before it’s written back to the database.

    It’s the cost of integration and yet another example of why bbpress isn’t magically better than any other forum for integration with wordpress.

    (or just use my workaround to cut out the extra queries ;-)

    ps. “mdawaffle” wasn’t a “dig” – isn’t that his nickname?

    _ck_
    Participant

    Yup this is another area where bbpress has to be fixed before it hits the mainstream (or before the mainstream will adopt it).

    If you are using it with wordpress, for now you can route all the login/register links to wordpress which does a better job.

    I discovered this by accident from the plugin that email favorites which I then had to hack directly to fix.

    I’ll open a ticket in trac if there isn’t one already.

    #2144
    oledole
    Member

    I have WP and BB integrated with BB in a subdirectory. Now I found a strange thing in Firebug’s “Net” section (where Firebug shows “requests”).

    When I load anything WP-realted everything looks fine, but when I load something BB-related HTML-request is listed with (404) in Firebug, although the page loads just fine.

    URL to the blog is http://www2.enserio.se/blogg/

    and the forum is at

    http://www2.enserio.se/blogg/forumet/

    I’ve had a problem when trying to check the forum at http://www.websiteoptimization.com/, which says that the page (and any other BB-realted page) doesn’t exist and report a 404-error. Somehow I thing it’s related to the Firebug-thing.

    I suspect it’s an ‘htaccess’ related problem, but I can’t figure out how to fix it. The htaccess in the WP root is:

    # BEGIN WordPress

    <IfModule mod_rewrite.c>

    RewriteEngine On

    RewriteBase /blogg/

    RewriteCond %{REQUEST_FILENAME} !-f

    RewriteCond %{REQUEST_FILENAME} !-d

    RewriteRule . /blogg/index.php [L]

    </IfModule>

    # END WordPress

    and dito in the bb root is:

    <IfModule mod_rewrite.c>

    RewriteEngine On

    RewriteBase /blogg/forumet/

    RewriteRule ^forum/(.+)/page/([0-9]+)$ /blogg/forumet/forum.php?id=$1&page=$2 [L,QSA]

    RewriteRule ^forum/(.+)/?$ /blogg/forumet/forum.php?id=$1 [L,QSA]

    RewriteRule ^topic/(.+)/page/([0-9]+)$ /blogg/forumet/topic.php?id=$1&page=$2 [L,QSA]

    RewriteRule ^topic/(.+)/?$ /blogg/forumet/topic.php?id=$1 [L,QSA]

    RewriteRule ^tags/(.+)/page/([0-9]+)$ /blogg/forumet/tags.php?tag=$1&page=$2 [L,QSA]

    RewriteRule ^tags/(.+)/?$ /blogg/forumet/tags.php?tag=$1 [L,QSA]

    RewriteRule ^tags/?$ /blogg/forumet/tags.php [L,QSA]

    RewriteRule ^profile/(.+)/page/([0-9]+)$ /blogg/forumet/profile.php?id=$1&page=$2 [L,QSA]

    RewriteRule ^profile/(.+)/([a-z-]+)$ /blogg/forumet/profile.php?id=$1&tab=$2 [L,QSA]

    RewriteRule ^profile/(.+)/([a-z-]+)/page/([0-9]+)$ /blogg/forumet/profile.php?id=$1&tab=$2&page=$3 [L,QSA]

    RewriteRule ^profile/(.+)/?$ /blogg/forumet/profile.php?id=$1 [L,QSA]

    RewriteRule ^view/([a-z-]+)/page/([0-9]+)$ /blogg/forumet/view.php?view=$1&page=$2 [L,QSA]

    RewriteRule ^view/([a-z-]+)$ /blogg/forumet/view.php?view=$1 [L,QSA]

    RewriteRule ^rss/$ /blogg/forumet/rss.php [L,QSA]

    RewriteRule ^rss/forum/([0-9]+)$ /blogg/forumet/rss.php?forum=$1 [L,QSA]

    RewriteRule ^rss/topic/([0-9]+)$ /blogg/forumet/rss.php?topic=$1 [L,QSA]

    RewriteRule ^rss/tags/([a-z-]+)$ /blogg/forumet/rss.php?tag=$1 [L,QSA]

    RewriteRule ^rss/profile/([0-9]+)$ /blogg/forumet/rss.php?profile=$1 [L,QSA]

    RewriteRule ^mlist/ mlist.php? [L,QSA]

    </IfModule>

    I can’t use the “Options +MultiViews”, gives me an “Internal server error”.

    Any input on this is most welcome!

    #59257
    _ck_
    Participant

    Er, okay. I don’t follow. Are you making one then?

    Or are you just rubbishing my idea of porting one of hundreds of existing php polling programs (a dozen for wordpress alone) to save weeks of development and bug squashing?

    bbPress needs some serious options fast if it’s going to hit critical mass and attract additional quality programmers. I just want to see a decent polling feature added as soon as reasonable possible.

    #59287
    _ck_
    Participant

    Ah I totally forgot I’ve got visitor tracking which adds some calls but doesn’t explain why it’s more than a dozen calls by design.

    If anyone’s interested, I’ve ported the “query diagnostics” plugin from wordpress so you can see each mysql call used, hidden as a report at the end of each page (for administrators).

    <?php

    /*
    Plugin Name: bb-benchmark
    Plugin URI: http://CKon.WordPress.com
    Version: 0.10
    Description: Prints simple benchmarks and mysql diagnostics, hidden in page footers.
    based on Jerome Lavigne's Query Diagnostics for WordPress http://vapourtrails.ca/wp-plugins
    Author: _ck_
    Author URI: http://CKon.WordPress.com
    */

    /* INSTRUCTIONS:

    1. add this line to your bbpress config.php file: @define('SAVEQUERIES', true);
    2. install & activate plugin
    3. do a "view source" on any bbpress page to see hidden results at bottom

    */

    function bb_benchmark_output() {
    if (bb_current_user_can( 'administrate' ) ) :
    if (SAVEQUERIES) :
    global $bbdb;
    echo "<!-- n === benchmark & query results === n ";

    while($qposition < $bbdb->num_queries){
    $qsubtime=$bbdb->queries[$qposition][1];
    if ($qsubtime>$qmaxtime) {$qmaxtime=$qsubtime;$qmaxquery=$bbdb->queries[$qposition][0];}
    $qtotal += $qsubtime;
    $qposition++;
    }

    $timer_stop=bb_timer_stop(0);

    echo @shell_exec("uptime")."n";
    echo "query count: ".$bbdb->num_queries." nn";
    echo "total query time: ".round($qtotal,4)." seconds nn";
    echo "total page time: ".round($timer_stop,4)." seconds.nn";
    echo "page render difference: ".(round($timer_stop-$qtotal,4))." seconds nn";
    echo "slowest call was: ".$qmaxquery."n at ".round($qmaxtime,4)." seconds nn";

    if (phpversion() >5.0 && function_exists(memory_get_peak_usage()) && function_exists(memory_get_usage())) {
    echo "nn === memory usage === n";
    echo "peak memory ".memory_get_peak_usage()." nn";
    echo "total memory ".memory_get_usage()." nn";
    }

    // echo "nn === resource usage === n";
    // print_r (getrusage());

    echo "nn === mysql queries used === n";
    print_r($bbdb->queries);

    echo "-->";
    endif;
    endif;
    }

    add_action('bb_foot', 'bb_benchmark_output');

    ?>

    #59286
    _ck_
    Participant

    If it makes you feel any better, wordpress doesn’t deal with it well either.

    I have to trick it into enforcing trailing slashes like this:

    RewriteCond %{REQUEST_FILENAME} !-f
    # RewriteCond %{REQUEST_URI} !..+$
    RewriteCond %{REQUEST_URI} !/$
    RewriteRule (.*) $1/ [R=301,L,QSA]

    and that doesn’t even work half the time depending on what other htaccess trickery I’ve got going on

    But I notice if I have slugs turned on in bbpress, it will remove the trailing slash always. If I have slugs turned off, it won’t tolerate a trailing slash at all and will 404

    I did manage to get the topmost rss feed to tolerate slash or not using this obvious mod

    RewriteRule ^rss(/|)$ /forums/rss.php [L,QSA]

    One thing that is important to do in bbpress vs how it’s typically done in wordpress, is not re-use/re-load the bbpress core engine if there is a redirect (which doubles the mysql calls) but to try to do it through htaccess

    #59205
    outchy
    Member

    i tried upgrading before and as you can imagine, it broke a lot my stuff so i had to go back down because i couldn’t figure out how to fix it all. and just so you know, i always upgrade my wordpress the day it comes out but this time i was a little out of my league with bbpress. i don’t waste people’s time, i’ve tried everything i know how.

    tisme
    Member

    > Probably better to say that not all functions have _hooks_ or _filters_, since pluggable refers to them being overwritable with another function (see bb-includes/pluggable.php). :)

    oh, yes right you are, thanks for pointing that out!

    so, evidently post_time() just doesn’t have a hook to callback our custom filter. I failed to modify it by the proper way.

    fel, could you please show me how it should be modified to have an apply_filter hook?

    PS

    couldn’t get the subtle difference between ‘filters’ and ‘actions’:

    > *Actions* Your plugin can respond to the event by executing a PHP function, which might do one or more of the following:

    Modify what is displayed in the browser screen (admin or end-user)

    > *Filters* are functions that WordPress passes data through, at certain points in execution, just before taking some action with the data (such as adding it to the database or sending it to the browser screen).

    which filter or action for instance could be added to the topic_class*() if any?

    #2131
    _ck_
    Participant

    Find/tell me one some of the best WordPress or other php open source poll programs and I’ll do my best to port it over…

    #2130
    Sam Bauers
    Participant

    This plugin adds a Sphere link to topic pages which allows you to search the Sphere service for related content to your topic.

    It does a similar job to the Sphere Related Content plugin for WordPress

    It’s easiest to just to install it and have a look to find out what it does.

    http://bbpress.org/plugins/topic/58

Viewing 25 results - 25,326 through 25,350 (of 26,844 total)
Skip to toolbar