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.

Photo

[IPS] Recent Gallery Images Block Template in IP.Content


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 12 February 2014 - 11:55 AM

This is for people who've tried other solutions in putting a feed to retrieve gallery images only to have it load a in-browser resized full image not particularly do anything else.
 
I asked for help on the community on the 4th of February, and due to my lack of experience with IPS Code it's taken me this long to make it happen. But I can't take, and must not take credit for other peoples work and I won't. It's been a case of playing around with the code to get the desired effect, trial and error. But I eventually got it working on my site and figured if someone came across the same problem I did then they could download it here. I'm open to improving this block, and even trying to code it to IP.Suite 4 standards, I could really do with an IPS Code for Dummy's book sad.png
 

This will load the Thumbnails of the pictures you seek (100 x 100) and it actually loads the thumbnail files instead of the full file and scaling it down to 100 x 100 or 50 x 50. Currently it's a no frills block.

- But it does wrap using IP.Board's Category Blocks. happy.png

 
Instructions:
1) Import the Block Template: ACP -> Apps -> Content -> Templates -> Block Templates
2) Edit the Gallery Feed block: ACP -> Apps -> Content -> Blocks -> The Gallery Feed Block -> Step (5) Templates to use the newly imported Block Template. 
 
Disclaimer:
I have no idea what I'm even doing. But it does work. At least it does on my installation. There is no demo or screen shots because my site is an adult one, sorry. It's free and that's how I'd like this to remain. I don't have a copyright field in there. No copyright infringement was intended. 
 
Credits:
This is a lot like the Recent Gallery Images hook ["appGallLatestHook"] (Which I've based this off of) but I've also taken advice from this thread. Thank you Rimi and Gearnik your thread really helped me out. Big thanks to AndyF and other IPS Staff for helping me get this onto the Marketplace.

View Resource