Update. By comparing my site’s BuddyPress-generated tabbed links “Blog”, “Members”, “Groups”, “Forums”, and “Blogs” to those for other sites, I was able to pin-down specifically what was wrong—but don’t know the fix.
My main blog structure was such that the main blog was at:
http://mysite.com
…and a member blog would be at:
http://mystite.com/memberblog
All the aforementioned BuddyPress-generated tabbed links “Blog”, “Members”, “Groups”, “Forums”, and “Blogs” were failing because the links specifically for the memberblog because “/memberblog” was being added to each of those links (if I removed the “/memberblog” part of the links then the links would go to the right place).
I tried everything I could think of to solve the problem (code reinstalls, database deleting and reinstallation, removing all plug-ins, etc), and *nothing* fixed the problem.
Interestingly, when I finally tried reinstalling using the http://memberblog.mysite.com site structure, those various memberblog Buddypress tabbed linked worked just fine.
Is it possible that BuddyPress has a bug specifically for that mysite.com/memberblog structure?
I’m going to stick with the memberblog.mysite.com structure because I don’t have currently have the coding experience to get into addressing the issue, and I’m happy enough with the subdomain approach in any case. I just wanted to let folks know that there might be a problem… or perhaps somehow it is something particular to my setup—although everything else worked just fine.
BTW, although my first post mentioned that I must have made a change that caused the links to “break,” it was a new site so I was *assuming* that the links must have worked originally and so I thought I must have made a change to themes (or something else) that caused the problem.
However, since I subsequently saw the same behavior with a completely fresh install (starting with no database and an empty public_http directory, I’m now thinking that those particular BuddyPress links were probably never working.
I think you’re over-thinking this a little bit.
bp-default assumes that it is the “home” template, and nothing more. It assumes that user blogs will use other templates that you either create yourself, supply to them, or that they can install via the Appearance item in the site admin.
The only way to trick this into working is by putting…
define( 'BP_ENABLE_MULTIBLOG', true )
…either in wp-config.php or /wp-content/plugins/bp-custom.php. This still probably isn’t really what you’re trying to do, but it will get you where you want to be without modifying the core templates. If you’re using a custom template, then it’s as easy as modifying the header.php to always link back to the root blog components and pages that you want it to.
Hi,
John, I can´t find the bp-custom.php on the buddypress plugin folder. Whe I try putting the code of define on the wp-config.php I recive an error os sintax (my be is because i´m not a programmer so don´t know where to write it)
Can you help me?
Cheers!
You can add the code in wp-config.php right after “The Database Collate type…” section of the file