I may be missing something here but could this not be done with <a href="http://drupal.org/project/uc_views">http://drupal.org/project/uc_views</a> and a Global Rewrite. <br><br><div class="gmail_quote">On Fri, Sep 3, 2010 at 3:25 PM, Christopher M. Jones <span dir="ltr"><<a href="mailto:cjones@partialflow.com">cjones@partialflow.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Just a tip, from a coder to a non coder. Install the devel module, and<br>
in stead of print_r() you can use dpm(), which outputs arrays using<br>
krumo. Much easier to read and understand.<br>
<br>
Glad you figured it out.<br>
<div class="im"><br>
On 09/02/2010 10:14 PM, Shai Gluskin wrote:<br>
> Hi Cory,<br>
><br>
> Thanks. I think we were writing at the same time.<br>
><br>
> Unserializing the $output won't work, because the $output comes with<br>
> some other stuff, like html.<br>
><br>
> What works is this:<br>
><br>
> $data = unserialize($row->{$field->field_alias});<br>
> print $data['attributes']['Attending'][0];<br>
><br>
> To all, I apologize for not quoting the array keys in my previous "I got<br>
> it" post.<br>
><br>
> But thank you.<br>
><br>
> I've posted an issue for documentation at the Views queue, suggesting a<br>
> change in the explanatory text of views-view-field.tpl.php to be<br>
> explicit that the snippet is literal.<br>
><br>
> You can +1 or make alternative suggestions at:<br>
> <a href="http://drupal.org/node/901088" target="_blank">http://drupal.org/node/901088</a><br>
><br>
> Shai<br>
><br>
> On Thu, Sep 2, 2010 at 9:30 PM, Cory Gilliam <<a href="mailto:imaaxa@gmail.com">imaaxa@gmail.com</a><br>
</div><div class="im">> <mailto:<a href="mailto:imaaxa@gmail.com">imaaxa@gmail.com</a>>> wrote:<br>
><br>
><br>
> The data you are trying to get is inside an array that is inside an<br>
> array.<br>
><br>
><br>
> Array(<br>
> [kit_id] => 570<br>
> [module] => uc_product_kit<br>
> [attributes] => Array(<br>
> [Attending] => Array(<br>
> [0] => Jane Doe, John Doe<br>
> )<br>
> [Note] => Array(<br>
> [0] => We are friends of Eric Smith and Sandy Smith<br>
> )<br>
> )<br>
> [shippable] => 0<br>
> [unique_id] => 4c7d632a8090c7.95333579<br>
> )<br>
><br>
> You need to add the name of the array that this array is in.<br>
><br>
> $data = unserialize($output);<br>
> print $data ['attributes'] ['Attending'][0];<br>
><br>
> Little rusty at this. Hope that helps.<br>
> Cory<br>
><br>
><br>
> --<br>
> [ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br>
><br>
><br>
</div>--<br>
<div><div></div><div class="h5">[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br>
</div></div></blockquote></div><br>