Forum Replies Created
-
That’s brilliant — I missed that and it’s much simpler than I was trying.
Really appreciate it, Shane
And to be clear — I’d like to be able to use the get_profile_tab_link() function anywhere on the site…not just bbPress pages as I psted…
Thanks Dan — while they are separate plugins I’m sure you’ll agree that they are very much joined at the hip (as bbPress even includes BuddyPress functions). What was really nice was the ability to bring in extended Vbulletin profile information over to to BuddyPress extended profiles at the same time as importing to bbPress. Took some custom coding, but the code in both plugins made it fairly clear about how to accomplish it. Makes it easy to use in both plugins.
As far as what I’m trying to do with BuddyPress, it’s basically the issue in the first post. I’ve traced the code a bit more and my main issue right now is simply figuring out if I could get access to the xprofile_get_field_data function. wp-load.php doesn’t seem to call the bp-xprofile-loader.php, so $bp->profile->table_name_fields is empty.
In the meantime, I’ve just issued some mysql db calls to grab the info…but I’d love to use the built in functions if I could.
By the way, so bar bbpress has been a good experience. I’m transitioning over from vbulletin and have done quite a bit of customization to the importer to bring over all our old user data intact.
It seems like a good community…I’m missing some vb features, but so far am pleased with the move…
Thanks so much Dan — I really appreciate the response. Eventually I will be doing things the way you suggest, but I have a custom architecture for a learning site that I’m transitioning to WordPress over the next six months. There are dozens of pages and interdependencies which I’m cleaning up, so I’ve decided to do the integration in stages since it will take time.
I can write some custom db code to grab the information from the appropriate xprofile table, but I was hoping to not fully reinvent the wheel as you suggested. At this point, I’ve probably spent more time trying to use the bbpress functions than it would have take to write my own db function 🙂
I think the issue is that bp-xprofile-loader.php hasn’t been called yet, which is where those values get defined. So it seems that bbpress gets loaded but not fully initialized until somewhere later in the code. Maybe when the templates load or wp() is called.
Thanks again…really appreciate your time and the sensible response.
Grr…the subject should have been:
“Access to BuddyPress functions in external code via wp-load?”