Post by Brian Ordonez on Aug 23, 2015 14:39:34 GMT -8
Build a mini-profile from the ground up, then apply it to a member using custom profile fields! Comes with three example mini-profiles to showcase the plugin's capabilities.
Each mini-profile you create comes with four sections for customization:
This is the name you'll be adding to your custom profile field dropdown once you've finished coding the mini-profile. Pretty self-explanatory. Make sure this name is unique from every other name you use for your mini-profiles or you'll end up overwriting the earlier ones in the list.
This is the HTML that will go inside your mini-profile. You can use just about any HTML tag here so long as it's appropriate for where the mini-profile is showing on the page. Please refrain from using <style> or <script> tags here. You have the next two sections for that! Also, remember that mini-profiles can show multiple times on the same page, so you shouldn't add ID attributes to any of your elements here. Two elements on the same page cannot have the same ID per HTML standards.
This is where you'll place what would normally go in your forum's style sheet or what would normally be between <style> tags. Try to code your mini-profile's HTML in a way that will allow you to target it specifically with your selectors. For example, you can surround all of the content in your HTML with a <div> element with a class and target that class and its child elements specifically with your CSS. That way you don't accidentally target every mini-profile on the page with CSS that was meant for the one you're building. One more thing: The forum theme's CSS still applies beforehand, so your mini-profile may look right in one theme but not in another. The best way to circumvent this is to define as many styles as you can to override the theme's CSS.
Turn on the Show Help option in the plugin for installation instructions as well as a list of customization features.
Adding a Default Mini-Profile
Specifying Default as the name of one of your mini-profiles will cause the CSS and JS you add to that mini-profile to run on the mini-profile of every user on the forum. This is specifically to add something that cannot be achieved through your forum's layout templates. You should still be using the mini-profile layout template to make the base customizations to your forum's default mini-profiles as the HTML will load faster when delivered straight from the server, versus relying on the plugin to change the mini-profile client-side after the page has already been loaded.
Using the HTML section is not recommended when using this option as any HTML you specify will automatically overwrite that of any mini-profile theme the user already has selected.
If you receive an error when saving the plugin settings saying that you've exceeded the maximum allowed byte size feel free to install this expansion plugin if you want to add more mini-profiles. Then simply add your new mini-profile to the expansion plugin instead. Note that this plugin must come before the Custom Mini-Profile Creator plugin in order to work since it needs to add its mini-profiles to the list before the main plugin functions run.
Custom MPC Expansion 1.pbp (1.23 KB)
PLUGIN AUTHOR'S NOTE: This thread is not for help designing your mini-profiles. If you do not have prerequisite knowledge of any of the languages within its components there are several resources available online to aid you in learning each of them.