Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'test'

Viewing 25 results - 9,551 through 9,575 (of 11,577 total)
  • Author
    Search Results
  • #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…

    #71390
    nomad1
    Member

    Thanks chrishajer. Option two works in my case. I wonder if it is possible to modify the RSS-output as well, so that posts from the selected category will be excluded in the RSS-feed?

    #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.

    #71491

    In reply to: Hot Tags not updating

    geekjon
    Member

    I should have tested this before asking. I just made another post using a recent tag for the second time and it now shows up in the hot tags list. So, it would appear that things are working as they should.

    Let me ask this though. What options are available for displaying tags. I would like to display more tags, or at the very least, I would like to display the most popular AND most recent tags. The sort now appears to display only a certain number of tags with only a single use, and out of those tags displayed, they are the oldest tags.

    #69526

    In reply to: Change Post Author?

    _ck_
    Participant

    This would be a good test plugin for my new username-suggest function.

    You can’t just have a dropdown of thousands of users.

    #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/

    #71389
    deadlyhifi
    Participant

    of course! why didn’t I think of that?

    Anyway, thank you very much. You deserve an award. Both those options work.

    #71386
    eclipsenow
    Member

    Anyone know if Lynda.com is about to do the latest WordPress, (let alone bbpress?) They covered using WordPress.com 2.6, but not 2.7 yet, and have about 3 courses on Joomla.

    I’m there to learn Adobe CS4, and have ambitions of learning Dreamweaver, Photoshop, Indesign, etc and delusions of grandeur that I might one day understand my mac almost as well as my wife. (Who’s a VERY professional graphic designer, but a web-illiterate like I currently am). So I paid up for a year at Lynda.com (and will claim that on tax), and sat through 10 hours of CSS training and 3 hours of XHTML and am now starting on Dreamweaver. All this slowed down by Christmas, kids home for 6 weeks in the Australian summer break, and my messing about with Joomla! (There are some things I like about Joomla, but some bad experiences with trying to modify their templates left me a bit blech…. as well! :)

    Yet I hear there is a state of the art Dreamweaver integration pack for $60 that will let me style up WordPress themes in DW! Woah! That almost won me over and gave me delusions of grandeur about one day donating a few state-of-the-art templates to the WordPress world as advertising for my own WordPress theme’s business.

    And then the kids came in demanding ice-cream, and reality slapped me across my fantasising, drooling, delusional face.

    So… in this vulnerable state of mind, I need a hug. ;-) Cult like it is, this “choosing software before you know software” business and frame of mind!

    As a bit of an activist with other causes (and having had a little exposure to marketing, not a lot but enough) can I just comment that I think it would be better “press” if bbpress had some more features turned on in this forum? I personally really rely on email notification that someone has replied to a forum, and only check my RSS about once a day. (It’s all inconvenient). Instead of just clicking “Send post” I have to then click RSS, and then click Google Reader when that comes up, and then remember to check my RSS. I think the vast majority of bulletin board users like email notification of a reply. Is there a reason bbpress decided not to showcase some of their best plug-ins on their leading forum?

    Anyway, so tired I’m nearly hallucinating. Night night, and no offence meant by any of the above.

    #71388
    chrishajer
    Participant

    Did you try any of the WordPress-style tricks?

    <?php $topics = get_latest_topics('exclude=3' ); ?>
    <?php $topics = get_latest_topics( -3 ); ?>

    #71333
    _ck_
    Participant

    frooyo make sure you upgrade to the very newest version of topics-per-page

    it’s tested working fine on 1.0 trunk with both pretty permalinks and regular

    #71371

    In reply to: How long?

    kirpiit
    Member

    > I wouldn’t wait.

    Sorry if I did not understand it clear.

    Do you mean that, starting from scratch, it is far better to set up and test with the 1beta version that the 0.9 one?

    #71270

    Okay, the fix (one file) did not work. What did work was re-uploading everything from the latest trunk build.

    Leaving the stuff below to show I recognize I’m a tard

    Sam, it’s really NOT fixed.

    On a BRAND NEW post I get this

    <a href="http://thisis.my/link"">This is my link</a>

    TWO quotes at the end. TWO. Not one. And I can’t edit ’em or they break worse. They ONLY work if I leave out quotes.

    #4697
    karlheinz
    Member

    Hi,

    i have installes the latest 1.0-Alpha-6. When i login as admin i cannot see the Settings Menu. I have full administrator rights.

    All is see is Users and Manage

    Any idea?

    Best,

    Karl

    #71387
    deadlyhifi
    Participant

    come on, someone must know how to do this.

    I can limit it to one forum with this:

    <?php $topics = get_latest_topics( 1 ); ?>

    but I want $topics to get forums 1 and 2 (but not 3).

    deadlyhifi
    Participant

    I managed to do it with

    if ($topic->forum_id != 3)

    but then it’s still counting them as part of the loop therefore it ends up with ‘Number of Discussions to display – Number of discussions in that forum’.

    How can I do it so it just leaves them out but leaves the latest discussion length intact?

    #71317
    deadlyhifi
    Participant

    Ipstenu – thanks for replying. On another test installation where I’ve been experimenting with integration the registration is working fine through bbP. Not sure why it wasn’t on the other installation I was running.

    #71331
    ganzua
    Member

    I tested this plugin and it is working on my live installation now.

    I think front-page pagination should be added to the core. It is a great enhancement.

    #71329
    _ck_
    Participant

    Front-page pagination works using topics-per-page in both 0.9 and the latest trunk.

    topic-views plugin has nothing to do with pagination.

    Update: wait, I see the trunk now corrupts the urls after a couple of pages.

    This is one of those things they keep breaking in the alpha and I will fix once they stop playing with it.

    This is why you don’t use the alpha.

    I’m not going to bug fix just because you want to use the alpha on a live site.

    I’ve now posted 0.0.5 with a workaround for 1.0a’s url corruption during pagination.

    Remember if you use pretty-permalinks you *must* add the rewrite rule to .htaccess in the readme.txt

    #71275
    ilo
    Member

    After doing some reading I am going to assume someone is going to tell me to use the alpha 6 version of bbpress? Would it be wise for me to do the whole setup from scratch, re-uploading wordpress and then testing bbpress again?

    #71247
    Fernando Tellado
    Participant

    Ipstemu, I’ve checked it in Safari too and they worked fine (in Mac, by the way)

    #71246
    Famous
    Member

    Thank you,

    You ever wake up in the morning, and say WTF (What the Fudge) was I talking about??? Sorry, I must have been extra sleepy to ask such a dumb question. But, thanks for reminding me…

    #71253
    chrishajer
    Participant

    I think this is because the server is using PHP4. I believe you need PHP5 for that to work in that release. It’s been fixed in the latest trunk.

    https://bbpress.org/forums/topic/wp-function-error/

    https://bbpress.org/forums/topic/bbpress-0904-and-10-alpha-5-released/page/2#post-22557

    https://bbpress.org/forums/tags/mbcs

    #71245

    That only works for FireFox, fernandot :)

    Basically the urls are (assuming your bbpress is in a folder called ‘forums’ and you’re using pretty permalinks)

    http://domain.net/forums/rss/ – All posts

    http://domain.net/forums/rss/topics – All topics

    #71244
    Fernando Tellado
    Participant

    That RSS you demand is integrated in bbPress. In your browser navigation bar, if you click to the RSS icon it shows you the list with the two RSS feeds availables. One is for latest topics and other one is for latest messages in all topics. If you see my forum ( http://forowordpress.es/ ) I’ve added two links to both in the sidebar (redirected to feedburner as you can see). ;)

Viewing 25 results - 9,551 through 9,575 (of 11,577 total)
Skip to toolbar