<?xml version="1.0" encoding="UTF-8"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>bbPress support forums Topic: User-editable Custom Titles</title>
<link>http://bbpress.org/forums/</link>
<description>bbPress support forums Topic: User-editable Custom Titles</description>
<language>en</language>
<pubDate>Tue, 07 Oct 2008 11:52:48 +0000</pubDate>

<item>
<title>citizenkeith on "User-editable Custom Titles"</title>
<link>http://bbpress.org/forums/topic/user-editable-custom-titles#post-15839</link>
<pubDate>Mon, 28 Apr 2008 16:10:16 +0000</pubDate>
<dc:creator>citizenkeith</dc:creator>
<guid isPermaLink="false">15839@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;I think I need a little help with this one. I'm running 0.9.0.2 now.&#60;/p&#62;
&#60;p&#62;Here's the section in functions.php:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function get_profile_info_keys() {
	return apply_filters( &#38;#39;get_profile_info_keys&#38;#39;, array(
		&#38;#39;user_email&#38;#39; =&#38;gt; array(1, __(&#38;#39;Email&#38;#39;)),
		&#38;#39;user_url&#38;#39; =&#38;gt; array(0, __(&#38;#39;Website&#38;#39;)),
		&#38;#39;from&#38;#39; =&#38;gt; array(0, __(&#38;#39;Location&#38;#39;)),
		&#38;#39;occ&#38;#39; =&#38;gt; array(0, __(&#38;#39;Occupation&#38;#39;)),
		&#38;#39;interest&#38;#39; =&#38;gt; array(0, __(&#38;#39;Interests&#38;#39;)),
	) );
}

