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

TOPIC:

[FIXED] unexpected T_OBJECT_OPERATOR with image upload 09 Jun 2013 20:18 #7401

  • VeCrea
  • VeCrea's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
  • Absolute JCook fan
  • Posts: 473
  • Thank you received: 100
/tmpl/default_picturebrick.php on line 125
/tmpl/default_grid.php on line 102
both errors on two separate collection view
something with image uploader i think.
Project Covers, all templates

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

Re: unexpected T_OBJECT_OPERATOR with image upload 09 Jun 2013 20:32 #7406

  • VeCrea
  • VeCrea's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
  • Absolute JCook fan
  • Posts: 473
  • Thank you received: 100
It's really about the pics getting displayed in a grid view

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

Re: unexpected T_OBJECT_OPERATOR with image upload 09 Jun 2013 20:40 #7407

  • VeCrea
  • VeCrea's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
  • Absolute JCook fan
  • Posts: 473
  • Thank you received: 100
<?php echo JDom::_('html.fly.file', array(
						'attrs' => array('format:png'),
						'cid' => ->id,
						'dataKey' => 'picture',
						'dataObject' => $row,
						'height' => 'auto',
						'indirect' => true,
						'root' => '[DIR_PICTURES_PICTURE]',
						'view' => 'picture',
						'width' => 'auto'
					));?>
'cid' => ->id,
baaaaaaaaddd ;)
'cid' => 'id',
gooooooood

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

Last edit: by VeCrea.

Re: unexpected T_OBJECT_OPERATOR with image upload 10 Jun 2013 04:47 #7408

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
should be
$row->id

I think.

Which PTL ?
Coding is now a piece of cake

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

Re: unexpected T_OBJECT_OPERATOR with image upload 10 Jun 2013 05:54 #7409

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
Fixed.

I remember these var are still not used :

- cid
- view

You can remove them litterally from the parameters.

Note :
These vars should be instancied when the image is accessed by item ID (through DB research). But this feature is not ready yet, so do not use at all.

If you download again, you can see I have removed those fields now.
Coding is now a piece of cake
The following user(s) said Thank You: VeCrea

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

  • Page:
  • 1
Time to create page: 0.063 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