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

[Solved] Change default "Please login" Text

5 Posts
2 Users
0 Reactions
19 Views
Posts: 22
Topic starter
(@gooloode)
Eminent Member
Joined: 2 years ago

Hello,

i've now tried 

add_action('wp_footer', 'add_login_comment_script');

function add_login_comment_script() {
    if (is_single()) {
        echo '<script type="text/javascript">';
        echo 'jQuery(document).ready(function ($) {';
        echo 'jQuery(".wpd-login-to-comment").wrapInner("Bitte melde dich an, um diesen Beitrag kommentieren zu schützen. Ein gooloo.de ist immer kostenfrei. <a href=\'/wp-login.php?action=register\'>Registrieren</a> oder <a href=\'/wp-login.php\'>Anmelden</a>. Du kannst dich alternativ mit Facebook, DISQUS, Telegram, WordPress.com oder Google anmelden, indem Du einfach auf das entsprechende Symbol tippst.");';
        echo '});';
        echo '</script>';
    }
}

and

function custom_wpdiscuz_login_message($message) {
    return 'Bitte melde dich an, um diesen Beitrag kommentieren zu schützen. Ein gooloo.de ist immer kostenfrei. Registrieren oder Anmelden. Du kannst dich alternativ mit Facebook oder Google anmelden, indem Du einfach auf das entsprechende Symbol tippst.';
}
add_filter('wpdiscuz_login_message', 'custom_wpdiscuz_login_message');

but none of them work.

Is there any reason why this isn't editable and do you have any way of changing that? I'm german and it just looks bad to have this single line of english, plain text there.

4 Replies
Asti
Posts: 7473
 Asti
Support
(@asti)
Illustrious Member
Joined: 7 years ago

Hi,

You can change the phrase in the Dashboard > wpDiscuz > Phrases > General admin page.

Reply
Posts: 22
Topic starter
(@gooloode)
Eminent Member
Joined: 2 years ago

Hi, there is no such Thing as "Phrases" anywhere in the Plugin. Not in settings, not in tools, not anywhere.

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

Illustrious Member
Posts: 7473

@gooloode 

The "Phrases" tab is missing as far as you've enabled the "Use Plugin .PO/.MO Files" option. Once you disable it, the phrases tab will appear again. 

The option is located in the Dashboard > wpDiscuz > Settings > General Settings tab. More info here:  https://wpdiscuz.com/docs/wpdiscuz-7/plugin-settings/general-settings/#use-plugin-po-mo-files

I'd also suggest you read this FAQ:  https://wpdiscuz.com/community/f-a-q/how-to-translate-wpdiscuz/

Here is explained how to translate the wpDiscuz plugin. 

Reply
Posts: 22
Topic starter
(@gooloode)
Eminent Member
Joined: 2 years ago

Aaaaaah, I see, found it, thank you. 🙂

Reply
Share: