# bbp-core/1.2.8/includes/features/bbp_attachments.php

Forumax – AI Powered Advanced Community Forum Plugin, version 1.2.8. 31 lines.

- Page: https://pluginprobe.com/plugins/bbp-core/1.2.8/code/includes/features/bbp_attachments.php
- Raw: https://pluginprobe.com/plugins/bbp-core/1.2.8/raw/includes/features/bbp_attachments.php
- Modified: 2025-02-17T10:01:42+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/bbp-core/1.2.8/code/includes/features/bbp_attachments.php#L10-L20`.

```php
<?php
namespace features;

class bbp_attachments {
	public function __construct() {
		$this->inclue_attachment_files();
	}

	public function inclue_attachment_files() {
		if ( ! defined( 'BBPC_ATTACHMENT' ) ) {
			define( 'BBPC_ATTACHMENT', 'activate_plugins' );
		}

		$cfile = dirname( __FILE__ );
		require_once $cfile . '/bbpc_attachments/code/defaults.php';
		require_once $cfile . '/bbpc_attachments/code/shared.php';
		require_once $cfile . '/bbpc_attachments/code/sanitize.php';

		require_once $cfile . '/bbpc_attachments/code/class.php';
		require_once $cfile . '/bbpc_attachments/code/public.php';

		\BBPCATTCore::instance();
	}
}

//TODO: Make multiple file attachment features
//TODO: Show progress and cross button like gmail
//TODO: Show file size of each upload
//TODO: Add icon for every feature, like gmail
//TODO: Do caption feature, take caption from title
//TODO: Add lightbox in pro plugin, lock the feature lightbox
```
