smilies on mchat

Support for PhpBB3.
Post here to get help with any phpBB3 related issue
Forum rules
In order the get any support, you will have to do following:
1. Use a describing title!
2. Describe your problem and what happened when the problem occured
3. Tell us what version of phpBB3 you are currently using.
If not your topic may be ignored or locked!

smilies on mchat

Post by gamer »

hello all
i just installer mchat the new version on my forum , i would like to know how i can add (View more smilies)
thanks a lot

Re: smilies on mchat

Post by Stoker »

I think you should wait for the next version or ask the author at phpbb.com

Re: smilies on mchat

Post by gamer »

hello stoker
i don't find a post in phpbb.com about how to add moore smilies , i will search again , maybe i can find it
thanks a lot

Re: smilies on mchat

Post by Steve »

This is how todo it ,

Open mchat/mchat_ajax_mini.js
find:

Code: Select all

#MchatForm
replace with:

Code: Select all

#postform
Open includes/functions.php
find:

Code: Select all

		'S_MCHAT_ENABLE'		=> (isset($config['mchat_enable']) && $auth->acl_get('u_mchat_view')) ? true : false,
add after:

Code: Select all

    'U_MORE_SMILIES'       => append_sid("{$phpbb_root_path}posting.$phpEx", 'mode=smilies'),
Open language/en/mods/mchat_lang.php
find:

Code: Select all

	'MCHAT_REG_USER_TOTAL_AND'			=> '%d registered and ',
add after:

Code: Select all

	'MORE_SMILIES'				        => 'View more smilies',
Open styles/prosilver/template/mchat_body.html
find:

Code: Select all

var form_name = 'mChatForm';
replace with:

Code: Select all

var form_name = 'postform';
find:

Code: Select all

<form method="post" action="javascript://" onsubmit="mChat.add();" id="mChatForm">
replace with:

Code: Select all

<form method="post" action="javascript://" onsubmit="mChat.add();" id="postform">
find:

Code: Select all

<!-- END mchatsmilerow -->
add after:

Code: Select all

<a href="{U_MORE_SMILIES}" onclick="popup(this.href, 300, 350, '_phpbbsmilies'); return false;">{L_MORE_SMILIES}</a>
Capture.PNG

Re: smilies on mchat

Post by gamer »

hello Steve©
it's work great thanks a lot but when i try to add a smilies in my acp i have this message
Erreur générale
SQL ERROR [ mysql4 ]

Data too long for column 'smiley_url' at row 1 [1406]

SQL

INSERT INTO phpbb_smilies (smiley_url, smiley_width, smiley_height, display_on_posting, emotion, code, smiley_order) VALUES ('Angel-male-bird-smiley-smiley-emoticon-000278-medium.gif', 110, 75, 0, 'angeur', 'angeur', 1)

BACKTRACE

FILE: includes/db/mysql.php
LINE: 174
CALL: dbal->sql_error()

FILE: includes/acp/acp_icons.php
LINE: 526
CALL: dbal_mysql->sql_query()

FILE: includes/functions_module.php
LINE: 507
CALL: acp_icons->main()

FILE: adm/index.php
LINE: 74
CALL: p_master->load_active()

any help please

Re: smilies on mchat

Post by Steve »

basicly its because the smilie image name is too long
Angel-male-bird-smiley-smiley-emoticon-000278-medium.gif
this one try renaming it and will work again.

Re: smilies on mchat

Post by gamer »

yesssssssssssss bthnaks a lot it' work fantsatci now
great and thanks again Steve©