<DIV><FONT face=Arial>Hi Steve,</FONT></DIV>
<DIV><FONT face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial>Thanks for your reply. I tired to change it to the following:</FONT></DIV>
<DIV><FONT face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial><BR></FONT></DIV><FONT size=2>
<P><FONT face=Arial>function getUserDisplayName($number)</FONT></P>
<P><FONT face=Arial>{</FONT></P>
<P><FONT face=Arial>$fieldId = 19; </FONT></P>
<P><FONT face=Arial>$result = db_query("SELECT p.value FROM {profile_values} p WHERE p.fid = $fieldId AND p.uid = $number");</FONT></P>
<P><FONT face=Arial>while ($nameQuery = db_fetch_object($result)) {</FONT></P>
<P><FONT face=Arial>$displayName = $nameQuery;</FONT></P>
<P><FONT face=Arial>}</FONT></P>
<P><FONT face=Arial>return $displayName;</FONT></P>
<P><FONT face=Arial></FONT></P>
<P><FONT face=Arial>} </FONT></P>
<P><FONT face=Arial>/**</FONT></P>
<P><FONT face=Arial>* Implementation of hook_view().</FONT></P>
<P><FONT face=Arial>*/</FONT></P>
<P><FONT face=Arial>function blog_view($node, $teaser = FALSE, $page = FALSE) {</FONT></P>
<P><FONT face=Arial>if ($page) {</FONT></P>
<P><FONT face=Arial>// Breadcrumb navigation</FONT></P>
<P><FONT face=Arial>$breadcrumb[] = array('path' =&gt; 'blog', 'title' =&gt; t('Blogs'));</FONT></P>
<P><FONT face=Arial>$number = $node-&gt;uid;</FONT></P>
<P><FONT face=Arial>$breadcrumb[] = array('path' =&gt; 'blog/'. $node-&gt;uid, 'title' =&gt; t(getUserDisplayName($number) . "'s blog");</FONT></P>
<P><FONT face=Arial>$breadcrumb[] = array('path' =&gt; 'node/'. $node-&gt;nid);</FONT></P>
<P><FONT face=Arial>menu_set_location($breadcrumb);</FONT></P>
<P><FONT face=Arial>}</FONT></P>
<P><FONT face=Arial>return node_prepare($node, $teaser);</FONT></P>
<P><FONT face=Arial>}</FONT></P>
<DIV></FONT><FONT face=Arial>But it still isn't working.</FONT></DIV>
<DIV><FONT face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial>What am I doing wrong?</FONT></DIV>
<DIV><FONT face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial>Sarah</FONT><BR>----- Original Message -----<BR>From: Steve Edwards &lt;killshot91@comcast.net&gt;<BR>Date: Tuesday, December 11, 2007 12:35 pm<BR>Subject: Re: [support] changing the display of the breadcrumb trail in blog module<BR>To: support@drupal.org<BR><BR>&gt; Yes, you can use hook_view() (the code from the blog module is <BR>&gt; an implementation of hook_view).<BR>&gt; <BR>&gt; http://api.drupal.org/api/function/hook_view/5<BR>&gt; <BR>&gt; You just create the breadcrumb array the way it does below, <BR>&gt; replacing the appropriate element with the custom field <BR>&gt; data.&nbsp; I'm not <BR>&gt; sure if custom fields become part of the $user object, so you <BR>&gt; might have to query the database to get the field you <BR>&gt; want.&nbsp; For <BR>&gt; instance, if you were using the Profile module, you would need <BR>&gt; to query profile_fields and profile_values to get what you want <BR>&gt; and <BR>&gt; then replace the user name with the custom field in the <BR>&gt; $breadcrumb array.<BR>&gt; <BR>&gt; Steve<BR>&gt; <BR>&gt; <BR>&gt; Sarah.Vardy@student.griffith.edu.au wrote:<BR>&gt; &gt; Hi,<BR>&gt; &gt; <BR>&gt; &gt; I was wondering if it's possible to alter this function in the <BR>&gt; blog <BR>&gt; &gt; module, so that it displays a custom field from the user's <BR>&gt; profile <BR>&gt; &gt; instead of the user name of the user:<BR>&gt; &gt; <BR>&gt; &gt; |&lt;?php<BR>&gt; &gt; function blog_view($node, $teaser = FALSE, $page = FALSE) {<BR>&gt; &gt;&nbsp;&nbsp; if ($page) {<BR>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; // Breadcrumb navigation<BR>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; $breadcrumb[] = array('path' =&gt; <BR>&gt; 'blog', 'title' =&gt; t('Blogs'));<BR>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; $breadcrumb[] = array('path' =&gt; <BR>&gt; 'blog/'. $node-&gt;uid, 'title' =&gt; <BR>&gt; &gt; t("@name's blog", array('@name' =&gt; $node-&gt;profile_displayName)));<BR>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; $breadcrumb[] = array('path' =&gt; <BR>&gt; 'node/'. $node-&gt;nid);<BR>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; menu_set_location($breadcrumb);<BR>&gt; &gt;&nbsp;&nbsp; }<BR>&gt; &gt;&nbsp;&nbsp; return node_prepare($node, $teaser);<BR>&gt; &gt; }<BR>&gt; &gt; ?&gt;|<BR>&gt; &gt; <BR>&gt; &gt; Any help would be great!<BR>&gt; &gt; <BR>&gt; &gt; Sarah<BR>&gt; &gt; <BR>&gt; -- <BR>&gt; [ Drupal support list | http://lists.drupal.org/ ]<BR>&gt; </DIV>