Real
Quick instructions:
- add new panel called for example Chat with that content:
<?php $cur_panel['class'] = '' ?>
<div id="panel-chatlite"></div>
- open /extensions/ek_chatlite/media/js/chat.js (firstly backup it )
- find
msgTemplate: new Template('#{a}[#{d}#{h}:#{m}] <strong><#{name}></strong> #{msg}<br />'),
- replace with
msgTemplate: new Template('#{a}[#{d}#{h}:#{m}] <strong>#{name}</strong><br /> #{msg}<br />'),
- find
// get the header or announcement we will use it to append our chatbox after
var appendAfter = document.getElementById('brd-announcement');
if(!appendAfter) appendAfter = document.getElementById('brd-visit');
if(!appendAfter) return false;
- replace with
// get the header or announcement we will use it to append our chatbox after
var appendAfter = document.getElementById('panel-chatlite');
if(!appendAfter) appendAfter = document.getElementById('brd-announcement');
if(!appendAfter) appendAfter = document.getElementById('brd-visit');
if(!appendAfter) return false;
- find
chatBlock.appendChild(new Element('h2')).update(this.lang.title);
- replace with
// chatBlock.appendChild(new Element('h2')).update(this.lang.title);
- save chat.js
- open /extensions/ek_chatlite/manifest.xml
- find
/ add javascript and style files on the Index
if(FORUM_PAGE === 'index') {
- replace with
// add javascript and style files on the Index
if(FORUM_PAGE === 'index' || defined('FORUM_PORTAL')) {
- save manifest.xml
- reinstall chatlite (or refresh hooks)