<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16608" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=675575608-20022008><FONT face=Arial size=2>Hello, I'm tryin' to
change how the views csv exports cck image.</FONT></SPAN></DIV>
<DIV><SPAN class=675575608-20022008><FONT face=Arial size=2>It puts entire
<img src="...> tag but I need only the URL of the
file.</FONT></SPAN></DIV>
<DIV><SPAN class=675575608-20022008><FONT face=Arial size=2>I think I need to
use something like this</FONT></SPAN></DIV>
<DIV><SPAN class=675575608-20022008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=675575608-20022008></SPAN><SPAN class=675575608-20022008><FONT
size=2>if (field<SPAN class=675575608-20022008>type = image</SPAN>){<BR><SPAN
class=675575608-20022008> </SPAN>$value =
$field['id']['filepath'];<BR>}</FONT></SPAN></DIV>
<DIV><SPAN class=675575608-20022008><FONT size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=675575608-20022008><FONT size=2>into this part of the module,
but I don't know how...</FONT></SPAN></DIV>
<DIV><SPAN class=675575608-20022008><FONT size=2>I tried also the img parameter
on preg_replace() but it strips all the fiel</FONT></SPAN></DIV>
<DIV><SPAN class=675575608-20022008><FONT size=2><SPAN
class=675575608-20022008></SPAN></FONT></SPAN> </DIV>
<DIV><SPAN class=675575608-20022008><FONT size=2><SPAN
class=675575608-20022008>f</SPAN>oreach ($view->field as $field) {<BR><SPAN
class=675575608-20022008> </SPAN>if
($fields[$field['id']]['visible'] !== false) {<BR><SPAN
class=675575608-20022008>
</SPAN>$value = views_theme_field('views_handle_field', $field['queryname'],
$fields, $field, $node, $view); <BR><SPAN
class=675575608-20022008>
</SPAN>$value = preg_replace('/<\/?(a|span|li|ul|div) ?.*?>/', '',
$value); // strip 'a' and 'span' tags <BR><SPAN
class=675575608-20022008>
</SPAN>$value = str_replace(array("\r", "\n", ','), ' ', $value); // strip line
breaks and commas<BR><SPAN
class=675575608-20022008>
</SPAN>$value = str_replace('"', '""', $value); // escape " characters<BR><SPAN
class=675575608-20022008>
</SPAN>$value = decode_entities($value);<BR><SPAN
class=675575608-20022008>
</SPAN>$values[] = '"' . $value . '"';<BR><SPAN
class=675575608-20022008> </SPAN>}<BR>}</FONT></DIV></SPAN>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV align=left><FONT face=Arial size=2></FONT> </DIV>
<DIV align=left>
<DIV><SPAN class=675575608-20022008><FONT size=2>Thank's for
all!</FONT></SPAN></DIV>
<DIV><SPAN class=675575608-20022008><FONT
size=2></FONT> </DIV></SPAN></DIV>
<DIV align=left><FONT face=Arial size=2>Pol Maresma /</FONT></DIV>
<DIV align=left><FONT face=Arial size=2>PolNetwork.com / Serveis
d'Internet</FONT></DIV>
<DIV align=left><FONT face=Arial size=2>msn: marolijo</FONT></DIV>
<DIV> </DIV></BODY></HTML>