Jump to content

Community

(NE) Topic Summary - Images Controls


Nathan Explosion
 Share

Recommended Posts

  • 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 by Nathan Explosion
Link to comment
Share on other sites

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 by Nathan Explosion
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...

Important Information

We use technologies, such as cookies, to customise content and advertising, to provide social media features and to analyse traffic to the site. We also share information about your use of our site with our trusted social media, advertising and analytics partners. See more about cookies and our Privacy Policy