Raise cBB Chat before top Statistics




cspld
 
Posts: 5
Joined: Mon Feb 13, 2017 8:34 pm

Raise cBB Chat before top Statistics

Postby cspld » Mon Feb 13, 2017 8:39 pm • via Web
Hi,
how to change the position of the chat is over statistics ?
Image

Code: Select all
/*
* @name jchat-options.js
* @package cBB Chat
* @style: proSilver
* @version v1.1.1 01/07/2015 $
*
* @copyright (c) 2015 CaniDev
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*/

var jchat_style_options = {
   positions: {
      faq: {
         top      : ['#faqlinks', 'before'],
         bottom   : ['.panel:last', 'after']
      },
      index: {
         top      : ['.forabg:has(.topiclist):first', 'before'],
         bottom   : ['.forabg:has(.topiclist):last', 'after']
      },
      mcp: {
         top      : ['#tabs', 'before'],
         bottom   : ['#page-body', 'append']
      },
      memberlist: {
         top      : ['h2:first', 'after'],
         bottom   : ['#jumpbox', 'before']
      },
      search: {
         top      : ['h2:first', 'after'],
         bottom   : ['#page-body', 'append']
      },
      ucp: {
         top: ['#tabs', 'before'],
         bottom   : ['#page-body', 'append']
      },
      viewforum: {
         top      : ['.action-bar.top', 'before'],
         bottom   : ['.action-bar.bottom', 'after']
      },
      viewonline: {
         top      : ['.action-bar.top', 'before'],
         bottom   : ['.action-bar.bottom', 'after']
      },
      viewtopic: {
         top      : ['.action-bar.top', 'before'],
         bottom   : ['.action-bar.bottom', 'after']
      },
      undefined: {
         top      : ['#page-body', 'prepend'],
         bottom   : ['#page-body', 'append']
      }
   }
};
User avatar

IvanPF
Site Admin
 
Posts: 1744
Joined: Fri Jun 17, 2011 12:15 am
Location: España (Spain)

Re: Raise cBB Chat before top Statistics

Postby IvanPF » Mon Feb 13, 2017 9:41 pm • via Web
Hi,

I need the url of your forum to help you.


cspld
 
Posts: 5
Joined: Mon Feb 13, 2017 8:34 pm

Re: Raise cBB Chat before top Statistics

Postby cspld » Tue Feb 14, 2017 5:41 pm • via Web
User avatar

IvanPF
Site Admin
 
Posts: 1744
Joined: Fri Jun 17, 2011 12:15 am
Location: España (Spain)

Re: Raise cBB Chat before top Statistics

Postby IvanPF » Tue Feb 14, 2017 7:31 pm • via Web
Ok,

Try this change in the file jchat-options.js

Find:
Code: Select all
      index: {
         top      : ['.forabg:has(.topiclist):first', 'before'],
         bottom   : ['.forabg:has(.topiclist):last', 'after']
      },


Replace with:
Code: Select all
      index: {
         top      : ['.forabg:first', 'before'],
         bottom   : ['.forabg:has(.online-list)', 'before']
      },


And clear the cache in the ACP


cspld
 
Posts: 5
Joined: Mon Feb 13, 2017 8:34 pm

Re: Raise cBB Chat before top Statistics

Postby cspld » Tue Feb 14, 2017 8:12 pm • via Web
Thank you :) lock.

Who is online

Users browsing this forum: No registered users and 1 guest