WestwegoMans' Forum
Computers, Websites & Forums => SMF Forum tips & tricks => Topic started by: WestwegoMan 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?
In Sources/PortalBlocks.php
Find:
', $item['file']['image']['link'], '
Replace with:
<a href="' . $item['topic']['href'] . '">', $item['file']['image']['thumb'], '</a>
Want the images to be smaller? Use the below fix instead and set the size of 175 to what you want.
Find:
', $item['file']['image']['link'], '
Replace with:
<a href="' . $item['topic']['href'] . '">', str_replace('<img', '<img height="175"', $item['file']['image']['thumb']), '</a>