[TylerAustin] Homepage and Portal - XF2

[TylerAustin] Homepage and Portal - XF2 2.2.5

No permission to buy ($15.00)
Thank you for your unwavering support and assistance in further enhancing this add-on. This version of the XF2 Add-on includes several bug fixes.

Full Summary

Bug Fixes:

  • Cached featured trailer file lookups so homepage render does not repeatedly hit the filesystem for URL, content type, and autoplay checks.
  • Moved expensive trailer option/getter work in xc_homepage_macros so it only runs when a trailer URL actually exists.
  • Added a startup guard in carrousel.js/carrousel.min.js so slider initialization is skipped on pages that only need infinite-scroll behavior.
  • Fixed trailer upload validation: trailers now only save for content that is featured to the homepage big slider.
  • Fixed edit cleanup: if a feature is moved away from the big slider/homepage state, stale trailer files are deleted.
  • Added a real ta_homepage_featured_trailer_exists getter so the edit overlay can show the delete checkbox even when the current target would not render the trailer.
  • Cached default featured image URL resolution in DefaultFeaturedImage.php.
  • Made featured image fallback resolution lazy and cached repeated abstracted image path checks in FeaturedContent.php.
  • Reduced repeated featured-card getter calls in templates.xml.
  • Scoped homepage startup link normalization to homepage blocks only in carrousel.js, with the same change in carrousel.min.js.
  • Home.php now only asks for latest-content totals when pagination or infinite scroll needs them, and reuses the homepage repository instead of resolving it twice.
  • Repository/Homepage.php now skips the trending-content query completely when no homepage source nodes/categories are configured, and skips thread/resource/media COUNT(*) queries when totals are not needed.
  • templates.xml now only loads carrousel.js when there are sliders or active infinite scrolling, so latest-content-only pages without infinite scroll avoid that extra script too.
Thank you for your unwavering support and assistance in further enhancing this add-on. This version of the XF2 Add-on includes several bug fixes. Full Summary New Features:
  • Added ACP upload support with WebP allowed.
  • Added Optimize uploaded default featured image option.
  • Added ability to upload video trailer up to. 30 seconds with a option to turn on or off from the adminCP
  • Added Disable Video Autoplay user preferences
  • Added Bypass media attachment permissions for homepage option
  • Added featured info block: tags/title/snippet plus the TV/movie rating/action panel moving from one side to the other.
  • Redesign the card layout for latest contents and trending contents
  • Added Show featured resource price / free labels
  • Added upload image button for Default featured image
  • Added new following style option
    • Latest and trending image fit option
    • Enable tall-portrait for latest contents sections option
  • Added Enable featured trailer videos feature
  • Added Autoplay featured trailer videos option
  • Added Featured trailer maximum upload size (MB) option
  • Added pause featured trailers on hover/focus option
  • Added Featured trailer preview length option (Default: 30 seconds)
  • Added Featured trailer preload behavior option
  • Added Show resource rating and price panel option
  • Added Show movie and TV rating/watchlist panel (required nick97 watchlist add-on)
  • Added Show media gallery rating/watch panel option
  • Added Show featured portal buttons option
  • Added video trailer preview button in add/edit featured contents overlay
Changes:
  • Converted Autoplay delay text box into dropdown menu
Bug Fixes:
  • Upload optimization now uses XF 2.3 image optimization when XF’s global Image optimization option is set to Optimize images.
  • Extended XF’s existing Optimize attachments rebuild job to also optimize uploaded Homepage default-image assets. No extra rebuild-cache entry was added.
  • Added an upgrade step for 2.2.4 to fix existing bad data/TylerAustin/Homepage/default.webp option values back to default.png.
  • Guarded slider image tags so an empty/missing default image does not render <img src="">.
  • Thread attachment image detection now skips non-image attachments before using the default image.
  • Fixed several issues compared to previous versions
  • Fixed default featured image option as its wasn’t working at all (thanks you to @Positivo for reporting this bug to me)
Updated Screenshots will be updated within few weeks
  • Like
Reactions: Positivo
Thank you for your consistent support and assistance in improving this add-on. This version of the XF2 Add-on addresses several bugs.

