Hide comment section below video

Hi,
On my public instance tube.reseau-canope.fr, registration is closed and only employees of the public company can have an account.
And commenting is disable.
So how can I hide the comment section below each video ?

Even better for instance which mix video with and without comment : how could we activate this section only when commenting is allowed ?

Thanks for your thoughts about it.


Et dans la langue de Molière :

Bonjour,
Sur notre instance, les utilisateurs sont gérés et appartiennent tous à l’établissement public dont je dépends.
Et nous avons désactiver les commentaires de façon général sur l’instance.

Comment faire pour masquer la section commentaire sous chaque vidéo (puisque toujours vide) ?

Et encore mieux si on se projette sur une fonctionnalité qui pourrait servir à d’autre : comment faire pour avoir par exemple un réglages permettant d’afficher ou masquer cette section selon que les commentaires ont été autorisés ou interdits pour ladite vidéo ?

Merci d’avance pour vos conseils / réflexions / solutions :wink:

Eric.

EN:
Hi.

I think you should be able to do it by playing with themes and/or plugins.

You’ve full documentation there: PeerTube/guide.md at develop · Chocobozzz/PeerTube · GitHub

You could also maybe do it by adding javascript (in admin settings => configuration => advanced) to the my-video-comments section but you would have to handle DOM dynamically generated.

I hope it helped.


FR :
Salut,

Je pense que tu devrais pouvoir y parvenir grâce aux extensions/thèmes : PeerTube/guide.md at develop · Chocobozzz/PeerTube · GitHub

Tu pourrais aussi ajouter ton propre JavaScript (dans les paramètres administrateurs => configuration => avancé) pour cacher la section my-video-comments mais il faudra traiter le DOM généré dynamiquement.

J’espère t’avoir aidé.

1 « J'aime »

Hi @Booteille,

Thanks for your advice. But being not a developper, I was hopping that a solution already existed. Too bad :wink:

I don’t find any extension in the addons list (you can find it in your admin pannel or on PeerTube Extension Finder) when I type « comment » so I think no one made such a solution already. Sorry!

You can also suggest your idea on ideas.joinpeertube.org/ if you think it could be nice to add it natively.

1 « J'aime »