Welcome, Guest
Username: Password: Remember me
JO Social Auto Publish for ZOO

TOPIC: Picking the correct elements the right way

Picking the correct elements the right way 6 years 8 months ago #5812

Hello,
I used to tweek the code of the plugin to get my elements correctly but since the last update this doesn't work right. I can not get the ImagePro element to show the image in facebook.
The thing is that I use a "Product App" and ImagePro by Zoolanders.

My "article" configuration is attached and what I did, was changing this code:
$teaser_image = $post['elements']['cdce6654-4e01-4a7f-9ed6-0407709d904c']['file'];						
$image_ar = $post['elements']['c26feca6-b2d4-47eb-a74d-b067aaae5b90']['file'];
$count = count($post['elements']['2e3c9e69-1f9e-4647-8d13-4e88094d2790']);
for($i=0; $i<$count; $i++){
$text .= $post['elements']['2e3c9e69-1f9e-4647-8d13-4e88094d2790'][$i]['value'];
}


with this
$teaser_image = $post['elements']['f1ed25bc-aa4d-48c9-af0b-fd3ae24af1b6'][0]['file'];			
$image_ar = $post['elements']['f1ed25bc-aa4d-48c9-af0b-fd3ae24af1b6']['file'];
$count = count($post['elements']['09bc20e8-f86c-4b8b-8d50-a73fcdd19606']);
for($i=0; $i<$count; $i++){
$text .= $post['elements']['09bc20e8-f86c-4b8b-8d50-a73fcdd19606'][$i]['value'];
}
I didn't get the text to be shown (because the authors create a second instance of text to write and don't write in the first)
but, I got the ImagePro image to be shown correctly.

What is the correct code I have to put there so I get the Image (and if it's possible the text)

Thanks
Last Edit: 6 years 8 months ago by John Spirounis.
The administrator has disabled public write access.

Picking the correct elements the right way 6 years 8 months ago #5813

I attached the article.config, if it's not showing please let me know to upload it again.
The administrator has disabled public write access.

Picking the correct elements the right way 6 years 8 months ago #5814

I deleted everything and re-installed and it works without playing around with the code.
The administrator has disabled public write access.

Picking the correct elements the right way 6 years 8 months ago #5815

  • Super User
  • Super User's Avatar
  • OFFLINE
  • Administrator
  • Posts: 3519
  • Thank you received: 278
  • Karma: 65
Hi John.
Great. Thank you so much and have a nice day
Best regards
Bach Pham
The administrator has disabled public write access.
Time to create page: 0.139 seconds