Full Changelog(s):
  • Fixed Hide pagination so pagination is consistently hidden via option while still available for infinite-scroll logic.
  • Fixed backend pagination/count issues that were breaking page math:
    • perPage now safely integer-based,
    • resource totals are now calculated,
    • zero totals are explicitly set when add-ons are disabled.
  • Fixed an unrelated but real options listener bug (if (...) ;) that could cause unexpected behavior in option filtering.
  • Fixed Homepage featured images were being saved to wrong paths (...jpg.jpg), while display expected ...jpg, so fallback behavior appeared broken.
  • Fixed save/delete path logic in:
    • Creator.php
    • Editor.php
  • Hardened fallback logic (missing cover/content image/handler image, missing stored files, legacy path support, webp support) in FeaturedContent.php.
  • Fixed trending filtering logic to correctly apply selected include options:
    • normalized selected ID lists
    • canonicalized content types (node -> thread, xfrm_resource -> resource, media -> xfmg_media)
    • filtered first, then applied limit, then loaded entities
    • Default “latest content” ordering now safely falls back to date-desc when sort settings are empty/invalid, instead of returning unsorted merged content.
  • Trending content now resolves handler type robustly (raw vs canonical content type), preventing misses when content types differ between XF/addon handlers.
  • Added macro compatibility aliases for resource/media content type variants (xfrm_resource, media) so rendering won’t break on type naming differences.
  • Fixed homepage feature checkbox handling so unchecked values are actually saved (using _xfCheckbox fallback), which prevents stale enabled/TH cover values from sticking.
  • Fixed merged latest-content pagination to prevent item loss across pages when combining multiple sources (threads/resources/media).
  • Fixed trending/latest section heading inline markup, canonical metadata URL, thread item rendering robustness, and added a content_item_node macro alias for compatibility.
  • Fixed trending content handler resolution to prefer canonical types first (important for included-node filtering and node -> thread behavior).
  • Fixed thread image fallback pathing and null-safe attachment access; thread items now fall back to your configured default featured image when no content image is found.
  • Hardened latest-content repository queries with compatibility-safe visibility filters (applyVisibilityChecks / forum filters when available), so restricted content is less likely to leak into homepage lists.
  • Hardened featured parent resolution so missing relations/content can’t break rendering.
  • Made thread/resource/media tag rows null-safe for missing Forum / Category relations in homepage macros.
  • Corrected XF service type hints in featured-content controller plugin to concrete classes (Creator / Editor) to avoid runtime return-type mismatches.
  • Corrected homepage controller featured repository type to the concrete XF repository class (XF\Repository\FeaturedContent) instead of a suffix variant that may not exist in all XF installs.
  • Corrected canonical URL target to the index route
  • Fixed pagination/infinite-scroll totals so page counts are now based on real merged content totals (prevents bad page counts and infinite-scroll dead behavior).
  • Fixed the trending/latest section inline heading markup (keeps valid markup and expected styling).
Thank you for your unwavering support and assistance in enhancing this add-on even further. This version of the XF2 Add-on includes several bug fixes and the addition of numerous new features.

Full Changelog:
  • Several additional bugs have been fixed.
  • The latest content is now displayed for a longer period, no longer disappearing after six months.
  • Admin can now sort the latest content section in various ways, including default, titles, submitted date, updated date, featured date, and additional options for ascending or descending order.
  • A checkbox has been added to allow users to use the cover image instead of attachments when adding or editing featured pages.
  • Admin can now adjust the image height and weight.
  • An option for infinite scrolling has been added, laying the groundwork for future releases.
  • Support for hiding pagination has been implemented.
Important Notes:
  • Some features, such as infinite scrolling, the ability to import data and settings from CTA Featured Threads & Portal - XF1 and [TH] Featured Content & Portal - XF2, and more, are either not fully implemented or partially implemented.
  • This version is fully ready for production use.
  • Use the cover image instead of attachments when adding or editing featured pages feature required [XB] Cover add-on to use this function

Attachments

  • infinite scrolling option.webp
    infinite scrolling option.webp
    8.3 KB · Views: 44
  • Image size.webp
    Image size.webp
    8.9 KB · Views: 52
  • Sort by option.webp
    Sort by option.webp
    4.9 KB · Views: 52
  • Use th cover checkbox image.webp
    Use th cover checkbox image.webp
    43.8 KB · Views: 42
  • pagination buttons.webp
    pagination buttons.webp
    47.1 KB · Views: 48
Thank you for your support and helping me to improve this add-ons even better than before. This version includes fixing several bugs add-on in the XF2 Add-on!

Full Changelog:
  • Fixed several bugs
  • Fixed (None) text not displaying in xfrm and xfmg
  • Added Default featured image (Not ready yet)
Thank you for your support and helping me to improve this add-ons even better than before. This version includes fixing few bugs in the XF2 Add-on!

Full Changelog:
  • Added SQUARE ICONS code to xc_homepage.less
  • Restored missing RESPONSIVE code to xc_homepage.less
Thank you for your support and helping me to improve this add-ons even better than before. This version includes fixing several bugs add-on in the XF2 Add-on!

Full Changelog:
  • Restored full-width image scaling in Featured Slider (no more cropping)
  • Fixed iOS/Safari rendering issues using object-fit and translateZ(0)
  • Fixed broken layout when tags wrapped or cards were different heights
  • Ensured square layout for all media types: Threads, XFRM, XFMG, Covers
  • Fixed Swiper arrows not showing due to overflow: hidden issues
  • Ensures Safari on iPad/iOS 18 doesn’t hide images
  • Added WebP Support
  • Updated slider-info overlay with transparent background and text glow
  • Added autoplay + delay support using style properties
  • Improved responsive behavior for both large and small sliders
  • Moved arrows outside bounding box with overflow: visible
  • Ensured author info and navigation buttons stay aligned inline
  • Grid layout now uses inline cards with consistent image behavior
  • Fixed avatar rendering in square (no more rounded avatars)
  • Aligned snippet truncation to 2 lines using -webkit-line-clamp
  • Ensured consistent layout height even when content varies in length
  • Author avatars and usernames aligned to bottom-right
  • Wrapped Latest Content layout with grid/list logic
  • Correctly implemented swiper-container and navigation structure
  • Added support for style properties:
    • xc_homepage_layoutLatestContent
    • xc_homepage_enableAutoplay
    • xc_homepage_autoPlaydelay
    • xc_homepage_showPaginations
    • xc_homepage_showNexPrevBtn
  • Rewrote .block-mostViewed and .block-latestContent.is-grid sections
  • Consolidated avatar rendering to use border-radius: 5px !important
  • Enforced image positioning and sizing for consistent results
  • Added full support for @xf-style palette variables (light/dark compatible)
  • Removed unused or duplicate rules and fixed nested selectors

Compatibility Testing:
  • Safari / Edge on iOS 17/18
  • iPadOS 18: Swiper arrows & image scaling resolved
  • Desktop: Edge, Firefox, Safari all verified
  • Dark & Light Styles (style variations in XF 2.3) supported
Known Compatibility:
  • Works with XFRM, XFMG, ThemeHouse/Covers, Snog/Movies/TV/Games/Music

Attachments

  • Trending contents sections.webp
    Trending contents sections.webp
    71.6 KB · Views: 102
  • slider.webp
    slider.webp
    77.8 KB · Views: 82
Thank you for your support and helping me to improve this add-ons even better than before. This version includes Integration with [XB] Game Thread Starter add-on in the XF2 Add-on!

Full Changelog:
  • Integration with [XB] Game Thread Starter add-on (Suggested by @80sDude)

Attachments

  • _attachments_games_tr-webp.710_.webp
    _attachments_games_tr-webp.710_.webp
    31.1 KB · Views: 116
Discount $30 off when you buying purchase this add-on license (January 26 2025 to September 1 2026)
  • Love
Reactions: Capitan Terror
Thank you for your support and helping me to improve this add-ons even better than before. This version includes bug fixes in some areas of the XF2 Add-on!

Full Changelog:
  • Changed the add-on name to [TylerAustin] Homepage and Portal
  • Fixed: TypeError: TylerAustin\Homepage\XF\Service\FeaturedContent\Editor::deleteImage(): Return value must be of type bool, none returned src/addons/TylerAustin/Homepage/XF/Service/FeaturedContent/Editor.php:100
  • Love
Reactions: Capitan Terror
Back
Top Bottom