The effects of alcohol on sustanon 250 leucine for – real weight loss & bodybuilding benefits?
Share:
Notifications
Clear all

[Solved] User roles issues

10 Posts
2 Users
1 Reactions
1,052 Views
Posts: 7
Topic starter
(@markoz)
Active Member
Joined: 4 years ago

Hi guys, 

I have situation with displaying user role titles in front end with users who has more than one role.

If user has more than one role, it will not show phrases at all in form. 

I'd like to show them both user roles as per definition in phrases?

Is there any solution for this?

thanks in advance

9 Replies
Asti
Posts: 7661
 Asti
Support
(@asti)
Illustrious Member
Joined: 7 years ago

@markoz,

If user has more than one role, it will not show phrases at all in form. 

Could you please leave an example URL where we can see the issue? 

The first user role should be displayed. 

Please make sure all user roles are properly fill in the  Dashboard > Comments > Phrases > Comment tab page. See the screenshot below:

roles

 

1 Reply
(@markoz)
Joined: 4 years ago

Active Member
Posts: 7

Hi @asti

and thank you for your reply.

 

Here is example where you can see the issue: https://desertfellas.com/junior-4-ai-14/  

1. I have double checked Dashboard > Comments > Phrases > Comment tab as instructed and everything looks fine. 

2. I'm also struggling to find out how to show "Real name" instead of "username" on form

 

Thanks in advance.

Posts: 7
Topic starter
(@markoz)
Active Member
Joined: 4 years ago
Posted by: @asti

If user has more than one role, it will not show phrases at all in form. 

Is there any work around for this?

1 Reply
Asti
 Asti
Support
(@asti)
Joined: 7 years ago

Illustrious Member
Posts: 7661

@markoz,

Are you sure the user roles are selected in the "Display Comment Author Labels" section?

The section is located in the Dashboard > wpDiscuz > Settings > User Labels and Badges admin page. More info here:  https://wpdiscuz.com/docs/wpdiscuz-7/plugin-settings/user-labels-and-badges/#display-comment-author-labels

Posts: 7
Topic starter
(@markoz)
Active Member
Joined: 4 years ago
Posted by: @asti

"Display Comment Author Labels" section?

1. 🤠 that's it 🙄 😊 

 

4 Replies
Asti
 Asti
Support
(@asti)
Joined: 7 years ago

Illustrious Member
Posts: 7661

@markoz,

regarding the second question, you should change the value of the "Display name publicly as" option. Navigate to Dashboard > Users admin page edit the user profile and change the value of the option. 

Display name as

 

(@markoz)
Joined: 4 years ago

Active Member
Posts: 7

@asti

thanks for reply 

ok, I see now ... thanks for that. I find the solution through my membership plugin to change all together at once. 😎 

And last one (sorry) is related to work around...  if any possibility to show both roles in user labels. 

thanks a lot for your time

Asti
 Asti
Support
(@asti)
Joined: 7 years ago

Illustrious Member
Posts: 7661

@markoz,

You can use the following hook to display the secondary role: 

wpdiscuz_after_label
(@markoz)
Joined: 4 years ago

Active Member
Posts: 7

@asti

this one couldn't make it work, unfortunately. but at least we sort out some things, thanks for that  

Share: