View Full Version : sending image height/width when building template/page
wandrer
Tue 18th Apr '00, 8:37am
Does the forumdisplay.php program include the height/width of the images/icons when it displays the page ? It doesn't look like it does and that would speed up the display of the page a little...
James
Tue 18th Apr '00, 8:39am
Hello,
By default the page doesn't include the heights and widths in image tags, although it's quite possible to code this info manually in the templates.
All the best,
James
Menno
Tue 18th Apr '00, 2:59pm
yes, the templates will easily take care of that, np
Stallion
Wed 19th Apr '00, 10:09am
Please don't make all your customers measure the height and width of each and every image just to have a pre-set loading page. It could *easily* be done if you use the built in PHP command to get image width/height for images, and then applied that to all image tags. Run it through the interpreter, and insert the hardcoded values back into the templates.
Simple additions like this should be added into the shipping template for all orders.
John
Thu 20th Apr '00, 4:10am
That's a good idea with the 'interpreter' as you said. I'll note that down on my to do list :)
John
bira
Sat 17th Jun '00, 6:28pm
Is stallion's suggestion something that us php wanabes can implement ourselves, or is it something I should wait for to be added in a future version?
Stallion
Sun 18th Jun '00, 12:37am
Well, it could be done, if GD is installed on the server. Since my first posting, I discovered that the "built-in" commands are GD reliant, if I'm not mistaken.
Can anyone confirm?
bira
Sun 18th Jun '00, 12:43am
would be great if I had a clue what GD is :)
wandrer
Sun 18th Jun '00, 4:16am
Yes the commands are relying on GD being built into the system. To do GIF images, you need an older version of GD (1.2) as the newer versions do not have GIF support.
I think this is something that is best left until it is implimented in vBulletin.
John
Sun 18th Jun '00, 5:27am
Actually... the width / height function does not requite the GD library, so any server will be able to run it. Parsing through the templates is not something for the light hearted PHP developer - I will be working on this feature though.
John
bira
Sun 18th Jun '00, 10:45am
oh ok....
By the way, I hope you don't mind me asking questions all the time. Just that a month ago when I came here, I never as much as laid eyes on MySQL or a PHP script for that matter. And for the sheer time that I've spent here and browsed through the various vB scripts, I have learned so much that I'm pretty much sprinkling php scripts in my website pages every which way I can :o
Mike Sullivan
Sun 18th Jun '00, 11:29am
bira - I've been the same way, except I came from a Perl background, and PHP is quite similar to Perl. After I bought vB, I actually rewrote EVERY CGI script (that I wrote), except for one, to PHP, and then improved them :D
Menno
Sun 18th Jun '00, 11:22pm
I have the same thing :)
My site is a sheer collection of php now
vBulletin® v3.8.0 Alpha 1, Copyright ©2000-2008, Jelsoft Enterprises Ltd.