This topic is locked

Formating the image size in PHPRunner 3.0 (113)

3/23/2006 8:44:53 PM
PHPRunner General questions
K
ke5rs author

Hello great PHP Programmers

I have to say that PHPRunner is great. I cannot seem to stop playing with it and adding more & more features to my web site.

Just recently adding an option for users to add there image, this part works great but now I would like to put a limit on the height & width of the image. The option in the 'View Format' in step 7 does not seem to be working for me. I put a limit of 64 X 64 and the image comes in full size.

Is there something that I am doing wrong. I am still a newbe here too.

Thank you
John

Sergey Kornilov admin 3/24/2006

John,
limit on image height and width are avalible on the LIST page only.

It make LIST page more accurate.

But on the View page you can see full information with pictires in full size.

K
ke5rs author 3/24/2006

Hello great PHP Programmers

I have to say that PHPRunner is great. I cannot seem to stop playing with it and adding more & more features to my web site.

Just recently adding an option for users to add there image, this part works great but now I would like to put a limit on the height & width of the image. The option in the 'View Format' in step 7 does not seem to be working for me. I put a limit of 64 X 64 and the image comes in full size.

Is there something that I am doing wrong. I am still a newbe here too.

Thank you
John


Hello Admin

For my application, I would like to limit the image size on the 'View' pages. Can I modify the template or steal the php / html code from the 'List' pages and embed it into the 'View' pages? I will try the template first then look at the generated final 'View' page...

Again thank you

John

Sergey Kornilov admin 3/24/2006

John,
open ..._view.php file and replace all

$disp='<img border=0 src="TableName_imager.php?'.$iquery.'">';



with

$disp='<img width=64 height=64 border=0 src="TableName_imager.php?'.$iquery.'">';



where TableName is your current table name.

K
ke5rs author 3/24/2006

Yep. Thanks.

That is what I was going to look for. I am slowly picking some of this stuff up.

Thanks a bunch Sergey