Dionon
New Member
Thoroughly enjoying v5.
Posts: 140
inherit
131985
0
Nov 26, 2018 8:04:48 GMT -8
Dionon
Thoroughly enjoying v5.
140
October 2008
dionon
|
Post by Dionon on Sept 21, 2016 13:59:34 GMT -8
Worked beautifully. If you want I'll can post what I added to the thing and how it was reordered. I basically put in all the "Vital Statistics" stuff from a Pen and Paper character sheet (Along with alternate options.)
|
|
inherit
190152
0
Apr 28, 2019 15:11:21 GMT -8
isavarg
40
February 2013
isavarg
|
Post by isavarg on Sept 21, 2016 14:23:28 GMT -8
A couple of questions - How do you connect a mini profile to the NPC? I've uploaded the mini profile expansion but it doesn't appear to be working properly, and I'd like some help with coding a profile, putting in name, age, background, family, etc, for the characters as just having a name, birthday and location seems a bit sparse. Even NPCs have some background. I've also not used these tags and codes listed at the start of this thread before, so I have no clue what I'm doing. These are the things I'd like to include in the profile.
NAME: NICKNAMES: AGE: YEAR OF BIRTH: GENDER: MARITAL STATUS: SEXUALITY: OCCUPATION: PLACE OF BIRTH: CURRENT RESIDENCE: PARENTS: SIBLINGS: SIGNIFICANT OTHER: CHILDREN: Personality:
QUIRKS: LIKES: DISLIKES:
Appearance:
HEIGHT: BUILD: HAIR: EYES:
Background:
|
|
#eb7100
33409
0
1
Nov 24, 2024 4:27:37 GMT -8
Brian
48,130
November 2004
smashmaster3
|
Post by Brian on Sept 21, 2016 14:35:09 GMT -8
A couple of questions - How do you connect a mini profile to the NPC? I've uploaded the mini profile expansion but it doesn't appear to be working properly, and I'd like some help with coding a profile, putting in name, age, background, family, etc, for the characters as just having a name, birthday and location seems a bit sparse. Even NPCs have some background. I've also not used these tags and codes listed at the start of this thread before, so I have no clue what I'm doing. Did you place the mini-profile plugin before the NPC Profiles plugin in the plugin list as the first post instructed? The plugins execute in the order that they're listed in Plugins > Manage so if the NPC Profiles plugin is first on the list it's going to finish adding all of your NPCs to the page before the extra data from the mini-profiles plugin is ever read. You'll have to manually fill in the information for most of the fields you specified, but for the ones that do have fields in the NPC list you can add them to the mini-profile like so and the variables will render as the values you entered into the NPC list:
|
|
inherit
119630
0
Sept 19, 2024 10:15:10 GMT -8
AspieCrow
56
February 2008
crow453
|
Post by AspieCrow on Sept 27, 2016 12:56:45 GMT -8
So, thus far, I've still been using the mini profile expansion for each NPC, which is still taking up a lot of space. The mini profile html code I'm using is pretty much identical throughout though, with only specific fields being different. Is it possible to update the overall Mini-Profile to save space? And if so, could someone help me out with it, please, as I'm awful at HTML coding.
This is the mini-profile HTML code I'm currently using:
<div class="$[miniprofile_class]"> <center> <p style="font-size: 15px; font-family:Special Elite !important;"> $[user]</p> <span style="text-transform: uppercase; font-size: 9px;"> </span> </center><!-- THIS IS YOUR MINI PROFILE HOVER --> <div class="minicontainer" style=" border: 10px solid #INSERT GROUP COLOUR HERE; top:0px; background-image: url('INSERT YOUR HOVER IMAGE HERE');{foreach $[user.mini_custom_field]}{if $[user.mini_custom_field.name] == "Hover Image"}background-image: url('$[user.mini_custom_field.value]');{/if}{/foreach} background-size: cover;"> <div class="profilemini"> <div class="minicontent1"> <div class="minicontent2"> <!-- THIS IS YOUR USER'S GROUP NAME --> <div class="char_groupcolor" style="font: Poiret One; background-color:#INSERT GROUP COLOUR HERE"> $[user.group] </div> <!-- THIS IS WHERE THE AVATAR AND INFORMATION IS DISPLAYED --> <div class="bubble" style="float: right; margin-top: 0px; margin-right: 15px;"> <font color="#ffffff"> <span style="font-size: 10px;"> <!-- THIS IS YOUR PERSONAL TEXT! --> INSERT PERSONAL TEXT HERE</span></font></div> <div class="avvie-thing"> $[user.avatar]</div> <div class="app_Button"> <!-- THIS IS YOUR LINK TO APP --> <a href="INSERT LINK TO NPC APP HERE">App</a> </div> <div class="char_posts"> <font color="#eeeeee">NPC</font> </div> <div class="mini-table"> <div class="mini-tablefield"> <!-- THIS IS YOUR CHARACTER AGE --> Insert Character Age Here as a number, followed by "Years Old" </div> <div class="mini-tablefield"> <!-- THIS IS YOUR CHARACTER GENDER --> Insert Character Gender Here </div> <div class="mini-tablefield3"> <!-- THIS IS YOUR CHARACTER OCCUPATION --> Insert Character Occupation Here </div> <div class="mini-tablefield3"> <!-- THIS IS YOUR CHARACTER'S RELATIONSHIP STATUS --> Insert Relationship Status Here </div> </div> </div> </div> </div> </div> </div> I'd like to keep that coding, but if possible, use it as the base code for all the NPC miniprofiles. Is that possible?
Thanks in advance!
|
|
#eb7100
33409
0
1
Nov 24, 2024 4:27:37 GMT -8
Brian
48,130
November 2004
smashmaster3
|
Post by Brian on Sept 27, 2016 13:19:19 GMT -8
AspieCrow, is there a particular reason you're using that in the individual mini-profiles versus the base mini-profile to begin with? I imagine the reason is to fill out fields that don't exist, but there is a solution to that involving editing the plugin itself that should solve that particular issue.
|
|
inherit
190152
0
Apr 28, 2019 15:11:21 GMT -8
isavarg
40
February 2013
isavarg
|
Post by isavarg on Sept 27, 2016 13:51:50 GMT -8
I've come across a problem with the plugin and that's the lack of space. I can only make 13 characters (in the original plugin, without the mini profile & extension.)
I was hoping that I could do more, as I wanted users to be able to have their own set of characters which they could flip between without having to create new accounts to play their character and have the account they sign up with as their 'writer account'. Does the extension have the same number of character spaces? Is there a way of increasing the number of characters I can have in the plugin?
(I like the idea of this plugin as it would allow the board to have more than one version of a canon character and prevents the temptation of people creating multiple accounts to control the game. I had an experience once on twitter where one person pretended to be two different people and controlled the leader of the 'good' people and the leader of the 'bad' people.)
|
|
#eb7100
33409
0
1
Nov 24, 2024 4:27:37 GMT -8
Brian
48,130
November 2004
smashmaster3
|
Post by Brian on Sept 27, 2016 14:18:52 GMT -8
I've come across a problem with the plugin and that's the lack of space. I can only make 13 characters (in the original plugin, without the mini profile & extension.) I was able to add 5 more characters on your forum when I was testing, exceeding the 13 you mentioned. Is it telling you that you've reached the byte size limit when you attempt to save or are you receiving another error? I was hoping that I could do more, as I wanted users to be able to have their own set of characters which they could flip between without having to create new accounts to play their character and have the account they sign up with as their 'writer account'. Does the extension have the same number of character spaces? Is there a way of increasing the number of characters I can have in the plugin? The plugin doesn't necessarily have a specific set limit on the amount of NPCs it can hold. The way that every plugin works is that each field you fill out in the plugin is crammed into a giant text object. Using the NPC Profiles settings on my test forum as an example, this is what your settings look like when saved to the server:
This entire string of text is saved to a column in a table containing your plugin settings. The thing about this column is that it has a character limit, so if the size of the entire string quoted above exceeds the character limit allowed in the column in the forum's database the plugin will fail to save and give you an error saying you've exceeded the byte size limit. The difference between the base plugin and the list expansion plugin is that the expansion plugin doesn't have to store the mini-profile and full profile HTML. That's loads of space being saved because the base plugin already contains that data. So technically speaking, you can fit more NPCs into the expansion plugin than the base plugin, but the same concept still applies. All of those NPCs are being crammed into a single string of text being saved to the server. If that text exceeds the storage limit on the server you can't save it and need to use another expansion plugin. So in conclusion, there's not an NPC limit, but there's a character limit (as in text limit, not actual NPC characters). One thing you can do is just delete the contents of both text fields in the Profile HTML tab (if you're not using them). The plugin has the default text shown there saved in its source code so you don't need the examples that come with it. This will remove them from the giant text object I quoted above and allow you to add way more NPCs to the base plugin. Just keep in mind that if you ever intend to use them in the future you may need to move several of your NPCs into an expansion plugin. (I like the idea of this plugin as it would allow the board to have more than one version of a canon character and prevents the temptation of people creating multiple accounts to control the game. I had an experience once on twitter where one person pretended to be two different people and controlled the leader of the 'good' people and the leader of the 'bad' people.) The reason I made this plugin is kind of related to that. Basically, multiple users wanted to control a single character account, but account sharing is against the Terms of Service and those that still tried to account share despite that learned that a forum account can only be linked to a single global account (meaning only one person could control it regardless). So rather than relying on accounts the plugin essentially gives a costume to a post so that a user can post under a different identity while still using their own account. I'm glad you like the concept, though! I just wish your rating on the library page reflected that since contrary to what you typed there you seem to have it working now.
|
|
inherit
190152
0
Apr 28, 2019 15:11:21 GMT -8
isavarg
40
February 2013
isavarg
|
Post by isavarg on Sept 27, 2016 14:46:44 GMT -8
If I get rid of the stars, location, birthday, etc, would I be able to add more characters? What about if I shortened the user names to numbers and letters? Would that give me more space?
|
|
#eb7100
33409
0
1
Nov 24, 2024 4:27:37 GMT -8
Brian
48,130
November 2004
smashmaster3
|
Post by Brian on Sept 27, 2016 14:53:34 GMT -8
If I get rid of the stars, location, birthday, etc, would I be able to add more characters? What about if I shortened the user names to numbers and letters? Would that give me more space? Yes, to all of those. Any text you remove is going to free up space. I am curious to know the answer to the question I asked at the beginning of my post, though.
|
|
inherit
119630
0
Sept 19, 2024 10:15:10 GMT -8
AspieCrow
56
February 2008
crow453
|
Post by AspieCrow on Sept 29, 2016 14:17:07 GMT -8
Sorry for the late response, Brian! I'm currently using individual mini-profiles because it was what I used before the update, and I don't know how to upgrade the current miniprofile template I'm using to be used as the base mini-profile, which is pretty much what I'm asking help with. Thanks again!
|
|
#eb7100
33409
0
1
Nov 24, 2024 4:27:37 GMT -8
Brian
48,130
November 2004
smashmaster3
|
Post by Brian on Sept 29, 2016 14:29:41 GMT -8
Sorry for the late response, Brian ! I'm currently using individual mini-profiles because it was what I used before the update, and I don't know how to upgrade the current miniprofile template I'm using to be used as the base mini-profile, which is pretty much what I'm asking help with. Thanks again! If you need to add more fields to the plugin as a prerequisite you can go to Plugins > Build > NPC Profiles and navigate to the User Interface tab, then go into the NPC List tab there. At the very bottom of the list of fields you should see an Add Field link. Click that to add a new field, then give it a name and variable ID. To get the field you just added working as a template variable you'll need to go to the Components tab and find this line in the Javascript section: Copy it, insert a new line after it, and paste it on that new line, replacing location with the variable ID you gave your new field. So if you had a field with the variable ID occupation you'd use that like so: Once you've saved all of that all you should have to do from there is copy the HTML from one of your individual mini-profiles into the Profile HTML tab, then substitute any necessary words with the variable name that represents that word. So if you had something like this: You'd replace it with a variable containing the variable ID you're using: Then the plugin will go through the entire template for each NPC and replace the variable with whatever you entered into the field for that particular NPC, ultimately resulting in only one mini-profile ever needing to be used.
|
|
inherit
119630
0
Sept 19, 2024 10:15:10 GMT -8
AspieCrow
56
February 2008
crow453
|
Post by AspieCrow on Sept 30, 2016 12:43:51 GMT -8
The problem is solved! Thanks so much, Brian!
|
|
inherit
237773
0
Dec 6, 2016 13:26:49 GMT -8
.:TYSM:. // Snivel Military
6
October 2016
tysm
|
Post by .:TYSM:. // Snivel Military on Oct 2, 2016 12:40:24 GMT -8
Hello Brian!I am having some problems . I have enabled the plugin and everything, but the Sword doesn't show up on the post. Please help!!
|
|
#eb7100
33409
0
1
Nov 24, 2024 4:27:37 GMT -8
Brian
48,130
November 2004
smashmaster3
|
Post by Brian on Oct 2, 2016 13:20:06 GMT -8
Hello Brian! I am having some problems . I have enabled the plugin and everything, but the Sword doesn't show up on the post. Please help!! Can you provide a link to the forum in question?
|
|
inherit
237773
0
Dec 6, 2016 13:26:49 GMT -8
.:TYSM:. // Snivel Military
6
October 2016
tysm
|
Post by .:TYSM:. // Snivel Military on Oct 2, 2016 14:08:13 GMT -8
Hello Brian! I am having some problems . I have enabled the plugin and everything, but the Sword doesn't show up on the post. Please help!! Can you provide a link to the forum in question? What do you mean?
|
|