Skip to content

Maximize your profile with custom file profile fields.

License

Notifications You must be signed in to change notification settings

OUGC-Network/OUGC-File-Profile-Fields

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Project logo

OUGC File Profile Fields

Status GitHub Issues GitHub Pull Requests License


Maximize your profile with custom file profile fields.

πŸ“œ Table of Contents

πŸš€ About

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!

Go up to Table of Contents

πŸ“ Getting Started

The following information will assist you into getting a copy of this plugin up and running on your forum.

Dependencies

A setup that meets the following requirements is necessary to use this plugin.

File structure

 .
 β”œβ”€β”€ 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

Installing

Follow the next steps in order to install a copy of this plugin on your forum.

  1. Download the latest package from the MyBB Extend site or from the repository releases.
  2. Upload the contents of the Upload folder to your MyBB root directory.
  3. Browse to Configuration Β» Plugins and install this plugin by clicking Install & Activate.

Updating

Follow the next steps in order to update your copy of this plugin.

  1. Browse to Configuration Β» Plugins and deactivate this plugin by clicking Deactivate.
  2. Follow step 1 and 2 from the Install section.
  3. Browse to Configuration Β» Plugins and activate this plugin by clicking Activate.

Template Modifications

This plugin requires no template edits.

Go up to Table of Contents

πŸ›  Settings

Below you can find a description of the plugin settings.

Global 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.

Go up to Table of Contents

πŸ“– Usage

This plugin has no additional configurations; after activating make sure to modify the global settings in order to get this plugin working.

πŸ›  File Permissions

For automatic file edits the following files require to be chmod 777 (on *nix servers).

  • modcp.php
  • usercp.php
  • member.php
  • inc/functions_post.

πŸ›  Example Configurations

Custom Profile Cover Image

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.

Custom Profile Field
  • 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 (chmod 777)
  • 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
Custom Template

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 Modifications
  • Template Name member_profile
  • Find {$footer}
  • Add before {$GLOBALS['ougc_fileprofilefields']['fid10']} where 10is the custom profile field identifier (fid).

image

Go up to Table of Contents

⛏ Built Using

Go up to Table of Contents

✍️ Authors

See also the list of contributors who participated in this project.

Go up to Table of Contents

πŸŽ‰ Acknowledgements

Go up to Table of Contents

🎈 Support & Feedback

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!

Go up to Table of Contents

About

Maximize your profile with custom file profile fields.

Resources

License

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published