Vapers United
Junior Member
Taking a sec to thank the staff & member helpers for everything they do for us!
Posts: 300
inherit
220798
0
Jun 19, 2022 19:37:35 GMT -8
Vapers United
Taking a sec to thank the staff & member helpers for everything they do for us!
300
April 2015
vapersunited
|
Post by Vapers United on Jul 25, 2017 15:47:00 GMT -8
Sadly, it did not work as configured. I played with it and got some different versions of wrongness, but none of them worked as anticipated. I only worked with myself and the two lady Admins (who have been out into another group name Administrater, as opposed to Administrator which is only Me now. Some changes I made didn't have any effect at all, and some did. IIRC, the configuration that I was given here did nothing at all, and I tried putting it in 2 other places.
These are Screen Shots of the various results...
|
|
Vapers United
Junior Member
Taking a sec to thank the staff & member helpers for everything they do for us!
Posts: 300
inherit
220798
0
Jun 19, 2022 19:37:35 GMT -8
Vapers United
Taking a sec to thank the staff & member helpers for everything they do for us!
300
April 2015
vapersunited
|
Post by Vapers United on Jul 25, 2017 15:49:28 GMT -8
This is the code that I entered, where I was told to enter it.
{if $[user.group.name] == "Site Creator"} <div class="mp-group-banner Administrator"> $[user.group.name] </div> {elseif $[user.group.name] == "Contest Organizer"} <div class="mp-group-banner Administrater"> $[user.group.name] </div> {elseif $[user.group.name] == "Vaping Blips Moderator"} <div class="mp-group-banner Vaping Blips Moderator"> $[user.group.name] </div> {elseif $[user.group.name] == "Moderator"} <div class="mp-group-banner Moderator"> $[user.group.name] </div> {elseif $[user.group.name] == "Facebook Leader"} <div class="mp-group-banner Facebook Leader"> $[user.group.name] </div> {elseif $[user.group.name] == "Forum Supplier"} <div class="mp-group-banner Supplier"> $[user.group.name] </div> {elseif $[user.group.name] == "Member Vendor"} <div class="mp-group-banner Member Vendor"> $[user.group.name] </div> {elseif $[user.group.name] == "E-Cig Advocate"} <div class="mp-group-banner Advocate"> $[user.group.name] </div> {elseif $[user.group.name] == "Strike 1 - Barred"} <div class="mp-group-banner Strike One"> $[user.group.name] </div> {elseif $[user.group.name] == "Strike 2 - Barred"} <div class="mp-group-banner Strike Two"> $[user.group.name] </div> {elseif $[user.group.name] == "Strike 3 - Barred"} <div class="mp-group-banner Strike Three"> $[user.group.name] </div> {elseif $[user.group.name] == "Banned"} <div class="mp-group-banner Banned"> $[user.group.name] </div> {/if}
|
|
Kami
Forum Cat
Posts: 40,201
Mini-Profile Theme: Kami's Mini-Profile
#f35f71
156500
0
Offline
Jul 24, 2021 11:48:29 GMT -8
Kami
40,201
July 2010
kamiyakaoru
Kami's Mini-Profile
|
Post by Kami on Jul 25, 2017 16:20:30 GMT -8
I hope there was no misunderstanding: As I said before, there is no CSS for this, so it will not be styled, since I didn't have time to give you CSS this morning. What were you expecting the result to be, when you input the code, if I may ask? I want to be sure we're on the same page.
Also, I will need a link to your forum. (:
|
|
Vapers United
Junior Member
Taking a sec to thank the staff & member helpers for everything they do for us!
Posts: 300
inherit
220798
0
Jun 19, 2022 19:37:35 GMT -8
Vapers United
Taking a sec to thank the staff & member helpers for everything they do for us!
300
April 2015
vapersunited
|
Post by Vapers United on Jul 25, 2017 16:46:35 GMT -8
I figured it out!!! This is the code that worked...
{if $[user.group.name] == "Administrator"} <div class="mp-group-banner"> $[user.banner.name] Site Creator </div> {elseif $[user.group.name] == "Admin"} <div class="mp-group-banner"> $[user.banner.name] Contest Organizer </div> {elseif $[user.group.name] == "Vaping Blips Moderator"} <div class="mp-group-banner"> $[user.banner.name] Vaping Blips Moderator </div> {elseif $[user.group.name] == "Moderator"} <div class="mp-group-banner"> $[user.banner.name] Moderator </div> {elseif $[user.group.name] == "Facebook Leader"} <div class="mp-group-banner"> $[user.banner.name] Facebook Leader </div> {elseif $[user.group.name] == "Supplier"} <div class="mp-group-banner"> $[user.banner.name] Forum Supplier </div> {elseif $[user.group.name] == "Member Vendor"} <div class="mp-group-banner"> $[user.banner.name] Member Vendor </div> {elseif $[user.group.name] == "Advocate"} <div class="mp-group-banner"> $[user.banner.name] E-Cig Advocate </div> {elseif $[user.group.name] == "Strike One"} <div class="mp-group-banner"> $[user.banner.name] Strike 1 - Barred </div> {elseif $[user.group.name] == "Strike Two"} <div class="mp-group-banner"> $[user.banner.name] Strike 2 - Barred </div> {elseif $[user.group.name] == "Strike Three"} <div class="mp-group-banner"> $[user.banner.name] Strike 3 - Barred </div> {elseif $[user.group.name] == "Banned"} <div class="mp-group-banner"> $[user.banner.name] Banned </div> {/if}
|
|
Kami
Forum Cat
Posts: 40,201
Mini-Profile Theme: Kami's Mini-Profile
#f35f71
156500
0
Offline
Jul 24, 2021 11:48:29 GMT -8
Kami
40,201
July 2010
kamiyakaoru
Kami's Mini-Profile
|
Post by Kami on Jul 25, 2017 16:48:25 GMT -8
$[user.banner.name] is not a variable, so I'm not sure what about this "worked" versus anything else?
|
|
Vapers United
Junior Member
Taking a sec to thank the staff & member helpers for everything they do for us!
Posts: 300
inherit
220798
0
Jun 19, 2022 19:37:35 GMT -8
Vapers United
Taking a sec to thank the staff & member helpers for everything they do for us!
300
April 2015
vapersunited
|
Post by Vapers United on Jul 25, 2017 16:48:41 GMT -8
|
|
Kami
Forum Cat
Posts: 40,201
Mini-Profile Theme: Kami's Mini-Profile
#f35f71
156500
0
Offline
Jul 24, 2021 11:48:29 GMT -8
Kami
40,201
July 2010
kamiyakaoru
Kami's Mini-Profile
|
Post by Kami on Jul 25, 2017 16:50:22 GMT -8
Okay, so I will admit I am very frustrated. This is why I asked you exactly what you wanted to display here, and you spoke of their group name. These are not group names. If you had wanted to input your own titles, then I covered that! You can do either / or, since you're already going to specify content for each group's banner. So instead of placing the group name variable you can change it to something else.
Example, if the group is called ADMINISTRATOR but I want it to say ADMIN, instead of using $[user.group.name] to display the name I would simply write ADMIN in its spot.
Which I can see is what you wound up doing after all! The "variable" you changed it to does literally nothing because it doesn't exist, so there is zero point in having it there. Changing the variable to $[user.banner.name] makes it not appear -- you cannot create new variables to place in the template, it needs to be coded into the software to recognise it. What wound up happening is because you used a nonexistent variable, it is not displaying anything (same as if you deleted it), and then you added your own text to display, which is the part that is actually working. Also, are you happy with this visual display, or were you still interested in having a banner aesthetic like on xenforo? Because if this is exactly how you want it, then there is no need to use class names or divs whatsoever and we can simplify the code a lot. (:
|
|
Vapers United
Junior Member
Taking a sec to thank the staff & member helpers for everything they do for us!
Posts: 300
inherit
220798
0
Jun 19, 2022 19:37:35 GMT -8
Vapers United
Taking a sec to thank the staff & member helpers for everything they do for us!
300
April 2015
vapersunited
|
Post by Vapers United on Jul 25, 2017 16:53:19 GMT -8
$[user.banner.name] is not a variable, so I'm not sure what about this "worked" versus anything else?
All I know is that's it's working. Changed Administrater to Admin, so it looks better...
|
|
Kami
Forum Cat
Posts: 40,201
Mini-Profile Theme: Kami's Mini-Profile
#f35f71
156500
0
Offline
Jul 24, 2021 11:48:29 GMT -8
Kami
40,201
July 2010
kamiyakaoru
Kami's Mini-Profile
|
Post by Kami on Jul 25, 2017 16:53:53 GMT -8
|
|
Vapers United
Junior Member
Taking a sec to thank the staff & member helpers for everything they do for us!
Posts: 300
inherit
220798
0
Jun 19, 2022 19:37:35 GMT -8
Vapers United
Taking a sec to thank the staff & member helpers for everything they do for us!
300
April 2015
vapersunited
|
Post by Vapers United on Jul 25, 2017 16:56:17 GMT -8
Okay, so I will admit I am very frustrated. This is why I asked you exactly what you wanted to display here, and you spoke of their group name. These are not group names. If you had wanted to input your own titles, then I covered that! You can do either / or, since you're already going to specify content for each group's banner. So instead of placing the group name variable you can change it to something else.
Example, if the group is called ADMINISTRATOR but I want it to say ADMIN, instead of using $[user.group.name] to display the name I would simply write ADMIN in its spot.
Which I can see is what you wound up doing after all! The "variable" you changed it to does literally nothing because it doesn't exist, so there is zero point in having it there. Also, are you happy with this visual display, or were you still interested in having a banner aesthetic like on xenforo? Because if this is exactly how you want it, then there is no need to use class names or divs whatsoever and we can simplify the code a lot. (: I'm sorry that you misunderstood. I wanted the titles in the banners to be like the ones from the Mini Profiles on the XenForo forum.
But hey, you did great! I just lucked up in figuring it out.
|
|
Kami
Forum Cat
Posts: 40,201
Mini-Profile Theme: Kami's Mini-Profile
#f35f71
156500
0
Offline
Jul 24, 2021 11:48:29 GMT -8
Kami
40,201
July 2010
kamiyakaoru
Kami's Mini-Profile
|
Post by Kami on Jul 25, 2017 16:59:36 GMT -8
Vapers UnitedI didn't really misunderstand... I already told you how to do this as evidenced in the post I quoted! The reason I did not emphasise this method (the one you wound up figuring out for yourself) is because you kept specifying the group names. In the future, instead of making multiple posts if no one has replied but someone is helping you already, please edit your post. It gets very confusing when I'm in the middle of a reply and you've posted twice more by the time I've made my reply to you! I hope I don't come across as rude, because it's not my intent, but that variable you created is doing literally NOTHING. The reason your way works is because the variable doesn't exist (and therefore displays no data). The only thing that is working is the text you specified. If you are not interested in the CSS to actually make them look like banners instead of plain text, then you can remove any <div></div> HTML as well (including the content within the opening <div> tag.
|
|
Vapers United
Junior Member
Taking a sec to thank the staff & member helpers for everything they do for us!
Posts: 300
inherit
220798
0
Jun 19, 2022 19:37:35 GMT -8
Vapers United
Taking a sec to thank the staff & member helpers for everything they do for us!
300
April 2015
vapersunited
|
Post by Vapers United on Jul 25, 2017 17:02:20 GMT -8
I would ultimately like to be able to have two banners. This would mostly only be for one individual, and yes, I would like it to look more like the XenForo Mini Profile.
|
|
Vapers United
Junior Member
Taking a sec to thank the staff & member helpers for everything they do for us!
Posts: 300
inherit
220798
0
Jun 19, 2022 19:37:35 GMT -8
Vapers United
Taking a sec to thank the staff & member helpers for everything they do for us!
300
April 2015
vapersunited
|
Post by Vapers United on Jul 25, 2017 17:05:13 GMT -8
Vapers United I didn't really misunderstand... I already told you how to do this as evidenced in the post I quoted! The reason I did not emphasise this method (the one you wound up figuring out for yourself) is because you kept specifying the group names. In the future, instead of making multiple posts if no one has replied but someone is helping you already, please edit your post. It gets very confusing when I'm in the middle of a reply and you've posted twice more by the time I've made my reply to you! I hope I don't come across as rude, because it's not my intent, but that variable you created is doing literally NOTHING. The reason your way works is because the variable doesn't exist (and therefore displays no data). The only thing that is working is the text you specified. If you are not interested in the CSS to actually make them look like banners instead of plain text, then you can remove any <div></div> HTML as well (including the content within the opening <div> tag. I don't read you as rude. I couldn't understand everything that you said, the way you meant it, because I'm very new to this. Some "terms" confuse me.
|
|
Kami
Forum Cat
Posts: 40,201
Mini-Profile Theme: Kami's Mini-Profile
#f35f71
156500
0
Offline
Jul 24, 2021 11:48:29 GMT -8
Kami
40,201
July 2010
kamiyakaoru
Kami's Mini-Profile
|
Post by Kami on Jul 25, 2017 17:05:27 GMT -8
I would ultimately like to be able to have two banners. This would mostly only be for one individual, and yes, I would like it to look more like the XenForo Mini Profile. Okay. If you give me until tomorrow, I can come back with some nice clean code for you, including CSS. Would you like to keep the class names that you specified?
EDIT: please don't double post haha, this is what I mean ;P
I'm glad you don't read me as rude, I know sometimes I can come across that way when I don't mean to. If you need an explanation of terms, or if you don't understand something I've said fully, please let me know! I am more than happy to break it down further.
|
|
Vapers United
Junior Member
Taking a sec to thank the staff & member helpers for everything they do for us!
Posts: 300
inherit
220798
0
Jun 19, 2022 19:37:35 GMT -8
Vapers United
Taking a sec to thank the staff & member helpers for everything they do for us!
300
April 2015
vapersunited
|
Post by Vapers United on Jul 25, 2017 17:15:17 GMT -8
Yes, please. Any time you have time for me will be perfect!
Site Owner, Global Moderator, Moderator, Mini Mod, Forum Supplier, Member Supplier, Facebook Leader, Contest Organizer, Strike 1 - Barred, Strike 2 - Barred, Strike 3 - Barred, and Banned.
Plus something like this with two banners...
|
|