Author Topic: Portal block recent image attachment link to post  (Read 307 times)

0 Members and 1 Guest are viewing this topic.

WestwegoManTopic starter

  • Administrator
  • Pirogue Pusher
  • *****
  • Posts: 32
  • Age: 44
  • Location: Westwego, La.
    • View Profile
Portal block recent image attachment link to post
« on: Feb 21, 2017, 4:21 PM »
Want the images in the recent image attachments block in Simple Portal to link to the post instead of the actual larger attachment?

Find:
Code: [Select]
', $item['file']['image']['link'], 'Replace with:
Code: [Select]
<a href="' . $item['topic']['href'] . '">', $item['file']['image']['thumb'], '</a>

Want the images to be smaller? Use the below fix and set the size of 175 to what you want.
Find:
Code: [Select]
', $item['file']['image']['link'], 'Replace with:
Code: [Select]
<a href="' . $item['topic']['href'] . '">', str_replace('<img', '<img height="175"', $item['file']['image']['thumb']), '</a>
The postings on this site are my own and do not necessarily reflect the views of Jefferson Parish,
fellow employees, members of the public, suppliers or people working on behalf of the parish.