Welcome, Guest
Username: Password: Remember me

TOPIC: [FIXED] unexpected T_OBJECT_OPERATOR with image upload

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

  • VeCrea
  • VeCrea's Avatar
  • Offline
  • Platinum Member
  • Absolute JCook fan
  • Posts: 473
  • Thank you received: 100
  • Karma: 30
/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
The administrator has disabled public write access.

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

  • VeCrea
  • VeCrea's Avatar
  • Offline
  • Platinum Member
  • Absolute JCook fan
  • Posts: 473
  • Thank you received: 100
  • Karma: 30
It's really about the pics getting displayed in a grid view
The administrator has disabled public write access.

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

  • VeCrea
  • VeCrea's Avatar
  • Offline
  • Platinum Member
  • Absolute JCook fan
  • Posts: 473
  • Thank you received: 100
  • Karma: 30
<?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
Last Edit: 09 Jun 2013 20:47 by VeCrea.
The administrator has disabled public write access.

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

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

I think.

Which PTL ?
Coding is now a piece of cake
The administrator has disabled public write access.

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

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
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 administrator has disabled public write access.
The following user(s) said Thank You: VeCrea
Time to create page: 0.060 seconds

Get Started