<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: WordPress Plugin: User Switching</title>
	<atom:link href="/wordpress-plugin-user-switching/feed/" rel="self" type="application/rss+xml" />
	<link>https://lud.icro.us/wordpress-plugin-user-switching/</link>
	<description></description>
	<lastBuildDate>Fri, 28 Sep 2012 22:03:59 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4.3-alpha</generator>
	<item>
		<title>By: alex</title>
		<link>https://lud.icro.us/wordpress-plugin-user-switching/#comment-6470</link>
		<dc:creator>alex</dc:creator>
		<pubDate>Fri, 31 Aug 2012 19:38:50 +0000</pubDate>
		<guid isPermaLink="false">https://lud.icro.us/?p=96#comment-6470</guid>
		<description>John,
That is great. Thank you so much, you are the best!</description>
		<content:encoded><![CDATA[<p>John,<br />
That is great. Thank you so much, you are the best!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Blackbourn</title>
		<link>https://lud.icro.us/wordpress-plugin-user-switching/#comment-6469</link>
		<dc:creator>John Blackbourn</dc:creator>
		<pubDate>Fri, 31 Aug 2012 18:37:59 +0000</pubDate>
		<guid isPermaLink="false">https://lud.icro.us/?p=96#comment-6469</guid>
		<description>&lt;em&gt;Alex:&lt;/em&gt; Have a look at the new &lt;code&gt;current_user_switched()&lt;/code&gt; function in User Switching 0.6. It tells you whether or not the current user switched into their account.</description>
		<content:encoded><![CDATA[<p><em>Alex:</em> Have a look at the new <code>current_user_switched()</code> function in User Switching 0.6. It tells you whether or not the current user switched into their account.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: alex</title>
		<link>https://lud.icro.us/wordpress-plugin-user-switching/#comment-6468</link>
		<dc:creator>alex</dc:creator>
		<pubDate>Thu, 30 Aug 2012 15:38:26 +0000</pubDate>
		<guid isPermaLink="false">https://lud.icro.us/?p=96#comment-6468</guid>
		<description>Fantastic! I have found a work around (I think) but it is not very elegant and checking the plugin would be beautiful (and much simpler). 
Thanks for the fast response.
Alex</description>
		<content:encoded><![CDATA[<p>Fantastic! I have found a work around (I think) but it is not very elegant and checking the plugin would be beautiful (and much simpler).<br />
Thanks for the fast response.<br />
Alex</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Blackbourn</title>
		<link>https://lud.icro.us/wordpress-plugin-user-switching/#comment-6467</link>
		<dc:creator>John Blackbourn</dc:creator>
		<pubDate>Thu, 30 Aug 2012 15:32:56 +0000</pubDate>
		<guid isPermaLink="false">https://lud.icro.us/?p=96#comment-6467</guid>
		<description>&lt;em&gt;Alex:&lt;/em&gt; I&#039;m currently working on a small update to the plugin which adds a few tweaks. I&#039;ll add something which allows you to determine if the current user has logged in normally or switched in using User Switching.</description>
		<content:encoded><![CDATA[<p><em>Alex:</em> I&#8217;m currently working on a small update to the plugin which adds a few tweaks. I&#8217;ll add something which allows you to determine if the current user has logged in normally or switched in using User Switching.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: alex</title>
		<link>https://lud.icro.us/wordpress-plugin-user-switching/#comment-6466</link>
		<dc:creator>alex</dc:creator>
		<pubDate>Thu, 30 Aug 2012 15:20:02 +0000</pubDate>
		<guid isPermaLink="false">https://lud.icro.us/?p=96#comment-6466</guid>
		<description>Is there a way to check to see if the user switching in use? I can check if the plugin is active with is_plugin_active() but I am looking to see if the current user is using the plugin. 

A client is using a shopping cart and has manual checkout turned off for everyone except admin. They would like to be able to switch to a user to push an order through so they can track each users order history but still want the ability to manually checkout. 

If there is a way to check if the current user has used your plugin to log in? If there is I think I can work this out.

Thanks for the plugin, it is great and an amazing time saver for testing sites.

Alex</description>
		<content:encoded><![CDATA[<p>Is there a way to check to see if the user switching in use? I can check if the plugin is active with is_plugin_active() but I am looking to see if the current user is using the plugin. </p>
<p>A client is using a shopping cart and has manual checkout turned off for everyone except admin. They would like to be able to switch to a user to push an order through so they can track each users order history but still want the ability to manually checkout. </p>
<p>If there is a way to check if the current user has used your plugin to log in? If there is I think I can work this out.</p>
<p>Thanks for the plugin, it is great and an amazing time saver for testing sites.</p>
<p>Alex</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: StephenP</title>
		<link>https://lud.icro.us/wordpress-plugin-user-switching/#comment-6364</link>
		<dc:creator>StephenP</dc:creator>
		<pubDate>Tue, 26 Jun 2012 08:43:56 +0000</pubDate>
		<guid isPermaLink="false">https://lud.icro.us/?p=96#comment-6364</guid>
		<description>Ahaaa... Thanks for the reply. Actually it was the members listing page that I meant (sorry). That was the only place I used it. Unfortunately it&#039;s not appearing on the individual members&#039; profile pages either.

BTW there was never any formatting issue on our listing page (using PlatformPro). Is there anyway this option can be brought back? Doing it via Dashboard&gt;&gt;Users is such a pain I&#039;ve created dummy accounts with various rights levels so I can quickly log in &amp; out to check things. Which I&#039;d rather not do. Great work, anyway - all the praise above is due!</description>
		<content:encoded><![CDATA[<p>Ahaaa&#8230; Thanks for the reply. Actually it was the members listing page that I meant (sorry). That was the only place I used it. Unfortunately it&#8217;s not appearing on the individual members&#8217; profile pages either.</p>
<p>BTW there was never any formatting issue on our listing page (using PlatformPro). Is there anyway this option can be brought back? Doing it via Dashboard&gt;&gt;Users is such a pain I&#8217;ve created dummy accounts with various rights levels so I can quickly log in &amp; out to check things. Which I&#8217;d rather not do. Great work, anyway &#8211; all the praise above is due!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Blackbourn</title>
		<link>https://lud.icro.us/wordpress-plugin-user-switching/#comment-6358</link>
		<dc:creator>John Blackbourn</dc:creator>
		<pubDate>Fri, 22 Jun 2012 18:45:29 +0000</pubDate>
		<guid isPermaLink="false">https://lud.icro.us/?p=96#comment-6358</guid>
		<description>Stephen, the latest update should have in fact fixed the bug you&#039;ve reported. The button was intentionally removed from the members listing page due to formatting issues, but the button should still be available on individual member profile pages.

There&#039;s &lt;a href=&quot;http://buddypress.trac.wordpress.org/ticket/4212&quot; rel=&quot;nofollow&quot;&gt;a bug in BuddyPress&lt;/a&gt; which was causing the button to not appear, but it looks like my attempt to get around it doesn&#039;t always work.</description>
		<content:encoded><![CDATA[<p>Stephen, the latest update should have in fact fixed the bug you&#8217;ve reported. The button was intentionally removed from the members listing page due to formatting issues, but the button should still be available on individual member profile pages.</p>
<p>There&#8217;s <a href="http://buddypress.trac.wordpress.org/ticket/4212" rel="nofollow">a bug in BuddyPress</a> which was causing the button to not appear, but it looks like my attempt to get around it doesn&#8217;t always work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: StephenP</title>
		<link>https://lud.icro.us/wordpress-plugin-user-switching/#comment-6356</link>
		<dc:creator>StephenP</dc:creator>
		<pubDate>Fri, 22 Jun 2012 08:18:35 +0000</pubDate>
		<guid isPermaLink="false">https://lud.icro.us/?p=96#comment-6356</guid>
		<description>I love this plugin, but after the most recent update, the &quot;Switch to&quot; option has disappeared from my Buddypress members page (it&#039;s still available from the WP dashboard, though). 

Is this a bug in my installation or a planned change? I only ever used Switch to from the members page - having to go to the dashboard first, then clicking on &quot;users&quot;, then &quot;switch to&quot; is a bit of a pain.</description>
		<content:encoded><![CDATA[<p>I love this plugin, but after the most recent update, the &#8220;Switch to&#8221; option has disappeared from my Buddypress members page (it&#8217;s still available from the WP dashboard, though). </p>
<p>Is this a bug in my installation or a planned change? I only ever used Switch to from the members page &#8211; having to go to the dashboard first, then clicking on &#8220;users&#8221;, then &#8220;switch to&#8221; is a bit of a pain.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Blackbourn</title>
		<link>https://lud.icro.us/wordpress-plugin-user-switching/#comment-6347</link>
		<dc:creator>John Blackbourn</dc:creator>
		<pubDate>Tue, 19 Jun 2012 17:10:28 +0000</pubDate>
		<guid isPermaLink="false">https://lud.icro.us/?p=96#comment-6347</guid>
		<description>Thanks Ryan, that&#039;s cool and I&#039;m really pleased the plugin was rated so highly!</description>
		<content:encoded><![CDATA[<p>Thanks Ryan, that&#8217;s cool and I&#8217;m really pleased the plugin was rated so highly!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan Hellyer</title>
		<link>https://lud.icro.us/wordpress-plugin-user-switching/#comment-6345</link>
		<dc:creator>Ryan Hellyer</dc:creator>
		<pubDate>Tue, 19 Jun 2012 13:06:11 +0000</pubDate>
		<guid isPermaLink="false">https://lud.icro.us/?p=96#comment-6345</guid>
		<description>Damn that&#039;s nice code!

Thanks for all the code comments :)

I was hired to do a security and performance audit of your plugin. Out of around 50 plugins I checked, yours comes out on top.</description>
		<content:encoded><![CDATA[<p>Damn that&#8217;s nice code!</p>
<p>Thanks for all the code comments :)</p>
<p>I was hired to do a security and performance audit of your plugin. Out of around 50 plugins I checked, yours comes out on top.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Blackbourn</title>
		<link>https://lud.icro.us/wordpress-plugin-user-switching/#comment-6315</link>
		<dc:creator>John Blackbourn</dc:creator>
		<pubDate>Fri, 13 Jan 2012 07:35:22 +0000</pubDate>
		<guid isPermaLink="false">https://lud.icro.us/?p=96#comment-6315</guid>
		<description>&lt;em&gt;Judd:&lt;/em&gt; The switch back link is shown on every screen in the admin area, and in the user profile menu in the admin toolbar. The switch back link only appears in the footer when you use the Switch Off function.</description>
		<content:encoded><![CDATA[<p><em>Judd:</em> The switch back link is shown on every screen in the admin area, and in the user profile menu in the admin toolbar. The switch back link only appears in the footer when you use the Switch Off function.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Judd</title>
		<link>https://lud.icro.us/wordpress-plugin-user-switching/#comment-6314</link>
		<dc:creator>Judd</dc:creator>
		<pubDate>Fri, 13 Jan 2012 02:03:02 +0000</pubDate>
		<guid isPermaLink="false">https://lud.icro.us/?p=96#comment-6314</guid>
		<description>I am not able to switch back.  I can not find the switch back button.  It is not in my footer.</description>
		<content:encoded><![CDATA[<p>I am not able to switch back.  I can not find the switch back button.  It is not in my footer.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Blackbourn</title>
		<link>https://lud.icro.us/wordpress-plugin-user-switching/#comment-6301</link>
		<dc:creator>John Blackbourn</dc:creator>
		<pubDate>Tue, 25 Oct 2011 17:45:37 +0000</pubDate>
		<guid isPermaLink="false">https://lud.icro.us/?p=96#comment-6301</guid>
		<description>No problem Knut, glad you got it sorted.</description>
		<content:encoded><![CDATA[<p>No problem Knut, glad you got it sorted.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Knut Sparhell</title>
		<link>https://lud.icro.us/wordpress-plugin-user-switching/#comment-6300</link>
		<dc:creator>Knut Sparhell</dc:creator>
		<pubDate>Tue, 25 Oct 2011 17:44:46 +0000</pubDate>
		<guid isPermaLink="false">https://lud.icro.us/?p=96#comment-6300</guid>
		<description>The thing is sorted out, and fixed. No problem at all with this excellent plugin. Tank you for your patience, and very useful plugin.</description>
		<content:encoded><![CDATA[<p>The thing is sorted out, and fixed. No problem at all with this excellent plugin. Tank you for your patience, and very useful plugin.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Knut Sparhell</title>
		<link>https://lud.icro.us/wordpress-plugin-user-switching/#comment-6299</link>
		<dc:creator>Knut Sparhell</dc:creator>
		<pubDate>Tue, 25 Oct 2011 12:09:58 +0000</pubDate>
		<guid isPermaLink="false">https://lud.icro.us/?p=96#comment-6299</guid>
		<description>Thank you for the reply and testing.

What I meant, was that I use it with WordPess 3.2.1. Sorry for the typo.

I have now found that the problem is incompatibility with another plugin, the only one I did not deacktivate while testing.

I will now dig in deeper, and find out which of the two plugins really doing something wrong, before requesting it fixed.

Again, sorry.</description>
		<content:encoded><![CDATA[<p>Thank you for the reply and testing.</p>
<p>What I meant, was that I use it with WordPess 3.2.1. Sorry for the typo.</p>
<p>I have now found that the problem is incompatibility with another plugin, the only one I did not deacktivate while testing.</p>
<p>I will now dig in deeper, and find out which of the two plugins really doing something wrong, before requesting it fixed.</p>
<p>Again, sorry.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Blackbourn</title>
		<link>https://lud.icro.us/wordpress-plugin-user-switching/#comment-6298</link>
		<dc:creator>John Blackbourn</dc:creator>
		<pubDate>Tue, 25 Oct 2011 10:17:03 +0000</pubDate>
		<guid isPermaLink="false">https://lud.icro.us/?p=96#comment-6298</guid>
		<description>Hi Knut, I&#039;ve just tested the plugin in WordPress 3.1 and all works as expected, including the admin bar link. Remember that if you switch to another user they may not have the admin bar active (you can see their setting from the Profile screen). Remember too that the &#039;My name&#039; link at the top right of the screen isn&#039;t a dropdown menu in 3.1, this was only added in 3.2.

You should really update to the latest version of WordPress (3.2, and 3.3 is right around the corner) as the plugin won&#039;t be actively supporting older versions.</description>
		<content:encoded><![CDATA[<p>Hi Knut, I&#8217;ve just tested the plugin in WordPress 3.1 and all works as expected, including the admin bar link. Remember that if you switch to another user they may not have the admin bar active (you can see their setting from the Profile screen). Remember too that the &#8216;My name&#8217; link at the top right of the screen isn&#8217;t a dropdown menu in 3.1, this was only added in 3.2.</p>
<p>You should really update to the latest version of WordPress (3.2, and 3.3 is right around the corner) as the plugin won&#8217;t be actively supporting older versions.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Knut Sparhell</title>
		<link>https://lud.icro.us/wordpress-plugin-user-switching/#comment-6297</link>
		<dc:creator>Knut Sparhell</dc:creator>
		<pubDate>Mon, 24 Oct 2011 16:20:12 +0000</pubDate>
		<guid isPermaLink="false">https://lud.icro.us/?p=96#comment-6297</guid>
		<description>After the last update (version 0.4.1) it seems to be problems with WP 3.1.2, after switching to another user. The admin bar will not show, and link &quot;Your name&quot; does not open the submenu, to reveal &quot;Your profile&quot;. 

No problems until I switch user.</description>
		<content:encoded><![CDATA[<p>After the last update (version 0.4.1) it seems to be problems with WP 3.1.2, after switching to another user. The admin bar will not show, and link &#8220;Your name&#8221; does not open the submenu, to reveal &#8220;Your profile&#8221;. </p>
<p>No problems until I switch user.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: AskApache</title>
		<link>https://lud.icro.us/wordpress-plugin-user-switching/#comment-6288</link>
		<dc:creator>AskApache</dc:creator>
		<pubDate>Fri, 12 Aug 2011 12:36:00 +0000</pubDate>
		<guid isPermaLink="false">https://lud.icro.us/?p=96#comment-6288</guid>
		<description>Thanks a ton for this plugin, one of my clients needed this exact feature, works great!

After hearing Ozh mention the coding was clean, I read the whole script, very clean and hardly any wasted code.  The only thing I wasn&#039;t too keen on was the use of the softer &#039;and&#039; instead of &#039;&amp;&amp;&#039;.. but that&#039;s just me.

The only feature I would like to have would be the ability to switch back to the original account that has the correct caps and user_level faster.  That is a real tricky proposition security-wise, but I had a few ideas that may or may not help you if you decide to try for it. 

Looking at the way the cookies are created, using the username, substr of hashed pass, and time..


Backup the target accounts password, then replace with your password.  That way you can generate the correct authorization cookies for any user because you know their username and password.  So the only thing that changes when all users have the same password hash, is the username.  Thats where if you just replaced the target users password with yours, you would always be able to gen the right hash.

Along those lines, you could create copies of the entire users and usermeta tables, and then replace all of the users password hashes to a known value.  Then you could have wordpress use those temporarily by defining this:

&lt;code&gt;
/** CUSTOM_USER_TABLE and CUSTOM_USER_META_TABLE are used to designated that the user and usermeta tables normally utilized by WordPress are not used, instead these values/tables are used to store your user information. */
define(&#039;CUSTOM_USER_TABLE&#039;, $table_prefix . &#039;my_users&#039;);
define(&#039;CUSTOM_USER_META_TABLE&#039;, $table_prefix . &#039;my_usermeta&#039;);
&lt;/code&gt;

At the least, you could create the cookies for each user that way, and all you need is a way to quickly switch the cookies you use.  And, you are still the only one who knows your admins real credentials (as long as you don&#039;t still send the admin cookies while logged in as another user, which they might be able to see through logs or xss), so it should prevent a backhack.

It&#039;s an interesting excercise to think about, but oh ya I&#039;m on the clock!</description>
		<content:encoded><![CDATA[<p>Thanks a ton for this plugin, one of my clients needed this exact feature, works great!</p>
<p>After hearing Ozh mention the coding was clean, I read the whole script, very clean and hardly any wasted code.  The only thing I wasn&#8217;t too keen on was the use of the softer &#8216;and&#8217; instead of &#8216;&amp;&amp;&#8217;.. but that&#8217;s just me.</p>
<p>The only feature I would like to have would be the ability to switch back to the original account that has the correct caps and user_level faster.  That is a real tricky proposition security-wise, but I had a few ideas that may or may not help you if you decide to try for it. </p>
<p>Looking at the way the cookies are created, using the username, substr of hashed pass, and time..</p>
<p>Backup the target accounts password, then replace with your password.  That way you can generate the correct authorization cookies for any user because you know their username and password.  So the only thing that changes when all users have the same password hash, is the username.  Thats where if you just replaced the target users password with yours, you would always be able to gen the right hash.</p>
<p>Along those lines, you could create copies of the entire users and usermeta tables, and then replace all of the users password hashes to a known value.  Then you could have wordpress use those temporarily by defining this:</p>
<p><code><br />
/** CUSTOM_USER_TABLE and CUSTOM_USER_META_TABLE are used to designated that the user and usermeta tables normally utilized by WordPress are not used, instead these values/tables are used to store your user information. */<br />
define('CUSTOM_USER_TABLE', $table_prefix . 'my_users');<br />
define('CUSTOM_USER_META_TABLE', $table_prefix . 'my_usermeta');<br />
</code></p>
<p>At the least, you could create the cookies for each user that way, and all you need is a way to quickly switch the cookies you use.  And, you are still the only one who knows your admins real credentials (as long as you don&#8217;t still send the admin cookies while logged in as another user, which they might be able to see through logs or xss), so it should prevent a backhack.</p>
<p>It&#8217;s an interesting excercise to think about, but oh ya I&#8217;m on the clock!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Blackbourn</title>
		<link>https://lud.icro.us/wordpress-plugin-user-switching/#comment-6273</link>
		<dc:creator>John Blackbourn</dc:creator>
		<pubDate>Fri, 15 Apr 2011 04:35:15 +0000</pubDate>
		<guid isPermaLink="false">https://lud.icro.us/?p=96#comment-6273</guid>
		<description>Version 0.3.2 released.

* Fix the &#039;Switch back to&#039; menu item in the WordPress admin bar (WordPress 3.1+).
* Fix a formatting issue on the user profile page.</description>
		<content:encoded><![CDATA[<p>Version 0.3.2 released.</p>
<p>* Fix the &#8216;Switch back to&#8217; menu item in the WordPress admin bar (WordPress 3.1+).<br />
* Fix a formatting issue on the user profile page.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Blackbourn</title>
		<link>https://lud.icro.us/wordpress-plugin-user-switching/#comment-6265</link>
		<dc:creator>John Blackbourn</dc:creator>
		<pubDate>Wed, 09 Mar 2011 02:02:18 +0000</pubDate>
		<guid isPermaLink="false">https://lud.icro.us/?p=96#comment-6265</guid>
		<description>Thanks for the suggestions belg4mit. I had already implemented #1 while WordPress 3.1 was in beta, but it stopped working at some point before 3.1 was finally released. I&#039;ll look into it and update the plugin.

John</description>
		<content:encoded><![CDATA[<p>Thanks for the suggestions belg4mit. I had already implemented #1 while WordPress 3.1 was in beta, but it stopped working at some point before 3.1 was finally released. I&#8217;ll look into it and update the plugin.</p>
<p>John</p>
]]></content:encoded>
	</item>
</channel>
</rss>
