AI Assistant
Notifications
Clear all

[Solved] Comments.php

1 Posts
1 Users
0 Reactions
2,660 Views
(@diretur)
New Member
Joined: 9 years ago
Posts: 3
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
  [#1553]

Hi everybody,

our website uses different way of commenting depending on the language:

- for language 1 we use the WP comments

- for languages 2 and 3 we use the FB comments plugin.

We would like to use wpdiscuz instead of the normal wp comments for lang 1, and keep FB for 2 and 3.

The "if" script is in the comments.php file, but wpdiscuz hooks in before that and kills our options: all languages have to use it.

Where should we put the script, in order to tell WP to choose the right comments system?

This is it:

<div id="comments" class="comments-area">
<?php	if(ICL_LANGUAGE_CODE == 'en'){ ?>
<div class="fb-comments" data-width="740" data-numposts="10"></div>		
<?php } ?>
<?php	if(ICL_LANGUAGE_CODE == 'es'){ ?>
<div class="fb-comments" data-width="740" data-numposts="10"></div>		
<?php } ?>
<?php	if(ICL_LANGUAGE_CODE == 'it'){ ?>
<?php comment_form(array('must_log_in'=>'<a href="/forum/misc/language?language_id=2&redirect=/forum/login/">Effettua il login per commentare</a>')); ?>
<?php	}
else {?>
<?php } ?>

Thanks


   
Quote
Share:
Scroll to top