Maximize your profile with custom file profile fields.
With File Profile Fields, users can easily upload files to their profiles using custom profile fields, making their profiles more dynamic and personalized. Admins can manage the types of files allowed for each field, even restricting to images only if needed. Plus, you can style the presentation of files on a per-field basis to match your forum's look. Maximize your profile potential with this plugin β it's the perfect way to add a unique touch and functionality to your MyBB profiles!
The following information will assist you into getting a copy of this plugin up and running on your forum.
A setup that meets the following requirements is necessary to use this plugin.
- MyBB >= 1.8
- PHP >= 7.0
- WebP Image Support requires PHP >= 7.1
- PluginLibrary for MyBB >= 13
.
βββ inc
β βββ languages
β β βββ english
β β β βββ admin
β β β β βββ ougc_fileprofilefields.lang.php
β β β βββ ougc_fileprofilefields.lang.php
β βββ plugins
β β βββ ougc
β β β βββ FileProfileFields
β β β β βββ templates
β β β β β βββ modcp.html
β β β β β βββ modcp_files_file.html
β β β β β βββ modcp_multipage.html
β β β β β βββ modcp_status_mod.html
β β β β β βββ postbit_status.html
β β β β β βββ profile_status_mod.html
β β β β β βββ usercp_status.html
β β β β β βββ modcp_file.html
β β β β β βββ modcp_filter_option.html
β β β β β βββ modcp_nav.html
β β β β β βββ modcp_update.html
β β β β β βββ postbit_status_mod.html
β β β β β βββ usercp.html
β β β β β βββ usercp_status_mod.html
β β β β β βββ modcp_file_thumbnail.html
β β β β β βββ modcp_logs.html
β β β β β βββ modcp_page.html
β β β β β βββ postbit.html
β β β β β βββ profile_file.html
β β β β β βββ usercp_file.html
β β β β β βββ usercp_update.html
β β β β β βββ modcp_files.html
β β β β β βββ modcp_logs_empty.html
β β β β β βββ modcp_remove.html
β β β β β βββ postbit_file.html
β β β β β βββ profile_file_thumbnail.html
β β β β β βββ usercp_file_thumbnail.html
β β β β β βββ modcp_files_empty.html
β β β β β βββ modcp_logs_log.html
β β β β β βββ modcp_status.html
β β β β β βββ postbit_file_thumbnail.html
β β β β β βββ profile_status.html
β β β β β βββ usercp_remove.html
β β β β βββ admin.php
β β β β βββ admin_hooks.php
β β β β βββ core.php
β β β β βββ forum_hooks.php
β β βββ ougc_fileprofilefields.php
βββ ougc_fileprofilefields.php
Follow the next steps in order to install a copy of this plugin on your forum.
- Download the latest package from the MyBB Extend site or from the repository releases.
- Upload the contents of the Upload folder to your MyBB root directory.
- Browse to Configuration Β» Plugins and install this plugin by clicking Install & Activate.
Follow the next steps in order to update your copy of this plugin.
- Browse to Configuration Β» Plugins and deactivate this plugin by clicking Deactivate.
- Follow step 1 and 2 from the Install section.
- Browse to Configuration Β» Plugins and activate this plugin by clicking Activate.
This plugin requires no template edits.
Below you can find a description of the plugin settings.
- Moderator Groups
select
- Select which groups are allowed to manage files approval status and logs from the ModCP.
- Items Per Page
numeric
- Default files and logs to display per page in the ModCP.
- Moderate Groups
select
- You can moderate the files of specific groups, so their files will be visible only after they have been approved.
- Image Auto Resize
yesNo
- Turn this on to automatically resize image files to fit their maximum dimensions setting.
- Download Count Interval
numeric
- Set the amount of seconds between download increase from the same users (not guests). Set to 0 to always count.
- Count Author Downloads
yesNo
- You can skip authors from increasing the download count of files. Please note that download logs are always stored for non thumbnails regardless of this setting.
- Force File Downloads
yesNo
- By default specific file types (png, pdf, txt, etc.) are rendered in browser. If you enable this files will be forced to be downloaded instead.
This plugin has no additional configurations; after activating make sure to modify the global settings in order to get this plugin working.
For automatic file edits the following files require to be chmod 777
(on *nix servers).
- modcp.php
- usercp.php
- member.php
- inc/functions_post.
The following would be the necessary configuration to allow users to upload a custom image to use in their profiles as their cover image, using the stock MyBB theme.
- Title
Profile Cover
- Short Description
Upload an image to be used as your profile cover.
- Field Type
File
- File Types
PNG Image (png)
- Maximum File Size (Kilobytes)
2048
- Uploads Path
./uploads/covers
(chmod777
) - Custom Output
Yes
- Only Image Files
Yes
- Minimum Image Dimensions
600|200
- Maximum Image Dimensions
1000|400
- Display on profile?
Yes
- Display on postbit?
No
- Viewable By
All groups
- Editable By
All groups
A custom template should be created either in the Global Templates set for all themes or in each template set for each theme.
- Template Name
ougcfileprofilefields_profile_file_10
- Contents The CLASS selector will target the profile user table in the stock MyBB theme.
<style>
#content > div:nth-child(1) > fieldset:nth-child(5) {
background-image: url('{$mybb->settings['bburl']}/ougc_fileprofilefields.php?aid={$aid}');
}
</style>
- Template Name
member_profile
- Find
{$footer}
- Add before
{$GLOBALS['ougc_fileprofilefields']['fid10']}
where10
is the custom profile field identifier (fid
).
- MyBB - Web Framework
- MyBB PluginLibrary - A collection of useful functions for MyBB
- PHP - Server Environment
- @Omar G - Idea & Initial work
See also the list of contributors who participated in this project.
This is free development and any contribution is welcome. Get support or leave feedback at the official MyBB Community.
Thanks for downloading and using our plugins!