Skip to Content Skip to Menu

profilebook resize picture

  • babyfface
  • babyfface
  • OFFLINE
  • Posts: 6
  • Thanks: 0
  • Karma: -1
16 years 5 months ago #64637 by babyfface
profilebook resize picture was created by babyfface
i have a problem. i wanna resize probile book's pictures... administrator default thubmnail is 120 px
but i want profilbook picture is 50px





[code:1] //start a new row for the record
$return .= "\n\t<tr class=\"sectiontableentry$i\" style=\"margin-bottom:5px;\" >";
$pimg = "";
$returnFavor=null;
//check to see if the entry was submitted by a member
if($item->posterid!=0 && $item->posterid!="" && $item->posterid!=null && isset($item->username)) {

//make link to profile and format name according to cb config
$pname="<a href=\"".sefRelToAbs("index.php?option=com_comprofiler&amp;task=userProfile&amp;user=".$item->posterid)."\">".htmlspecialchars(getNameFormat($item->name,$item->username,$ueConfig))."</a>";

//get users avatar if they have one
// if (isset($item->avatar)) {
$pimg="".getFieldValue('image',$item->avatar,$item);
// }
//get users primary email address and display it according to CB config
$pEmail="<br />".getFieldValue('primaryemailaddress',$item->posteremail,$item);

if($pbEnableGesture && $isME) {
$returnFavor = "| <a href=\"".$this->_getAbsURLwithParam(array('user'=>$item->posterid,'showform'=>1))."\">"
._pb_ReturnFavor."</a>";
}

} else {
//entry was submitted by anonymous user just diplay entered data
$pname=htmlspecialchars($item->postername);
$pEmail="<br />".getFieldValue('emailaddress',$item->posteremail,$item);
}
//check to see if the location was entered to determine how to display it
if($pbUseLocation && $item->posterlocation!=null && $item->posterlocation!=""«») {
$pLocation = "<br />".htmlspecialchars($item->posterlocation);
} else $pLocation=null;
//check to see if the web address was entered to determine how to display it
if($pbUseWebAddress && $item->posterurl!=null && $item->posterurl!=""«») {
$URL ="<br />".getFieldValue('webaddress',$item->posterurl);
} else $URL=null;

//if the profile visitor is the profile owner and the ip address of the poster is not null then show the ip address with link to lookup site
$ip="";
if($iAmModerator && $item->posterip!=""«») {
$ips = explode(",",$item->posterip);
foreach ($ips as $poster_proxy_ip) {
$ip .= "";
}
}

//display information about the poster
$return .= "\n\t\t<td style=\"overflow:hidden;\" valign=\"top\">".$pimg.$height."</td>";
$return .= "\n\t\t<td style=\"overflow:hidden;\" valign=\"top\">";[/code:1]

Please Log in or Create an account to join the conversation.

  • babyfface
  • babyfface
  • OFFLINE
  • Posts: 6
  • Thanks: 0
  • Karma: -1
16 years 5 months ago #65264 by babyfface
Replied by babyfface on topic Re:profilebook resize picture
you dont know anything!!!

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum