Page 1 of 1

Card object problem

Posted: Wed Sep 09, 2020 12:24 pm
by Humberto
Hello to everybody,

I really donĀ“t know where this question belongs, but i hope it's here :D

I've kinda of a problem with the Card object. If i insert a image and use php code in the scr of that image, when i publish the page the scr is allways changed to someting like <img id="BootstrapCard6-card-item0" src="images/100x100.jpg" alt="" title=""> and not the php code.
In this case it should stay <img id="BootstrapCard6-card-item0" src="<?php echo $user_photo; ?>" alt="" title="">

I can later change this, but ot's very annoying.

Can some one help me please.

Thanks.

Re: Card object problem

Posted: Wed Sep 09, 2020 12:31 pm
by Pablo
The Card object currently does not support PHP code.
Due to internal calculations any invalid file names are replaced with a dummy image.

Re: Card object problem

Posted: Wed Sep 09, 2020 1:14 pm
by Humberto
Hi Pablo,

Thanks for the answer, but all the other items in card object work just fine, the only one that doesn't work is the image.

Here is the code that is created automatacly

<div id="BootstrapCard6-card-body">
<img id="BootstrapCard6-card-item0" src="images/100x100.jpg" alt="" title="">
<div id="BootstrapCard6-card-item1"><?php echo $nome; ?></div>
<div id="BootstrapCard6-card-item2"><?php echo $tipo; ?></div>
<hr id="BootstrapCard6-card-item3">
<div id="BootstrapCard6-card-item4"><?php echo $parceiro; ?></div>
<div id="BootstrapCard6-card-item5"><?php echo $email; ?></div>
<hr id="BootstrapCard6-card-item6">
<div id="BootstrapCard6-card-item7"><a href="./conf_edit_user.php?id=<?php echo $id_user; ?>" target="_parent">Editar</a></div>
<div id="BootstrapCard6-card-item8"><a href="./conf_delete_user.php?id=<?php echo $id_user; ?>" target="_parent">Eliminar</a></div>
</div>

Re: Card object problem

Posted: Wed Sep 09, 2020 1:21 pm
by Pablo
Sorry, this is by design. Any invalid filename will be replace with a dummy image.
I will try to add PHP support in a future update.

Re: Card object problem

Posted: Wed Sep 09, 2020 1:44 pm
by Humberto
Ok Pablo, thanks.

Re: Card object problem

Posted: Mon Sep 21, 2020 10:57 am
by Humberto
Hi Pablo,

Just installed the last version and i saw the "problem" with the card object solved.

I wish to thank you for listening your customers. As i told before a just love your software and will keep buying all versions because they just leave my jobs so much easier. Once again, thanks.

Best regards,
Humberto Rodrigues