Jump to content

Welcome to DevFuse Forums

Sign In  Log in with Facebook

Create Account
Welcome to DevFuse Forums, like most online communities you must register to view or post in our community, but don't worry this is a simple free process that requires minimal information for you to signup. Be apart of DevFuse Forums by signing in or creating an account.
  • Start new topics and reply to others
  • Subscribe to topics and forums to get email updates
  • Get your own profile page and make new friends
  • Send personal messages to other members.
Guest Message by DevFuse

(View All Products)Featured Products

  • Donations

    Help fund your forum with donations, setup goals and track member donations. Offer rewards for members donating.
  • Timeslips

    Have your members submit their race times and share with others.
  • Videos

    Allows your members to submit their own videos for community viewing. Support is included for all the major video sites.
  • Forms

    Build your own forms for your members without coding experience. Support included for pm, email and topics.
  • Collections

    Build a community database of items for your members. Full features custom fields included.


[IPS] (MT)Gallery(4.x/5.x) Random Image Button

This topic has been archived. This means that you cannot reply to this topic.
No replies to this topic

#1 News Bot

News Bot

    Dedicated Member

  • Members
  • PipPipPipPipPip
  • 1,909 posts
  • IP.Board Version:N/A

Posted 28 August 2012 - 06:27 AM

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

View Resource