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