Welcome Guest [Log In] [Register]
Hello There,

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community you'll be able to access member-only sections and use many member-only features such as customizing your profile, sending personal messages, voting in polls, and a variety of different services. Registration is simple, fast, and completely free.

Join our community!

If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
  • Pages:
  • 1
  • 2
My website; //Short and Simple
Topic Started: Feb 17 2009, 04:24 PM (736 Views)
Ryan
Member Avatar
oh wow
aznkidzx
Mar 2 2009, 11:59 AM
Viral
Feb 18 2009, 09:09 AM
Just a suggestion, in your gallery page you have resized the images to something like 100x100 pixels each. You should be resizing them proportionally. A very simple solution to this you can find below, but if you want it to be a bit more complicated, just google it. You know some PHP, so hopefully this shouldn't be too hard to understand:

Code: HTML
 
list($width,$height) = resize_image($original_width,$original_height,$max_width,$max_height);

Code: HTML
 
function resize_image($o_w,$o_h,$m_w,$m_h){
$n_w = ($o_w > $m_w) ? $m_w : $o_w;
$n2_h = ($o_w > $m_w) ? $o_h * ($n_w/$o_w) : $o_h;
$n_h = ($n2_h > $m_h) ? $m_h : $n2_h;
return array($n_w,$n_h);
}

<?php include="link.php" ?>
<?php
function resize_image($o_w,$o_h,$m_w,$m_h){
$n_w = ($o_w > $m_w) ? $m_w : $o_w;
$n2_h = ($o_w > $m_w) ? $o_h * ($n_w/$o_w) : $o_h;
$n_h = ($n2_h > $m_h) ? $m_h : $n2_h;
return array($n_w,$n_h);
}
?>

Like that?
I don't think putting an = symbol inbetween the include and the double quotes would work, this should suffice:
Code:
 

include("link.php");
I can only think right when I'm stoned...
Quote Post
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Digital and Web Design · Next Topic »
Add Reply
  • Pages:
  • 1
  • 2