Nathan Explosion Posted November 14, 2020 Posted November 14, 2020 (edited) Plugin which allows a little extra control over the 'Posted Images' section of the Topic Summary IPS default behaviour is to show up to the first 4 images posted in a topic Plugin allows you to increase or decrease the number of images shown (IPS default is 4 images total) randomise the images which are displayed Pending approval at this time Edited November 14, 2020 by Nathan Explosion crmarks 1
Nathan Explosion Posted November 16, 2020 Author Posted November 16, 2020 (edited) Plugin has been approved - the next version will include this setting to only show images from posts which have had reactions, or are on popular days: Edited November 16, 2020 by Nathan Explosion Updated screenshot and description of setting crmarks 1
jair101 Posted November 16, 2020 Posted November 16, 2020 Will there be any performance issues if we enable the random setting on a topic with thousands of images?
Nathan Explosion Posted November 16, 2020 Author Posted November 16, 2020 (edited) 5 minutes ago, jair101 said: Will there be any performance issues if we enable the random setting on a topic with thousands of images? For reference, the Topic Summary itself fetches an array containing ALL the information about the images in a topic (not the images themselves, just the information about them) and then they slice the top 4 (the first 4) out of that array to then process for display. I randomise the array that they initially fetch, and I've written it in a way that shouldn't cause any major issues (you can see the method I've used here) - however I haven't tested with thousands of images (just a few hundred, at this time). Keep in mind: if the number of images to display is increased from the default 4, then obviously that increases the content that then has to be displayed in the browser. Edited November 16, 2020 by Nathan Explosion crmarks and jair101 2
Nathan Explosion Posted November 18, 2020 Author Posted November 18, 2020 (edited) What's new in version 1.0.1? Added setting to control which posts to check for images (see screenshot) Edited November 18, 2020 by Nathan Explosion crmarks 1
Recommended Posts