|
Status | Subject | Created By | Replies | Views | Last Post | |||
---|---|---|---|---|---|---|---|---|
![]() |
|
Grimm | 12 | 1,152 | by Sylph Jun 25, 2021 12:37:27 GMT -6 |
Announcements
Recent Threads
Lod'nen Path
Welcome to the help dialog for the Custom Mini-Profile Creator plugin!
Click on any of the tabs above to go through the plugin configuration process! You can access this menu at any time by clicking on the ![]()
This step is essential as it gives the plugin everything it needs on the page to get as much profile information as possible.
To make the profile variables work you'll need to add a new line to the very end of Themes > Layout Templates > Mini-Profile and paste the code below on it. The code should be placed completely outside of the mini-profile, so if you're using the default mini-profile template this will be after the very last closing </div> tag. This needs to be done on every theme you have the plugin enabled on as the template is theme-specific. If your mini-profile template is already customized and you've hit the variable limit for your template you're free to remove any lines from the code below if they contain information that you don't plan on using. For example, if you have no plans to ever add a user's IP to their mini-profile for staff reference you can remove <div class="mp-info ip">$[user.ip]</div> from the code and everything else will still work just fine. Click to show example
Once you've added the HTML from the Layout Templates tab you're ready to move on to building your mini-profiles. If you want to get going and try some out now or you're not very adept at HTML, CSS, or Javascript, worry not! This plugin includes some examples for you to try out. You're free to skip to the Custom Profile Fields tab and read over this tab later when you're ready to build your own.
Here's a quick rundown of each of the components in Plugins > Manage > Custom Mini-Profile Creator: Name 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. HTML 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. CSS 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. Javascript Anything that normally goes between <script> tags will go here. This one's a bit tricky since you'll obviously want to target the custom mini-profile specifically. Luckily there's an easy way to do that. In your statements you can use the $(this) variable to target the mini-profile if you're coding using jQuery. Otherwise, if you only plan on using standard Javascript you can target $(this)[0] instead.
Once you've finished building your mini-profiles it's finally time to add them to the Edit Profile page for use! To enable selection of custom mini-profiles you'll first need to add two specific custom profile fields in Members > Custom Profile Fields in your forum's admin area:
Mini-Profile Theme is for mini-profiles that are designed for member use. You can set the Who Can Edit option for this field to Staff With Power if you only want staff to be able to choose mini-profiles for users. Otherwise, if you want members to freely be able to choose their own mini-profiles you can choose Members and Staff With Power. Staff Mini-Profile Theme is for mini-profiles designed specifically for staff use. This field is completely optional. Set the type for both of these fields as Drop Down Selection. Click on the (View/Edit) link to add mini-profile names to each of these fields. If you've just installed this plugin you should have three different mini-profiles already installed by default: Example 1, Example 2, and Example 3. You can add these to your dropdowns to test them out and see the plugin in action. Click to show example
If you're having trouble getting this plugin to work despite following the instructions in the previous tabs you may want to check that each of your themes meets the prerequisites below in Themes > Layout Templates > Mini-Profile.
First, ensure that opening tag of your mini-profile template includes the $[miniprofile_class] variable in its class. On the default ProBoards theme it should look something like this: <div class="$[miniprofile_class]">
Next, make sure that the default {foreach} loop for custom fields is present inside your mini-profile. It doesn't need to be visible, so you're free to add it inside a hidden element if you don't plan on displaying it or if it would mess up the appearance of your own custom template.
{foreach $[user.mini_custom_field]}
Beyond that you can do whatever you like to the mini-profile template for the most part and it shouldn't negatively impact the plugin.
<br /><span class="$[user.mini_custom_field.content_class]">$[user.mini_custom_field.name]: $[user.mini_custom_field.value]</span> {/foreach}
The following is a list of available variables for use in the HTML section of the mini-profile creator and their definitions. Adding any of these to a mini-profile will generate the content described in its definition in place of the variable so long as the information that variable outputs is visible to you.
To reference your forum's custom profile fields you can use $[user.customfieldname], substituting "customfieldname" with your custom field's name. You'll need to type the name in all lowercase with no spaces and only use characters A-Z and 0-9. For example, Mini-Profile Theme becomes $[user.miniprofiletheme]. This will output the value of the custom field. In the case of this example, it'll be the name of the mini-profile theme you've chosen in your profile. IMPORTANT NOTE: These will only work if you followed the steps in the Installation tab of this window on each of your themes. Any themes that do not include the template code specified there will not have these variables replaced in the mini-profile.
You can utilize the $(this) variable in the Javascript component to target the mini-profile <div> element. For example, if you wanted to add a class to the mini-profile you can use:
$(this).addClass('class-name-here');
Profile variables can also be used in the Javascript component in this plugin. In Javascript the value undefined is used to signify that a value doesn't exist for the variable you've specified. With this in mind you can use profile variables in Javascript conditional statements within the plugin similar to how they're used in the actual layout templates section of the admin area.
Example 1 (variable has value):
if(user.group){
If the user has their group displayed in their profile the above Javascript would make the HTML below visible if you had it hidden with CSS.
$(this).find('.group').show(); }
<div class="group">$[user.group.name]<br />$[user.group.stars]</div>
Example 2 (variable has no value):
if(!user.gender){
If the user's gender isn't visible the above Javascript would hide the gender icon generated by the HTML with the "gender" class below.
$(this).find('.gender').hide(); }
<div class="gender">$[user.gender.image]</div>
|
Donations
In an effort to provide the least restrictve roleplaying environment available, Anikira and their staff have moved the community to the Proboards paid forums. This forum allows unlimited writing freedom to members, as well as an ad-free environment and our ability to customize the forum and its ratings/content however we choose! In order to do so, we will require your help! There is a monthly cost associated with this service, and any and all donations toward this goal are appreciated. Please use the PayPal link below for all donations for Anikira maintenance and moving costs. We look forward to a roleplaying environment where the sky is the limit!
Please note the donation page is listed under Uru's name as it cannot be listed otherwise without a business account. All funds associated with this PayPal account will be used directly for the maintenance and costs of Anikira as our roleplaying forum. ![]() Discord
Join us on discord HERE!
Packs![]() Hilmir: Sköll ![]() Jarl: None Kyn: None Thane: Valkyrie ![]() Ellri: None Hersir:None Hirith: None Vathi: Mwenye ![]() Dauthi: None Leita: Loki ![]() Svein: None Seithr: None Gydja: None Laknir: Rhoslyn ![]() Eithir: None Fraethi: None Laerling: None Veithimathr: None Veithi: Arwen ![]() Bryti: None Aetti: None Thrall:None ![]() Athair: Arche ![]() Dathúil: None Dúchas: Aludra ![]() Treoir: None Ordú: Olympus ![]() Comhar: None Fadó: None Fios: None Taisce: None Chothú: None Seólta: None Selgair: None Fyole: Andromeda ![]() ![]() Saio: Taia ![]() ![]() ![]() Osraige: None Ceilte: None Rialú: Brunilda ![]() ![]() Trodaire: None Onóir: None Kyol: Krol ![]() Cinnte: None Iseal: None Nialas: None ![]() Emperor: Hektor ![]() Empress: None General: Sabaoth ![]() ![]() ![]() Matriarch: Dahlia ![]() Judge: Perseus ![]() Council: None Centurion: Xerxes ![]() Praetorian: None Vanguard: None Executioner: None Sentinel: Hacathra ![]() Gladiator: Pan ![]() ![]() ![]() Consort: A'ia ![]() ![]() High Priestess: None High Huntress: None Emissary: None Priestess: Adrestia ![]() Huntress: Aphrodite ![]() ![]() ![]() ![]() Youth: Ephraim ![]() ![]() ![]() ![]() Prisoner: None ![]() Rajah: Beowulf ![]() First Rani: None Second Rani: None Third Rani: None Srhaada: Baasir ![]() Guru: None Paala: Caos ![]() Rani: None Kimmati: Ileana ![]() Ganika: Braelyn ![]() ![]() Shaandya: None Dasa: Tupoc ![]() Dasyu: None ![]() Marauder: Mara ![]() Fidelius: Masyn ![]() ![]() Kedavra: Tanha ![]() Imperius: Whisky ![]() ![]() Cruciatus: Caelum ![]() ![]() Minister: Masyn ![]() Dementor: None Animagus: None Ferula: Lorelai ![]() ![]() ![]() Thestral: Galadriel ![]() ![]() Patronus: Diomedes ![]() ![]() ![]() ![]() ![]() Muggle: None ![]() The Gods: Arael ![]() ![]() The Chosen: None The Purified: Tiberius ![]() The Seekers: Amytis ![]() ![]() ![]() The Tainted: None The Wicked: Marina ![]() ![]() Lumes: Lira ![]() Lume Rhwng: None Latha: Terra ![]() Lume Annuis: None Noctis: Vira ![]() Noct Rhwng: None Oidhche: None Noct Annuis: Dryad ![]() Nian: Nero ![]() Siste: Cardan ![]() Naire: None ![]() Archon: Fel ![]() ![]() Phaedra: None Areopagus: Azariah ![]() Chiliarch: Stolas ![]() Phrourarch: Atrius ![]() Taxiarch: None Frouros: Stark ![]() Chorigos: None Giatros: None Stratologon: Thesan ![]() Neos: None Ecclesia: None Akamas: None Board StatsPack Population
Non-Pack Population
-- A Home Lost (individuals) SpotlightsClick each image for more info. ![]() Rosalina Ragnarok, Namaah, Andromeda, Hacathra, Maliah, Król, Mwenye, Ragra, Cirdan, Dyani, Emori, Echo, Cepheus, Abioye, Asmodeus, Estella A long time member of the site, Rosa is constantly plotting and scheming with everyone to create mayhem in Anikira. Her plots are always well thought out and enthusiastically executed, leaving thrilling threads in her wake. She is one of the friendliest people around, always happy to chat and goof around with the other members. She has made it a goal to keep a character in every single pack and is extremely diverse in her character profiles, ranging from sociopaths to cupcakes and everything in between. We are so grateful to have wonderful members like Rosa around! ![]() Aravis & V Played by Nyx & Uru. For the first time ever, we have a tie for character of the month after the run-off. These two ladies are similar in many ways, and yet so fiercely opposite. V, a cold-hearted stoic leader beside a demonic mate and Aravis, the shadow leader of a vicious cannibalistic pack, are both dominant females that leave the appearance of leadership to those around them. But do not let the facade fool you, for everyone knows that these two are truly the ones in control. But do the wolves around them realize just how much power either wields? ![]() who lives, who dies, who tells your story ![]() Fel & Yara Played by Vy & Nia. One of the longest standing couples on the site, Fel & Yara are not exactly the picture of love in terms of their relationship, but rather a firm partnership based on the neverending goal of bettering their pack. Yara, the daughter of Severus, the prior alpha of Ultoris who once ruled over Aleru, and Fel, an up and coming male who clawed his way to the top and seized control of his pack, are stalwart leaders first, and a less than lovey-dovey couple second. |