mChat Font Size

Allow users to customize the default font size for all mChat messages
User avatar
kasimi
mChat developer
Posts: 247
Joined: 06 Oct 2016, 09:56
Contact:

mChat Font Size

#1

Postby kasimi » 20 Oct 2016, 12:05

mChat Font Size

This mChat addon allows users to customize the default font size for all mChat messages. It adds a new setting in the UCP for users to specify their font size in pixels.

You can test this extension by changing the font size in the mChat settings in your UCP.

Screenshots

  • Increased or decreased font size for all messages:

    Image

  • Customizable in the UCP:

    Image

Requirements

  • PHP at least 5.3.3
  • phpBB at least 3.1.8-RC1
  • mChat at least 2.0.0-RC7

Download

This extension is only available to Donors. How to get access.

kasimi-phpbb-ext-mchat-fontsize-1.0.1.zip


How to install, update and uninstall extensions: https://www.phpbb.com/extensions/installing/
Install path: ext/kasimi/mchatfontsize/


Changelog

  • v1.0.1 - 2017-01-12
    • Don't include CSS if mChat is not present
  • v1.0.0 - 2016-10-20
    • First release
You do not have the required permissions to view the files attached to this post.

User avatar
Darloup
Donor
Posts: 62
Joined: 20 Oct 2016, 18:21
Location: Barranquilla (Colombia)

Re: mChat Font Size

#2

Postby Darloup » 21 Oct 2016, 02:16

Hello,

I have downloaded, installed and activated this superb extension, I cleared the cache but, so far, I can't see the option to select the font size in the mChat tab of my UCP.

What am I doing wrong?!

Regards,

Henry

P.S. Got it! I had to give the Administrator group the permission to do so as it was set on "No" by default!

P.P.S. A request please! Would it be possible to implement the DEFAULT font size as an option under GLOBAL SETTINGS in the ACP? My experience has shown me that users rarely bother to configure their preferences in their UCP. Thus, I would thus love a GLOBAL SETTING in the ACP where I could set the font size by default for ALL USERS (let's say 11 pix). Naturally, users could override this default setting in their UCP (if they ever bothered to do so).

Thanks!

Regards,

Henry

User avatar
kasimi
mChat developer
Posts: 247
Joined: 06 Oct 2016, 09:56
Contact:

Re: mChat Font Size

#3

Postby kasimi » 21 Oct 2016, 08:55

There should be an option for this in the global user settings. By changing the value there, new user accounts will automatically use that value. You can can override the font size of all existing users by using the "Override settings for all users" feature at the bottom of that page. Keep in mind that this will override all other user settings as well (display on index, input type, new messages at the top/bottom etc).

If you only want to change the font size for all users, you have two options:

    1. Uninstall this add-on extension and delete the data
    2. Open ext/kasimi/mchatfontsize/migrations/v1_0_0.php
    3. Find 'user_mchat_font_size' => array('USINT', 12),
    4. Change the 12 to whatever font size you want all users to have by default
    5. Install the extension again
  1. Run this query in phpMyAdmin or similar after installing the extension. Change the 12 to the default size you want.

    Code: Select all

    UPDATE phpbb_users
    SET user_mchat_font_size = 12;

I hope this helps. :)

User avatar
Darloup
Donor
Posts: 62
Joined: 20 Oct 2016, 18:21
Location: Barranquilla (Colombia)

Re: mChat Font Size

#4

Postby Darloup » 22 Oct 2016, 03:24

Hello kasimi,

There should be an option for this in the global user settings. By changing the value there, new user accounts will automatically use that value
.
Found it - thanks!

Henry

User avatar
kasimi
mChat developer
Posts: 247
Joined: 06 Oct 2016, 09:56
Contact:

Re: mChat Font Size

#5

Postby kasimi » 12 Jan 2017, 10:47

Small update in the first post. The CSS for this extension was included on all pages and sometimes resulted in wrong CSS, which is fixed in version 1.0.1. No language changes.


Return to “mChat Font Size”

Who is online

Users browsing this forum: No registered users and 1 guest