Jump to content

I have no idea


Baracudda

Recommended Posts

Is there anything wrong with this code??.. considering all links are corect that is.

I'm getting an error that reads

[!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]Warning: getimagesize(http://): failed to open stream: Unknown error: 0 in /home/[b](FTP Info is here usually)[/b]/public_html/blocks/block-Whos_Online_Scroll.php on line 216[/quote]



[!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]// ImageSize resizes the avatar to fit in the block.
function ImageSize($image, $limit){
if ($image == "") $image = "blank.gif";
if (eregi("http://", $image)){
$image = str_replace(" ", "%20", $image);
} else {
$image = "modules/Forums/images/avatars/" . $image;
}
$size = getimagesize($image);
If (($limit < $size["0"]) or ($limit < $size["1"])){
$tenpw = $size["0"] * 0.10;
$tenph = $size["1"] * 0.10;
while ($limit < $size["0"]){
$size["0"] = $size["0"] - $tenpw;
$size["1"] = $size["1"] - $tenph;
}
while ($limit < $size["1"]) {
$size["0"] = $size["0"] - $tenpw;
$size["1"] = $size["1"] - $tenph;
}
$return = "width=\"".$size["0"]."\" height=\"".$size["1"]."\"";
} else {
$return = $size["3"];[/quote]

I've tried everything I'm aware of.. so I'm thinking the codes just wrong... maybe even just a simple typo somewhere while editing??

HELP??.. PLEASE??
Link to comment
Share on other sites

My buddie and I set this up.. one did all the directories.. so.. I would expect them to be local.. but I'll ask him.. I guess thats the issue here.. I apreciate your information and experience!

-----

Edit*

i think i see the isue here.. thats for a member list with avatar. and the Ave is linked off server.. maybe thats the issue.. it was written for local and it's linked to a URL. Hhmmmmmmm....
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.