The effects of alcohol on
sustanon 250 leucine for – real weight loss & bodybuilding benefits?
[Solved] Allow multi voting?
✦ 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...
Dec 07, 2020 3:05 pm
(@egg)
Active Member
Joined: 5 years ago
Dear all,
we have a special environment and we would like to use wpdiscuz.
Our environment: all guests uses one computer / terminal as "guest" (no login). So everyone should be able to comment, vote and so on.
Therefore we have to deactivate any code which prevents multi vote, locks same user to do something twice, or even set a cookie with the name.
Any hints where to find the functions?
Thank you,
Michael
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...
Dec 07, 2020 3:40 pm
(@asti)
Illustrious Member
Joined: 8 years ago
Hi @egg,
Please use this code:
add_filter('pre_comment_user_ip', function(){
if(!is_user_logged_in()){
return md5(uniqid());
}
});
Put it in the active theme functions.php file. More information on how to add insert custom code.
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...
Dec 07, 2020 4:36 pm
(@egg)
Active Member
Joined: 5 years ago
@Asti: Perfect! So I can put this in a plugin 🙂
Thank you for the fast help.
(@asti)
Joined: 8 years ago
Illustrious Member
Posts: 8208
Dec 07, 2020 4: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...
@egg,
Not in a plugin just in the current active theme functions.php file.
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...
Dec 07, 2020 4:44 pm
(@egg)
Active Member
Joined: 5 years ago
I understand. But if I use it in a custom plugin, I can change / update my themes. Again: Thank you 🙂