Hi there,
I have replaced the search results icons that appear on a users profile page with some icons of my own. Free free to grab these icons by right-clicking, and then replacing the corresponding file for each (view source of image to see where that is).
http://myottawa.ca/userinfo.php?uid=1One tiny thing is bothering me...the icons are not totally aligned with the text...I believe the images need to be text aligned to the "absolute middle"... but how to do this?
In the file userinfo.php, I found this code at line 200:
// Hack by marcan : only return results of modules for which user has access permission
if ( $gperm_handler->checkRight('module_read', $mid, $groups)) {
$module =& $module_handler->get($mid);
$results =& $module->search('', '', 5, 0, $thisUser->getVar('uid'));
$count = count($results);
if (is_array($results) && $count > 0) {
for ($i = 0; $i < $count; $i++) {
if (isset($results[$i]['image']) && $results[$i]['image'] != '') {
$results[$i]['image'] = 'modules/'.$module->getVar('dirname').'/'.$results[$i]['image'];
} else {
$results[$i]['image'] = 'images/icons/posticon2.gif';
}
if (!preg_match("/^http[s]*:\/\//i", $results[$i]['link'])) {
$results[$i]['link'] = "modules/".$module->getVar('dirname')."/".$results[$i]['link'];
}
I believe that it is somewhere in here that I have to give this property to an image...but where? This is what a regular image aligned this way looks like:
Where do I put the align="absmiddle" in this case then?
Thanks for your help!
Jeff