<?xml version="1.0" ?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
	<title>WordPress Plugin Support Forum | WebDevStudios.com</title>
	<link>http://webdevstudios.com/support/forum/collabpress/assigning-a-task-to-more-users-or-usergroup</link>
	<description><![CDATA[Open Source Website Development and Design]]></description>
	<generator>Simple:Press Forum Version 4.0.4</generator>
	<atom:link href="http://webdevstudios.com/support/forum?collabpress&#038;assigning-a-task-to-more-users-or-usergroup&#038;xfeed=topic" rel="self" type="application/rss+xml" />
<item>
	<title>xy on Assigning a task to more users or usergroup</title>
	<link>http://webdevstudios.com/support/forum/collabpress/assigning-a-task-to-more-users-or-usergroup/#p359</link>
	<category>CollabPress</category>
	<guid isPermaLink="true">http://webdevstudios.com/support/forum/collabpress/assigning-a-task-to-more-users-or-usergroup/#p359</guid>
	<description><![CDATA[<p>Hi again!</p>
<p>(<em>*** This post was several times edited, because I noticed something wrong with the wrapping of text,<br /> and I can&#39;t red well the text&#160; &#8211; when I saved the post.</em> )</p>
<p>Because of I&#39;ve seen on your site you are engaged on several of CMS platforms, and promoting <br />using WP as a possible CMS environment: (I&#39;m trying to establish such one, but that is under testing yet),but surely I was not quite specific with this issue.</p>
<p><strong>It would be a great improvement in your plugin: </strong></p>
<p><strong>When assign a task to a single user that task would be allowed to assign<br />for several else users too simultaneously.</strong></p>
<p>* Let you think, we are working in a multi-author WP environment, where more authors<br /> could get same task assigned to work (elaborate) on&#160; a given topics, and additionally<br /> they are able to nicely&#160; comment the flow of their work.<br />(thanks to this great new feature &#8211; recently implemented in CollabPress <br />&#8230;great idea :<img src="/wp-content/forum-smileys/sf-cool.gif" alt="Cool" />)</p>
<p><span style="text-decoration: underline;">Technical issue about this</span>: I was thinking a bit on how to resolve this&#8230;</p>
<p>You are using wp_dropdown_user() in cp-core-projects.php for generating the<br /> current users dropdown (writing the SELECT html element into the code.) (273), <br />then assigning the task to the selected element in (422). (Really tricky simple &#8211; <img src="/wp-content/forum-smileys/sf-cool.gif" alt="Cool" /></p>
<p>The problem is (I can see): the wp_dropdown_user() generates&#160; the <br />select element&#39;s id, and name&#160; from the wp_dropdown_user passed parameters<br /> which are not suited for giving how to allow select multiple and getting the<br /> multiple selected options values.</p>
<p><span style="text-decoration: underline;">Possible tips</span>: <strong>I did not tried yet</strong>, the (below written are only pleriminar thoughts),<br /> but probably would be resolved somehow to hack that select element getting<br /> something like this</p>
<pre class="html"><div class="sfcode">&#60;select id="authors[]" name="authors[]" multiple="yes"&#62;</div><br />(I&#39;ve stole this idea from a php manual - How do I get all the results from a multiple<br />select html tag <img src='http://webdevstudios.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  )</pre>
<p>1. either passing an array when giving</p>
<p style="padding-left: 30px;">wp_dropdown_users(<br />&#160;&#160;&#160; &#160;&#160;&#160; array(<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#39;show_option_all&#39; =&#62; __(&#39;Any&#39;),<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#39;name&#39; =&#62; $authors // declared before an array variable<br />&#160;&#160;&#160; &#160;&#160;&#160; )</p>
<p>2. Or&#160; in the further step we somehow must write on a tricky way either renaming the Select id,</p>
<p>and name (if the above don&#39;t work) and adding the MULTIPLE attribute for the select element<br />either from a javascipt or Jquery when doucument. ready&#160;</p>
<p>a, either we should insert to the bottom of php a simple javascipt block<br /> (ensuring the document had already been downloaded before referring to that<br /> select element id</p>
<p style="padding-left: 30px;">// adding attr multiple and renaming&#160; the select element if that was originally inserted wp_dropdown_users(passing no paramaters)</p>
<p style="padding-left: 30px;">document.getElementById(&#39;users&#39;).setAttribute(multiiple&#39;,&#39;yes&#39;);</p>
<p style="padding-left: 30px;">document.getElementById(&#39;users&#39;).setAttribute(&#39;id&#39;,&#39;authors[]&#39;);</p>
<p style="padding-left: 30px;">document.getElementById(&#39;users&#39;).setAttribute(&#39;name&#39;,&#39;authors[]&#39;);</p>
<p>b, jQuery(document).ready(function(){</p>
<p>* I&#39;m not perfect yet with jQuery and several of their versions used&#160; in WP <img title="Embarassed" src="/wp-content/forum-smileys/sf-embarassed.gif" alt="Embarassed" /></p>
<p>3. Further step somehow to get the selected options elements what the&#160; <br />id authors[].options[i].value contain, that is your code specific part <br />(I did not looked into deeply yet)</p>
<p>Further elaborating on this, I&#39;m using ROLE SCOPER plugin (for further defining possible<br /> user groups, and making several restrictions) and Co-Authors Plus <br />(earlier mentioned on a issue). As I can see, from the code Role Scoper redefined this wp_dropdown_user() core function.&#160; I&#39;ve not tip yet how to resolve whether not only<br /> multiple authors could be seleted but, also defined users gropus too assigning to them specific task.<br />But that would be also great to be resolved.</p>
<p><strong>If you see fancy about this written idea, it would be welcome to see in <br />one of next version of your great plugin! </strong>.</p>
<p>(* I&#39;m trying to play with for making a private resolution hacking your plugin at least<br /> for the multi author selection for myself, because I&#39;m wanting&#160; that very improtant for my site,<br /> BUT THAT IDEA perhaps WOULD BE ALSO IMPORTANT FOR ELSE ONES TOO, <br />and THAT ALSO WOULD BE MUCH MUCH MORE RELIABLE if<br /> YOU COUD MAKE THIS CODE CHANGE! (I&#39;m not a WP expert <img title="Wink" src="/wp-content/forum-smileys/sf-wink.gif" alt="Wink" />)</p>
<p>Thank you for your listening and answering to my several of issues</p>
<p>xy</p>
<p style="padding-left: 30px;">&#160;</p>
]]></description>
	<pubDate>Sun, 28 Mar 2010 11:23:26 +0000</pubDate>
</item>
<item>
	<title>xy on Assigning a task to more users or usergroup</title>
	<link>http://webdevstudios.com/support/forum/collabpress/assigning-a-task-to-more-users-or-usergroup/#p287</link>
	<category>CollabPress</category>
	<guid isPermaLink="true">http://webdevstudios.com/support/forum/collabpress/assigning-a-task-to-more-users-or-usergroup/#p287</guid>
	<description><![CDATA[<p>Hi WDS staff!</p>
<p>Only a suggestion: It would be wonderful to select more users from the assign task dropdown. (later probably user groups)</p>
<p>Thanks, if it will be possible in a next release.</p>
<p>Br.</p>
<p>xy</p>
]]></description>
	<pubDate>Thu, 18 Feb 2010 17:10:38 +0000</pubDate>
</item>
</channel>
</rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced)

Served from: webdevstudios.com @ 2010-09-08 23:41:47 -->