The effects of alcohol on sustanon 250 leucine for – real weight loss & bodybuilding benefits?
Search
Close
AI Search
Classic Search
 Search Phrase:
 Search Type:
Advanced search options
 Search in Forums:
 Search in date period:

 Sort Search Results by:

AI Assistant
{LABEL} shown for u...
 
Share:
Notifications
Clear all

{LABEL} shown for users without a roll

7 Posts
2 Users
0 Reactions
1,806 Views
Posts: 11
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@szczys)
Active Member
Joined: 5 years ago
[#1660]

Problem: Users with no role show "{LABEL}"

Expected behavior: Nothing should be shown for users without a role when {LABEL} shortcode is populated

image

Explanation:

I'm not using the {LEFT} in my layout; I moved the {LABEL} shortcode into header.html. This works perfectly for users that have roles, but users without roles are showing {LABEL} when they should be showing nothing. Screenshot illustrates this:

 Here is my header.html layout file:

<div class="{HEADER_WRAPPER_CLASSES}">
{AUTHOR}
<div class="wpd-comment-label">
<span>{LABEL}</span>
</div>
{DATE}
{STATUS}
{LINK}
<div class="wpd-space"></div>
</div>

Is this a bug or am I missing something?


6 Replies
Posts: 11
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@szczys)
Active Member
Joined: 5 years ago

Workaround for this issue: Add {LABEL} in the class definition and use CSS wildcard to hide it.

Layout file:

<div class="wpd-comment-label {LABEL}">
<span>{LABEL}</span>
</div>

CSS Oneliner:

[class*='LABEL'] {visibility: collapse;} /* (hack) Hide for users without roles */

Reply
5 Replies
Asti
 Asti
Support
(@asti)
Joined: 8 years ago

Illustrious Member
Posts: 8210
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian

@szczys,

Could you please send the admin login details to info[at]gvectors.com email address to allow the developers to check the issue? 


Reply
(@szczys)
Joined: 5 years ago

Active Member
Posts: 11
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian

@asti Sorry, our test server has actual user data in it so I can't share a login with someone outside of the company. This should be very easy to replicate on one of your test servers, will you please ask the developers to take a look at it?


Reply
(@szczys)
Joined: 5 years ago

Active Member
Posts: 11
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian

Doesn't look like I can edit my previous comment, but a better CSS oneliner for the workaround uses escape characters for the curly brackets instead of a wildcard:

.\{LABEL\} {visibility: collapse;} /* (hack) Hide for users without roles */

Reply
Asti
 Asti
Support
(@asti)
Joined: 8 years ago

Illustrious Member
Posts: 8210
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian

@szczys,

then just send the files you've customized to us.


Reply
(@szczys)
Joined: 5 years ago

Active Member
Posts: 11
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian

@asti Please find attached the header.html file from layout 1. You should be able to replicate the issue I'm seeing ("{LABEL} is show next to comments without a user role) on a stock install with this one change.

This forum doesn't allow .html file attachements. Here's the contents of that file:

<div class="{HEADER_WRAPPER_CLASSES}">
{AUTHOR}
{LABEL}
{DATE}
{STATUS}
{SHARE}
<div class="wpd-space"></div>
{LINK}
</div>

Reply
Share: