Linux 软件免费装
Banner图

Activity Link Preview For BuddyPress

开发者 wbcomdesigns
vapvarun
更新时间 2026年7月29日 14:22
捐献地址: 去捐款
PHP版本: 8.0 及以上
WordPress版本: 7.0
版权: GPLv2 or later
版权网址: 版权信息

标签

buddypress social open graph activity link preview

下载

1.0.0 1.1.0 1.2.0 1.3.0 1.4.0 1.4.2 1.4.4 1.6.0 1.6.1 1.7.0 1.7.1 1.7.2 1.7.3 1.7.5

详情介绍:

Activity Link Preview For BuddyPress turns a plain URL into a rich card. When a member pastes a link into the activity composer or a comment, the plugin reads the page, pulls a title, description and image, and shows a preview card before they post. Saved previews render server-side, so they still display when JavaScript is off. It needs BuddyPress or BuddyBoss Platform active. There is no settings page: previews work as soon as you activate the plugin, and developers can change behaviour through filters. What you get Rich previews as members type Perfect For Premium Support Our support team can help with setup, theme compatibility and troubleshooting. Reach us through the links below. Documentation Translations Links Compatibility What's New in 1.7.4 A performance and security pass. Plugin assets and the Twitter and Facebook SDKs now load only in activity contexts instead of on every page. Failed link lookups are cached for 15 minutes and comment rendering never fetches remote URLs, so slow links no longer hold up a page. Blocked or invalid URLs now report the problem in the composer, scraped titles and descriptions are sanitized before saving, and short-URL resolution re-validates its redirect target against the SSRF guard.

安装:

Manual Installation
  1. Upload the buddypress-activity-link-preview folder to /wp-content/plugins/
  2. Activate the plugin through the 'Plugins' menu in WordPress
  3. Make sure BuddyPress or BuddyBoss Platform is active
  4. Paste a link into an activity post and the preview appears automatically
There is no settings page. The plugin works as soon as it is activated. Requirements

升级注意事项:

1.7.5 Corrective release. The 1.7.4 package published on WordPress.org contained the files of a different plugin. Update immediately if you installed or updated to 1.7.4 from WordPress.org. There are no functional changes since 1.7.4. 1.7.4 Performance and security update. Assets load only in activity contexts, failed lookups are cached, and short-URL resolution is hardened against SSRF. Note the minimum supported WordPress version is now stated correctly as 6.5. 1.7.2 Bug fix release. Fixes Twitter/Facebook previews in comments, @mention link preview issue, hash symbol in URL, and undefined image count. Recommended for all users. 1.7.1 Dependency handling improvement. Plugin now properly deactivates when BuddyPress or BuddyBoss is not active. 1.7.0 Security and compatibility update. Includes CSRF protection improvements, PHP 8.2+ compatibility, and BuddyBoss Platform support. Recommended for all users. 1.6.1 Security update. Patches SSRF vulnerability. Update immediately.

常见问题:

What are the plugin requirements?

WordPress 6.5 or higher, PHP 8.0 or higher, and either BuddyPress 6.0+ or BuddyBoss Platform. If neither BuddyPress nor BuddyBoss is active, the plugin deactivates itself and shows a notice explaining why.

Why doesn't the preview show for some URLs?

Open Graph tags are preferred, not required. The plugin looks for og:title, og:description and og:image first, and falls back when they are missing: it reads the page's <title> element for the title, the <meta name="description"> tag for the description, and collects every <img src> on the page for the image choices. So a page with no Open Graph tags will usually still preview. A preview fails when the site blocks automated requests outright, when the response is not HTML the plugin can parse, or when the URL resolves to a private or loopback address that the SSRF guard blocks. Reddit links are deliberately skipped. Failed lookups are remembered for 15 minutes, so if you fix the target page, wait for that window to pass before retesting.

How do I disable link previews in comments?

Add this to your theme's functions.php: add_filter( 'bp_activity_link_preview_enable_comments', '__return_false' ); This filter only controls previews on activity comments and replies. There is no filter to switch off previews on main activity posts, and no per-user setting - previews on posts are always on while the plugin is active.

Is the plugin secure?

Yes. The plugin includes:

  • SSRF protection (blocks internal and private IPs, and re-validates short-URL redirect targets)
  • CSRF protection via nonce verification
  • Logged-in-only URL parsing
  • Sanitization of scraped titles and descriptions on save, and escaping on output

Does it work with BuddyBoss?

It runs on BuddyBoss Platform, but it deliberately gets out of the way of BuddyBoss's own link preview. If BuddyBoss Platform is active with its native link preview enabled, this plugin stands down and lets BuddyBoss render the card, so you never see two previews on the same post. If you turn the BuddyBoss link preview off, this plugin takes over.

Does it work with Youzify?

Same idea. If Youzify is active and its wall URL preview is enabled, this plugin leaves the content alone so Youzify's preview is the only one shown. Turn the Youzify wall URL preview off and this plugin handles the card instead.

What happens when someone shares a link to a profile or a group on my own site?

The plugin recognises it as an internal URL and builds the card straight from your database, with no external HTTP request. A member link shows the display name, the XProfile About text and the member's avatar. A group link shows the group name, description and avatar.

Can I customize it?

Yes. The plugin has no settings screen, but it exposes filters for the parts site owners usually want to change: bp_activity_link_preview_load_assets (which pages load the assets), bp_activity_parse_url_preview and bp_activity_link_parse_url (the preview data itself), bp_activity_link_parse_url_shorten_url_provider (which short-URL hosts are resolved), bp_oembed_discover_support (oEmbed discovery), and bp_activity_link_preview_enable_comments (previews in comments).

Will this work with my theme?

It has been tested with popular BuddyPress and BuddyBoss themes including BuddyX, Reign and Youzify. It hooks the standard BuddyPress activity filters, so it should work with any properly coded BuddyPress-compatible theme.

Where can I get support?

更新日志:

1.7.5 - July 2026 Corrective release. There are no functional changes since 1.7.4. 1.7.4 - July 2026 1.7.3 1.7.2 1.7.1 1.7.0 1.6.1 1.6.0 1.4.4 1.4.3 1.4.2 1.4.0 1.3.0 1.2.0 1.1.0 1.0.0