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

A HUGE thank you for all the time and effort you have put into J-Cook it is a timesaver and a training tool all in one
Morgan Leecy - MCSE  

Get Started