MelB Posted November 19, 2022 at 12:02 PM Share Posted November 19, 2022 at 12:02 PM Hi, I have some custom fields (banner type) and instead of text links I want to display them as images. The closes I have got to displaying the image is with this code: $photoLink = cmsFramework::route("index.php?option=com_easysocial&view=photo=s&type=user&uid={$listing['User']['user_id']}&Itemid=4964"); echo "<a href='{$photoLink}'><img src=\media\hotlinks\"homelogo.jpg\" /></a>"; This link works but it doesn't display the actual image - just the missing image placeholder. I have followed the instructions here: https://www.jreviews.com/docs/custom-fields#change-anchor-text-for-website-field and also checked out some past posts on here but cannot get my code to work correctly. I have switched to using the new webp in Jreviews would this be a reason the image isn't showing? I am on Joomla 4, Latest Jreviews and php 8.1 Kind regards Link to comment
Alejandro Posted November 19, 2022 at 12:57 PM Share Posted November 19, 2022 at 12:57 PM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
MelB Posted November 19, 2022 at 01:55 PM Author Share Posted November 19, 2022 at 01:55 PM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
MelB Posted November 19, 2022 at 03:09 PM Author Share Posted November 19, 2022 at 03:09 PM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
Alejandro Posted November 19, 2022 at 03:30 PM Share Posted November 19, 2022 at 03:30 PM (edited) This section is only visible with a valid subscription. If you have a valid subscription, please login. Edited November 19, 2022 at 08:36 PM by Alejandro fixed return line Link to comment
MelB Posted November 19, 2022 at 03:46 PM Author Share Posted November 19, 2022 at 03:46 PM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
Alejandro Posted November 19, 2022 at 08:36 PM Share Posted November 19, 2022 at 08:36 PM This section is only visible with a valid subscription. If you have a valid subscription, please login. MelB 1 Link to comment
MelB Posted November 24, 2022 at 07:29 PM Author Share Posted November 24, 2022 at 07:29 PM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
Recommended Posts