[Solved]Help in Image field

More
11 years 10 months ago #38656 by ggppdk
Replied by ggppdk on topic [Solved]Help in Image field
Hello,

$field->{prop} is an array and you are assigning it as if it if of scalar type (non-array)

it is array because it contains the images

look at the bottom of the function there is an implode statement that convert the array to a string maybe you want to add code there


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

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

More
11 years 10 months ago #38658 by brandonking
I have tried like below.
Code:
$field->{$prop} = '<ul id="Gallery" >'. implode('', $field->{$prop}) . '</ul>';
But it didn't work..

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

More
11 years 10 months ago #38659 by ggppdk
Replied by ggppdk on topic [Solved]Help in Image field
Please ,

enable error_reporting in the site too

also you can implode there,

remember the implode is called again at the end of the function


please place your code after the implode at the end of the function, replace:
Code:
$field->{$prop} = implode($separatorf, $field->{$prop}); $field->{$prop} = $opentag . $field->{$prop} . $closetag;
with
Code:
$field->{$prop} = implode($separatorf, $field->{$prop}); // YOUR CODE


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

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

More
11 years 10 months ago #38662 by brandonking
Sorry, didn't know that I can not use implode twice!! :oops:
As soon as I finish, I will PM you my work.

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

More
11 years 10 months ago #38663 by ggppdk
Replied by ggppdk on topic [Solved]Help in Image field
yes,
implode takes an array as second parameter , so second implode will have a problem since the $field->prop will no longer be an array

i suggest that you enable error reporting in Joomla global configuration to get these warnings


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.324 seconds
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Save