What you are saying, basically, is instead of using the built in profile form use mine. So you need to replicate it then add anything, or take out anything you want.
I’ve done that on my site so people can put in a visible email field for others to contact them, and added an explanation for the signup page.
function extra_profile_keys() {
return apply_filters(
'extra_profile_keys', array(
'first_name' => array(0, __('First name')),
'last_name' => array(0, __('Last name')),
'display_name' => array(1, __('Display name as')),
'user_email' => array(1, __('Email'), 'email'),
'user_url' => array(0, __('Website'), 'url'),
'from' => array(0, __('Location')),
'occ' => array(0, __('Occupation'), 'role'),
'interest' => array(0, __('Interests')),
'visible_email' => array(0, __('Visible Email')),
) );
}
function add_descriptions() {
echo '<fieldset><legend>'.__("Visible Email").'</legend>';
echo '<p>'.__("<span style="font-size: 1.2em;">Visible Email allows you to place an email address so others can contact you. This is visible to ALL!</span><br/>e.g. <span style="font-weight: bold;">meATexampleDOTcom</span>").'</p>';
echo '</fieldset>';
}
// hooks
add_filter('get_profile_info_keys', 'extra_profile_keys');
add_action('extra_profile_info', 'add_descriptions',10);
What I haven’t figured out is how to create checkboxes and other form elements instead of just fields.
I lifted the following list from functions.bb-core.php where bbPress defines the set of fields that should make up the user profile:
'first_name' => array(0, __('First name')),
'last_name' => array(0, __('Last name')),
'display_name' => array(1, __('Display name as')),
'user_email' => array(1, __('Email'), 'email'),
'user_url' => array(0, __('Website'), 'url'),
'from' => array(0, __('Location')),
'occ' => array(0, __('Occupation'), 'role'),
'interest' => array(0, __('Interests'))
If you want any of these fields to appear in your custom profile, you will need to add them to the list of fields you were building. Basically, the filter in your plugin takes over defining the definitive list that will be used, not a list of additions above-and-beyond the defaults given by bbPress … least I think that is what the code is telling me!
Instant Password definitely works in 0.9. I have it installed on 12 separate 0.9 installs. 
But until you can hire someone to upgrade Instant Password to work in 1.0, your best bet is probably making sure that your server is configured to be able to send email.
Chriahajer wrote a great post on it here:
https://bbpress.org/forums/topic/registration-email-not-being-sent-new-issue?replies=15#post-6931
If your server isn’t sending out email, you could also install this plugin… to give bbPress access to an SMTP mailer:
https://bbpress.org/plugins/topic/smtp-mailer-for-bbpress/
Is it ‘done’ to choose usernames with spaces? I’m just looking at this forum homepage, and I’m the only one who has chosen one, which is also why I have a problem with links from Post to my Profile on my own discussion board, even though it works for users who have an unbroken string as a username. Obviously, looking at the URL’s it’s the space that stops it being found, but given that the system (both, in fact) allowed me to choose a username with a space, is that no reasonable? Givem that it’s functionally possible, it would be poor to say to my subscribers to not use spaces.
Here’s the example of posts where link to my profile doesn’t work, but the link to another (non-spaced) user does;
http://wholelifewholeworld.com/forums/topic/everything-respectful-and-supportive
http://wholelifewholeworld.com/forums/topic/ilp-practice-session-2912010
And here’s the change I made to the post.php code, putting in; `<a>”>
<?php bb_get_profile_link(post_author()); ?></a>` – is this not the best/quoted way to do this?
<div class="threadauthor">
<p><strong><a>">
<?php bb_get_profile_link(post_author()); ?></a></strong>
<small><?php post_author_title(); ?></small></p>
</div>
Thanks,
James
Ok, thanks to your idea, I’ve got it working. I quickly slapped together a theme that names the forums “categories” and uses the “latest topics” as the main view. It’s a very awkward theme, the CSS is crap, there is repeated code here and there but it is just a proof of concept. I’ll work more on it later.
You can get it here:
http://www.yelostudio.com/dump/yelobbpress.zip
I don’t like to mess with SVN, but I have no objection that someone will upload it to there
ok scratch that, the code is:
<a href="<?php forum_link($topic->forum_id); ?>"><?php forum_name($topic->forum_id);?></a>
tried it, it works.
this is what I did:
<a href="<?php forum_link($topic); ?>"><?php forum_name($topic);?></a>
I have no idea if it is the best way…No documentation, I just tried some function names that seemed logical to me and it worked.
Thanks, Paul,
That corrected it to the point that it was happy with it and allowed it to activate.
Unfortunately, the impact of the thing was that other than the passwords the fields and their content disappared from the Profile and Edit Profile pages, so there’s obviously a bit more to ardentfrost’s approach other than this so far (as I’m sure you corrected the code right), if you or anyone else know what it needs? It seemed to be an officially approved approach to doing the thing on that other forum page.
So I’ve de-activated it for now, and fortunately the fields and their content were still there and returned.
Thanks again, Paul.
James
I just loaded the code into an editor, and reformatted for clarity
<?php
/*
Plugin Name: jbs_own_plugin
(etc....)
*/
add_filter( 'get_profile_info_keys',
array('user_email' => array(1, __('Email')),
'user_url' => array(0, __('Website')),
'from' => array(0, __('Location')),
'occ' => array(0, __('Occupation')),
'interest' => array(0, __('Interests')),
'extra' => array(0, __('Extra'))));
?>
Basically, it was missing a closing ) and semi-colon on the line. I cant promise that it does exactly what you are after, but this ought to solve the PHP syntax error.
Good luck.
Hi,
I’ve just been following this instruction – http://bbpress.org/forums/topic/adding-custom-profile-fields (and as per http://bbpress.org/forums/topic/add-new-fields-to-user-profile#post-14767) – to create a plugin of my own to add a couple of extra fields for my post/edit post, as per ardentfrost’s instructions.
I’m not overly familiar with php so wonder if anyone can see what is wrong with my code. The plugin I created for myself, which I’ve uploaded to /forums/my-plugins/jbs_own_plugin.php is as follows:-
<?php
/*
Plugin Name: jbs_own_plugin
(etc….)
*/
add_filter( ‘get_profile_info_keys’, array(‘user_email’ => array(1, __(‘Email’)), ‘user_url’ => array(0, __(‘Website’)), ‘from’ => array(0, __(‘Location’)), ‘occ’ => array(0, __(‘Occupation’)), ‘interest’ => array(0, __(‘Interests’)), ‘extra’ => array(0, __(‘Extra’)))
?>
And when I try to activate it in bbPress plugins I get;
Parse error: syntax error, unexpected ‘;’ in /var/www/vhosts/wholelifewholeworld.com/httpdocs/forums/my-plugins/jbs_own_plugin.php on line 13
I’ve tried it with one less ), and with ; after, and a couple of other combos, but can anyone see what I’m doing wrong please? Just want to add a few extra fields that people can fill in from Edit profile and have displayed on the Profile page.
Also, I found out I don’t actually HAVE a functions.php page in bb-includes at all, so that is slightly worrying me (though everything else is working okay).
Thanks,
James
Hi,
I’m adding a toggle switch on categories for my forum, but they need to each have unique ids or something along those lines in order for the toggle to talk to each individual category.
Any ideas how I could do this? Here is the code I have for the toggle.
<script>
$(“.toggle”).click(function () {
$(“#box”).slideToggle(“slow”);
});
</script>
The permissions on your my-plugins should be 755. Are the permissions correct?
Depending on when you installed and what version, the default permissions on the folder were 750, but that’s fixed now.
If the permissions on the my-plugins directory are 755, we will look at something else.
@chrishajer – D’oh! You’re right – it does say when an email is already in use. What was I thinking?
Cause I have no knowledge on how to recode the php.
It’s JavaScript.
You didn’t want to edit PHP files.
Hi, forgot this was my problem.
Where should I put that php code?
Nevermind. I found it. You can do it like this:
<?php echo forum_name($forum->forum_parent); ?>
I second that Marius!
But looks/feel apart haven’t really had a problem with php BB. I want to shift but am skeptical of other internet forums, functionality-wise. Any suggestions ?
hey guys!
I’m using php BB forums currently, why should I shift to BBpress? Pls help!
Thanks !
Hi,
I tried contacting you by email but had no success (it says it has been delayed).
I can work for you.
Email me – ashishsainiashfame[at]gmail<<<dot>>>com
OK, I think I got it working. I hired someone to code it for me–now I have to figure out how he did it!
Thanks.
An avatar plugin that works when just installed/activated, without needing to modify php code would be great!
Please, don’t say that I have said things that i have not. Feel free to quote me, but don’t make things up or wrongly generalise and attribute them to me.
That said, i apprecaite you finally getting round to being polite to the people who have helped you out thus far. Finally finding manners to Thank people like John who went out of their way to help you was the decent thing to do
Either way, don’t think it really matters.
Personally i’ve found that pointing my post form towards WP is better because if something is going to change/break in a future version it will happen in WordPress long before bbPress. People are patching/plugins/writing-guides on how ot make bbPress work with WordPress not the other way around, so i stick with the strongest/most stable software as my login base. But really, thats just me being careful; i shouldn’t matter