Support Thread

Gallery Suggestion

Gallery Suggestion — APG vNext Guide

Gallery Suggestion — a feature discussion or integration topic from the APG vNext community forum.

APG vNext Integration Capabilities

  • Authentication: ASP.NET Membership, Active Directory/LDAP, OAuth (Facebook, Twitter, Google)
  • Email: Configurable SMTP, HTML templates, digest notifications, bounce handling
  • Mobile: Responsive design + official Tapatalk integration from v5.5+
  • Search: Built-in full-text search powered by SQL Server Full-Text Indexing
  • Analytics: Google Analytics, Adsense, and third-party widget support
  • CDN: Static asset CDN support configurable via admin panel

Browse the full list at Features Overview or ask in the support forum.

Adding a Photo Gallery to APG vNext

APG vNext doesn't include a standalone gallery module by default, but member-uploaded images are accessible via the forum's media library. Several approaches can add gallery functionality to your community: using the blog/article system to host photo posts, integrating a lightweight JavaScript gallery library, or using the image scroller widget as a featured gallery on the homepage.

Option 1: Image Posts via Blog Module

Use the APG vNext blog module as a gallery. Create blog posts with an image as the featured image and minimal text. Organise gallery posts into a "Gallery" blog category. The blog listing becomes a visual grid:

<!-- web.config: enable image-first blog layout -->
<add key="APG.Blog.GalleryCategory"  value="Gallery" />
<add key="APG.Blog.GalleryGridCols"  value="3" />

Option 2: Lightbox for Forum Post Images

Add a JavaScript lightbox to make inline post images clickable for full-size view:

<!-- Add to skin footer template -->
<script src="/assets/js/lightbox.min.js"></script>
<link rel="stylesheet" href="/assets/css/lightbox.min.css" />

<script>
// Auto-activate lightbox on all post images
document.querySelectorAll('.apg-post-body img').forEach(img => {
  const a = document.createElement('a');
  a.href = img.src;
  a.dataset.lightbox = 'post-gallery';
  img.parentNode.insertBefore(a, img);
  a.appendChild(img);
});
</script>

Option 3: Dedicated Gallery Thread

Pin a thread in a "Gallery" forum where members post images. The thread view's image display handles everything automatically - APG vNext renders inline images with automatic lightbox in 5.x.

Image Gallery Implementation in APG vNext 5.x

APG vNext 5.x includes a built-in image gallery widget that can be embedded in any thread or Knowledge Base article. The gallery widget displays a grid of thumbnails that expand to full-size images in a lightbox overlay when clicked. Configure the gallery widget in the post editor by clicking the Gallery button in the toolbar and selecting images from the attachment library. Gallery columns, thumbnail size, and spacing are configurable per-gallery from the widget settings panel. For community sections that focus heavily on visual content (photography clubs, design showcases, product galleries), create dedicated forum categories with the gallery widget configured as a default component in new thread templates so members always post images in gallery format rather than as individual inline images.

Moderation of Gallery Content

Image galleries require additional moderation attention because visual content can violate community guidelines in ways that text content does not. APG vNext includes AI-powered image moderation integration (via Azure Content Moderator or similar services) that automatically flags uploaded images containing adult content or graphic violence before they are displayed. Configure image moderation in Admin Panel → Moderation → Image Moderation. Flagged images are held in a moderation queue and not displayed until reviewed and approved. For communities with a strict content policy, enable the pre-moderation setting so that all images must be approved before display, not just flagged ones.

Gallery Performance and Lazy Loading

Image galleries with many photos can significantly impact page load performance if all images are loaded on page initialisation. APG vNext's gallery widget uses lazy loading: only the images visible in the initial viewport are loaded immediately; additional images load as the member scrolls down. Configure lazy loading in Admin Panel → Blog/Articles → Gallery Widget → Lazy Load. The lazy loading implementation uses the native browser loading="lazy" attribute for images below the fold, with a fallback IntersectionObserver for browsers that don't support the native attribute. Thumbnail images (the small grid view) are always lazy-loaded; the full-size lightbox image loads only when the member clicks a thumbnail, reducing the total data transferred for members who browse the gallery without viewing every image in full.

Enabling Member-Created Photo Albums

APG vNext's gallery feature can be extended to support member-created photo albums — collections of related images that a member curates under a common title. Member albums are separate from thread-embedded galleries: they appear on the member's profile page and are accessible through a community-wide photo album directory. Enable member photo albums in Admin Panel → Members → Photo Albums. Members can create albums, upload images, add captions, and control album visibility (public, members only, or private). Photo albums are a strong community engagement feature for creative communities — photography clubs, art communities, and maker/DIY forums benefit significantly from member album features because they encourage members to maintain an ongoing presence on the forum beyond individual thread participation.

SEO for Forum Image Galleries

Image galleries in APG vNext threads can drive significant image search traffic when properly optimised. Each gallery image should have a descriptive alt text set by the posting member — APG vNext prompts for alt text in the gallery image upload dialog and displays a warning if the alt text is left empty. Configure the image gallery to generate structured data (ImageObject schema) for each image in the gallery, making them eligible to appear in Google Image Search rich results with attribution to the forum thread. Enable ImageObject structured data in Admin Panel → SEO → Structured Data → Images.

Related Resources


Looking for more help? Browse the support forum or check the Knowledge Base.