The effects of alcohol on
sustanon 250 leucine for – real weight loss & bodybuilding benefits?
Question [Solved] Custom fields visible only to logged-in users
Summarize Topic
✦
✦
✦
AI is analyzing the discussion...
How-to and Troubleshooting
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
Show original
Translating...
May 23, 2024 4:51 pm
(@gdag)
Eminent Member
Joined: 2 years ago
Hello,
I've added some fields to the comment form. I would like the values of these fields in the comment list to be visible only to users connected to Wordpress. Is it possible to do this?
I look forward to hearing from you,
Support
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
Show original
Translating...
May 23, 2024 4:58 pm
(@asti)
Illustrious Member
Joined: 8 years ago
Hi,
Sure there is an option called "Display for Guests:". You should disable it. Please watch this video:
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
Show original
Translating...
May 23, 2024 5:01 pm
(@gdag)
Eminent Member
Joined: 2 years ago
Thank you for your responsiveness. However, I would like everyone to complete it (logged in or not) but only logged in users can see this field in the list of comments (This is private data but useful for administrators).
(@asti)
Joined: 8 years ago
Illustrious Member
Posts: 8300
May 23, 2024 5:16 pm
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
Show original
Translating...
@gdag ,
You can use the CSS code provided below:
.wpdiscuz_unauth .wpd-custom-field.yourCustomfieldClassname {display :none !important;}
Just change the yourCustomfieldClassname to the one you've created. Each field has its specific classname.
Insert the code in the "Custom CSS code" textarea, located in the Dashboard > wpDiscuz > Settings > Styles & Colors admin page.
Don't forget to delete the caches before checking.
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
Show original
Translating...
May 23, 2024 5:19 pm
(@gdag)
Eminent Member
Joined: 2 years ago
Thank you for your reply. This solution, although visually perfect, seems to me very risky and not very recommended for the protection of users' private data (one look in the HTML code with the inspector and everything is visible). Don't you have an idea for a more suitable solution (Filter , Action...)?
(@asti)
Joined: 8 years ago
Illustrious Member
Posts: 8300
May 23, 2024 5:42 pm
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
Show original
Translating...
@gdag ,
You can use JavaScript code:
jQuery( document ).ready(function() {
jQuery('.wpdiscuz_unauth .wpd-custom-field.yourCustomfieldClassname ').remove();
});
For guidance on adding JavaScript to WordPress pages, you may find this article helpful: https://www.wpbeginner.com/wp-tutorials/how-to-easily-add-javascript-in-wordpress-pages-or-posts/
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
Show original
Translating...
May 24, 2024 10:39 am
(@gdag)
Eminent Member
Joined: 2 years ago
Thanks for this solution, which already seems more secure. However, isn't it really possible to do this not in JS but in functions.php in order to be completely secure?
(@asti)
Joined: 8 years ago
Illustrious Member
Posts: 8300
May 24, 2024 12:49 pm
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
Show original
Translating...
I'll check with the developers to see if they can provide a solution for you. I'll update this topic as soon as I have more information.
(@asti)
Joined: 8 years ago
Illustrious Member
Posts: 8300
May 28, 2024 12:49 pm
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
Show original
Translating...
@gdag ,
The developers will add a new hook. Once the new version of the wpDiscuz plugin is released, you'll be able to use the PHP code.
(@gdag)
Joined: 2 years ago
Eminent Member
Posts: 16
May 29, 2024 5:58 pm
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
Show original
Translating...
@asti
Thanks for the good news 🙂 Another question: is it possible for logged-in users to see commenters' e-mail addresses?
(@asti)
Joined: 8 years ago
Illustrious Member
Posts: 8300
May 30, 2024 12:18 pm
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
Show original
Translating...
@gdag
I'm really sorry, but the wpDiscuz doesn't have such a feather.
Super Globals
Options and Features