Hi , <br><br>I have enabled the <b>who's new </b>block ,<br><br>presently this block display list of user , So i like to add the userid with username ,<br><br>so i did some changes in the template.php,,,,<br><br>I garland i got the expected out , <br>
<br><br><br>Now Am using the blumarine theme, <br><br>In this folder there is no <b>template.php</b> file,<br><br>So i create the template.php inside the bluemarine folder ,<br><br>Then i pasted the below function ,<br><br>
<br><br><br>function _phptemplate_username($object) {<br><br> if ($object->uid && $object->name) {<br> // Shorten the name when it is too long or it will break many tables.<br> if (drupal_strlen($object->name) > 20) {<br>
$name = drupal_substr($object->name, 0, 15) .'...';<br> }<br> else {<br> $name = $object->name;<br> }<br><br> if (user_access('access user profiles')) {<br> $output = l($name, 'user/'. $object->uid, array('attributes' => array('title' => t('View user profile.'))));<br>
}<br> else {<br> $output = check_plain($name);<br> }<br> }<br> else if ($object->name) {<br> // Sometimes modules display content composed by people who are<br> // not registered members of the site (e.g. mailing list or news<br>
// aggregator modules). This clause enables modules to display<br> // the true author of the content.<br> if (!empty($object->homepage)) {<br> $output = l($object->name, $object->homepage, array('attributes' => array('rel' => 'nofollow')));<br>
}<br> else {<br> $output = check_plain($object->name);<br> }<br><br> $output .= ' ('. t('not verified') .')';<br> }<br> else {<br> $output = check_plain(variable_get('anonymous', t('Anonymous')));<br>
}<br> <br> $output .= ' ('. $object->uid .')';<br><br> return $output;<br>}<br><br><br>And also i tried something like<br><br>function phptemplate_username($object) {<br><br> // block of code changes<br>
}<br><br><br><br><br><br>