Disabling Chat



  • I've disabled chat but users still have chat options in their own settings



  • I've solved modifing template adding the condition on this block and others mentioning chat :

                            <!-- IF !config.disableChat -->
    			<div class="checkbox">
    				<label>
    					<input type="checkbox" data-property="restrictChat" <!-- IF settings.restrictChat -->checked<!-- ENDIF settings.restrictChat -->/> <strong>[[user:restrict_chats]]</strong>
    				</label>
    			</div>
    			<!-- ENDIF !config.disableChat -->

  • Global Moderator

    What theme are you on?



  • @PitaJ i'm using persona theme.



  • It has been easy hide all chat relatet blocks modifing the template except for sounds notifications, any hint on how disable that option here ?

    			<label for="notification">[[user:notification-sound]]</label>
    			<div class="row">
    				<div class="form-group col-xs-9">
    					<select class="form-control" id="notification" name="notification" data-property="notificationSound">
    						<option value="">[[user:no-sound]]</option>
    						<!-- BEGIN notificationSound -->
    						<option value="{notificationSound.name}" <!-- IF notificationSound.selected -->selected<!-- ENDIF notificationSound.selected -->>{notificationSound.name}</option>
    						<!-- END notificationSound -->
    					</select>
    				</div>
    				<div class="btn-group col-xs-3">
    					<button type="button" class="form-control btn btn-sm btn-default" data-action="play"><span class="hidden-xs">[[global:play]] </span><i class="fa fa-play"></i></button>
    				</div>
    			</div>

  • Global Moderator

    @Simos you should be able to add the same IF...ENDIF around that code as well. Would you mind opening an issue on the persona repo so we can fix this permanently?



  • @PitaJ ok i open the issue on github



  • @PitaJ said in Disabling Chat:

    @Simos you should be able to add the same IF...ENDIF around that code as well. Would you mind opening an issue on the persona repo so we can fix this permanently?

    I'm new to nodeBB so i've to better understand how it work but I suppose it generate sound options array somewhere and than it's used in template, if i use IF...ENDIF on that block i disable all sound notification options.


Log in to reply
 

Suggested Topics

| |