inherit
194230
0
Nov 21, 2015 5:56:42 GMT -8
Alan Vende
4,215
May 2013
l1o2u3i4s5
|
Post by Alan Vende on Sept 14, 2015 15:36:41 GMT -8
I wasn't sure which one I want to use -- do you use the Staff one here on Support, even though regular members have Custom MPs (the MP Design winners, I mean.)
|
|
inherit
194230
0
Nov 21, 2015 5:56:42 GMT -8
Alan Vende
4,215
May 2013
l1o2u3i4s5
|
Post by Alan Vende on Sept 14, 2015 15:38:49 GMT -8
I read the Plugin totally wrong I edited the Custom Field, though, and it gave me an error sign at the top right of the Plugin, directing me to the Profile Fields area.
|
|
inherit
194230
0
Nov 21, 2015 5:56:42 GMT -8
Alan Vende
4,215
May 2013
l1o2u3i4s5
|
Post by Alan Vende on Sept 14, 2015 15:45:32 GMT -8
I changed the name in the Custom Fields area and it took away the custom field from the mini profile, so that's all set, but it still is giving me the error message:
Error 2: "Star
not found in Custom Mini Profile Creator plugin settings. To remove this message, you may either choose a different mini-profile theme in this user's profile or remove this theme entirely from the custom field dropdown, or configure it in the Custom Mini Profile Creator plugin.
Although, it is configured there and it is named "Star" - the same name that is in the Custom Field dropdown. I've checked twice for accuracy.
Could it be that my code is wrong or something in the Plugin itself for that particular MP Theme?
|
|
#eb7100
33409
0
1
Nov 24, 2024 4:27:37 GMT -8
Brian
48,130
November 2004
smashmaster3
|
Post by Brian on Sept 15, 2015 8:25:34 GMT -8
I wasn't sure which one I want to use -- do you use the Staff one here on Support, even though regular members have Custom MPs (the MP Design winners, I mean.) We use the regular one, but it's set to Staff Only so only we have the ability to change it. Both fields to the exact same thing. It's just a matter of whether or not you want regular users to be able to choose a custom mini-profile. I changed the name in the Custom Fields area and it took away the custom field from the mini profile, so that's all set, but it still is giving me the error message: Error 2: "Star not found in Custom Mini Profile Creator plugin settings. To remove this message, you may either choose a different mini-profile theme in this user's profile or remove this theme entirely from the custom field dropdown, or configure it in the Custom Mini Profile Creator plugin. Looks like it's working now.
|
|
inherit
194230
0
Nov 21, 2015 5:56:42 GMT -8
Alan Vende
4,215
May 2013
l1o2u3i4s5
|
Post by Alan Vende on Sept 15, 2015 9:34:32 GMT -8
I'm not sure what's happening, but it still doesn't look like it's working. I still get the error message on either of them: Star or my Graphic Artist one. I made another one to see if I made a coding error in the Star one, but that didn't seem so.
Also, to have a 'real' example: If someone here on Support took themselves out of the Helpful Member group, would the checkmark still show on their mini profiles, or do you have in the code the
if(user.group){ if(user.group.name == "Group Name Here"){ // Do something } }
code?
I'm not sure why it's still not working. I checked the Custom Field and it looks ilke I typed them correctly. I checked the Plugin and they're done correctly, too.
|
|
#eb7100
33409
0
1
Nov 24, 2024 4:27:37 GMT -8
Brian
48,130
November 2004
smashmaster3
|
Post by Brian on Sept 15, 2015 10:19:48 GMT -8
I'm not sure what's happening, but it still doesn't look like it's working. I still get the error message on either of them: Star or my Graphic Artist one. I made another one to see if I made a coding error in the Star one, but that didn't seem so. Can you provide a link to a page where it's not working? Also, which username are you viewing the forum from? Also, to have a 'real' example: If someone here on Support took themselves out of the Helpful Member group, would the checkmark still show on their mini profiles, or do you have in the code the if(user.group){ if(user.group.name == "Group Name Here"){ // Do something } }code? I have our Javascript encased in those if statements so that if they're removed from the group it automatically removes the checkmark even if that's their active mini-profile.
|
|
inherit
194230
0
Nov 21, 2015 5:56:42 GMT -8
Alan Vende
4,215
May 2013
l1o2u3i4s5
|
Post by Alan Vende on Sept 15, 2015 10:23:03 GMT -8
I'm not sure what's happening, but it still doesn't look like it's working. I still get the error message on either of them: Star or my Graphic Artist one. I made another one to see if I made a coding error in the Star one, but that didn't seem so. Can you provide a link to a page where it's not working? Also, which username are you viewing the forum from? Also, to have a 'real' example: If someone here on Support took themselves out of the Helpful Member group, would the checkmark still show on their mini profiles, or do you have in the code the if(user.group){ if(user.group.name == "Group Name Here"){ // Do something } }code? I have our Javascript encased in those if statements so that if they're removed from the group it automatically removes the checkmark even if that's their active mini-profile. An example is here. I have a test MP that I am working with to see if it works there - that's how I know it isn't yielding results - because I am getting the error message on that MP. And I'm viewing it from the root admin account. For the if statement: I didn't know you could make it so if they're not in there it takes it off. Or do you make it so only if it's true it shows up? Sorry if my wording doesn't make sense.
|
|
#eb7100
33409
0
1
Nov 24, 2024 4:27:37 GMT -8
Brian
48,130
November 2004
smashmaster3
|
Post by Brian on Sept 15, 2015 10:29:19 GMT -8
An example is here. I have a test MP that I am working with to see if it works there - that's how I know it isn't yielding results - because I am getting the error message on that MP. And I'm viewing it from the root admin account. For the if statement: I didn't know you could make it so if they're not in there it takes it off. Or do you make it so only if it's true it shows up? Sorry if my wording doesn't make sense. That doesn't seem to link to an existing thread. I got a message saying the thread could not be found. I added the checkmark image entirely through the use of the Javascript section. The part that adds it is enclosed in an if statement that checks against their group name so that it's only added if they're a part of that group.
|
|
inherit
194230
0
Nov 21, 2015 5:56:42 GMT -8
Alan Vende
4,215
May 2013
l1o2u3i4s5
|
Post by Alan Vende on Sept 15, 2015 10:36:04 GMT -8
An example is here. I have a test MP that I am working with to see if it works there - that's how I know it isn't yielding results - because I am getting the error message on that MP. And I'm viewing it from the root admin account. For the if statement: I didn't know you could make it so if they're not in there it takes it off. Or do you make it so only if it's true it shows up? Sorry if my wording doesn't make sense. That doesn't seem to link to an existing thread. I got a message saying the thread could not be found. I added the checkmark image entirely through the use of the Javsdfascript section. The part that adds it is enclosed in an if statement that checks against their group name so that it's only added if they're a part of that group. My bad, sorry about that. It's here. So, for me, it would be like this: if(user.group){ if(user.group.name == "Head Administrator"){ <div class="staff-diamond"> <img src="http://storage.proboards.com/6033396/i/z0ia563wclNdTJSvDxFq.png"> </div> } }
|
|
#eb7100
33409
0
1
Nov 24, 2024 4:27:37 GMT -8
Brian
48,130
November 2004
smashmaster3
|
Post by Brian on Sept 15, 2015 10:48:20 GMT -8
My bad, sorry about that. It's here. Your mini-profile template has the custom fields set up differently than the default. The plugin references the exact text inside of the span including any line breaks and excess tabs or spaces which is why it's failing to match the name properly. So you need to change this: To this: So, for me, it would be like this: if(user.group){ if(user.group.name == "Head Administrator"){ <div class="staff-diamond"> <img src="http://storage.proboards.com/6033396/i/z0ia563wclNdTJSvDxFq.png"> </div> } } HTML is not applicable by itself within Javascript. You need to contain it within the append() function like in my earlier example in order to make it work. Other than that everything else was specified correctly.
|
|
inherit
194230
0
Nov 21, 2015 5:56:42 GMT -8
Alan Vende
4,215
May 2013
l1o2u3i4s5
|
Post by Alan Vende on Sept 15, 2015 11:02:32 GMT -8
My bad, sorry about that. It's here. Your mini-profile template has the custom fields set up differently than the default. The plugin references the exact text inside of the span including any line breaks and excess tabs or spaces which is why it's failing to match the name properly. So you need to change this: To this: So, for me, it would be like this: if(user.group){ if(user.group.name == "Head Administrator"){ <div class="staff-diamond"> <img src="http://storage.proboards.com/6033396/i/z0ia563wclNdTJSvDxFq.png"> </div> } } HTML is not applicable by itself within Javascript. You need to contain it within the append() function like in my earlier example in order to make it work. Other than that everything else was specified correctly. I just changed it and it's still not yielding the desired result. I assume you mean in the MP Template on the theme, right? But, since I have more than one MP Template there, it has to be changed in all of them, right?
|
|
inherit
194230
0
Nov 21, 2015 5:56:42 GMT -8
Alan Vende
4,215
May 2013
l1o2u3i4s5
|
Post by Alan Vende on Sept 15, 2015 11:12:44 GMT -8
I have it changed successfully. Thank you for that! For some reason, though, the CSS of the Consultant Star, for example, isn't holding. The CSS is the same as what I have in my mini profile outside of the Plugin: .staff-diamond { position: absolute; top: 16px; right: 2px; line-height: 200%; }
That's just an example. For some reason, they stars are down on the bottom center of the Mini Profiles.
|
|
#eb7100
33409
0
1
Nov 24, 2024 4:27:37 GMT -8
Brian
48,130
November 2004
smashmaster3
|
Post by Brian on Sept 15, 2015 11:24:40 GMT -8
I have it changed successfully. Thank you for that! For some reason, though, the CSS of the Consultant Star, for example, isn't holding. The CSS is the same as what I have in my mini profile outside of the Plugin: .staff-diamond { position: absolute; top: 16px; right: 2px; line-height: 200%; }That's just an example. For some reason, they stars are down on the bottom center of the Mini Profiles. Make sure the class of the image you're adding is the same as the class you've specified in the CSS.
|
|
inherit
194230
0
Nov 21, 2015 5:56:42 GMT -8
Alan Vende
4,215
May 2013
l1o2u3i4s5
|
Post by Alan Vende on Sept 15, 2015 11:27:56 GMT -8
I fixed that error. Thank you for that. That didn't make a change in my mini profile, though.
I'm on TestTheme3, by the way, of my forum while testing this out.
|
|
inherit
194230
0
Nov 21, 2015 5:56:42 GMT -8
Alan Vende
4,215
May 2013
l1o2u3i4s5
|
Post by Alan Vende on Sept 15, 2015 11:37:24 GMT -8
I put the JS into an if statement that included my user group and I think that that fixed it!
|
|