Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'bbpress'

Viewing 25 results - 53,551 through 53,575 (of 64,515 total)
  • Author
    Search Results
  • #71505

    That’s an interesting proposal. I’ll be honest and say I have no experience using any database in a multilanguage situation, but with that being said, how does a database store information in multiple languages, and can bbPress even do something like this? Would certain forums display RTL if necessary? It’s kind of a neat idea really.

    #71502
    _ck_
    Participant

    It’s really not worth the effort and you shouldn’t hack the core.

    Just disable them entirely for the fastest possible page loads.

    There are plenty of other areas of bbPress you will need to spend that kind of valuable time on.

    #71481
    ganzua
    Member

    Right now there is only one person working on the bbPress core and I wouldn’t go distracting him with stuff like this when there is plenty of far more serious work to be done.

    I get lost. What does Sam have to do with all of this? The one who is going to produce the plugin for himself is the one that is interested in the plugin.

    #4704
    Tom Lynch
    Participant

    I have recently migrated my entire phpBB over to bbPress and now want to move the bbPress users into wordpress mu so I can use wordpress integration the problem was that there is no easy way to migrate and check the users aren’t doubling up…

    I wrote a simple php script to do just that and it allowed me to list out the users where manual attention is required, it can be run just from the command line like this…. ‘php -f file.php’ and will move the users over perfectly (at least for me)…

    Note there has been no testing of this code it worked for me and may cause you issues, back up your database first!

    Comments on the code appreciated for future improvement.

    ‘<?php

    echo “n”;

    echo “+


    +n”;

    echo “| bbPress to WordPress User Migration |n”;

    echo “+


    +n”;

    echo “| Created by: |n”;

    echo “| Tom Lynch |n”;

    echo “+


    +n”;

    echo “n”;

    echo “Messages:n”;

    echo “n”;

    echo “Username Messagen”;

    echo ”



    n”;

    function printSpaces($username) {

    $spaces = 25 – strlen($username);

    echo $username;

    for ($i = 0; $i < $spaces+1; $i++) {

    echo ” “;

    }

    }

    // Enter your database host, username and password here…

    mysql_connect(‘localhost’, ‘username’, ‘password’);

    // Enter your database name here (both tables must be in same database – sorry)

    mysql_select_db(‘database’);

    $migrated = 0;

    $errors = 0;

    $query = mysql_query(“SELECT user_login, user_pass, user_nicename, user_email, user_url, user_registered, user_status, display_name FROM bb_users WHERE user_pass LIKE ‘$P$B%’;”);

    while ($data = mysql_fetch_assoc($query)) {

    $query2 = mysql_query(“SELECT user_login, user_email FROM wp_users WHERE user_login = ‘”.$data.”‘ || user_email = ‘”.$data.”‘;”);

    if (mysql_num_rows($query2) > 0) {

    $data2 = mysql_fetch_assoc($query2);

    if ($data == $data2 && $data == $data2) {

    // Suppressing already migrated users error

    //echo printSpaces($data) . ” has already been migrated by the looks of it!n”;

    } else if ($data == $data2) {

    echo printSpaces($data) . ” could not be migrated, that user name is already taken! (“.$data.”)n”;

    $errors++;

    } else if ($data == $data2) {

    echo printSpaces($data) . ” could not be migrated, that email address is already taken! (“.$data.”)n”;

    $errors++;

    }

    } else {

    mysql_query(“INSERT INTO wp_users (user_login, user_pass, user_nicename, user_email, user_url, user_registered, user_status, display_name) VALUES (‘” . $data . “‘, ‘” . $data . “‘, ‘” . $data . “‘, ‘” . $data . “‘, ‘” . $data . “‘, ‘” . $data . “‘, ‘” . $data . “‘, ‘” . $data . “‘);”);

    // Suppressing user migrated message

    //echo $data . ” was migratedn”;

    $migrated++;

    }

    }

    $alreadyDone = ((mysql_num_rows($query) – $errors) – $migrated);

    echo “n”;

    echo “Stats:n”;

    echo “n”;

    echo “Users Migrated: ” . $migrated . “n”;

    echo “Already Migrated: ” . $alreadyDone . “n”;

    echo “Not Migrated: ” . $errors . “n”;

    echo “=======================================n”;

    echo “Total: ” . mysql_num_rows($query) . “n”;

    echo “n”;

    ?>’

    #71373

    In reply to: How long?

    rjeevan
    Member

    thanks for the reply guys…

    I really like this Version 1 and I done some theme work on this as well… thats Why I was & I am waiting for the Version 1 to be released…

    Most of the plug-ins DO work with V1 alpha so far (at-least the once i want).. anyway… Let me wait for may be another month (till Mid Feb) or i will go with 0.9.x

    PS: I;m Looking to start a New forum and I’m already using the Latest WordPress. I want this forum to be Integrated so that From specified Forum i can list the topics in WordPress site as well.. sort of merging wordpress into bbPress (My Idea is to keep one Forum hidden only can accessed by Mods & Admins who can post Topics and it will be Listed in the wordpress front end… sort of!)..

    Thanks again for the replies…

    #71480
    _ck_
    Participant

    I guess I should have added the word CURRENTLY.

    Not CURRENTLY possible to change via a plugin.

    But you won’t see them do it via a plugin at any time anyway.

    Translation hooks can already do it, it’s just a pain to do.

    Right now there is only one person working on the bbPress core and I wouldn’t go distracting him with stuff like this when there is plenty of far more serious work to be done.

    #71421
    Billy Wilcosky
    Participant

    :( I don’t want bbpress to get more famous honestly. I like the fact that this is a forum software that not a lot of people use, it makes my forum seem unique. But, oh well.

    #71428

    The reason why “full integration” isn’t ‘recommended’ is because WordPress is pretty sloppy with the number of database queries that it runs, sometimes into the hundreds per page load. bbPress tends to be very efficient in this department, so going from 9 queries to 30 queries for no real reason doesn’t make sense.

    _ck_ made a topic about how to create a query without doing full integration, and I highly recommend using that method in most instances. It will allow you to have much more control over what you’re doing and how it’s doing it.

    For the sake of being easy, full integration will provide you with every available WordPress function and ability, many of which you will never need or use. I personally am using full integration because I’m still poking my head around trying to figure out what’s all possible to do with it, and it does work very well, just a little slower than a non-fully integrated install of bbPress.

    #4717
    pixelfreak
    Member

    One of bbPress’s focus is to be fast, but like a lot of framework, it seems to ignore the basics rules of good client-side performance. For instance, if you are logged-in and if you are on topic’s page, there are 7 external JS requests, all of them placed in the head. Page rendering is blocked until those JS files are fully loaded. Ideally, we should minimize the number of requests (concatenating all the JS files into 1) and put them at the bottom of the page before body.

    bbPress is also using two JS frameworks that has overlapping functionalities (Prototype and jQuery), ideally we should choose one and stick with it (preferably jQuery, imho). There are also some code that duplicate functionality that already exists in the JS framework, for instance: add-load-event.js.

    I realize this might be easier said than done, but I would like to know if this is at least being considered in the roadmap. If not, is there any suggestion before I hack the core? (I don’t think a plugin can do this?)

    Thanks,

    William

    #71471
    chrishajer
    Participant

    > So can I move certain “modules” or “plug-ins” around without php?

    > EG: Can I move the log-in bar to the top or the bottom or the side

    > of the page by a “point and click” interface a bit like Joomla,

    > or do I have to know php to just move something around?

    No, it does not work like Joomla in this regard. It’s also unlike widgetized themes in WordPress. You don’t need to know PHP to move these thigns around, but you *do* need to know enough *about* PHP to know how it works, and you need to edit the theme files to move those blocks around manually.

    > Are there any “core” enhancements coming in the new bbpress that

    > will enable easier customisation?

    I can’t speak for bbPress, but there’s nothing like that that I am aware of.

    > Lastly, if I have a stunning new wordpress theme that I’ve styled up

    > in Dreamweaver, how do I make bbpress “sit” inside the header-wrapper

    > of WordPress?

    bbPress does not become a part of WordPress. If you have the design in Dreamweaver, you are going to create two themes: one for WordPress and one for bbPress. They are going to look similar, but they are not going to be identical.

    For the big commitment, that’s up to you. bbPress is a very immature package right now without a lot of resources being applied to it. WordPress on the other hand has a very vibrant development community, a good group of core employees programming for it, a regular release schedule, etc. I think it’s a mistake to lump bbPress and WordPress together. I would not hesitate to use WordPress as a CMS for nearly any website I were doing. For forums though, I think you have to consider all the possibilities. There are lots of forums available. The determining factor should be the strengths and weaknesses of each forum, and how they fit with your strengths and weaknesses. It’s a personal decision for you.

    Luckily, I’ve only had two customers request forum functionality, out of about forty websites (1 Joomla, the rest WordPress). So, I made the decision to use bbPress in both cases, but depending on the situation, I might choose something different in the future.

    #71427
    chrishajer
    Participant

    WordPress functionality means being able to use WordPress functions, in bbPress. There are WordPress functions called get_header():, get_footer();, get_sidebar(); that exist in WordPress. Some people would like to use call these functions in their bbPress templates so they can get the exact same footer, header and sidebar in their forum as they have in the WordPress site. To do that, you need to do “full integration” which is what _ck_ is recommending against.

    To just put a list of images with links in your sidebar, you need only modify your template files. You need to create space in the template where you want the sidebar (maybe forum.php in your template folder) by creating an additional div, maybe call it #rightsidebar. Now, you need to edit your style.css to make the other divs smaller (less wide, and then make the rightsidebar wider to fill the space you created. If they theme you’re using doesn’t have enough space for all that, you might need to increase the width of the whole layout.

    I think the first step is to make the space on the page where you want it, get that working. Then, get the list of images and links in there. That’s how I would go about it. It doesn’t sound like you need access to specific WordPress functions.

    #71482
    chrishajer
    Participant

    I’m not sure about the iframe issue at all. Many people would like the forum to look like the WordPress blog. Normally you end up having to create a bbPress theme that looks like your blog theme.

    How about using this redirect trick to get them where you want them after submitting the form?

    https://bbpress.org/forums/topic/redirect-after-login-error#post-19576

    #71470
    eclipsenow
    Member

    So can I move certain “modules” or “plug-ins” around without php? EG: Can I move the log-in bar to the top or the bottom or the side of the page by a “point and click” interface a bit like Joomla, or do I have to know php to just move something around?

    Are there any “core” enhancements coming in the new bbpress that will enable easier customisation?

    Lastly, if I have a stunning new wordpress theme that I’ve styled up in Dreamweaver, how do I make bbpress “sit” inside the header-wrapper of WordPress?

    I’m almost on the brink of making a big commitment here. This could help me decide to shift not only to bbpress, but to WordPress. (I’m leaning away from Joomla and towards WordPress because of the Dreamweaver compatibility as well!) So while in some ways I’m a newbie, please understand that I’ve finally caught the “web-design” bug (although am kind of doing it part time), have upgraded to Adobe CS4, my wife and I work in a design studio, I’ve spent about 20 hours so far running through Lynda.com tutorials on XHTML and CSS and now I’m working through Dreamweaver, and I just need to make a choice about which CMS and forum to “get into” for clients.

    #4716
    Andrew
    Member

    I am upgrading an old .83 bbpress installation to Alpha 1.0r6.

    I have about 6k posts in the .83 database.

    After upgrading the database I’ve noticed the following problems. Several of the posts in the database were made by users no longer in the database. If a topic containing posts by these now ‘anonymous’ users is displayed, I get the following error at the top of the screen.

    DB Error in wp_users::append_meta: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '32) /* WP_Users::append_meta */' at line 1

    SELECT user_id, meta_key, meta_value FROM wp_usermeta WHERE user_id IN (1,,32) /* WP_Users::append_meta */

    If I delete the anonymous posts in the thread, the problem goes away. Using PHPAdmin I checked the user ID’s assigned to the posts and there are no users with those user ID’s in wp_users. (I have an integrated installation).

    I thought the problem was a result of an upgrade, so I created a new user, made some posts, and then deleted that user. The problem still exists. I have not tried this on a clean install and it would be useful if someone could try that.

    I am running the default Kak. Blue theme.

    I believe I tracked the problem request to a backpress file.

    bb-includes/backpress/class.wp-users.php:

    if ( $metas = $this->db->get_results("SELECT $meta_field, meta_key, meta_value FROM {$this->db->$meta_table} WHERE $meta_field IN ($ids) /* WP_Users::append_meta */") ) {

    I am not a SQL sleuth but I believe the $ids field is being populated with nulls associated with deleted users.

    #4711
    #71492

    In reply to: Hot Tags not updating

    chrishajer
    Participant

    Looks like the function bb_tag_heat_map takes some parameters. In your tags.php template file, you will find something like this:

    <?php bb_tag_heat_map( 9, 38, 'pt', 80 ); ?>

    That calls this function:

    function bb_tag_heat_map( $args = '' ) {

    $defaults = array( 'smallest' => 8, 'largest' => 22, 'unit' => 'pt', 'limit' => 45, 'format' => 'flat' );

    So, the smallest is 9pt, largest is 38pt, UOM is pt (points) and the limit, at least in my template, is to return 80 tags. That much you can control from just calling the function with different parameters. As far as most recent tags, I am uncertain how to do that, but it sounds like it would be a good plugin (not sure if this does what you want: I don’t think so):

    https://bbpress.org/plugins/topic/enhanced-tag-heat-map/

    The information is stored in the database when something is tagged, so I’m pretty sure you could grab the latest N tags by date, DESC and display them as Recent Tags.

    yokima
    Member

    Hello,

    I would like to have bbPress in two languages, using the same forum DB. So when viewing in language 1, the forum’s interface would be in language 1 with all the postings listed, and in language 2, the interface would be in language 2 with the same postings listed.

    I plan on achieving this with bbPress theme switcher ( http://bbpress.org/plugins/topic/bbpress-theme-switcher/ ) and the link to switch between the themes/languages would be /bbpress/?bbtheme=lang1 and /bbpress/?bbtheme=lang2

    I would also like to set up a php page at the root of the web domain to auto-detect and forward to the appropriate mediawiki language page based on

    1) user’s browser language preferences if this is a first time visit

    2) last connection’s languages preferences, which would be saved in the form of bbPress’s theme preference cookie.

    with a file structure of

    /blog

    /blog/bbpress

    /blog/wiki

    /langdetect.php

    My code so far is:

    ?php

    /* langdetect.php */

    $defaultlang = ‘en’

    $lang = $defaultlang;

    /* bbPress theme cookie detection */

    if cookie exists {

    (read cookie and set $lang to either en or ko.. bla bla)

    }

    /* WordPress and/or MediaWiki last visit language detection */

    elseif previous visit info exists {

    (i’ll figure this out later)

    }

    /* detect in-browser lang pref … modified from http://kaldung.com/en/php_detectbrowserlanguage.html */

    else {

    $langlist = explode(‘,’, $_SERVER);

    foreach($langlist as $curLang) {

    $curLang = explode(‘;’, $curLang);

    /* use regular expression for language detection */

    if (preg_match(‘/(ko|en)-?.*/’, $curLang[0], $reg)) {

    $lang = $reg[1];

    break;

    }

    }

    }

    /* redirect */

    if ( $lang==’ko’ ) { header( ‘Location: http://ENGLISHPAGE&#8217; ) ; }

    else { header( ‘Location: http://ENGLISHPAGE&#8217; ) ; }

    ?>

    How can I read the bbPress cookie that contains the Theme Switcher theme preference?

    #63572

    In reply to: Beta Problem

    To start install, I had to download all 35 files from:

    http://svn.automattic.com/backpress/trunk/

    or

    http://phpxref.ftwr.co.uk/bbpress/nav.html?bb-includes/backpress/

    to bb-includes/backpress/

    It then stopped nagging.

    Any idea why aren’t these bb-includes/backpress/* included in https://trac.bbpress.org/browser/trunk/bb-includes ???

    #4712
    #71477
    _ck_
    Participant

    Uh, you are talking about text in the core?

    Not possible to change via a plugin.

    Only thing you could do is use the language translation filters and do an “english to english” translation of the phrases you want to change. Note that it adds some overhead but I guess everything in bbPress does.

    There is one other scary method you could use and that would be to capture php’s output buffering and change it on the fly. That would be an extremely ugly workaround.

    #71413

    In reply to: No Setting Screen

    karlheinz
    Member

    Hello,

    i setup WPMU, Buddypress and bbPress. After the install the settings menu was not vissible. It doesent matter if i logged in as admin or as keymaster. All i can see is: Users / Manage / Design

    Please help,

    Karl-Heinz

    #71171
    chrishajer
    Participant

    I saw your post on the other thread re: BB_User. To prevent bozo registrations in the first place, why not use the Human Test plugin? https://bbpress.org/plugins/topic/human-test/

    #69507
    chrishajer
    Participant

    You might think it’s a good idea in the core, but I doubt it would ever happen. It’s available with a plugin, and I think that’s where it will probably stay. It’s a philosophical difference in the way bbPress thinks. They don’t load bbPress down with a lot of functionality people might not need. But they do allow plugins to offer that functionality.

    chrishajer
    Participant

    There are a couple place where bbPress uses the word “wanna” as in “are you sure you wanna do that”. I’d like to change that to something more professional, like “want to” but I don’t want to change the core. How can I accomplish that with a plugin?

    Using bbPress Alpha trunk (but this “wanna” wording has existed for a long time, maybe back to 0.73). The word wanna can be found in these files:

    ./bb-includes/js/topic.js
    ./bb-includes/functions.bb-script-loader.php
    ./bb-includes/functions.bb-script-loader.php
    ./bb-includes/functions.bb-template.php
    ./bb-includes/functions.bb-template.php

    Thank you.

    #4709
    eclipsenow
    Member

    I thought I only needed to use CSS to STYLE a theme, but just found out SMF require a fair bit of php just to style a theme! I wasn’t wanting to PROGRAM the thing, just style a pre-existing template.

    Can I just ask, and I could be totally mad here, if there’s a way to create a basic html bbpress template “thingy” that could sit in Dreamweaver and let me do all the CSS in DW, and then just copy & paste that CSS into the right spots in bbpress?

Viewing 25 results - 53,551 through 53,575 (of 64,515 total)
Skip to toolbar