1
carolinaz
change smilies size
  • 2008/2/23 13:07

  • carolinaz

  • Just popping in

  • Posts: 3

  • Since: 2008/2/16


Hello!

Is there any way to change the allowed smilies size?
the default is 120*120 but i want to change it to 128*128

2
Anonymous
Re: change smilies size
  • 2008/2/23 13:41

  • Anonymous

  • Posts: 0

  • Since:


120x120px is a bit large for smiley, 128x128px more so. Smilies are the emoticons that you can add to posts, e.g. and

Could it be that you mean "avatar" rather than "smilie"? Avatars are the pictures that users upload to give a little character to an online persona, e.g. the picture of the rat on the left under my username.

Avatar size can be set in Admin>System>Preferences>User Info Settings.

I don't know where one sets the maximum size of a smiley/emoticon.

3
Alex_Grey
Re: change smilies size
  • 2008/2/23 13:49

  • Alex_Grey

  • Just popping in

  • Posts: 43

  • Since: 2007/6/16


Quote:

JAVesey wrote:

I don't know where one sets the maximum size of a smiley/emoticon.


It is hard coded in modules/system/admin/smilies/main.php on line 71. Link.

The parameters are.
/**
     * @param   string  $uploadDir
     * @param   array   $allowedMimeTypes
     * @param   int     $maxFileSize
     * @param   int     $maxWidth
     * @param   int     $maxHeight
     * @param   int     $cmodvalue
     **/
    
function XoopsMediaUploader($uploadDir$allowedMimeTypes$maxFileSize=0$maxWidth=null$maxHeight=null)
“There is nothing impossible to him who will try.” ~Alex The Great~
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯

4
Anonymous
Re: change smilies size
  • 2008/2/23 14:17

  • Anonymous

  • Posts: 0

  • Since:


Quote:
Alex_Grey wrote:

It is hard coded in modules/system/admin/smilies/main.php on line 71.


You are right

I still think that 120x120px is too big for a smiley, though

5
carolinaz
Re: change smilies size
  • 2008/2/23 19:13

  • carolinaz

  • Just popping in

  • Posts: 3

  • Since: 2008/2/16


Yes i think it´s to big to
But it´s for a kids site where they collect smilies & and avatars.
and if they want 128*128 i will try to fix it for them



Alex_Grey thank you very much for the replay
If it´s hardcoded does that mean i can not change it?

6
Anonymous
Re: change smilies size
  • 2008/2/23 19:45

  • Anonymous

  • Posts: 0

  • Since:


Quote:
carolinaz wrote:

If it´s hardcoded does that mean i can not change it?


No - you can change it simply by editing line 71 of main.php - it is as easy as that

7
carolinaz
Re: change smilies size
  • 2008/2/24 10:55

  • carolinaz

  • Just popping in

  • Posts: 3

  • Since: 2008/2/16


Works great!
I found the exact same thing on line 118 so i needed to change that too


Thank you all for the fast replay and help

Carolina

8
Alex_Grey
Re: change smilies size
  • 2008/2/24 14:27

  • Alex_Grey

  • Just popping in

  • Posts: 43

  • Since: 2007/6/16


Quote:

carolinaz wrote:
Works great!
I found the exact same thing on line 118 so i needed to change that too


Yes. I didn't notice it earlier but its for saving your smilies for when it is being editing.
“There is nothing impossible to him who will try.” ~Alex The Great~
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯

Login

Who's Online

249 user(s) are online (169 user(s) are browsing Support Forums)


Members: 0


Guests: 249


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits