Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted November 14, 20204 yr 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, 20204 yr by Nathan Explosion
November 16, 20204 yr Author 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, 20204 yr by Nathan Explosion Updated screenshot and description of setting
November 16, 20204 yr Will there be any performance issues if we enable the random setting on a topic with thousands of images?
November 16, 20204 yr Author 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, 20204 yr by Nathan Explosion
November 18, 20204 yr Author What's new in version 1.0.1? Added setting to control which posts to check for images (see screenshot) Edited November 18, 20204 yr by Nathan Explosion