Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

Images - Not supported 13 Jan 2012 06:22 #960

  • hvus
  • hvus's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 2
  • Thank you received: 0
Sorry if this is a wrong Category. I need to ask if this generated code is ok..

<?php echo JDom::_('html.fly.file', array(
'dataKey' => 'my_file',
'dataObject' => $row,
'width' => '200px',
'height' => '200px',
'attrs' => array('format:jpg'),
'indirect' => true,
'root' => '/images/flags/'
));

Because it shows on the browser as not supported.

Thank you!

hvus

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

Images - Not supported 13 Jan 2012 10:48 #964

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
width and height doesn't need 'px' at the end, but it should work too.

root => better to use markers [DIR_xxxx]

You can add markers in the classes/file.php
Or you can change the default path in your generated component's properties.


Are you sure to reformat thumb in JPG ? It is not the best.


NOT SUPPORTED ?
If the image is not supported, it is because you changed the thumb size.
In order to protect agaist malicious scripts, you must add in the classes/image.php, your new size : '200x200'
You change it in a constant at the top of the class file.

That's all.


Hope it helps.
Coding is now a piece of cake

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

  • Page:
  • 1
Time to create page: 0.077 seconds

Although I found this tool some time ago I just started learning experimenting and building this first component on Monday and now on Thursday afternoon it's already online. Although I already had a working version done with another tool this is much easier to build and at the end you have the freedom to own your own component. Once you know how to use Cook you will boost your productivity as the learning curve is really moderate compared to many other tools.
Giori (Forum)

Get Started