Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 25 replies - 1 through 25 (of 80 total)

  • TheEasyButton
    Participant

    @theeasybutton

    I apologize for not coming back sooner to say this is solved. Been having lots of computer issues. The reason the other code didn’t work was we were reading from the wrong table. Another table had the info we needed so I swapped it out and here’s what I’m using now. Hopefully this will come in handy for a lot of people.

    This goes in the head

    <!-- drop down search -->
    <SCRIPT LANGUAGE="JavaScript">
    function formHandler(form){
    var URL = document.form.site.options[document.form.site.selectedIndex].value;
    window.location.href = URL;
    }
    </SCRIPT>
    <!-- end drop down search -->

    And this goes in the body

    <!-- drop down search -->
    <form name="form">
    <select name="site" size=1>
    <option value="">Blah Blah</option>
    <?php
    $field_id = 2; // this should be the id of the
    // field you want, see your wp_bp_xprofile_fields
    // database table to find it

    global $wpdb;

    $sql = "SELECT name FROM {$wpdb->base_prefix}bp_xprofile_fields WHERE parent_id = {$field_id} ORDER BY id DESC";
    $result = $wpdb->get_col($wpdb->prepare($sql));
    foreach($result as $row){
    if(strlen($row) > 0){
    $values[$row]++;
    }
    }
    foreach($values as $key => $value){
    echo "<option value=\"members/?s=$key\">$key</option>";
    }
    ?>
    </select>
    <input type=button value="Go!" onClick="javascript:formHandler(this)">
    </form>
    <!-- end drop down search -->

    Don’t forget to change the number of the field. Thanks for all of your help =D


    TheEasyButton
    Participant

    @theeasybutton

    Plrk, your code ALMOST works for me…. so dang close!!!!!!!!

    One member has chosen Fiction and Science Fiction. Here is the output that your code gives

    a:2:{i:0;s:7:”Fiction”;i:1;s:15:”Science Fiction”;}(1)

    Any idea how to get the extra garbage out of there and just list Fiction and Science Fiction”


    TheEasyButton
    Participant

    @theeasybutton

    Thanks – I’ll give both sets of codes a try. To answer the question of “exactly what I want to do” ….

    I want a search box. And instead of typing something in, they can use a pull down that will automatically translate into something like http://domain.com/members/?s=VALUE This way, the full list of values is listed for them and they don’t have to guess. i.e. location, number of kids, male/female. Things of that nature.


    TheEasyButton
    Participant

    @theeasybutton

    I have no clue what CSV is. LOL I’m not using the prebuilt. That was just an example.

    Another example: Hair color — values are red, blonde, brunette. On the index page, that’s what I want people to see. i.e. “People at our site have hair that is: red blonde brunette”

    (goofy example lol)

    I’ve gone through the class files as well as the template tag files and just can’t get it worked out. I think that what I need is whatever makes the edit profile page show the list.

    I’ll take a look at those prebuilt field files and see if anything clicks in my tired old brain.

    Also, I tried using the profile loop “stuff” but it always gives me an error like “Fatal error: Call to a member function the_profile_field() on a non-object “


    TheEasyButton
    Participant

    @theeasybutton

    I’ve had this happen before. Here are 3 solutions which have worked for me in the past. There IS another but I can’t for the life of me remember what file needed hacked.

    1. Check all of the links that you had to put into configurations. Make sure that the links & trailing slashes are correct.

    2. Try overwriting the files with a new download. If the download glitched, you’ll have wonky files in your install & it will do that.

    3. Another thing to try is a new install. (don’t forget to do backups) When doing the new install, pay attention to step 2 where it asks for your site & blog URL. If you used a trailing slash before, don’t use it this time & vice versa.


    TheEasyButton
    Participant

    @theeasybutton

    I’m happy to hear it helped. =D I put an updated version on earlier yesterday (after I finally slept for a few hours). It was nice to be able to cut some steps out vs the alpha 6 version.


    TheEasyButton
    Participant

    @theeasybutton

    Did you install everything from scratch or did you copy the files & database from the old domain & paste them to the new domain?


    TheEasyButton
    Participant

    @theeasybutton

    Add it where?


    TheEasyButton
    Participant

    @theeasybutton

    Okay — So the answer to my last question was no. The user switch code is not needed.

    Got everything up & going. Not sure what the deal was this morning. I guess that’s what I get for trying to do work at 5am when I’ve been up for 2 days straight. *laughs*

    As an addition to the steps that Graeme so graciously outlined for us:

    1. It’s alright to install BuddyPress first just in case you were wondering.

    2. After you get the cookie settings from the bbPress integration plugin, it’s okay to deactivate & delete it. It works great for getting the settings but isn’t required to keep everything running & every extra plugin (even if deactivated) adds load time to pages.

    3. On my own install, I have an extra cookie setting that needs added. It comes up with the plugin & it’s the admin_cookie_path. (Running via localhost – in case that matters)


    TheEasyButton
    Participant

    @theeasybutton

    Are you sure you’re using the right username/password combo? Did you do a password retrieval just to be sure?


    TheEasyButton
    Participant

    @theeasybutton

    Oh the irritation. *laughs*

    TY for posting your instructions. I didn’t mean for you to go to so much trouble but I’m sure that so many people will find this useful.

    I’ve only tried the new versions twice & after the mess with the last couple of integrations, I wanted to ask what everyone was using before I tried anymore. LOL

    The bad part is, those would be my instructions. That’s how I do it everytime. Over & Over.

    Quick question — Did you have to put the user switch code in the bb-config?

    Again, thank you for the time you put into writing out your instructions.


    TheEasyButton
    Participant

    @theeasybutton

    handbike, I know that wasn’t suppose to be funny…. but OMG it set me off to laughing something fierce.


    TheEasyButton
    Participant

    @theeasybutton

    From what I’m seeing in other posts, 2.8.1 isn’t quite compatible with BP yet. Keep an eye on this topic for updates.


    TheEasyButton
    Participant

    @theeasybutton

    Oh my head hurts. *laughs*

    I’ve still not been able to do this from scratch. I think there’s either a file that BP is looking for or something in the database that’s been omitted from the newest release of bbPress.

    But for now, hopefully this solution will work.


    TheEasyButton
    Participant

    @theeasybutton

    I just posted the steps that I’ve been taking to install the latest releases of WPMU, BuddyPress & bbPress. You can find it here.


    TheEasyButton
    Participant

    @theeasybutton

    One thing that might help is to put the following code on bb-config.

    $bb->bb_xmlrpc_allow_user_switching = true;

    I’ve tried to do this install from scratch for almost a week and have failed every time. But here are the steps I’ve been taking to get all of the newest releases to work together.

    As always – get backups before making any changes!!

    After you get wpmu & bp installed, install bbPress alpha 6 using my tutorial

    Steps 24-28 deal with cookies. Ignore those and instead, use the bbPress integration plugin to get the codes for all of that. Then, delete the plugin.

    After you get alpha 6 working correctly (group discussion works & login integration works), rename your bb-config file. Then overwrite the alpha 6 files with bbPress 1.0.1 Don’t delete the files!!! Overwrite them!! I think there’s a file being left behind that bp looks for & it isn’t included in the new version.

    After overwriting the files, navigate to your forums. (i.e. domain.com/forums) and you’ll be presented with an install screen. Enter your database info & on the next page it will tell you that the database is already there & you probably want to use the upgrade script. Go through & do that part.

    When finished with the database upgrade, open your old (renamed) bb-config file and copy all of your manually added codes over to your new bb-config file. Save & upload & all that good stuff.

    At this point, group discussion should work. If not, check your xml settings & make sure they’re still on. The buddypress enable plugin (found in forum settings) doesn’t need to be activated.

    *fingers crossed*


    TheEasyButton
    Participant

    @theeasybutton

    This might sound silly but, here’s what I would do (after backing everything up). Leave your bb-config file. Delete everything else in the forums directory. Upload alpha 6. Then, upload bbPress 1. Don’t DELETE alpha 6. Just overwrite it. I’ve been messing with this upgrade for a couple of days now and if I delete/replace, the update doesn’t work. If I overwrite, it does work. Seems as though there’s a file that’s been removed from the new version that buddypress looks for.

    If that doesn’t work…..

    I’m wondering if your upgrade actually upgraded. The way I do the update is, I rename bb-config to something like bb-config2. Then I replace the files in the forums directory & navigate to /forums. It asks for your database info & then says “oh. There’s already a database. Maybe you want to use the upgrade script” You click the upgrade link and it does a couple changes and says it’s done. Then, I open up the newly created bb-config & (using the OLD bb-config) I put back any of the custom codes that I need such as the cookies & defines.

    I hope something in there helps. =D


    TheEasyButton
    Participant

    @theeasybutton

    Thank you sir =D Gonna check it out first thing in the morning.


    TheEasyButton
    Participant

    @theeasybutton

    I must be exhausted. I don’t see the link for download.


    TheEasyButton
    Participant

    @theeasybutton

    LMBO! I wish there were as much that I DID know as the amount I DON’T know. That just happens to be one of the problems that I’ve encountered more times than one. One of those things that always ticks me off cuz I have to switch back, do this, do that, then get my new stuff. LOL

    Don’t forget to mark the thread as solved. =D


    TheEasyButton
    Participant

    @theeasybutton

    Are you sure it hasn’t been hijacked by another theme? For instance, let’s say I put a widget in a 3rd column. Then, I switch to a 2 column theme. Everything that was in that 3rd column seems deactivated but really it’s just hiding because it thinks it’s already in use somewhere. But since my 2 col theme doesn’t have that 3rd one, I never see it.

    Even if both of the themes are 3 column, if the sidebars are named differently, the widgets get hijacked. If this is the case, you need to go back to the old theme, get the widget out of the sidebar and THEN change to the new theme.


    TheEasyButton
    Participant

    @theeasybutton

    Murphy, check out deep integration. I know it’s possible to get your bbpress theme to match your buddypress theme but it’s something I haven’t attempted yet. But a search for something along the lines of “deep integration bbpress buddypress themes” might do the trick.


    TheEasyButton
    Participant

    @theeasybutton

    See if you can disable discussions on the old group & re-enable them. Hopefully that’ll do the trick.


    TheEasyButton
    Participant

    @theeasybutton

    Are you sure the themes are in the right place? Your bp-themes folder should be in the wp-content folder.

    wp-content >> bp-themes >> bpmember


    TheEasyButton
    Participant

    @theeasybutton

    When you upgraded bbpress, did you remember to put all of your extra codes back into bb-config? And again, for bbpress, when you upgraded did you overwrite the files or did you remove them all and then upload the new ones? Did you go back into bbpress admin & make sure xml was still enabled? Did you check buddypress forums setup to make sure the info was still there? If you try to create a new group, are discussions enabled?

Viewing 25 replies - 1 through 25 (of 80 total)
Skip to toolbar