Liam Siltala
New member
Can anyone adjust this code to give a placeholder or "if no image exists". I know HTML but using Sobi 2 plugin has php which I know nothing about.
<?php if ( $fieldsObjects ['field_paid_field'] -> data )
{
echo $ico;
}
elseif ($mySobi->icon)
{
echo "<img src='images/ com_sobi2/clients /$mySobi -> icon'>";
}
?>
There are obvious spaces in the code to show all.
Here is what I want:
http://www.mysolarquotes.com.au/images/prob_1.jpg
Here is what I need:
http://www.mysolarquotes.com.au/images/prob_2.jpg
Should be:
Here is what I have:
http://www.mysolarquotes.com.au/images/prob_1.jpg
Here is what I need:
http://www.mysolarquotes.com.au/images/prob_2.jpg
<?php if ( $fieldsObjects ['field_paid_field'] -> data )
{
echo $ico;
}
elseif ($mySobi->icon)
{
echo "<img src='images/ com_sobi2/clients /$mySobi -> icon'>";
}
?>
There are obvious spaces in the code to show all.
Here is what I want:
http://www.mysolarquotes.com.au/images/prob_1.jpg
Here is what I need:
http://www.mysolarquotes.com.au/images/prob_2.jpg
Should be:
Here is what I have:
http://www.mysolarquotes.com.au/images/prob_1.jpg
Here is what I need:
http://www.mysolarquotes.com.au/images/prob_2.jpg