macwise (@macwise)

Forum Replies Created

Viewing 25 replies - 26 through 50 (of 59 total)
  • Thank you. And thanks for making your post one line. That makes my post look ESPECIALLY long…(or maybe it really IS that long).

    My friend, this is the ONLY way to go. I previously had used PhpBB, and I was in the same boat. I wanted something simple, powerful, yet it HAD to integrate with WordPress. I was reluctant to go down this path, but I was swayed by two things:

    First, I love WordPress, the community, the customizability, etc. I was impressed with the simplicity available, with more complexity/power possible depending on what the user needs. Second, I was extremely enticed by the prospect of a “seamless” integration. I won’t say that it’s been a total breeze, but compared to the PhpBB/4Images integration I did last year, integrating BBPress with WordPress was a breeze…AND A HALF! Don’t be fooled, though, this can be as simple as installing it and adding two plugins. Just depends on what your needs are.

    95% or more of what I’m modifying is template based files, NOT core files. This is quite different from my PhpBB/4Images integration, where I had to hack the core to the point that an update would have been disastrous. (Consequently, I never updated it, though it didn’t matter since the site never really went live.)

    So, yes, this is a beta product. And yes, some of the administration options and a few specific features present in other bb systems aren’t here.

    Would I use something else if I could do it over again? NO

    Do I miss any features from PhpBB? NO. In fact, what I suspected is exactly what has happened, that being that I’m as happy with what BBPress DOESN’T do as I am with what it does. Anything that I’ve needed so far has already been addressed in the forums, usually with a plugin. That makes modifying core files safe and simple. Bottom line, it works great, and I haven’t looked back.

    Hope this helps.


    Check my site at And here you can see the Pregnancy Forums. Let me know what you think, and feel free to ask any questions/comments there on the contact page.

    Trent, I’m not sure I understand your response. I think what you’re saying is that if bbpress stores the information for the user’s profile in wp_users, as does wordpress, then we’re ok. However, if bbpress stores the information in a different place, then the update won’t work.

    Well, that led me on a little journey to see how wordpress stored the information in the extra fields such as first name, last name, im username, etc. I found it is stored in wp_usermeta, and I’m guessing bbpress doesn’t have anything to do with this. So, I’ll look into this further.

    In the meantime, does any moderator/contributor have any other ideas as to how this can be achieved? I would really like to add the necessary fields for my signup, such as First/Last name, and then more specific things for my site such as how many children, their names, etc. Any suggestions would be very well appreciated.

    Thanks – Ron

    allrightythen. Guess I’ll post again


    Does anyone know how this can be achieved without doing a custom query. (using built in bbpress or wordpress commands)


    This seemed to do the trick. I looked at the plugin, and I can’t understand any of that crap. It’s only a few lines of code in the plugin, but it seemed to work. As long as there isn’t a reason why I SHOULDN’T just let it run as it was designed to do, then I’ll leave it the way it is.

    Thanks for your suggestion!

    In reply to: Validation

    Transitional solves ALL my problems… :)

    That seems to have done the trick. Thanks for posting. I can’t tell you how much searching/testing/wild uncontrollable arm-waving code experimenting I’ve been doing. I did get the WP cookie domain issue figured out, hence the conflict.

    Anyhow, all seems to be in order now, so I am just plum tickled! (no, I don’t normally say ‘plum tickled’. And yes, I really am plum tickled.) So thanks a million to you, fel64, for posting my much needed solution.

    P.S. Checked out your site…I like the look of the “blog” area quite a bit. Loinhead, eh? Funny. Are you using a “Jello Mold” type layout solution for your liquid css layout? Anyway, the site looks great…

    In reply to: Sub-Categories?

    hehe…when you go to the bottom of the page, you don’t see what’s at the top of the page. Sorry, I found it.

    In reply to: Sub-Categories?

    Ha! I guess I know less than I thought I did. When follow the link to trac, I scroll to the bottom and see

    Added new patch file for build [719] i.e. 0.8.1

    I click on [719] and it takes me to a new page where I can view changes, or download a zip at the bottom. I see no option for getting a file named “categories-build719.patch”. What am I missing?

    In reply to: Sub-Categories?

    Perfect…looks like just what I’m looking for. I’ll post back when I screw everything up. ;)

    In reply to: Sub-Categories?

    I believe that’s what I’m searching for…I saw the implementation at Are there any other examples of implementation for this plugin? Do I need to install the patch for bbpress v.80 if that’s my installed version, or can/should I use the latest patch?

    Also, what happens when I upgrade to v1.0 or something? (I can only assume that I will need to patch it again, assuming it’s not integrated as an official feature yet.)

    Thanks for the help!

    In reply to: .htaccess/Cookie woes!



    I’ll preface this by saying that I love Ahi Tuna dishes at restaurants. What is it about that huge hunk of raw fish meat that’s only seared to (probably) keep men’s wives from refusing to share a bed with a man who would eat a classic “dry heave” food. So, why do I like it? Well, it’s not the big chunk of meat that draws me in and pleases my palate. It’s the simple glaze that I often find on top; the light, sweet sauce that perfectly compliments the fish. As they say, “The secret’s in the sauce.”

    So, the “sauce” for this problem was the secret, and the sauce ended up being all too simple. Ziyphr first directed my friend and I to wp-settings.php. (He said to check out line 185, but mine was around 151-160). I found the code that called the siteurl and home, both of which would have returned, as that is what I have listed in my admin panel. I thought I needed to modify those to somehow spit out two domains, with the www and sans.

    My friend also informed me that he believed that cookie domains really need two dots, the first before the domain and the second after the domain but before the ‘com’. In my case it would be How to get ‘siteurl’ or ‘home’ to reflect that was a challenging thought.

    One side-note for anyone trying this same thing, DON'T CHANGE YOUR SITE ADDRESS OR HOME ADDRESS TO ANYTHING OTHER THAN \"WWW.MYURL.COM\" OR \"MYURL.COM\" IN THE ADMIN PANEL. Doing so will cause you more headaches than when you meet your mother in law for the first time. (Ok, that was an exaggeration, but only slightly).

    Once I got that mess sorted out, we tried to hard code in the, replacing

    define('COOKIEPATH', preg_replace('|https?://[^/]+|i', '', get_settings('home') . '/' ) ); with

    define('COOKIEPATH', '');

    This didn’t work, and all hope was lost. Curiosity getting the best of me, I opened up my preferences panel in Safari and pulled up the list of all my stored cookies to see if there were any similarities/discrepencies between my cookie and other sites’ cookies. This is where I saw my cookie had the value “” under the heading “website” where most other sites were listed as “”, missing the www that seemed to be plaguing me. I decided that was what I needed changed, and when I looked back at the code in wp-settings.php, I discovered that line 160 was unique from the others.

    if ( !defined('COOKIE_DOMAIN') )
    define('COOKIE_DOMAIN', false);

    I decided to change this to this:

    if ( !defined('COOKIE_DOMAIN') )
    define('COOKIE_DOMAIN', '');

    What do you know…I dumped my cookies for my site, refreshed the page, logged in, checked the cookie, and there it was, ‘’. Now for the true test, I got rid of the ‘www’ in the address bar, hit return, and VOILA! I was still logged in. Everything was seamless. I was now the owner of a spiffy wordpress/bbpress integrated site that shared cookies across sites and subdomains. No crazy .htaccess directives, no checking and double checking every last link in my site to reflect my choice of domains.

    This is the way it should be done. I’m quite surprised it was such a simple solution, and that nobody seemed to be aware of how simple the solution is. I hope this is helpful to someone else trying to share cookies across multiple subdomains.

    I can confirm that I have the same code, the same behavior (no users displayed), and had the exact same assumption when I came across it. I was expecting some results to show up when a username was searched for, but alas, none of the results reflected a query for usernames.

    So, no solutions, but a chime in from Macwise…

    In reply to: .htaccess/Cookie woes!

    Ok, I got it figured out…I’ll post a more full breakdown tomorrow when my heads about me. Thanks for all your help, everyone.

    Ok, this is the solution that worked for me. I did have to add the rewrite rule, as multiviews isn’t working on my server??? (I think I’m running on php4, is that why?) So, for others who want a wal-mart type bb build ;) here’s a recap of what I did:

    I created a page in my bbpress root called contest.php. Inside of that page I put:

    bb_load_template( 'contest.php' );

    I then created my contest.php page with the content I needed (the template)

    The last thing I did was to put these two lines in my .htaccess file IN MY FORUM ROOT FOLDER, (not my wordpress root folder):

    RewriteRule ^contest/$ /forum/contest.php [L,QSA]
    RewriteRule ^contest$ /forum/contest.php [L,QSA]

    This basically says that (without the trailing backslash)

    and (with the trailing backslash)

    will both point to the contest.php page in the root forum directory.

    As so1o said, this last part in .htaccess may be unnecessary if you have multiviews enabled (if your .htaccess file in your FORUM directory has this line: “Options +MultiViews”). Maybe someone else can confirm/deny this, as my configuration is different.

    Hope this helps someone else who needs some custom functionality out of bbpress.

    In reply to: .htaccess/Cookie woes!

    Yes, that’s how I have it set up now. It works quite well, and cookies are shared. The only real problem is the www vs the non www addresses.


    thanks for the idea. I would probably prefer to do this. However, I have a few bbpress functions being called in the code on the page, and though I could probably dig about and find out how to replace it with wp code, it was not the most pleasant thought. I figured I’d just throw a page up on the bbpress side, and have it resolve at a as is common with wordpress. I found out how to take care of this…I achieved this by adding two lines in the .htaccess file…

    RewriteRule ^contest/$ /forum/contest.php [L,QSA]
    RewriteRule ^contest$ /forum/contest.php [L,QSA]

    I’m not trying to start a battle here, but I think your response, Null, might be a bit short-sighted and aggressive. After all, if I feel my software needs a static page, that may just be what it in fact does need.

    I agree with bbolman that this would probably be more efficiently handled by wordpress. However, since bbpress is still in it’s infancy, and it’s not integrated fully yet with wordpress, (this is my way of trying to sound like I’m not a completely right-brained individual), I think it’s fair to say that these decisions aren’t so cut and dried. Anyway, I appreciate the responses all the same, and will post any further findings here…

    In reply to: .htaccess/Cookie woes!


    Thank you so much for your reply. I think this is really the solution that I have been looking for. It just doesn’t make sense to me to only have one subdomain registered in the cookies, and I wasn’t sure how wordpress handled the adding of a subdomain.

    I am still moderately new to php, so I’m not sure I follow the last paragraph in terms of proper form and syntax, and so I’d prefer to ask that “stupid question” rather than sound smart and fail. ;). Can you let me know exactly what you think should go there, in terms of syntax? That would be greatly appreciated.

    P.S. It sounded like you meant to say “You should NOT need to use .htaccess? Just checking to be sure…

    Thanks so much for your help.

    In reply to: #postform bug found?

    Great…thanks. Any idea what the behavior SHOULD be? (if it’s supposed to be hyperlinked at all)


    First of all, thanks for all your help with getting this all straightened out. I’ve gotten a lot done thanks to your help alone.

    As for the 1 header approach, maybe I am creating a “complexity by simplicity” approach, and if what you are saying is correct, then I’m probably better just making the wp side have a wp header, and the bb side have a bb header. I guess I just thought in the long run it would be simpler and more effective to have one-size-fits-all header with the necessary bb code and wp code being selected only when it was needed. That was before now, when I just assumed that since you could call wp code in bbpress, that you could also just as easily call bb code in wordpress.

    So, I will create a second, separate header file for bbpress, and I will see where that takes me in this process. Thanks for your help with this. I hope my reasoning at least makes sense now, even though it is probably faulty reasoning at that.



    any ideas?

    Well, in this case I am calling the header file from wordpress on the bbpress pages. The only problem is that I have things in the bbpress header like




    which create tons of problems when I put that code in the wp header file. I was able to load wp when bbpress loads, but it seems like the opposite would also be useful, to register bbpress when wp loads. I suppose through reverse engineering, I could figure that out on my own?! Otherwise, I would like to just be able to tell the page, “Hey, are you wordpress, then load this…otherwise, don’t load it. And if your BBPress, then load this, otherwise don’t load it”.

    Currently I am also trying to specify which stylesheets to load. If it’s wp, I want the wp stylesheet, and if it’s bb, I want the bb stylesheet, and I don’t want the conflicts when both load.

    1 – Does this make sense?

    B – Is there a solution? and

    4 – Am I overlooking a more obvious solution?


    Yes, this worked great for me. I thank you all!

    Awesome…didn’t know this was an upgrade for this version. But I love it…

Viewing 25 replies - 26 through 50 (of 59 total)