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.110 seconds

Awards for the best Joomla app. This product is gonna win an award for this amazing job. Cook Self Service is the the best application from all over the Joomla universe ! It brings Joomla to a professional level really advanced for developers. It is a real fun to develop with it. The ACL part and security checks implementation are just... so much hours saved. I can now concentrate myself more on the design part and the creative works. Thank you so much. Guys I offer you all my congratulation ! Keep up the works because Joomla is needing it to increase the quality of extensions availables on the JED. I also learned a lot because I can see how to code at the proper place and I found all my answers reading the forum.
lack_hanson (JED)
          

Get Started