function get_profile_admin_keys() {
	global $bbdb;
	return apply_filters( &#38;#39;get_profile_admin_keys&#38;#39;, array(
		$bbdb-&#38;gt;prefix . &#38;#39;title&#38;#39; =&#38;gt; array(0, __(&#38;#39;Custom Title&#38;#39;))
	) );
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;So if I move that section up to get_profile_info_keys, it should look like this, correct?&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function get_profile_info_keys() {
	global $bbdb;
	return apply_filters( &#38;#39;get_profile_info_keys&#38;#39;, array(
		&#38;#39;user_email&#38;#39; =&#38;gt; array(1, __(&#38;#39;Email&#38;#39;)),
		&#38;#39;user_url&#38;#39; =&#38;gt; array(0, __(&#38;#39;Website&#38;#39;)),
		&#38;#39;from&#38;#39; =&#38;gt; array(0, __(&#38;#39;Location&#38;#39;)),
		&#38;#39;occ&#38;#39; =&#38;gt; array(0, __(&#38;#39;Occupation&#38;#39;)),
		&#38;#39;interest&#38;#39; =&#38;gt; array(0, __(&#38;#39;Interests&#38;#39;)),
		$bbdb-&#38;gt;prefix . &#38;#39;title&#38;#39; =&#38;gt; array(0, __(&#38;#39;Custom Title&#38;#39;)),
	) );
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;That pretty much removes everything from get_profile_admin_keys, so do I just take that entire section out?&#60;/p&#62;
&#60;p&#62;Thanks for the helping hand...
&#60;/p&#62;</description>
</item>
<item>
<title>philgreen on "User-editable Custom Titles"</title>
<link>http://bbpress.org/forums/topic/user-editable-custom-titles#post-15522</link>
<pubDate>Fri, 18 Apr 2008 20:43:25 +0000</pubDate>
<dc:creator>philgreen</dc:creator>
<guid isPermaLink="false">15522@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Do just like parabolart said.  You should paste the text inside the () after the array for get_profile_admin_keys and separate it from the other ones with a comma.
&#60;/p&#62;</description>
</item>
<item>
<title>citizenkeith on "User-editable Custom Titles"</title>
<link>http://bbpress.org/forums/topic/user-editable-custom-titles#post-15316</link>
<pubDate>Sat, 12 Apr 2008 23:17:34 +0000</pubDate>
<dc:creator>citizenkeith</dc:creator>
<guid isPermaLink="false">15316@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Hmm.... not sure to how to change that code without getting errors (I'm running 0.9.0.1 on this particular forum).&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function get_profile_info_keys() {
	return apply_filters(
		&#38;#39;get_profile_info_keys&#38;#39;,
		array(&#38;#39;user_email&#38;#39; =&#38;gt; array(1, __(&#38;#39;Email&#38;#39;)), &#38;#39;user_url&#38;#39; =&#38;gt; array(0, __(&#38;#39;Website&#38;#39;)), &#38;#39;from&#38;#39; =&#38;gt; array(0, __(&#38;#39;Location&#38;#39;)), &#38;#39;occ&#38;#39; =&#38;gt; array(0, __(&#38;#39;Occupation&#38;#39;)), &#38;#39;interest&#38;#39; =&#38;gt; array(0, __(&#38;#39;Interests&#38;#39;)))
	);
}

function get_profile_admin_keys() {
	global $bbdb;
	return apply_filters(
		&#38;#39;get_profile_admin_keys&#38;#39;,
		array($bbdb-&#38;gt;prefix . &#38;#39;title&#38;#39; =&#38;gt; array(0, __(&#38;#39;Custom Title&#38;#39;)))
	);
}&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>parabolart on "User-editable Custom Titles"</title>
<link>http://bbpress.org/forums/topic/user-editable-custom-titles#post-14884</link>
<pubDate>Tue, 01 Apr 2008 21:55:32 +0000</pubDate>
<dc:creator>parabolart</dc:creator>
<guid isPermaLink="false">14884@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;in functions.php find &#60;code&#62;function get_profile_admin_keys() {&#60;/code&#62;, and move &#60;code&#62;$bb_table_prefix . &#38;#39;title&#38;#39; =&#38;gt; array(0, __(&#38;#39;User Title&#38;#39;))&#60;/code&#62; from that function's array to &#60;code&#62;function get_profile_info_keys()&#60;/code&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>citizenkeith on "User-editable Custom Titles"</title>
<link>http://bbpress.org/forums/topic/user-editable-custom-titles#post-8879</link>
<pubDate>Fri, 13 Jul 2007 00:43:39 +0000</pubDate>
<dc:creator>citizenkeith</dc:creator>
<guid isPermaLink="false">8879@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Well, I don't know the first thing about writing plugins, so if somebody can help out, I'd appreciate it. :)
&#60;/p&#62;</description>
</item>
<item>
<title>fel64 on "User-editable Custom Titles"</title>
<link>http://bbpress.org/forums/topic/user-editable-custom-titles#post-8870</link>
<pubDate>Thu, 12 Jul 2007 17:55:33 +0000</pubDate>
<dc:creator>fel64</dc:creator>
<guid isPermaLink="false">8870@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;You need to write a plugin that will be called on a hook in the profile, where it adds to the associative array &#60;code&#62;$profile_info_keys&#60;/code&#62; an entry with key 'bb_title' - I think. To see how to do that, look at some other plugin that adds fields to the profile info thingy.
&#60;/p&#62;</description>
</item>
<item>
<title>citizenkeith on "User-editable Custom Titles"</title>
<link>http://bbpress.org/forums/topic/user-editable-custom-titles#post-8846</link>
<pubDate>Thu, 12 Jul 2007 02:51:44 +0000</pubDate>
<dc:creator>citizenkeith</dc:creator>
<guid isPermaLink="false">8846@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;I have a small site that needs very little moderation. I'd like for my users to have the power to change their own Custom Title, instead of sending me a Private Message with a request.&#60;/p&#62;
&#60;p&#62;I can't figure out how to make that change, though. Any ideas?
&#60;/p&#62;</description>
</item>

</channel>
</rss>
