<?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>WordPress &#8250; Support Topic: [Plugin: Customize Your Community] Error on the profile page shows backend</title>
<link>http://wordpress.org/support/</link>
<description>WordPress &#8250; Support Topic: [Plugin: Customize Your Community] Error on the profile page shows backend</description>
<language>en</language>
<pubDate>Tue, 24 Nov 2009 00:53:21 +0000</pubDate>

<item>
<title>necoda on "[Plugin: Customize Your Community] Error on the profile page shows backend"</title>
<link>http://wordpress.org/support/topic/244797#post-1157773</link>
<pubDate>Fri, 31 Jul 2009 06:51:21 +0000</pubDate>
<dc:creator>necoda</dc:creator>
<guid isPermaLink="false">1157773@http://wordpress.org/support/</guid>
<description>&#60;p&#62;On Wordpress 2.8 and above the code provided by nomatteus does not work.&#60;/p&#62;
&#60;p&#62;To make it work you have to change &#60;code&#62;elseif ($is_profile_page)&#60;/code&#62; to &#60;code&#62;elseif (IS_PROFILE_PAGE)&#60;/code&#62; in /wp-admin/user-edit.php&#60;/p&#62;
&#60;p&#62;Regards, Sorin
&#60;/p&#62;</description>
</item>
<item>
<title>anupamjain on "[Plugin: Customize Your Community] Error on the profile page shows backend"</title>
<link>http://wordpress.org/support/topic/244797#post-1103158</link>
<pubDate>Sun, 14 Jun 2009 14:24:14 +0000</pubDate>
<dc:creator>anupamjain</dc:creator>
<guid isPermaLink="false">1103158@http://wordpress.org/support/</guid>
<description>&#60;p&#62;nomatteus ! You are a saviour !&#60;/p&#62;
&#60;p&#62;I have been struggling with the code to get around this CYC bug for I-dont-know-how-many-hours now !&#60;/p&#62;
&#60;p&#62;Your logic works pretty well !! &#60;/p&#62;
&#60;p&#62;I dont know how to thank you for this. Thanks a lot !&#60;/p&#62;
&#60;p&#62;Regards&#60;br /&#62;
Anupam
&#60;/p&#62;</description>
</item>
<item>
<title>randyhoyt on "[Plugin: Customize Your Community] Error on the profile page shows backend"</title>
<link>http://wordpress.org/support/topic/244797#post-1079186</link>
<pubDate>Wed, 20 May 2009 20:54:39 +0000</pubDate>
<dc:creator>randyhoyt</dc:creator>
<guid isPermaLink="false">1079186@http://wordpress.org/support/</guid>
<description>&#60;p&#62;@nomatteus&#60;/p&#62;
&#60;p&#62;I cannot thank you enough for providing this fix. I was too far into a project with CYC to switch to something different, though I expect I will be trying Theme My Login for future projects.&#60;/p&#62;
&#60;p&#62;Thanks again!&#60;br /&#62;
~randy
&#60;/p&#62;</description>
</item>
<item>
<title>nomatteus on "[Plugin: Customize Your Community] Error on the profile page shows backend"</title>
<link>http://wordpress.org/support/topic/244797#post-1059184</link>
<pubDate>Tue, 28 Apr 2009 19:10:51 +0000</pubDate>
<dc:creator>nomatteus</dc:creator>
<guid isPermaLink="false">1059184@http://wordpress.org/support/</guid>
<description>&#60;p&#62;I ran into the exact same problem, and it's pretty much a dealbreaker if it can't be fixed. So I played around with the code and managed to put together a fix. (I haven't tried the alternative plugin mentioned above--it may be better, but regardless this is a fix for anyone that wants to keep using the CYC plugin!)&#60;/p&#62;
&#60;p&#62;Nothing elegant, but prevents users seeing the admin screen!&#60;/p&#62;
&#60;p&#62;This involves editing the following two files:&#60;/p&#62;
&#60;ol&#62;
&#60;li&#62;/wp-admin/user-edit.php -- CORE WordPress file&#60;/li&#62;
&#60;li&#62;/wp-content/plugins/customize-your-community/cyc.php -- Main Plugin File&#60;/li&#62;
&#60;/ol&#62;
&#60;p&#62;As you should always do, be sure to make a backup to these files before going in and editing them!&#60;/p&#62;
&#60;p&#62;In /wp-admin/user-edit.php, find the following (~line 143):&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;if ( !is_wp_error( $errors ) ) {
	$redirect = ($is_profile_page? &#38;quot;profile.php?&#38;quot; : &#38;quot;user-edit.php?user_id=$user_id&#38;amp;amp;&#38;quot;). &#38;quot;updated=true&#38;quot;;
	$redirect = add_query_arg(&#38;#39;wp_http_referer&#38;#39;, urlencode($wp_http_referer), $redirect);
	wp_redirect($redirect);
	exit;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;and change it to (adding an elseif statment):&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;if ( !is_wp_error( $errors ) ) {
	$redirect = ($is_profile_page? &#38;quot;profile.php?&#38;quot; : &#38;quot;user-edit.php?user_id=$user_id&#38;amp;amp;&#38;quot;). &#38;quot;updated=true&#38;quot;;
	$redirect = add_query_arg(&#38;#39;wp_http_referer&#38;#39;, urlencode($wp_http_referer), $redirect);
	wp_redirect($redirect);
	exit;
} elseif ($is_profile_page) {
	$redirect = &#38;quot;profile.php?&#38;quot; . &#38;quot;errors=&#38;quot; . urlencode(implode(&#38;#39;&#124;&#124;&#38;#39;,$errors-&#38;gt;get_error_messages()));
	wp_redirect($redirect);
	exit;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;What this does it redirects back to the profile.php page (which will be the non-admin styled one), and sends a get variable with the output text of the errors. It's sent as a &#34;piped&#34; array.&#60;/p&#62;
&#60;p&#62;Second, open up /wp-content/plugins/customize-your-community/cyc.php, and find the following (~line 275):&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;if ($_GET[&#38;#39;updated&#38;#39;] == true) {
	echo &#38;#39;&#38;lt;p class=&#38;quot;message&#38;quot;&#38;gt;Your profile has been updated.&#38;lt;/p&#38;gt;&#38;#39;;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;and change it to (again adding an elseif statment):&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;if ($_GET[&#38;#39;updated&#38;#39;] == true) {
	echo &#38;#39;&#38;lt;p class=&#38;quot;message&#38;quot;&#38;gt;Your profile has been updated.&#38;lt;/p&#38;gt;&#38;#39;;
} elseif ($_GET[&#38;#39;errors&#38;#39;] != &#38;quot;&#38;quot;) {
	$error_messages = explode(&#38;quot;&#124;&#124;&#38;quot;, $_GET[&#38;#39;errors&#38;#39;]);
	echo &#38;#39;&#38;lt;p class=&#38;quot;message&#38;quot;&#38;gt;&#38;#39;;
	foreach ($error_messages as $the_msg) {
		echo &#38;quot;$the_msg&#38;lt;br /&#38;gt;&#38;quot;;
	}
	echo &#38;#39;&#38;lt;/p&#38;gt;&#38;#39;;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;This looks for the errors GET variable and if found, prints out each error message. This code can be changed to display the errors however you like, for example in a red box, etc.&#60;/p&#62;
&#60;p&#62;This should solve the problem. If anyone tries this out let me know if it works for you!&#60;/p&#62;
&#60;p&#62;An important note: Since you've changed a core WordPress file and also the plugin code, you'll have to be careful when upgrading both the WordPress core and the plugin. You either will have to upgrade manually, or make the above changes again after doing an automatic upgrade.&#60;/p&#62;
&#60;p&#62;That should be it! Hopefully a real fix will make it into a future CYC version...&#60;/p&#62;
&#60;p&#62;Matt
&#60;/p&#62;</description>
</item>
<item>
<title>adam.codefor on "[Plugin: Customize Your Community] Error on the profile page shows backend"</title>
<link>http://wordpress.org/support/topic/244797#post-1046866</link>
<pubDate>Wed, 15 Apr 2009 20:52:30 +0000</pubDate>
<dc:creator>adam.codefor</dc:creator>
<guid isPermaLink="false">1046866@http://wordpress.org/support/</guid>
<description>&#60;p&#62;yeah I have been using theme-my-login for a week or so now and it is far better, no problems at all =D
&#60;/p&#62;</description>
</item>
<item>
<title>houseofstrauss on "[Plugin: Customize Your Community] Error on the profile page shows backend"</title>
<link>http://wordpress.org/support/topic/244797#post-1039183</link>
<pubDate>Tue, 07 Apr 2009 12:02:49 +0000</pubDate>
<dc:creator>houseofstrauss</dc:creator>
<guid isPermaLink="false">1039183@http://wordpress.org/support/</guid>
<description>&#60;p&#62;@ adam.codefor No problem ... I am very surprised it was never debugged sooner than this. Anyways, theme-my-login does the job quite well.
&#60;/p&#62;</description>
</item>
<item>
<title>adam.codefor on "[Plugin: Customize Your Community] Error on the profile page shows backend"</title>
<link>http://wordpress.org/support/topic/244797#post-1038463</link>
<pubDate>Mon, 06 Apr 2009 18:01:05 +0000</pubDate>
<dc:creator>adam.codefor</dc:creator>
<guid isPermaLink="false">1038463@http://wordpress.org/support/</guid>
<description>&#60;p&#62;do77 - i guess if you add some javascript to validate the matching passwords too that would work, but dont forget people can just disable javascript and get round it, it needs to be sever side really.
&#60;/p&#62;</description>
</item>
<item>
<title>adam.codefor on "[Plugin: Customize Your Community] Error on the profile page shows backend"</title>
<link>http://wordpress.org/support/topic/244797#post-1038460</link>
<pubDate>Mon, 06 Apr 2009 17:59:26 +0000</pubDate>
<dc:creator>adam.codefor</dc:creator>
<guid isPermaLink="false">1038460@http://wordpress.org/support/</guid>
<description>&#60;p&#62;its a shame to stop using the CYC plugin because it is great, but after a month of no word or solution to what is a pretty big problem, it looks like I will be using the theme-my-login as it is pretty similar and more frequently updated. Cheers for the link houseofstrauss
&#60;/p&#62;</description>
</item>
<item>
<title>houseofstrauss on "[Plugin: Customize Your Community] Error on the profile page shows backend"</title>
<link>http://wordpress.org/support/topic/244797#post-1037110</link>
<pubDate>Sun, 05 Apr 2009 08:42:34 +0000</pubDate>
<dc:creator>houseofstrauss</dc:creator>
<guid isPermaLink="false">1037110@http://wordpress.org/support/</guid>
<description>&#60;p&#62;&#60;a href=&#34;http://wordpress.org/extend/plugins/theme-my-login/&#34; rel=&#34;nofollow&#34;&#62;http://wordpress.org/extend/plugins/theme-my-login/&#60;/a&#62; is a similar plugin that works and appears to be supported. Takes the current theme template for login/profile/(including error messages) password reset and registration screens.
&#60;/p&#62;</description>
</item>
<item>
<title>do77 on "[Plugin: Customize Your Community] Error on the profile page shows backend"</title>
<link>http://wordpress.org/support/topic/244797#post-1032803</link>
<pubDate>Tue, 31 Mar 2009 23:23:42 +0000</pubDate>
<dc:creator>do77</dc:creator>
<guid isPermaLink="false">1032803@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Just figured out that you get an error after the second login when you try to change something :(
&#60;/p&#62;</description>
</item>
<item>
<title>do77 on "[Plugin: Customize Your Community] Error on the profile page shows backend"</title>
<link>http://wordpress.org/support/topic/244797#post-1032725</link>
<pubDate>Tue, 31 Mar 2009 21:59:14 +0000</pubDate>
<dc:creator>do77</dc:creator>
<guid isPermaLink="false">1032725@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Yeah, I just figured out the problem with the new password too! At least I found a &#34;solution&#34; for the E-mail thing. I just don't give my users the chance to change their E-mail address afterwards and added &#60;code&#62;disabled=&#38;quot;disabled&#38;quot;&#60;/code&#62; to the input field. How often do you really want to change your E-mail address?
&#60;/p&#62;</description>
</item>
<item>
<title>houseofstrauss on "[Plugin: Customize Your Community] Error on the profile page shows backend"</title>
<link>http://wordpress.org/support/topic/244797#post-1029246</link>
<pubDate>Sat, 28 Mar 2009 08:06:19 +0000</pubDate>
<dc:creator>houseofstrauss</dc:creator>
<guid isPermaLink="false">1029246@http://wordpress.org/support/</guid>
<description>&#60;p&#62;There is another check on the password fields as well. If they are not the same or one is missing it reports an error also :(&#60;/p&#62;
&#60;p&#62;Please post here if you get a result. Thanks...
&#60;/p&#62;</description>
</item>
<item>
<title>acescence on "[Plugin: Customize Your Community] Error on the profile page shows backend"</title>
<link>http://wordpress.org/support/topic/244797#post-1028689</link>
<pubDate>Fri, 27 Mar 2009 19:20:02 +0000</pubDate>
<dc:creator>acescence</dc:creator>
<guid isPermaLink="false">1028689@http://wordpress.org/support/</guid>
<description>&#60;p&#62;i'm trying to solve this myself. as a quick hack i added a bit of javascript to prevent submitting the form if the email field is blank.
&#60;/p&#62;</description>
</item>
<item>
<title>houseofstrauss on "[Plugin: Customize Your Community] Error on the profile page shows backend"</title>
<link>http://wordpress.org/support/topic/244797#post-1028558</link>
<pubDate>Fri, 27 Mar 2009 17:23:06 +0000</pubDate>
<dc:creator>houseofstrauss</dc:creator>
<guid isPermaLink="false">1028558@http://wordpress.org/support/</guid>
<description>&#60;p&#62;I have the exact same probelm, when users make a mistake, the error page loads in the original backend of wordpress. Unfortunately the URL is the same as profile.php so I don't know how to redirect users away from it. &#60;/p&#62;
&#60;p&#62;This is a major problem for my setup as I'm using the prologue theme. Really looking for some help to resolve this...&#60;/p&#62;
&#60;p&#62;Many thanks anyone!!
&#60;/p&#62;</description>
</item>
<item>
<title>adam.codefor on "[Plugin: Customize Your Community] Error on the profile page shows backend"</title>
<link>http://wordpress.org/support/topic/244797#post-992880</link>
<pubDate>Fri, 20 Feb 2009 19:19:18 +0000</pubDate>
<dc:creator>adam.codefor</dc:creator>
<guid isPermaLink="false">992880@http://wordpress.org/support/</guid>
<description>&#60;p&#62;It's a pretty big bug to be honest, the idea of the plugin is to block backend access this is a massive hole that lets users in...
&#60;/p&#62;</description>
</item>
<item>
<title>blade.runner on "[Plugin: Customize Your Community] Error on the profile page shows backend"</title>
<link>http://wordpress.org/support/topic/244797#post-991862</link>
<pubDate>Thu, 19 Feb 2009 23:17:18 +0000</pubDate>
<dc:creator>blade.runner</dc:creator>
<guid isPermaLink="false">991862@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Same Problem here.
&#60;/p&#62;</description>
</item>
<item>
<title>adam.codefor on "[Plugin: Customize Your Community] Error on the profile page shows backend"</title>
<link>http://wordpress.org/support/topic/244797#post-989290</link>
<pubDate>Tue, 17 Feb 2009 20:55:33 +0000</pubDate>
<dc:creator>adam.codefor</dc:creator>
<guid isPermaLink="false">989290@http://wordpress.org/support/</guid>
<description>&#60;p&#62;I am using customize-your-community plugin and have a custom profile page which works great - however if a users removes the email field and clicks submit the errors and form appears on the backend and not in the frontend site anyone know of a quick fix?&#60;/p&#62;
&#60;p&#62;Cheers
&#60;/p&#62;</description>
</item>

</channel>
</rss>
