Jump to content

Gallery(4.x/5.x) Random Image Button

Nuclear General

Recommended Posts


File Name: Gallery(4.x/5.x) Random Image Button

File Submitter: Nuclear General

File Submitted: 28 Aug 2012

File Category: User and Social Engagement

This fun hook simply adds a new tab to your navbar. Click it to go to a Random Gallery Image you can view.
Respects All Gallery Permissions. Uses Gallery API and backwards-compatible code to generate a random image to be redirected to at the visited link.
If, by RAND chance, the viewable result is the image viewed when clicking the link, it will try again, this time using the same API to pull 2 results and give the first one not the image you were at.
Tested against IP.Gallery 4.1 and 5.0.0

here to download this file

Link to comment
Share on other sites

LOL you beat me to it. I was going to do a

Random <contenttype>

for everything in the suite, guess I'll just forget doing the Gallery one ;)

Still might wish to look :P I still don't see the point of cluttering up the section files to need removal later.

I think it would be nice to create a dropdown menu (like IPS Client Resource) and list the links in there, according to the apps you got installed.


Wouldn't take much to do really, a bit of js gathering up the existing 'random' navigation links on the page and stick them in a new ipsMenu.
nav_gallery_random being this one's id.
Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...